the main class to read a MacDraw v0,v1 file More...
#include <MacDrawParser.hxx>
Public Member Functions | |
| MacDrawParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor | |
| virtual | ~MacDrawParser () |
| 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 | readPrefs () |
| try to the prefs zone ( mainly unknown ) | |
| int | readObject () |
| try to read an object. | |
| bool | send (MacDrawParserInternal::Shape const &shape) |
| try to send a shape | |
| bool | sendBitmap (MacDrawParserInternal::Shape const &shape, MWAWPosition const &pos) |
| try to send a bitmap to the listener | |
| bool | sendText (int zoneId) |
| try to send a text zone to the listener | |
Protected Attributes | |
| shared_ptr < MacDrawParserInternal::State > | m_state |
| the state | |
Friends | |
| class | MacDrawParserInternal::SubDocument |
the main class to read a MacDraw v0,v1 file
| MacDrawParser::MacDrawParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| MacDrawParser::~MacDrawParser | ( | ) | [virtual] |
destructor
| bool MacDrawParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| void MacDrawParser::createDocument | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [protected] |
creates the listener which will be associated to the document
Referenced by parse().
| bool MacDrawParser::createZones | ( | ) | [protected] |
finds the different objects zones
Referenced by parse().
| void MacDrawParser::init | ( | ) | [protected] |
inits all internal variables
Referenced by MacDrawParser().
| void MacDrawParser::parse | ( | librevenge::RVNGDrawingInterface * | documentInterface | ) | [virtual] |
virtual function used to parse the input
Implements MWAWGraphicParser.
| int MacDrawParser::readObject | ( | ) | [protected] |
try to read an object.
Referenced by checkHeader(), and createZones().
| bool MacDrawParser::readPrefs | ( | ) | [protected] |
try to the prefs zone ( mainly unknown )
Referenced by createZones().
| bool MacDrawParser::readPrintInfo | ( | ) | [protected] |
try to read the print info zone
Referenced by checkHeader(), and readPrefs().
| bool MacDrawParser::send | ( | MacDrawParserInternal::Shape const & | shape | ) | [protected] |
try to send a shape
Referenced by parse().
| bool MacDrawParser::sendBitmap | ( | MacDrawParserInternal::Shape const & | shape, |
| MWAWPosition const & | pos | ||
| ) | [protected] |
try to send a bitmap to the listener
Referenced by send().
| bool MacDrawParser::sendText | ( | int | zoneId | ) | [protected] |
try to send a text zone to the listener
Referenced by MacDrawParserInternal::SubDocument::parse().
friend class MacDrawParserInternal::SubDocument [friend] |
shared_ptr<MacDrawParserInternal::State> MacDrawParser::m_state [protected] |
the state
Referenced by checkHeader(), createZones(), init(), parse(), readObject(), send(), and sendText().