GreatWksText Class Reference

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

#include <GreatWksText.hxx>

Public Member Functions

 GreatWksText (GreatWksDocument &document)
 constructor More...
 
virtual ~GreatWksText ()
 destructor More...
 
int version () const
 returns the file version More...
 
int numPages () const
 returns the number of pages More...
 

Protected Member Functions

bool createZones (int expectedHF)
 finds the different objects zones More...
 
bool sendMainText ()
 send a main zone More...
 
int numHFZones () const
 return the number of header/footer zones More...
 
bool sendHF (int id)
 try to send the i^th header/footer More...
 
bool canSendTextBoxAsGraphic (MWAWEntry const &entry)
 check if a textbox can be send in a graphic zone, ie. does not contains any graphic More...
 
bool sendTextbox (MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr())
 try to send the textbox text More...
 
void flushExtra ()
 sends the data which have not yet been sent to the listener More...
 
int getFontId (int fileId) const
 read the final font id corresponding to a file id More...
 
bool readFontNames ()
 try to read the font names zone More...
 
bool readZone (GreatWksTextInternal::Zone &zone)
 try to read a zone ( textheader+fonts+rulers) More...
 
bool readZonePositions (GreatWksTextInternal::Zone &zone)
 try to read the end of a zone ( line + frame position ) More...
 
bool sendZone (GreatWksTextInternal::Zone const &zone, MWAWListenerPtr listener=MWAWListenerPtr())
 try to send a zone More...
 
bool sendSimpleTextbox (MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr())
 try to send simplified textbox zone More...
 
bool readFont (MWAWFont &font)
 try to read a font More...
 
bool readRuler (MWAWParagraph &para)
 try to read a ruler More...
 
bool readToken (GreatWksTextInternal::Token &token, long &nChar)
 try to read a token More...
 
bool findNextZone ()
 heuristic function used to find the next zone More...
 

Protected Attributes

GreatWksDocumentm_document
 the document More...
 
MWAWParserStatePtr m_parserState
 the parser state More...
 
std::shared_ptr< GreatWksTextInternal::Statem_state
 the state More...
 
MWAWParserm_mainParser
 the main parser; More...
 

Private Member Functions

 GreatWksText (GreatWksText const &orig)=delete
 
GreatWksTextoperator= (GreatWksText const &orig)=delete
 

Friends

class GreatWksDocument
 
class GreatWksParser
 
class GreatWksDBParser
 
class GreatWksDRParser
 
class GreatWksSSParser
 

Detailed Description

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

Constructor & Destructor Documentation

◆ GreatWksText() [1/2]

GreatWksText::GreatWksText ( GreatWksDocument document)
explicit

constructor

◆ ~GreatWksText()

GreatWksText::~GreatWksText ( )
virtual

destructor

◆ GreatWksText() [2/2]

GreatWksText::GreatWksText ( GreatWksText const &  orig)
privatedelete

Member Function Documentation

◆ canSendTextBoxAsGraphic()

bool GreatWksText::canSendTextBoxAsGraphic ( MWAWEntry const &  entry)
protected

check if a textbox can be send in a graphic zone, ie. does not contains any graphic

◆ createZones()

bool GreatWksText::createZones ( int  expectedHF)
protected

finds the different objects zones

◆ findNextZone()

bool GreatWksText::findNextZone ( )
protected

heuristic function used to find the next zone

Referenced by createZones().

◆ flushExtra()

void GreatWksText::flushExtra ( )
protected

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

◆ getFontId()

int GreatWksText::getFontId ( int  fileId) const
protected

read the final font id corresponding to a file id

◆ numHFZones()

int GreatWksText::numHFZones ( ) const
protected

return the number of header/footer zones

◆ numPages()

int GreatWksText::numPages ( ) const

returns the number of pages

◆ operator=()

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

◆ readFont()

bool GreatWksText::readFont ( MWAWFont font)
protected

try to read a font

Referenced by readZone().

◆ readFontNames()

bool GreatWksText::readFontNames ( )
protected

try to read the font names zone

Referenced by createZones().

◆ readRuler()

bool GreatWksText::readRuler ( MWAWParagraph para)
protected

try to read a ruler

Referenced by readZone().

◆ readToken()

bool GreatWksText::readToken ( GreatWksTextInternal::Token token,
long &  nChar 
)
protected

try to read a token

Referenced by readZone().

◆ readZone()

bool GreatWksText::readZone ( GreatWksTextInternal::Zone zone)
protected

try to read a zone ( textheader+fonts+rulers)

Referenced by canSendTextBoxAsGraphic(), createZones(), findNextZone(), and sendTextbox().

◆ readZonePositions()

bool GreatWksText::readZonePositions ( GreatWksTextInternal::Zone zone)
protected

try to read the end of a zone ( line + frame position )

Referenced by readZone().

◆ sendHF()

bool GreatWksText::sendHF ( int  id)
protected

try to send the i^th header/footer

◆ sendMainText()

bool GreatWksText::sendMainText ( )
protected

send a main zone

◆ sendSimpleTextbox()

bool GreatWksText::sendSimpleTextbox ( MWAWEntry const &  entry,
MWAWListenerPtr  listener = MWAWListenerPtr() 
)
protected

try to send simplified textbox zone

Referenced by sendTextbox().

◆ sendTextbox()

bool GreatWksText::sendTextbox ( MWAWEntry const &  entry,
MWAWListenerPtr  listener = MWAWListenerPtr() 
)
protected

try to send the textbox text

◆ sendZone()

bool GreatWksText::sendZone ( GreatWksTextInternal::Zone const &  zone,
MWAWListenerPtr  listener = MWAWListenerPtr() 
)
protected

try to send a zone

Referenced by flushExtra(), sendHF(), sendMainText(), and sendTextbox().

◆ version()

int GreatWksText::version ( ) const

returns the file version

Friends And Related Function Documentation

◆ GreatWksDBParser

friend class GreatWksDBParser
friend

◆ GreatWksDocument

friend class GreatWksDocument
friend

◆ GreatWksDRParser

friend class GreatWksDRParser
friend

◆ GreatWksParser

friend class GreatWksParser
friend

◆ GreatWksSSParser

friend class GreatWksSSParser
friend

Member Data Documentation

◆ m_document

GreatWksDocument& GreatWksText::m_document
protected

the document

Referenced by sendZone().

◆ m_mainParser

MWAWParser* GreatWksText::m_mainParser
protected

the main parser;

◆ m_parserState

◆ m_state


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

Generated for libmwaw by doxygen 1.8.14