MacDraftParser Class Reference

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

#include <MacDraftParser.hxx>

Inheritance diagram for MacDraftParser:
MWAWGraphicParser MWAWParser

List of all members.

Public Member Functions

 MacDraftParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor
virtual ~MacDraftParser ()
 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 readObject ()
 try to read an object
bool readLabel ()
 try to read a label
bool readPattern ()
 try to read a pattern
bool readBitmapDefinition (MacDraftParserInternal::Shape &bitmap)
 try to read bitmap definition
bool readBitmapData ()
 try to read bitmap data
bool readZone ()
 try to a unknown zone
bool readPrintInfo ()
 try to read the print info zone
bool readDocHeader ()
 try to the doc header zone ( mainly unknown )
bool send (MacDraftParserInternal::Shape const &shape)
 try to send a shape
bool sendBitmap (MacDraftParserInternal::Shape const &bitmap, MWAWPosition const &position)
 try to send a bitmap
bool sendText (int zoneId)
 try to send a text zone to the listener

Protected Attributes

shared_ptr
< MacDraftParserInternal::State
m_state
 the state

Friends

class MacDraftParserInternal::SubDocument

Detailed Description

the main class to read a MacDraft v1 file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

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

creates the listener which will be associated to the document

Referenced by parse().

bool MacDraftParser::createZones ( ) [protected]

finds the different objects zones

Referenced by parse().

void MacDraftParser::init ( ) [protected]

inits all internal variables

Referenced by MacDraftParser().

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

virtual function used to parse the input

Implements MWAWGraphicParser.

bool MacDraftParser::readBitmapData ( ) [protected]

try to read bitmap data

Referenced by createZones().

try to read bitmap definition

Referenced by readObject().

bool MacDraftParser::readDocHeader ( ) [protected]

try to the doc header zone ( mainly unknown )

Referenced by createZones().

bool MacDraftParser::readLabel ( ) [protected]

try to read a label

Referenced by readObject().

bool MacDraftParser::readObject ( ) [protected]

try to read an object

Referenced by createZones().

bool MacDraftParser::readPattern ( ) [protected]

try to read a pattern

Referenced by createZones(), and readZone().

bool MacDraftParser::readPrintInfo ( ) [protected]

try to read the print info zone

Referenced by createZones(), and readZone().

bool MacDraftParser::readZone ( ) [protected]

try to a unknown zone

bool MacDraftParser::send ( MacDraftParserInternal::Shape const &  shape) [protected]

try to send a shape

Referenced by parse().

bool MacDraftParser::sendBitmap ( MacDraftParserInternal::Shape const &  bitmap,
MWAWPosition const &  position 
) [protected]

try to send a bitmap

Referenced by send().

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

try to send a text zone to the listener

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


Friends And Related Function Documentation

friend class MacDraftParserInternal::SubDocument [friend]

Member Data Documentation


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