the main class to read the text part of writenow file More...
#include <FWText.hxx>
Public Member Functions | |
| FWText (FWParser &parser) | |
| constructor More... | |
| virtual | ~FWText () |
| destructor More... | |
| int | version () const |
| returns the file version More... | |
| int | numPages () const |
| returns the number of pages More... | |
Protected Member Functions | |
| void | flushExtra () |
| sends the data which have not yet been sent to the listener More... | |
| bool | sendMainText () |
| send a main zone More... | |
| bool | send (int zId) |
| send a id zone More... | |
| bool | readTextData (shared_ptr< FWEntry > zone) |
| check if a zone is a text zone, if so read it... More... | |
| bool | send (shared_ptr< FWTextInternal::Zone > zone) |
| send the text More... | |
| void | send (shared_ptr< FWTextInternal::Zone > zone, int numChar, FWTextInternal::Font &font, FWTextInternal::Paragraph &ruler, std::string &str) |
| send a simple line More... | |
| bool | sendTable (shared_ptr< FWTextInternal::Zone > zone, FWTextInternal::LineHeader const &lHeader, FWTextInternal::Font &font, FWTextInternal::Paragraph &ruler, std::string &str) |
| try send a table row More... | |
| bool | sendHiddenItem (int id, FWTextInternal::Font &font, FWTextInternal::Paragraph &ruler) |
| send a hidden item More... | |
| void | prepareData () |
| prepare the different data (called sortZones and createItemStructures) More... | |
| void | sortZones () |
| sort the different zones, finding the main zone, ... More... | |
| void | createItemStructures () |
| create the item structures More... | |
| bool | readLineHeader (shared_ptr< FWTextInternal::Zone > zone, FWTextInternal::LineHeader &lHeader) |
| try to read the header of a line More... | |
| bool | readItem (shared_ptr< FWEntry > zone, int id=-1, bool hidden=false) |
| check if the input of the zone points to a item zone in DataStruct Zone More... | |
| bool | readParagraphTabs (shared_ptr< FWEntry > zone, int id=-1) |
| check if the input of the zone points to a paragraph zone in DataStruct Zone More... | |
| bool | readParaModDocInfo (shared_ptr< FWEntry > zone) |
| try to read the paragraph modifier (at the end of doc info) More... | |
| bool | readBorderDocInfo (shared_ptr< FWEntry > zone) |
| try to read the border definiton (at the end of doc info) More... | |
| bool | readBorder (shared_ptr< FWEntry > zone, FWTextInternal::Border &border, int fSz) |
| try to read a border definiton More... | |
| bool | readDataMod (shared_ptr< FWEntry > zone, int id) |
| try to read the font/paragraph modifier zone (Zone1f) More... | |
| bool | readColumns (shared_ptr< FWEntry > zone) |
| check if the input of the zone points to the columns definition, ... More... | |
| bool | getColor (int color, MWAWColor &col) const |
| try to convert a file data to a color More... | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state More... | |
| shared_ptr< FWTextInternal::State > | m_state |
| the state More... | |
| FWParser * | m_mainParser |
| the main parser; More... | |
Private Member Functions | |
| FWText (FWText const &orig) | |
| FWText & | operator= (FWText const &orig) |
Friends | |
| class | FWParser |
the main class to read the text part of writenow file
| FWText::FWText | ( | FWParser & | parser | ) |
constructor
|
virtual |
destructor
|
private |
|
protected |
create the item structures
Referenced by prepareData().
|
protected |
sends the data which have not yet been sent to the listener
|
protected |
try to convert a file data to a color
Referenced by readBorder(), readDataMod(), and sendHiddenItem().
| int FWText::numPages | ( | ) | const |
returns the number of pages
|
inlineprotected |
prepare the different data (called sortZones and createItemStructures)
|
protected |
try to read a border definiton
Referenced by readBorderDocInfo().
|
protected |
try to read the border definiton (at the end of doc info)
|
protected |
check if the input of the zone points to the columns definition, ...
|
protected |
try to read the font/paragraph modifier zone (Zone1f)
|
protected |
check if the input of the zone points to a item zone in DataStruct Zone
|
protected |
try to read the header of a line
Referenced by send().
|
protected |
check if the input of the zone points to a paragraph zone in DataStruct Zone
|
protected |
try to read the paragraph modifier (at the end of doc info)
|
protected |
check if a zone is a text zone, if so read it...
|
protected |
send a id zone
Referenced by flushExtra(), send(), sendHiddenItem(), sendMainText(), and sendTable().
|
protected |
send the text
sometimes, textIndent can correspond to the distance to page margins, so we can not rely on this if there is multiple column...
|
protected |
send a simple line
|
protected |
send a hidden item
Referenced by send().
|
protected |
send a main zone
send data to the listener
|
protected |
try send a table row
Referenced by send().
|
protected |
sort the different zones, finding the main zone, ...
Referenced by prepareData().
| int FWText::version | ( | ) | const |
returns the file version
Referenced by readParagraphTabs(), and readTextData().
|
friend |
|
protected |
the main parser;
Referenced by readItem(), send(), and sendMainText().
|
protected |
the parser state
Referenced by readParagraphTabs(), send(), sendHiddenItem(), sendMainText(), sendTable(), and version().
|
protected |
the state
Referenced by createItemStructures(), flushExtra(), numPages(), readBorderDocInfo(), readDataMod(), readItem(), readParagraphTabs(), readParaModDocInfo(), readTextData(), send(), sendHiddenItem(), sendMainText(), sortZones(), and version().