ClarisDrawText Class Reference

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

#include <ClarisDrawText.hxx>

Public Member Functions

 ClarisDrawText (ClarisDrawParser &parser)
 constructor More...
 
virtual ~ClarisDrawText ()
 destructor More...
 
int version () const
 returns the file version More...
 
void resetState ()
 resets the current state More...
 
int numPages () const
 returns the number of pages More...
 
std::shared_ptr< ClarisWksStruct::DSETreadDSETZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry)
 reads the zone Text DSET More...
 

Protected Member Functions

bool sendZone (int number, int subZone=-1)
 sends the zone data More...
 
void flushExtra ()
 sends the data which have not yet been sent to the listener 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 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 readParagraphs (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
 try to read the paragraph More...
 
bool readFonts (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
 try to read a font sequence More...
 
bool readTokens (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
 try to the token zone) More...
 
bool readTextZoneSize (MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
 try to read the text zone size More...
 
bool sendText (ClarisDrawTextInternal::DSET const &zone, int subZone)
 send the text zone to the listener More...
 

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state More...
 
std::shared_ptr< ClarisDrawTextInternal::Statem_state
 the state More...
 
ClarisDrawParserm_mainParser
 the main parser; More...
 
std::shared_ptr< ClarisDrawStyleManagerm_styleManager
 the style manager More...
 

Private Member Functions

 ClarisDrawText (ClarisDrawText const &orig)=delete
 
ClarisDrawTextoperator= (ClarisDrawText const &orig)=delete
 

Friends

class ClarisDrawParser
 

Detailed Description

the main class to read the text part of ClarisDraw file

Constructor & Destructor Documentation

◆ ClarisDrawText() [1/2]

ClarisDrawText::ClarisDrawText ( ClarisDrawParser parser)
explicit

constructor

◆ ~ClarisDrawText()

ClarisDrawText::~ClarisDrawText ( )
virtual

destructor

◆ ClarisDrawText() [2/2]

ClarisDrawText::ClarisDrawText ( ClarisDrawText const &  orig)
privatedelete

Member Function Documentation

◆ flushExtra()

void ClarisDrawText::flushExtra ( )
protected

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

◆ numPages()

int ClarisDrawText::numPages ( ) const

returns the number of pages

◆ operator=()

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

◆ readDSETZone()

std::shared_ptr< ClarisWksStruct::DSET > ClarisDrawText::readDSETZone ( ClarisWksStruct::DSET const &  zone,
MWAWEntry const &  entry 
)

reads the zone Text DSET

◆ readFont()

bool ClarisDrawText::readFont ( int  id,
int &  posC,
MWAWFont font 
)
protected

try to read a font

Referenced by readFonts().

◆ readFonts()

bool ClarisDrawText::readFonts ( MWAWEntry const &  entry,
ClarisDrawTextInternal::DSET zone 
)
protected

try to read a font sequence

Referenced by readDSETZone().

◆ readParagraph()

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().

◆ readParagraphs() [1/2]

bool ClarisDrawText::readParagraphs ( )
protected

read the rulers block which is present at the beginning of the text

Referenced by readDSETZone().

◆ readParagraphs() [2/2]

bool ClarisDrawText::readParagraphs ( MWAWEntry const &  entry,
ClarisDrawTextInternal::DSET zone 
)
protected

try to read the paragraph

◆ readTextZoneSize()

bool ClarisDrawText::readTextZoneSize ( MWAWEntry const &  entry,
ClarisDrawTextInternal::DSET zone 
)
protected

try to read the text zone size

Referenced by readDSETZone().

◆ readTokens()

bool ClarisDrawText::readTokens ( MWAWEntry const &  entry,
ClarisDrawTextInternal::DSET zone 
)
protected

try to the token zone)

Referenced by readDSETZone().

◆ resetState()

void ClarisDrawText::resetState ( )

resets the current state

◆ sendText()

bool ClarisDrawText::sendText ( ClarisDrawTextInternal::DSET const &  zone,
int  subZone 
)
protected

send the text zone to the listener

Referenced by sendZone().

◆ sendZone()

bool ClarisDrawText::sendZone ( int  number,
int  subZone = -1 
)
protected

sends the zone data

◆ version()

int ClarisDrawText::version ( ) const

returns the file version

Friends And Related Function Documentation

◆ ClarisDrawParser

friend class ClarisDrawParser
friend

Member Data Documentation

◆ m_mainParser

ClarisDrawParser* ClarisDrawText::m_mainParser
protected

the main parser;

◆ m_parserState

MWAWParserStatePtr ClarisDrawText::m_parserState
protected

◆ m_state

std::shared_ptr<ClarisDrawTextInternal::State> ClarisDrawText::m_state
protected

◆ m_styleManager

std::shared_ptr<ClarisDrawStyleManager> ClarisDrawText::m_styleManager
protected

the style manager

Referenced by readFont().


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

Generated for libmwaw by doxygen 1.8.14