the main class to read the text part of Claris Works file More...
#include <CWText.hxx>
Public Member Functions | |
CWText (CWParser &parser) | |
constructor More... | |
virtual | ~CWText () |
destructor More... | |
int | version () const |
returns the file version More... | |
int | numPages () const |
returns the number of pages More... | |
shared_ptr< CWStruct::DSET > | readDSETZone (CWStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
reads the zone Text DSET More... | |
Protected Member Functions | |
void | setProperty (MWAWListener &listener, CWTextInternal::Paragraph const &ruler, int listId=-1) |
sends a paragraph property to the listener More... | |
bool | sendZone (int number, bool asGraphic=false) |
sends the zone data to the listener (if it exists ) More... | |
bool | canSendTextAsGraphic (int number) const |
check if we can send a textzone as graphic More... | |
void | flushExtra () |
sends the data which have not yet been sent to the listener More... | |
bool | readParagraphs (MWAWEntry const &entry, CWTextInternal::Zone &zone) |
try to read the paragraph More... | |
bool | readFonts (MWAWEntry const &entry, CWTextInternal::Zone &zone) |
try to read a font sequence More... | |
bool | readTokens (MWAWEntry const &entry, CWTextInternal::Zone &zone) |
try to the token zone) More... | |
bool | readTextZoneSize (MWAWEntry const &entry, CWTextInternal::Zone &zone) |
try to read the text zone size More... | |
bool | readTextSection (CWTextInternal::Zone &zone) |
try to read the section More... | |
bool | sendText (CWTextInternal::Zone const &zone, bool asGraphic) |
send the text zone to the listener More... | |
bool | canSendTextAsGraphic (CWTextInternal::Zone const &zone) const |
check if we can send a textzone has graphic More... | |
int | findListId (CWTextInternal::Zone const &zone, int actListId, long cPos, long &lastPos) |
try to find a list id which corresponds to the list beginning in actPos More... | |
bool | readFont (int id, int &posC, MWAWFont &font) |
try to read a font More... | |
bool | readParagraphs () |
read the rulers block which is present at the beginning of the text in the first version of Claris Works : v1-2 More... | |
bool | readParagraph (int id=-1) |
the definition of ruler : present at the beginning of the text in the first version of Claris Works : v1-2, present in the STYL entries in v4-v6 files More... | |
bool | readSTYL_RULR (int N, int fSz) |
read a STYL Paragraph sequence More... | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
shared_ptr< CWTextInternal::State > | m_state |
the state More... | |
CWParser * | m_mainParser |
the main parser; More... | |
shared_ptr< CWStyleManager > | m_styleManager |
the style manager More... | |
Private Member Functions | |
CWText (CWText const &orig) | |
CWText & | operator= (CWText const &orig) |
Friends | |
class | CWParser |
class | CWStyleManager |
the main class to read the text part of Claris Works file
CWText::CWText | ( | CWParser & | parser | ) |
constructor
|
virtual |
destructor
|
private |
|
protected |
check if we can send a textzone as graphic
|
protected |
check if we can send a textzone has graphic
|
protected |
try to find a list id which corresponds to the list beginning in actPos
Referenced by sendText().
|
protected |
sends the data which have not yet been sent to the listener
int CWText::numPages | ( | ) | const |
returns the number of pages
shared_ptr< CWStruct::DSET > CWText::readDSETZone | ( | CWStruct::DSET const & | zone, |
MWAWEntry const & | entry, | ||
bool & | complete | ||
) |
reads the zone Text DSET
|
protected |
try to read a font
Referenced by readFonts().
|
protected |
try to read a font sequence
Referenced by readDSETZone().
|
protected |
the definition of ruler : present at the beginning of the text in the first version of Claris Works : v1-2, present in the STYL entries in v4-v6 files
Referenced by readParagraphs(), and readSTYL_RULR().
|
protected |
try to read the paragraph
|
protected |
read the rulers block which is present at the beginning of the text in the first version of Claris Works : v1-2
Referenced by readDSETZone().
|
protected |
read a STYL Paragraph sequence
|
protected |
try to read the section
find f0=0|1, f1=O| (for second section)[1|2|4]
f2=0| (for second section [2e,4e,5b] , f3=0|2d|4d|5a
Referenced by readDSETZone().
|
protected |
try to read the text zone size
Referenced by readDSETZone().
|
protected |
try to the token zone)
Referenced by readDSETZone().
|
protected |
send the text zone to the listener
Referenced by flushExtra(), and sendZone().
|
protected |
sends the zone data to the listener (if it exists )
|
protected |
sends a paragraph property to the listener
Referenced by sendText().
int CWText::version | ( | ) | const |
returns the file version
Referenced by readDSETZone(), readFont(), readFonts(), readParagraph(), readParagraphs(), readTextSection(), and readTokens().
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by sendText().
|
protected |
the parser state
Referenced by findListId(), flushExtra(), numPages(), readDSETZone(), readFont(), readFonts(), readParagraph(), readParagraphs(), readSTYL_RULR(), readTextSection(), readTextZoneSize(), readTokens(), sendText(), and version().
|
protected |
the state
Referenced by canSendTextAsGraphic(), findListId(), flushExtra(), numPages(), readDSETZone(), readParagraph(), sendText(), sendZone(), and version().
|
protected |
the style manager
Referenced by readFont(), and readParagraphs().