MacDrawParser Class Reference

the main class to read a MacDraw v0,v1 file More...

#include <MacDrawParser.hxx>

Inheritance diagram for MacDrawParser:
MWAWGraphicParser MWAWParser

List of all members.

Public Member Functions

 MacDrawParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor
virtual ~MacDrawParser ()
 destructor
bool checkHeader (MWAWHeader *header, bool strict=false)
 checks if the document header is correct (or not)
void parse (librevenge::RVNGDrawingInterface *documentInterface)
 virtual function used to parse the input

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 readPrintInfo ()
 try to read the print info zone
bool readPrefs ()
 try to the prefs zone ( mainly unknown )
int readObject ()
 try to read an object.
bool send (MacDrawParserInternal::Shape const &shape)
 try to send a shape
bool sendBitmap (MacDrawParserInternal::Shape const &shape, MWAWPosition const &pos)
 try to send a bitmap to the listener
bool sendText (int zoneId)
 try to send a text zone to the listener

Protected Attributes

shared_ptr
< MacDrawParserInternal::State
m_state
 the state

Friends

class MacDrawParserInternal::SubDocument

Detailed Description

the main class to read a MacDraw v0,v1 file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

void MacDrawParser::createDocument ( librevenge::RVNGDrawingInterface *  documentInterface) [protected]

creates the listener which will be associated to the document

Referenced by parse().

bool MacDrawParser::createZones ( ) [protected]

finds the different objects zones

Referenced by parse().

void MacDrawParser::init ( ) [protected]

inits all internal variables

Referenced by MacDrawParser().

void MacDrawParser::parse ( librevenge::RVNGDrawingInterface *  documentInterface) [virtual]

virtual function used to parse the input

Implements MWAWGraphicParser.

int MacDrawParser::readObject ( ) [protected]

try to read an object.

Returns:
the object index or -1 if some error happens

Referenced by checkHeader(), and createZones().

bool MacDrawParser::readPrefs ( ) [protected]

try to the prefs zone ( mainly unknown )

Referenced by createZones().

bool MacDrawParser::readPrintInfo ( ) [protected]

try to read the print info zone

Referenced by checkHeader(), and readPrefs().

bool MacDrawParser::send ( MacDrawParserInternal::Shape const &  shape) [protected]

try to send a shape

Referenced by parse().

bool MacDrawParser::sendBitmap ( MacDrawParserInternal::Shape const &  shape,
MWAWPosition const &  pos 
) [protected]

try to send a bitmap to the listener

Referenced by send().

bool MacDrawParser::sendText ( int  zoneId) [protected]

try to send a text zone to the listener

Referenced by MacDrawParserInternal::SubDocument::parse().


Friends And Related Function Documentation

friend class MacDrawParserInternal::SubDocument [friend]

Member Data Documentation


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