the main class to read a GreatWorks paint file More...
#include <GreatWksBMParser.hxx>
Public Member Functions | |
| GreatWksBMParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor | |
| virtual | ~GreatWksBMParser () |
| 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 | sendPicture () |
| try to send the main picture | |
Protected Attributes | |
| shared_ptr < GreatWksBMParserInternal::State > | m_state |
| the state | |
the main class to read a GreatWorks paint file
v1: file are PNTG files, so there are parsed via the MacPaint parser v2: this is mainly a picture file with some application resources
| GreatWksBMParser::GreatWksBMParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| GreatWksBMParser::~GreatWksBMParser | ( | ) | [virtual] |
destructor
| bool GreatWksBMParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
checks if the document header is correct (or not)
no finder info, may be ok, but this means that we may have a basic pict file, so...
Implements MWAWParser.
Referenced by parse().
| void GreatWksBMParser::createDocument | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [protected] |
creates the listener which will be associated to the document
Referenced by parse().
| bool GreatWksBMParser::createZones | ( | ) | [protected] |
finds the different objects zones
Referenced by parse().
| void GreatWksBMParser::init | ( | ) | [protected] |
inits all internal variables
Referenced by GreatWksBMParser().
| void GreatWksBMParser::parse | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [virtual] |
virtual function used to parse the input
Implements MWAWGraphicParser.
| bool GreatWksBMParser::sendPicture | ( | ) | [protected] |
try to send the main picture
Referenced by parse().
shared_ptr<GreatWksBMParserInternal::State> GreatWksBMParser::m_state [protected] |
the state
Referenced by checkHeader(), createZones(), init(), and sendPicture().