the main class to read a ClarisDraw v1 file More...
#include <ClarisDrawParser.hxx>
Public Member Functions | |
| ClarisDrawParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor | |
| virtual | ~ClarisDrawParser () |
| destructor | |
| bool | checkHeader (MWAWHeader *header, bool strict=false) |
| checks if the document header is correct (or not) | |
| void | parse (librevenge::RVNGDrawingInterface *documentInterface) |
| the main parse function | |
| int | getFileType (int zoneId) const |
| returns the file type corresponding to a zone id | |
| MWAWVec2f | getPageLeftTop () |
| returns the page left top point ( in inches) | |
| bool | sendTextZone (int number, int subZone=-1) |
| sends a text zone | |
Protected Member Functions | |
| void | init () |
| inits all internal variables | |
| void | createDocument (librevenge::RVNGDrawingInterface *documentInterface) |
| creates the listener which will be associated to the document | |
| bool | createZones () |
| finds the different objects zones | |
| bool | readZone () |
| try to read a zone | |
| bool | readDocHeader () |
| try to read a document header | |
| bool | readLibraryHeader () |
| try to read the library header | |
| shared_ptr< ClarisWksStruct::DSET > | readDSET (bool isLibHeader=false) |
| try to read a DSET structure | |
| bool | readPrintInfo () |
| try to read the print info zone | |
| bool | readDocInfo () |
| try to read the document info zone | |
| bool | readLayouts () |
| try to read the layout | |
| bool | readLibraryNames () |
| try to read the library names(two zone) | |
Protected Attributes | |
| shared_ptr < ClarisDrawParserInternal::State > | m_state |
| the state | |
| shared_ptr < ClarisDrawStyleManager > | m_styleManager |
| the style manager | |
| shared_ptr< ClarisDrawGraph > | m_graphParser |
| the graph parser | |
| shared_ptr< ClarisDrawText > | m_textParser |
| the text parser | |
Friends | |
| class | ClarisDrawGraph |
| class | ClarisDrawText |
the main class to read a ClarisDraw v1 file
| ClarisDrawParser::ClarisDrawParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| ClarisDrawParser::~ClarisDrawParser | ( | ) | [virtual] |
destructor
| bool ClarisDrawParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| void ClarisDrawParser::createDocument | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [protected] |
creates the listener which will be associated to the document
Referenced by parse().
| bool ClarisDrawParser::createZones | ( | ) | [protected] |
finds the different objects zones
Referenced by parse().
| int ClarisDrawParser::getFileType | ( | int | zoneId | ) | const |
returns the file type corresponding to a zone id
Referenced by ClarisDrawGraph::sendGroup(), ClarisDrawGraph::sendMainGroupChild(), and ClarisDrawGraph::updateGroup().
returns the page left top point ( in inches)
Referenced by createDocument(), ClarisDrawGraph::flushExtra(), and parse().
| void ClarisDrawParser::init | ( | ) | [protected] |
inits all internal variables
Referenced by ClarisDrawParser().
| void ClarisDrawParser::parse | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [virtual] |
the main parse function
Implements MWAWGraphicParser.
| bool ClarisDrawParser::readDocHeader | ( | ) | [protected] |
try to read a document header
Referenced by createZones().
| bool ClarisDrawParser::readDocInfo | ( | ) | [protected] |
try to read the document info zone
Referenced by readDocHeader().
| shared_ptr< ClarisWksStruct::DSET > ClarisDrawParser::readDSET | ( | bool | isLibHeader = false | ) | [protected] |
try to read a DSET structure
Referenced by readLibraryHeader(), and readZone().
| bool ClarisDrawParser::readLayouts | ( | ) | [protected] |
try to read the layout
Referenced by readDocHeader().
| bool ClarisDrawParser::readLibraryHeader | ( | ) | [protected] |
try to read the library header
Referenced by createZones().
| bool ClarisDrawParser::readLibraryNames | ( | ) | [protected] |
try to read the library names(two zone)
Referenced by readLibraryHeader().
| bool ClarisDrawParser::readPrintInfo | ( | ) | [protected] |
try to read the print info zone
Referenced by readDocHeader().
| bool ClarisDrawParser::readZone | ( | ) | [protected] |
try to read a zone
Referenced by createZones().
| bool ClarisDrawParser::sendTextZone | ( | int | number, |
| int | subZone = -1 |
||
| ) |
sends a text zone
Referenced by ClarisDrawGraph::sendTextZone().
friend class ClarisDrawGraph [friend] |
Referenced by init().
friend class ClarisDrawText [friend] |
Referenced by init().
shared_ptr<ClarisDrawGraph> ClarisDrawParser::m_graphParser [protected] |
the graph parser
Referenced by createDocument(), init(), parse(), readDocHeader(), readDSET(), and readLibraryHeader().
shared_ptr<ClarisDrawParserInternal::State> ClarisDrawParser::m_state [protected] |
the state
Referenced by checkHeader(), createDocument(), createZones(), getFileType(), init(), parse(), readDocHeader(), readDocInfo(), readDSET(), readLayouts(), readLibraryHeader(), and readLibraryNames().
shared_ptr<ClarisDrawStyleManager> ClarisDrawParser::m_styleManager [protected] |
the style manager
Referenced by init(), readDocHeader(), readLibraryHeader(), and readZone().
shared_ptr<ClarisDrawText> ClarisDrawParser::m_textParser [protected] |
the text parser
Referenced by init(), readDocHeader(), readDSET(), readLibraryHeader(), and sendTextZone().