the main class to read the text part of ClarisDraw file More...
#include <ClarisDrawText.hxx>
Public Member Functions | |
| ClarisDrawText (ClarisDrawParser &parser) | |
| constructor | |
| virtual | ~ClarisDrawText () |
| destructor | |
| int | version () const |
| returns the file version | |
| void | resetState () |
| resets the current state | |
| int | numPages () const |
| returns the number of pages | |
| shared_ptr< ClarisWksStruct::DSET > | readDSETZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry) |
| reads the zone Text DSET | |
Protected Member Functions | |
| bool | sendZone (int number, int subZone=-1) |
| sends the zone data | |
| void | flushExtra () |
| sends the data which have not yet been sent to the listener | |
| bool | readFont (int id, int &posC, MWAWFont &font) |
| try to read a font | |
| bool | readParagraphs () |
| read the rulers block which is present at the beginning of the text | |
| 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 | |
| bool | readParagraphs (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone) |
| try to read the paragraph | |
| bool | readFonts (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone) |
| try to read a font sequence | |
| bool | readTokens (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone) |
| try to the token zone) | |
| bool | readTextZoneSize (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone) |
| try to read the text zone size | |
| bool | sendText (ClarisDrawTextInternal::DSET const &zone, int subZone) |
| send the text zone to the listener | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state | |
| shared_ptr < ClarisDrawTextInternal::State > | m_state |
| the state | |
| ClarisDrawParser * | m_mainParser |
| the main parser; | |
| shared_ptr < ClarisDrawStyleManager > | m_styleManager |
| the style manager | |
Private Member Functions | |
| ClarisDrawText (ClarisDrawText const &orig) | |
| ClarisDrawText & | operator= (ClarisDrawText const &orig) |
Friends | |
| class | ClarisDrawParser |
the main class to read the text part of ClarisDraw file
| ClarisDrawText::ClarisDrawText | ( | ClarisDrawParser & | parser | ) |
constructor
| ClarisDrawText::~ClarisDrawText | ( | ) | [virtual] |
destructor
| ClarisDrawText::ClarisDrawText | ( | ClarisDrawText const & | orig | ) | [private] |
| void ClarisDrawText::flushExtra | ( | ) | [protected] |
sends the data which have not yet been sent to the listener
| int ClarisDrawText::numPages | ( | ) | const |
returns the number of pages
| ClarisDrawText& ClarisDrawText::operator= | ( | ClarisDrawText const & | orig | ) | [private] |
| shared_ptr< ClarisWksStruct::DSET > ClarisDrawText::readDSETZone | ( | ClarisWksStruct::DSET const & | zone, |
| MWAWEntry const & | entry | ||
| ) |
reads the zone Text DSET
| bool ClarisDrawText::readFont | ( | int | id, |
| int & | posC, | ||
| MWAWFont & | font | ||
| ) | [protected] |
try to read a font
Referenced by readFonts().
| bool ClarisDrawText::readFonts | ( | MWAWEntry const & | entry, |
| ClarisDrawTextInternal::DSET & | zone | ||
| ) | [protected] |
try to read a font sequence
Referenced by readDSETZone().
| bool ClarisDrawText::readParagraph | ( | int | id = -1 | ) | [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().
| bool ClarisDrawText::readParagraphs | ( | ) | [protected] |
read the rulers block which is present at the beginning of the text
Referenced by readDSETZone().
| bool ClarisDrawText::readParagraphs | ( | MWAWEntry const & | entry, |
| ClarisDrawTextInternal::DSET & | zone | ||
| ) | [protected] |
try to read the paragraph
| bool ClarisDrawText::readTextZoneSize | ( | MWAWEntry const & | entry, |
| ClarisDrawTextInternal::DSET & | zone | ||
| ) | [protected] |
try to read the text zone size
Referenced by readDSETZone().
| bool ClarisDrawText::readTokens | ( | MWAWEntry const & | entry, |
| ClarisDrawTextInternal::DSET & | zone | ||
| ) | [protected] |
try to the token zone)
Referenced by readDSETZone().
| void ClarisDrawText::resetState | ( | ) |
resets the current state
| bool ClarisDrawText::sendText | ( | ClarisDrawTextInternal::DSET const & | zone, |
| int | subZone | ||
| ) | [protected] |
send the text zone to the listener
Referenced by sendZone().
| bool ClarisDrawText::sendZone | ( | int | number, |
| int | subZone = -1 |
||
| ) | [protected] |
sends the zone data
| int ClarisDrawText::version | ( | ) | const |
returns the file version
friend class ClarisDrawParser [friend] |
ClarisDrawParser* ClarisDrawText::m_mainParser [protected] |
the main parser;
MWAWParserStatePtr ClarisDrawText::m_parserState [protected] |
the parser state
Referenced by readDSETZone(), readFont(), readFonts(), readParagraph(), readParagraphs(), readTextZoneSize(), readTokens(), sendText(), and version().
shared_ptr<ClarisDrawTextInternal::State> ClarisDrawText::m_state [protected] |
the state
Referenced by readDSETZone(), readParagraph(), resetState(), sendText(), sendZone(), and version().
shared_ptr<ClarisDrawStyleManager> ClarisDrawText::m_styleManager [protected] |
the style manager
Referenced by readFont().