the main class to read a SuperPaint v1 file (SPTG) More...
#include <SuperPaintParser.hxx>
Public Member Functions | |
| SuperPaintParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor | |
| virtual | ~SuperPaintParser () |
| 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 | readHeader () |
| try to the header zone | |
| bool | readPictures () |
| try to read the main picture zone(draw): | |
| bool | sendPictures () |
| try to send the different pictures | |
| bool | readBitmap (bool onlyCheck=false) |
| try to read a bitmap(paint): 576*720 | |
| bool | sendBitmap () |
| try to send a bitmap(paint) | |
| bool | readShape () |
| try to read a shape(draw): | |
| bool | sendText (int id) |
| try to send a text box content | |
Protected Attributes | |
| shared_ptr < SuperPaintParserInternal::State > | m_state |
| the state | |
Friends | |
| class | SuperPaintParserInternal::SubDocument |
the main class to read a SuperPaint v1 file (SPTG)
| SuperPaintParser::SuperPaintParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| SuperPaintParser::~SuperPaintParser | ( | ) | [virtual] |
destructor
| bool SuperPaintParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| void SuperPaintParser::createDocument | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [protected] |
creates the listener which will be associated to the document
Referenced by parse().
| bool SuperPaintParser::createZones | ( | ) | [protected] |
finds the different objects zones
Referenced by parse().
| void SuperPaintParser::init | ( | ) | [protected] |
inits all internal variables
Referenced by SuperPaintParser().
| void SuperPaintParser::parse | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [virtual] |
virtual function used to parse the input
Implements MWAWGraphicParser.
| bool SuperPaintParser::readBitmap | ( | bool | onlyCheck = false | ) | [protected] |
try to read a bitmap(paint): 576*720
Referenced by checkHeader(), and createZones().
| bool SuperPaintParser::readHeader | ( | ) | [protected] |
try to the header zone
Referenced by createZones().
| bool SuperPaintParser::readPictures | ( | ) | [protected] |
try to read the main picture zone(draw):
Referenced by createZones().
| bool SuperPaintParser::readPrintInfo | ( | ) | [protected] |
try to read the print info zone
Referenced by readHeader().
| bool SuperPaintParser::readShape | ( | ) | [protected] |
try to read a shape(draw):
Referenced by readPictures().
| bool SuperPaintParser::sendBitmap | ( | ) | [protected] |
try to send a bitmap(paint)
Referenced by parse().
| bool SuperPaintParser::sendPictures | ( | ) | [protected] |
try to send the different pictures
Referenced by parse().
| bool SuperPaintParser::sendText | ( | int | id | ) | [protected] |
try to send a text box content
friend class SuperPaintParserInternal::SubDocument [friend] |
shared_ptr<SuperPaintParserInternal::State> SuperPaintParser::m_state [protected] |
the state
Referenced by checkHeader(), createZones(), init(), parse(), readBitmap(), readPictures(), readShape(), sendBitmap(), sendPictures(), and sendText().