Protected Member Functions |
| void | init () |
| | inits all internal variables
|
| void | setListener (MWAWContentListenerPtr listen) |
| | sets the listener in this class and in the helper classes
|
| void | createDocument (WPXDocumentInterface *documentInterface) |
| | creates the listener which will be associated to the document
|
| bool | createZones () |
| | finds the different objects zones
|
| bool | readPrintInfo () |
| | read the print info zone
|
| bool | readWindowsInfo (int zone) |
| | read the main info for zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
|
| bool | sendWindow (int zone, Vec2i limits=Vec2i(-1,-1)) |
| | send a zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
|
| bool | readWindowsZone (int zone) |
| | read the page info zone
|
| bool | readPageInfo (int zone) |
| | read the page info zone
|
| bool | readColInfo (int zone) |
| | read the col info zone ?
|
| bool | readParagraphInfo (int zone) |
| | read the paragraph info zone
|
| bool | findSection (int zone, Vec2i limits, MWAWSection &sec) |
| | try to find the data which correspond to a section ( mainly column )
|
| bool | readSection (WPParserInternal::ParagraphInfo const &info, bool mainBlock) |
| | read a section
|
| bool | readText (WPParserInternal::ParagraphInfo const &info) |
| | read a text
|
| bool | readTable (WPParserInternal::ParagraphInfo const &info) |
| | read a table
|
| bool | readGraphic (WPParserInternal::ParagraphInfo const &info) |
| | read a graphic
|
| bool | readUnknown (WPParserInternal::ParagraphInfo const &info) |
| | read a unknown section
|
| double | getTextHeight () const |
| | returns the page height, ie. paper size less margin (in inches) and header/footer
|
| void | newPage (int number) |
| | adds a new page
|
| bool | readParagraphData (WPParserInternal::ParagraphInfo const &info, bool hasFonts, WPParserInternal::ParagraphData &data) |
| | reads a paragraph data
|
| MWAWParagraph | getParagraph (WPParserInternal::ParagraphData const &data) |
| | returns a paragraph corresponding to a paragraph data
|
| bool | readFonts (int nFonts, int type, std::vector< WPParserInternal::Font > &fonts) |
| | reads a list of font (with position)
|
| bool | readLines (WPParserInternal::ParagraphInfo const &info, int nLines, std::vector< WPParserInternal::Line > &lines) |
| | reads a list of line (with position)
|
| | MWAWParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) |
| | constructor (protected)
|
| | MWAWParser (MWAWParserStatePtr state) |
| | constructor using a state
|
| MWAWParserStatePtr | getParserState () |
| | returns the parser state
|
| MWAWHeader * | getHeader () |
| | returns the header
|
| MWAWInputStreamPtr & | getInput () |
| | returns the actual input
|
| MWAWContentListenerPtr & | getListener () |
| | returns the listener
|
| MWAWPageSpan const & | getPageSpan () const |
| | returns the actual page dimension
|
| MWAWPageSpan & | getPageSpan () |
| | returns the actual page dimension
|
| double | getFormLength () const |
| | returns the form length
|
| double | getFormWidth () const |
| | returns the form width
|
| double | getPageLength () const |
| | returns the page length (form length without margin )
|
| double | getPageWidth () const |
| | returns the page width (form width without margin )
|
| MWAWRSRCParserPtr & | getRSRCParser () |
| | returns the rsrc parser
|
| void | setListener (MWAWContentListenerPtr &listener) |
| | sets the listener
|
| void | resetListener () |
| | resets the listener
|
| MWAWFontConverterPtr & | getFontConverter () |
| | returns the font converter
|
| void | setFontConverter (MWAWFontConverterPtr fontConverter) |
| | sets the font convertor
|
| libmwaw::DebugFile & | ascii () |
| | a DebugFile used to write what we recognize when we parse the document
|
| void | setAsciiName (char const *name) |
| | Debugging: change the default ascii file.
|
| std::string const & | asciiName () const |
| | return the ascii file name
|
the main class to read a Writerperfect file