the main class to read the text part of Microsoft Word file More...
#include <MSWText.hxx>
Classes | |
| struct | PLC |
| Internal: the plc. More... | |
Public Member Functions | |
| MSWText (MSWParser &parser) | |
| constructor More... | |
| virtual | ~MSWText () |
| destructor More... | |
| int | version () const |
| returns the file version More... | |
| int | numPages () const |
| returns the number of pages More... | |
| MWAWEntry | getHeader () const |
| returns the header entry More... | |
| MWAWEntry | getFooter () const |
| returns the footer entry More... | |
Protected Member Functions | |
| shared_ptr< MWAWParserState > & | getParserState () |
| returns the parser state More... | |
| bool | sendMainText () |
| send a main zone More... | |
| bool | sendText (MWAWEntry const &textEntry, bool mainZone, bool tableCell=false) |
| send a text zone More... | |
| bool | readHeaderTextLength () |
| reads the three different zone size More... | |
| bool | createZones (long bot) |
| finds the different zones More... | |
| bool | readTextStruct (MSWEntry &entry) |
| read the text structure(some paragraph style+some text position?) More... | |
| bool | readPageBreak (MSWEntry &entry) |
| read the page limit ? More... | |
| bool | readParagraphInfo (MSWEntry entry) |
| read the paragraph height info More... | |
| bool | readFields (MSWEntry &entry, std::vector< long > const &fieldPos) |
| read the field data More... | |
| bool | sendFieldComment (int id) |
| send a field note to a listener More... | |
| bool | readFootnotesPos (MSWEntry &entry, std::vector< long > const ¬eDef) |
| read the footnote pos in text + val More... | |
| bool | readFootnotesData (MSWEntry &entry) |
| read the footnote data More... | |
| bool | sendFootnote (int id) |
| send a note to a listener More... | |
| bool | readFontNames (MSWEntry &entry) |
| read the font names More... | |
| void | flushExtra () |
| sends the data which have not yet been sent to the listener More... | |
| bool | sendTable (MSWTextInternal::Property const &prop) |
| try to send a table. More... | |
| long | getMainTextLength () const |
| returns the main text length More... | |
| std::multimap< long, MSWText::PLC > & | getTextPLCMap () |
| returns the text correspondance zone ( textpos, plc ) More... | |
| std::multimap< long, MSWText::PLC > & | getFilePLCMap () |
| returns the file correspondance zone ( filepos, plc ) More... | |
| void | prepareData () |
| prepare the data to be send More... | |
| void | prepareTables () |
| prepare the table to be send More... | |
| bool | readLongZone (MSWEntry &entry, int sz, std::vector< long > &list) |
| read a zone which consists in a list of int More... | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state More... | |
| shared_ptr < MSWTextInternal::State > | m_state |
| the state More... | |
| shared_ptr< MSWTextStyles > | m_stylesManager |
| the style manager More... | |
| MSWParser * | m_mainParser |
| the main parser; More... | |
Private Member Functions | |
| MSWText (MSWText const &orig) | |
| MSWText & | operator= (MSWText const &orig) |
Friends | |
| class | MSWParser |
| class | MSWTextStyles |
the main class to read the text part of Microsoft Word file
| MSWText::MSWText | ( | MSWParser & | parser | ) |
constructor
|
virtual |
destructor
|
private |
|
protected |
finds the different zones
the break position
read the header footer limit
read the note
read the footenote
|
protected |
sends the data which have not yet been sent to the listener
|
protected |
returns the file correspondance zone ( filepos, plc )
Referenced by MSWTextStyles::readPLC().
| MWAWEntry MSWText::getFooter | ( | ) | const |
returns the footer entry
| MWAWEntry MSWText::getHeader | ( | ) | const |
returns the header entry
|
protected |
returns the main text length
Referenced by MSWTextStyles::readSection().
|
inlineprotected |
returns the parser state
|
protected |
returns the text correspondance zone ( textpos, plc )
Referenced by MSWTextStyles::readSection().
| int MSWText::numPages | ( | ) | const |
returns the number of pages
|
protected |
prepare the data to be send
constructor
update the style
update the character font
update the paragraph
modify a paragraph
modify a paraghaph info
pop to actual state (if needed)
update the state to new state
the actual version
the style manager
the actual font
the actual paragraph
the previous font (before a push)
the paragraph font
the actual style font
a local font
FIXME: normally, must depend on some textEntry data, I tested with entry.m_type&0x80 but in average, the results seem slightly worse :-~
Referenced by createZones().
|
protected |
prepare the table to be send
Referenced by prepareData().
|
protected |
read the field data
Referenced by createZones().
|
protected |
read the font names
Referenced by createZones().
|
protected |
read the footnote data
Referenced by createZones().
|
protected |
read the footnote pos in text + val
Referenced by createZones().
|
protected |
reads the three different zone size
|
protected |
read a zone which consists in a list of int
Referenced by createZones().
|
protected |
read the page limit ?
Referenced by createZones().
|
protected |
read the paragraph height info
Referenced by createZones().
|
protected |
read the text structure(some paragraph style+some text position?)
Referenced by createZones().
|
protected |
send a field note to a listener
|
protected |
send a note to a listener
|
protected |
send a main zone
|
protected |
try to send a table.
Referenced by sendText().
|
protected |
send a text zone
Referenced by flushExtra(), sendFootnote(), sendMainText(), and sendTable().
| int MSWText::version | ( | ) | const |
returns the file version
Referenced by prepareData(), readFields(), readPageBreak(), and readParagraphInfo().
|
friend |
|
friend |
Referenced by MSWText().
|
protected |
the main parser;
Referenced by createZones(), readHeaderTextLength(), readTextStruct(), and sendText().
|
protected |
the parser state
Referenced by getParserState(), prepareData(), prepareTables(), readFields(), readFontNames(), readFootnotesData(), readFootnotesPos(), readHeaderTextLength(), readLongZone(), readPageBreak(), readParagraphInfo(), readTextStruct(), sendFieldComment(), sendFootnote(), sendTable(), sendText(), and version().
|
protected |
the state
Referenced by createZones(), flushExtra(), getFilePLCMap(), getFooter(), getHeader(), getMainTextLength(), getTextPLCMap(), numPages(), prepareData(), prepareTables(), readFields(), readFootnotesData(), readFootnotesPos(), readHeaderTextLength(), readPageBreak(), readParagraphInfo(), readTextStruct(), sendFieldComment(), sendFootnote(), sendMainText(), sendTable(), sendText(), and version().
|
protected |
the style manager
Referenced by createZones(), MSWText(), prepareData(), readTextStruct(), sendFieldComment(), and sendText().