the main class to read a Microsoft Works file: v1-v4 More...
#include <MsWksParser.hxx>
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< MWAWEntry > | m_listZones |
| the list of different Zones | |
| shared_ptr< MsWksDocument > | m_document |
| the actual document | |
the main class to read a Microsoft Works file: v1-v4
| MsWksParser::MsWksParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| MsWksParser::~MsWksParser | ( | ) | [virtual] |
destructor
| bool MsWksParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| 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.
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
shared_ptr<MsWksParserInternal::State> MsWksParser::m_state [protected] |
the state
Referenced by createDocument(), createZones(), MsWksParser(), newPage(), and parse().