the main class to read a MacPaint file or a PNTG file More...
#include <MacPaintParser.hxx>
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 | |
the main class to read a MacPaint file or a PNTG file
| MacPaintParser::MacPaintParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| MacPaintParser::~MacPaintParser | ( | ) | [virtual] |
destructor
| bool MacPaintParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| 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().
shared_ptr<MacPaintParserInternal::State> MacPaintParser::m_state [protected] |
the state
Referenced by checkHeader(), init(), readBitmap(), and sendBitmap().