MSK4Parser Class Reference

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< MWAWParserStatem_parserState
 the parser stata More...
 
shared_ptr
< MSK4ParserInternal::State
m_state
 the state More...
 

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 
)

checks if the document header is correct (or not)

Referenced by MWAWDocumentInternal::checkBasicMacHeader(), and 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

Referenced by MWAWDocument::parse().

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

shared_ptr<MWAWParserState> MSK4Parser::m_parserState
protected
shared_ptr<MSK4ParserInternal::State> MSK4Parser::m_state
protected

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

Generated on Sat May 4 2013 20:11:10 for libmwaw by doxygen 1.8.3.1