the main class to read a MS Works document v4 More...
#include <MSK4Parser.hxx>
Public Member Functions | |
MSK4Parser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
construtor More... | |
virtual | ~MSK4Parser () |
destructor More... | |
bool | checkHeader (MWAWHeader *header, bool strict=false) |
checks if the document header is correct (or not) More... | |
virtual void | parse (WPXDocumentInterface *documentInterface) |
the main parse function, called with the documentInterface More... | |
Protected Member Functions | |
bool | createStructures () |
finds the principal ole zone: Ole pictures and MN0, then tries to find the main structures. More... | |
void | flushExtra () |
tries to parse the ole zones which have not yet been parsed More... | |
void | sendFootNote (int id) |
creates a subdocument corresponding to a footnote (indicated by id) More... | |
void | sendFrameText (MWAWEntry const &entry, std::string const &frame) |
send the frame text More... | |
void | sendOLE (int id, MWAWPosition const &pos, WPXPropertyList frameExtras) |
send an OLE zone More... | |
Protected Attributes | |
shared_ptr< MWAWParserState > | m_parserState |
the parser stata More... | |
shared_ptr < MSK4ParserInternal::State > | m_state |
the state More... | |
Private Member Functions | |
MSK4Parser (MSK4Parser const &orig) | |
MSK4Parser & | operator= (MSK4Parser const &orig) |
Friends | |
class | MSK4ParserInternal::SubDocument |
class | MSK4Zone |
the main class to read a MS Works document v4
This class is associated with a MSK4Parser which reads: the main Ole zones MN0, MacWorks/QHdr, MacWorks/QFtr, MacWorks/QFootnotes and which parses MacWorks/QFrm<number>. It also uses an MWAWOleParser in order to find pictures in the other Ole zones.
MSK4Parser::MSK4Parser | ( | MWAWInputStreamPtr | input, |
MWAWRSRCParserPtr | rsrcParser, | ||
MWAWHeader * | header | ||
) |
construtor
|
virtual |
destructor
|
private |
bool MSK4Parser::checkHeader | ( | MWAWHeader * | header, |
bool | strict = false |
||
) |
checks if the document header is correct (or not)
Referenced by MWAWDocumentInternal::checkBasicMacHeader(), and createStructures().
|
protected |
finds the principal ole zone: Ole pictures and MN0, then tries to find the main structures.
Finally, parses the document
Referenced by parse().
|
protected |
tries to parse the ole zones which have not yet been parsed
Referenced by parse().
|
private |
|
virtual |
the main parse function, called with the documentInterface
Referenced by MWAWDocument::parse().
|
protected |
creates a subdocument corresponding to a footnote (indicated by id)
Referenced by MSK4Zone::sendFootNote().
|
protected |
send the frame text
Referenced by MSK4Zone::sendFrameText().
|
protected |
send an OLE zone
Referenced by MSK4Zone::sendOLE().
|
friend |
|
friend |
Referenced by createStructures(), and flushExtra().
|
protected |
the parser stata
Referenced by checkHeader(), createStructures(), flushExtra(), MSK4Parser(), parse(), sendFootNote(), sendFrameText(), and sendOLE().
|
protected |
the state
Referenced by createStructures(), flushExtra(), MSK4Parser(), parse(), sendFootNote(), sendFrameText(), and sendOLE().