ClarisDrawParser Class Reference

the main class to read a ClarisDraw v1 file More...

#include <ClarisDrawParser.hxx>

Inheritance diagram for ClarisDrawParser:
MWAWGraphicParser MWAWParser

List of all members.

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::DSETreadDSET (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< ClarisDrawGraphm_graphParser
 the graph parser
shared_ptr< ClarisDrawTextm_textParser
 the text parser

Friends

class ClarisDrawGraph
class ClarisDrawText

Detailed Description

the main class to read a ClarisDraw v1 file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

bool ClarisDrawParser::checkHeader ( MWAWHeader header,
bool  strict = false 
) [virtual]

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

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().

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().


Friends And Related Function Documentation

friend class ClarisDrawGraph [friend]

Referenced by init().

friend class ClarisDrawText [friend]

Referenced by init().


Member Data Documentation

the style manager

Referenced by init(), readDocHeader(), readLibraryHeader(), and readZone().


The documentation for this class was generated from the following files: