the main class to read a Microsoft Works file More...
#include <MSK3Parser.hxx>
Public Member Functions | |
| MSK3Parser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor | |
| virtual | ~MSK3Parser () |
| destructor | |
| bool | checkHeader (MWAWHeader *header, bool strict=false) |
| checks if the document header is correct (or not) | |
| void | parse (WPXDocumentInterface *documentInterface) |
| virtual function used to parse the input | |
Protected Member Functions | |
| void | init () |
| inits all internal variables | |
| void | createDocument (WPXDocumentInterface *documentInterface) |
| creates the listener which will be associated to the document | |
| bool | createZones () |
| finds the different objects zones | |
| double | getTextHeight () const |
| returns the page height, ie. paper size less margin (in inches) less header/footer size | |
| Vec2f | getPageLeftTop () const |
| returns the page top left point | |
| void | newPage (int number, bool softBreak=false) |
| adds a new page | |
| bool | readZone (MSK3ParserInternal::Zone &zone) |
| try to read a generic zone | |
| bool | readDocumentInfo () |
| try to read the documentinfo ( zone2) | |
| bool | readGroup (MSK3ParserInternal::Zone &zone, MWAWEntry &entry, int check) |
| try to read a group zone (zone3) | |
| bool | readGroupHeaderInfo (bool header, int check) |
| try to read a zone information (zone0) | |
| bool | sendFootNote (int zoneId, int noteId) |
| try to send a note | |
| void | sendText (int id, int noteId=-1) |
| try to send a text entry | |
| void | sendZone (int zoneType) |
| try to send a zone | |
| bool | readPrintInfo () |
| read the print info zone | |
Protected Attributes | |
| shared_ptr < MSK3ParserInternal::State > | m_state |
| the state | |
| std::vector< MWAWEntry > | m_listZones |
| the list of different Zones | |
| shared_ptr< MSKGraph > | m_graphParser |
| the graph parser | |
| shared_ptr< MSK3Text > | m_textParser |
| the text parser | |
Friends | |
| class | MSK3ParserInternal::SubDocument |
| class | MSKGraph |
| class | MSK3Text |
the main class to read a Microsoft Works file
| MSK3Parser::MSK3Parser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| MSK3Parser::~MSK3Parser | ( | ) | [virtual] |
destructor
| bool MSK3Parser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| void MSK3Parser::createDocument | ( | WPXDocumentInterface * | documentInterface | ) | [protected] |
creates the listener which will be associated to the document
Referenced by parse().
| bool MSK3Parser::createZones | ( | ) | [protected] |
finds the different objects zones
Referenced by parse().
| Vec2f MSK3Parser::getPageLeftTop | ( | ) | const [protected, virtual] |
returns the page top left point
Implements MSKParser.
| double MSK3Parser::getTextHeight | ( | ) | const [protected] |
returns the page height, ie. paper size less margin (in inches) less header/footer size
Referenced by MSK3Text::update().
| void MSK3Parser::init | ( | ) | [protected] |
inits all internal variables
Referenced by MSK3Parser().
| void MSK3Parser::newPage | ( | int | number, |
| bool | softBreak = false |
||
| ) | [protected] |
adds a new page
Referenced by MSK3Text::send().
| void MSK3Parser::parse | ( | WPXDocumentInterface * | documentInterface | ) | [virtual] |
virtual function used to parse the input
Implements MWAWParser.
| bool MSK3Parser::readDocumentInfo | ( | ) | [protected] |
try to read the documentinfo ( zone2)
Referenced by readZone().
| bool MSK3Parser::readGroup | ( | MSK3ParserInternal::Zone & | zone, |
| MWAWEntry & | entry, | ||
| int | check | ||
| ) | [protected] |
try to read a group zone (zone3)
Referenced by readZone().
| bool MSK3Parser::readGroupHeaderInfo | ( | bool | header, |
| int | check | ||
| ) | [protected] |
try to read a zone information (zone0)
Referenced by createZones().
| bool MSK3Parser::readPrintInfo | ( | ) | [protected] |
read the print info zone
Referenced by readDocumentInfo().
| bool MSK3Parser::readZone | ( | MSK3ParserInternal::Zone & | zone | ) | [protected] |
try to read a generic zone
Referenced by createZones(), and readGroupHeaderInfo().
| bool MSK3Parser::sendFootNote | ( | int | zoneId, |
| int | noteId | ||
| ) | [protected] |
try to send a note
Referenced by MSK3Text::sendText().
| void MSK3Parser::sendText | ( | int | id, |
| int | noteId = -1 |
||
| ) | [protected] |
try to send a text entry
Referenced by MSK3ParserInternal::SubDocument::parse().
| void MSK3Parser::sendZone | ( | int | zoneType | ) | [protected] |
try to send a zone
Referenced by parse(), and MSK3ParserInternal::SubDocument::parse().
friend class MSK3ParserInternal::SubDocument [friend] |
shared_ptr<MSKGraph> MSK3Parser::m_graphParser [protected] |
the graph parser
Referenced by createDocument(), createZones(), init(), parse(), readGroup(), readZone(), and sendZone().
std::vector<MWAWEntry> MSK3Parser::m_listZones [protected] |
the list of different Zones
Referenced by checkHeader().
shared_ptr<MSK3ParserInternal::State> MSK3Parser::m_state [protected] |
the state
Reimplemented from MSKParser.
Referenced by checkHeader(), createDocument(), createZones(), getPageLeftTop(), getTextHeight(), init(), newPage(), readGroup(), readGroupHeaderInfo(), and sendZone().
shared_ptr<MSK3Text> MSK3Parser::m_textParser [protected] |
the text parser
Referenced by createDocument(), createZones(), init(), parse(), readDocumentInfo(), readGroupHeaderInfo(), sendText(), and sendZone().