ZWrtText Class Reference

the main class to read the text part of ZWrite Text file More...

#include <ZWrtText.hxx>

Public Member Functions

 ZWrtText (ZWrtParser &parser)
 constructor
virtual ~ZWrtText ()
 destructor
int version () const
 returns the file version
int numPages () const
 returns the number of pages

Protected Types

enum  TextCode {
  None , Center , BookMark , NewPage ,
  Tag , Link
}
 the list of code in the text More...

Protected Member Functions

bool createZones ()
 finds the different text zones
bool sendMainText ()
 send a main zone
void flushExtra ()
 sends the data which have not yet been sent to the listener
void computePositions ()
 compute the positions
bool sendText (ZWrtTextInternal::Section const &zone, MWAWEntry const &entry)
 try to send a section
bool sendText (int sectionId, MWAWEntry const &entry)
 try to send a section using an id
TextCode isTextCode (MWAWInputStreamPtr &input, long endPos, MWAWEntry &dPos) const
 check if a character after '<' corresponds to a text code
bool readHFZone (MWAWEntry const &entry)
 read the header/footer zone
bool hasHeaderFooter (bool header) const
 returns true if there is a header/footer
bool sendHeaderFooter (bool header)
 try to send the header/footer
bool readStyles (MWAWEntry const &entry)
 read the styles
bool readSectionFonts (MWAWEntry const &entry)
 read a section fonts

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state
std::shared_ptr< ZWrtTextInternal::Statem_state
 the state
ZWrtParserm_mainParser
 the main parser;

Private Member Functions

 ZWrtText (ZWrtText const &orig)=delete
ZWrtTextoperator= (ZWrtText const &orig)=delete

Friends

class ZWrtParser
class ZWrtTextInternal::SubDocument

Detailed Description

the main class to read the text part of ZWrite Text file

Member Enumeration Documentation

◆ TextCode

enum ZWrtText::TextCode
protected

the list of code in the text

Enumerator
None 
Center 
BookMark 
NewPage 
Tag 
Link 

Constructor & Destructor Documentation

◆ ZWrtText() [1/2]

ZWrtText::ZWrtText ( ZWrtParser & parser)
explicit

constructor

Referenced by numPages(), operator=(), and ZWrtText().

◆ ~ZWrtText()

ZWrtText::~ZWrtText ( )
virtual

destructor

◆ ZWrtText() [2/2]

ZWrtText::ZWrtText ( ZWrtText const & orig)
privatedelete

Member Function Documentation

◆ computePositions()

void ZWrtText::computePositions ( )
protected

compute the positions

Referenced by createZones(), and numPages().

◆ createZones()

bool ZWrtText::createZones ( )
protected

finds the different text zones

◆ flushExtra()

void ZWrtText::flushExtra ( )
protected

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

◆ hasHeaderFooter()

bool ZWrtText::hasHeaderFooter ( bool header) const
protected

returns true if there is a header/footer

◆ isTextCode()

ZWrtText::TextCode ZWrtText::isTextCode ( MWAWInputStreamPtr & input,
long endPos,
MWAWEntry & dPos ) const
protected

check if a character after '<' corresponds to a text code

Referenced by sendText().

◆ numPages()

int ZWrtText::numPages ( ) const

returns the number of pages

◆ operator=()

ZWrtText & ZWrtText::operator= ( ZWrtText const & orig)
privatedelete

◆ readHFZone()

bool ZWrtText::readHFZone ( MWAWEntry const & entry)
protected

read the header/footer zone

Referenced by createZones().

◆ readSectionFonts()

bool ZWrtText::readSectionFonts ( MWAWEntry const & entry)
protected

read a section fonts

Referenced by createZones().

◆ readStyles()

bool ZWrtText::readStyles ( MWAWEntry const & entry)
protected

read the styles

Referenced by createZones().

◆ sendHeaderFooter()

bool ZWrtText::sendHeaderFooter ( bool header)
protected

try to send the header/footer

◆ sendMainText()

bool ZWrtText::sendMainText ( )
protected

send a main zone

◆ sendText() [1/2]

bool ZWrtText::sendText ( int sectionId,
MWAWEntry const & entry )
protected

try to send a section using an id

◆ sendText() [2/2]

bool ZWrtText::sendText ( ZWrtTextInternal::Section const & zone,
MWAWEntry const & entry )
protected

try to send a section

Referenced by sendMainText(), and sendText().

◆ version()

int ZWrtText::version ( ) const

returns the file version

◆ ZWrtParser

friend class ZWrtParser
friend

◆ ZWrtTextInternal::SubDocument

friend class ZWrtTextInternal::SubDocument
friend

Member Data Documentation

◆ m_mainParser

ZWrtParser* ZWrtText::m_mainParser
protected

◆ m_parserState

MWAWParserStatePtr ZWrtText::m_parserState
protected

◆ m_state


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

Generated for libmwaw by doxygen 1.14.0