MsWksParser Class Reference

the main class to read a Microsoft Works file: v1-v4 More...

#include <MsWksParser.hxx>

Inheritance diagram for MsWksParser:
MWAWTextParser MWAWParser

List of all members.

Public Member Functions

 MsWksParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor
virtual ~MsWksParser ()
 destructor
bool checkHeader (MWAWHeader *header, bool strict=false)
 checks if the document header is correct (or not)
void parse (librevenge::RVNGTextInterface *documentInterface)
 virtual function used to parse the input

Protected Member Functions

void init ()
 inits all internal variables
void createDocument (librevenge::RVNGTextInterface *documentInterface)
 creates the listener which will be associated to the document
bool createZones ()
 finds the different objects zones
void newPage (int number, bool softBreak=false)
 adds a new page
void flushExtra ()
 tries to parse the ole zones which have not yet been parsed

Protected Attributes

shared_ptr
< MsWksParserInternal::State
m_state
 the state
std::vector< MWAWEntrym_listZones
 the list of different Zones
shared_ptr< MsWksDocumentm_document
 the actual document

Detailed Description

the main class to read a Microsoft Works file: v1-v4


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

void MsWksParser::createDocument ( librevenge::RVNGTextInterface *  documentInterface) [protected]

creates the listener which will be associated to the document

Referenced by parse().

bool MsWksParser::createZones ( ) [protected]

finds the different objects zones

Referenced by parse().

void MsWksParser::flushExtra ( ) [protected]

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

Referenced by parse().

void MsWksParser::init ( ) [protected]

inits all internal variables

Referenced by MsWksParser().

void MsWksParser::newPage ( int  number,
bool  softBreak = false 
) [protected]

adds a new page

Referenced by MsWksParser().

void MsWksParser::parse ( librevenge::RVNGTextInterface *  documentInterface) [virtual]

virtual function used to parse the input

Implements MWAWTextParser.


Member Data Documentation

shared_ptr<MsWksDocument> MsWksParser::m_document [protected]

the actual document

Referenced by checkHeader(), createDocument(), createZones(), flushExtra(), MsWksParser(), and parse().

std::vector<MWAWEntry> MsWksParser::m_listZones [protected]

the list of different Zones


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