GreatWksParser Class Reference

the main class to read a GreatWorks text file More...

#include <GreatWksParser.hxx>

Inheritance diagram for GreatWksParser:
MWAWTextParser MWAWParser

List of all members.

Public Member Functions

 GreatWksParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
 constructor
virtual ~GreatWksParser ()
 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
void newPage (int number)
 adds a new page
MWAWSection getMainSection () const
 return the main section
bool sendHF (int id)
 try to send the i^th header/footer
bool createZones ()
 finds the different objects zones
bool readDocInfo ()
 read the DocInfo block ( many unknown data )

Protected Attributes

shared_ptr
< GreatWksParserInternal::State
m_state
 the state
shared_ptr< GreatWksDocumentm_document
 the main document

Friends

class GreatWksParserInternal::SubDocument

Detailed Description

the main class to read a GreatWorks text file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

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

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

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

creates the listener which will be associated to the document

Referenced by parse().

bool GreatWksParser::createZones ( ) [protected]

finds the different objects zones

Referenced by parse().

return the main section

Referenced by init().

void GreatWksParser::init ( ) [protected]

inits all internal variables

Referenced by GreatWksParser().

void GreatWksParser::newPage ( int  number) [protected]

adds a new page

Referenced by init().

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

virtual function used to parse the input

Implements MWAWTextParser.

bool GreatWksParser::readDocInfo ( ) [protected]

read the DocInfo block ( many unknown data )

Referenced by createZones().

bool GreatWksParser::sendHF ( int  id) [protected]

try to send the i^th header/footer

Referenced by GreatWksParserInternal::SubDocument::parse().


Friends And Related Function Documentation

friend class GreatWksParserInternal::SubDocument [friend]

Member Data Documentation

the main document

Referenced by checkHeader(), createDocument(), createZones(), init(), parse(), and sendHF().


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