the main class to read a GreatWorks text file More...
#include <GreatWksParser.hxx>
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< GreatWksDocument > | m_document |
| the main document | |
Friends | |
| class | GreatWksParserInternal::SubDocument |
the main class to read a GreatWorks text file
| GreatWksParser::GreatWksParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| GreatWksParser::~GreatWksParser | ( | ) | [virtual] |
destructor
| bool GreatWksParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| 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().
| MWAWSection GreatWksParser::getMainSection | ( | ) | const [protected] |
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().
friend class GreatWksParserInternal::SubDocument [friend] |
shared_ptr<GreatWksDocument> GreatWksParser::m_document [protected] |
the main document
Referenced by checkHeader(), createDocument(), createZones(), init(), parse(), and sendHF().
shared_ptr<GreatWksParserInternal::State> GreatWksParser::m_state [protected] |
the state
Referenced by checkHeader(), createDocument(), createZones(), getMainSection(), init(), newPage(), and readDocInfo().