MSK4Parser Class Reference

the main class to read a MS Works document v4 More...

#include <MSK4Parser.hxx>

Inheritance diagram for MSK4Parser:
MWAWParser

List of all members.

Public Member Functions

 MSK4Parser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 construtor
virtual ~MSK4Parser ()
 destructor
bool checkHeader (MWAWHeader *header, bool strict=false)
 checks if the document header is correct (or not)
virtual void parse (WPXDocumentInterface *documentInterface)
 the main parse function, called with the documentInterface

Protected Member Functions

bool createStructures ()
 finds the principal ole zone: Ole pictures and MN0, then tries to find the main structures.
void flushExtra ()
 tries to parse the ole zones which have not yet been parsed
void sendFootNote (int id)
 creates a subdocument corresponding to a footnote (indicated by id)
void sendFrameText (MWAWEntry const &entry, std::string const &frame)
 send the frame text
void sendOLE (int id, MWAWPosition const &pos, WPXPropertyList frameExtras)
 send an OLE zone

Protected Attributes

shared_ptr
< MSK4ParserInternal::State
m_state
 the state

Private Member Functions

 MSK4Parser (MSK4Parser const &orig)
MSK4Parseroperator= (MSK4Parser const &orig)

Friends

class MSK4ParserInternal::SubDocument
class MSK4Zone

Detailed Description

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.


Constructor & Destructor Documentation

MSK4Parser::MSK4Parser ( MWAWInputStreamPtr  input,
MWAWRSRCParserPtr  rsrcParser,
MWAWHeader header 
)

construtor

MSK4Parser::~MSK4Parser ( ) [virtual]

destructor

MSK4Parser::MSK4Parser ( MSK4Parser const &  orig) [private]

Member Function Documentation

bool MSK4Parser::checkHeader ( MWAWHeader header,
bool  strict = false 
) [virtual]

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by createStructures().

bool MSK4Parser::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().

void MSK4Parser::flushExtra ( ) [protected]

tries to parse the ole zones which have not yet been parsed

Referenced by parse().

MSK4Parser& MSK4Parser::operator= ( MSK4Parser const &  orig) [private]
void MSK4Parser::parse ( WPXDocumentInterface *  documentInterface) [virtual]

the main parse function, called with the documentInterface

Implements MWAWParser.

void MSK4Parser::sendFootNote ( int  id) [protected]

creates a subdocument corresponding to a footnote (indicated by id)

Note:
if id < 0 meaning that the text corresponding to the note was not found, an empty footnote will be created

Referenced by MSK4Zone::sendFootNote().

void MSK4Parser::sendFrameText ( MWAWEntry const &  entry,
std::string const &  frame 
) [protected]

send the frame text

Referenced by MSK4Zone::sendFrameText().

void MSK4Parser::sendOLE ( int  id,
MWAWPosition const &  pos,
WPXPropertyList  frameExtras 
) [protected]

send an OLE zone

Referenced by MSK4Zone::sendOLE().


Friends And Related Function Documentation

friend class MSK4ParserInternal::SubDocument [friend]
friend class MSK4Zone [friend]

Referenced by createStructures(), and flushExtra().


Member Data Documentation


The documentation for this class was generated from the following files: