WriteNowText Class Reference

the main class to read the text part of writenow file More...

#include <WriteNowText.hxx>

List of all members.

Public Member Functions

 WriteNowText (WriteNowParser &parser)
 constructor
virtual ~WriteNowText ()
 destructor
int version () const
 returns the file version
int numPages () const
 returns the number of pages
WriteNowEntry getHeader () const
 returns the header entry (if defined)
WriteNowEntry getFooter () const
 returns the footer entry (if defined)

Protected Member Functions

bool createZones ()
 finds the different text zones
void flushExtra ()
 sends the data which have not yet been sent to the listener
bool parseZone (WriteNowEntry const &entry, std::vector< WriteNowEntry > &listData)
 try to read the text zone ( list of entries ) and to create the text data zone
shared_ptr
< WriteNowTextInternal::ContentZones
parseContent (WriteNowEntry const &entry)
 parse a text data zone ( and create the associated structure )
void sendZone (int id)
 send all the content zone of a zone defined by id 0: main, 1 header/footer, 2: footnote
bool send (WriteNowEntry const &entry)
 send the text to the listener
bool send (std::vector< WriteNowTextInternal::ContentZone > &listZones, std::vector< shared_ptr< WriteNowTextInternal::ContentZones > > &footnoteList, WriteNowTextInternal::Paragraph &ruler)
 send the text to the listener
void setProperty (WriteNowTextInternal::Paragraph const &ruler)
 sends a paragraph property to the listener
bool readFontNames (WriteNowEntry const &entry)
 try to read the fonts zone
bool readFont (MWAWInputStream &input, bool inStyle, WriteNowTextInternal::Font &font)
 read a font
bool readParagraph (MWAWInputStream &input, WriteNowTextInternal::Paragraph &ruler)
 read a paragraph format
bool readToken (MWAWInputStream &input, WriteNowTextInternal::Token &token)
 read a token
bool readTokenV2 (MWAWInputStream &input, WriteNowTextInternal::Token &token)
 read a token (v2)
bool readTable (MWAWInputStream &input, WriteNowTextInternal::TableData &table)
 read a table frame (checkme)
bool readStyles (WriteNowEntry const &entry)
 try to read the styles zone

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state
shared_ptr
< WriteNowTextInternal::State
m_state
 the state
shared_ptr< WriteNowEntryManagerm_entryManager
 the list of entry
WriteNowParserm_mainParser
 the main parser;

Private Member Functions

 WriteNowText (WriteNowText const &orig)
WriteNowTextoperator= (WriteNowText const &orig)

Friends

class WriteNowParser
struct WriteNowTextInternal::Cell

Detailed Description

the main class to read the text part of writenow file


Constructor & Destructor Documentation

constructor

destructor

WriteNowText::WriteNowText ( WriteNowText const &  orig) [private]

Member Function Documentation

bool WriteNowText::createZones ( ) [protected]

finds the different text zones

we can now create the content zone and type them

void WriteNowText::flushExtra ( ) [protected]

sends the data which have not yet been sent to the listener

returns the footer entry (if defined)

returns the header entry (if defined)

int WriteNowText::numPages ( ) const

returns the number of pages

WriteNowText& WriteNowText::operator= ( WriteNowText const &  orig) [private]
shared_ptr< WriteNowTextInternal::ContentZones > WriteNowText::parseContent ( WriteNowEntry const &  entry) [protected]

parse a text data zone ( and create the associated structure )

Referenced by createZones().

bool WriteNowText::parseZone ( WriteNowEntry const &  entry,
std::vector< WriteNowEntry > &  listData 
) [protected]

try to read the text zone ( list of entries ) and to create the text data zone

Referenced by createZones().

bool WriteNowText::readFont ( MWAWInputStream input,
bool  inStyle,
WriteNowTextInternal::Font font 
) [protected]

read a font

Referenced by send().

bool WriteNowText::readFontNames ( WriteNowEntry const &  entry) [protected]

try to read the fonts zone

Referenced by createZones().

read a paragraph format

Referenced by send().

bool WriteNowText::readStyles ( WriteNowEntry const &  entry) [protected]

try to read the styles zone

Referenced by createZones().

bool WriteNowText::readTable ( MWAWInputStream input,
WriteNowTextInternal::TableData table 
) [protected]

read a table frame (checkme)

Referenced by send().

bool WriteNowText::readToken ( MWAWInputStream input,
WriteNowTextInternal::Token token 
) [protected]

read a token

Referenced by send().

bool WriteNowText::readTokenV2 ( MWAWInputStream input,
WriteNowTextInternal::Token token 
) [protected]

read a token (v2)

Referenced by send().

bool WriteNowText::send ( WriteNowEntry const &  entry) [protected]

send the text to the listener

Referenced by WriteNowTextInternal::Cell::sendContent(), and sendZone().

bool WriteNowText::send ( std::vector< WriteNowTextInternal::ContentZone > &  listZones,
std::vector< shared_ptr< WriteNowTextInternal::ContentZones > > &  footnoteList,
WriteNowTextInternal::Paragraph ruler 
) [protected]

send the text to the listener

void WriteNowText::sendZone ( int  id) [protected]

send all the content zone of a zone defined by id 0: main, 1 header/footer, 2: footnote

Referenced by flushExtra().

void WriteNowText::setProperty ( WriteNowTextInternal::Paragraph const &  ruler) [protected]

sends a paragraph property to the listener

Referenced by send().

int WriteNowText::version ( ) const

returns the file version

Referenced by parseContent(), parseZone(), readFont(), readParagraph(), and send().


Friends And Related Function Documentation

friend class WriteNowParser [friend]
friend struct WriteNowTextInternal::Cell [friend]

Member Data Documentation

the list of entry

Referenced by createZones().


The documentation for this class was generated from the following files: