the main class to read a Microsoft Word file More...
#include <MSWParser.hxx>
Public Member Functions | |
| MSWParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor More... | |
| virtual | ~MSWParser () |
| destructor More... | |
| bool | checkHeader (MWAWHeader *header, bool strict=false) |
| checks if the document header is correct (or not) More... | |
| void | parse (WPXDocumentInterface *documentInterface) |
| the main parse function More... | |
Public Member Functions inherited from MWAWParser | |
| virtual | ~MWAWParser () |
| virtual destructor More... | |
| int | version () const |
| returns the works version More... | |
| void | setVersion (int vers) |
| sets the works version More... | |
Protected Member Functions | |
| void | init () |
| inits all internal variables More... | |
| void | createDocument (WPXDocumentInterface *documentInterface) |
| creates the listener which will be associated to the document More... | |
| bool | createZones () |
| finds the different zones More... | |
| bool | readHeaderEndV3 () |
| finish reading the header (v3) More... | |
| bool | readZoneList () |
| read the list of zones More... | |
| bool | readPrintInfo (MSWEntry &entry) |
| read the print info zone More... | |
| bool | readPrinter (MSWEntry &entry) |
| read the printer name More... | |
| bool | readDocSum (MSWEntry &entry) |
| read the document sumary More... | |
| bool | readStringsZone (MSWEntry &entry, std::vector< std::string > &list) |
| read a zone which consists in a list of string More... | |
| bool | readObjects () |
| read the objects More... | |
| bool | readObjectList (MSWEntry &entry) |
| read the object list More... | |
| bool | readObjectFlags (MSWEntry &entry) |
| read the object flags More... | |
| bool | readObject (MSWParserInternal::Object &obj) |
| read an object More... | |
| bool | readDocumentInfo (MSWEntry &entry) |
| read the page dimensions + ? More... | |
| bool | readZone17 (MSWEntry &entry) |
| read the zone 17( some bdbox + text position ?) More... | |
| bool | checkPicturePos (long pos, int type) |
| check if a position corresponds or not to a picture entry More... | |
| bool | readPicture (MSWEntry &entry) |
| read a picture data More... | |
| void | sendPicture (long fPos, int cPos, MWAWPosition::AnchorTo anchor=MWAWPosition::Char) |
| send a picture More... | |
| bool | getColor (int id, MWAWColor &col) const |
| returns the color corresponding to an id More... | |
| void | newPage (int number) |
| adds a new page More... | |
| void | sendFootnote (int id) |
| try to send a footnote id More... | |
| void | sendFieldComment (int id) |
| try to send a bookmark field id More... | |
| void | send (int id, libmwaw::SubDocumentType type) |
| try to send a footnote, a field to the textParser More... | |
| void | send (MWAWEntry const &entry) |
| try to send a text to the textParser More... | |
| bool | isFilePos (long pos) |
| check if an entry is in file More... | |
| MSWEntry | readEntry (std::string type, int id=-1) |
| read a file entry More... | |
Protected Member Functions inherited from MWAWParser | |
| MWAWParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor (protected) More... | |
| MWAWParser (MWAWParserStatePtr state) | |
| constructor using a state More... | |
| MWAWParserStatePtr | getParserState () |
| returns the parser state More... | |
| MWAWHeader * | getHeader () |
| returns the header More... | |
| MWAWInputStreamPtr & | getInput () |
| returns the actual input More... | |
| MWAWContentListenerPtr & | getListener () |
| returns the listener More... | |
| MWAWPageSpan const & | getPageSpan () const |
| returns the actual page dimension More... | |
| MWAWPageSpan & | getPageSpan () |
| returns the actual page dimension More... | |
| double | getFormLength () const |
| returns the form length More... | |
| double | getFormWidth () const |
| returns the form width More... | |
| double | getPageLength () const |
| returns the page length (form length without margin ) More... | |
| double | getPageWidth () const |
| returns the page width (form width without margin ) More... | |
| MWAWRSRCParserPtr & | getRSRCParser () |
| returns the rsrc parser More... | |
| void | setListener (MWAWContentListenerPtr &listener) |
| sets the listener More... | |
| void | resetListener () |
| resets the listener More... | |
| MWAWFontConverterPtr & | getFontConverter () |
| returns the font converter More... | |
| void | setFontConverter (MWAWFontConverterPtr fontConverter) |
| sets the font convertor More... | |
| libmwaw::DebugFile & | ascii () |
| a DebugFile used to write what we recognize when we parse the document More... | |
| void | setAsciiName (char const *name) |
| Debugging: change the default ascii file. More... | |
| std::string const & | asciiName () const |
| return the ascii file name More... | |
Protected Attributes | |
| shared_ptr < MSWParserInternal::State > | m_state |
| the state More... | |
| std::multimap< std::string, MSWEntry > | m_entryMap |
| the list of entries More... | |
| shared_ptr< MSWText > | m_textParser |
| the text parser More... | |
Friends | |
| class | MSWText |
| class | MSWTextStyles |
| class | MSWParserInternal::SubDocument |
the main class to read a Microsoft Word file
| MSWParser::MSWParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
|
virtual |
destructor
|
virtual |
|
protected |
check if a position corresponds or not to a picture entry
Referenced by MSWTextStyles::readFont().
|
protected |
creates the listener which will be associated to the document
Referenced by parse().
|
protected |
finds the different zones
Referenced by parse().
|
protected |
returns the color corresponding to an id
Referenced by MSWTextStyles::readFont().
|
protected |
inits all internal variables
Referenced by MSWParser().
|
protected |
check if an entry is in file
Referenced by checkHeader(), checkPicturePos(), readEntry(), readHeaderEndV3(), MSWText::readHeaderTextLength(), readObject(), readObjectList(), MSWTextStyles::readParagraph(), MSWTextStyles::readPLCList(), MSWTextStyles::readSection(), and MSWText::readTextStruct().
|
protected |
adds a new page
Referenced by MSWText::sendText().
|
virtual |
the main parse function
Implements MWAWParser.
|
protected |
read the document sumary
Referenced by createZones().
|
protected |
read the page dimensions + ?
Referenced by createZones().
|
protected |
read a file entry
Referenced by readZoneList().
|
protected |
finish reading the header (v3)
Referenced by checkHeader().
|
protected |
read an object
Referenced by readObjects().
|
protected |
read the object flags
Referenced by readObjects().
|
protected |
read the object list
Referenced by readObjects().
|
protected |
read the objects
Referenced by createZones().
|
protected |
read a picture data
Referenced by createZones().
|
protected |
read the printer name
Referenced by createZones().
|
protected |
read the print info zone
Referenced by createZones().
|
protected |
read a zone which consists in a list of string
Referenced by readObjects().
|
protected |
read the zone 17( some bdbox + text position ?)
Referenced by createZones().
|
protected |
read the list of zones
Referenced by createZones().
|
protected |
try to send a footnote, a field to the textParser
|
protected |
try to send a text to the textParser
|
protected |
try to send a bookmark field id
Referenced by MSWText::sendText().
|
protected |
try to send a footnote id
Referenced by MSWText::sendText().
|
protected |
send a picture
Referenced by MSWText::sendText().
|
friend |
|
friend |
|
protected |
the list of entries
Referenced by checkPicturePos(), createZones(), MSWText::createZones(), readEntry(), readObject(), and readObjects().
|
protected |
the state
Referenced by checkHeader(), createDocument(), createZones(), init(), isFilePos(), newPage(), readHeaderEndV3(), readObjectFlags(), readObjectList(), readObjects(), readPicture(), sendFootnote(), and sendPicture().
|
protected |
the text parser
Referenced by checkHeader(), createDocument(), createZones(), init(), parse(), readHeaderEndV3(), readObjectList(), and send().