MacPaintParser Class Reference

the main class to read a MacPaint file or a PNTG file More...

#include <MacPaintParser.hxx>

Inheritance diagram for MacPaintParser:
MWAWGraphicParser MWAWParser

List of all members.

Public Member Functions

 MacPaintParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor
virtual ~MacPaintParser ()
 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 readBitmap (bool onlyCheck=false)
 try to read a bitmap(v1): 576*720
bool sendBitmap ()
 try to send a bitmap(v1)

Protected Attributes

shared_ptr
< MacPaintParserInternal::State
m_state
 the state

Detailed Description

the main class to read a MacPaint file or a PNTG file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

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

creates the listener which will be associated to the document

Referenced by parse().

bool MacPaintParser::createZones ( ) [protected]

finds the different objects zones

Referenced by parse().

void MacPaintParser::init ( ) [protected]

inits all internal variables

Referenced by MacPaintParser().

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

virtual function used to parse the input

Implements MWAWGraphicParser.

bool MacPaintParser::readBitmap ( bool  onlyCheck = false) [protected]

try to read a bitmap(v1): 576*720

Referenced by checkHeader(), and createZones().

bool MacPaintParser::sendBitmap ( ) [protected]

try to send a bitmap(v1)

Referenced by parse().


Member Data Documentation


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