RagTimeText Class Reference

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

#include <RagTimeText.hxx>

Public Member Functions

 RagTimeText (RagTimeParser &parser)
 constructor More...
 
virtual ~RagTimeText ()
 destructor More...
 
int version () const
 returns the file version More...
 
int getFontId (int localId) const
 returns a mac font id corresponding to a local id More...
 
bool getCharStyle (int charId, MWAWFont &font) const
 returns font style corresponding to a char style id More...
 

Protected Member Functions

bool readFontNames (MWAWEntry &entry)
 try to read the font name: the FHFo structure: FileH?Font zone More...
 
bool readCharProperties (MWAWEntry &entry)
 try to read the character properties zone: FHsl zone More...
 
bool readTextZone (MWAWEntry &entry, int width, MWAWColor const &fontColor=MWAWColor::black())
 try to read a text zone (knowing the zone width in point and the font color) More...
 
bool readFonts (RagTimeTextInternal::TextZone &zone, MWAWColor const &color, long endPos)
 try to read the character properties (knowing the font color) More...
 
bool readParagraphs (RagTimeTextInternal::TextZone &zone, int width, long endPos)
 try to read the paragraph properties (knowing the zone width in point used to determine the right margin) More...
 
bool readTokens (RagTimeTextInternal::TextZone &zone, long endPos)
 try to read the token zones More...
 
bool send (int id, MWAWListenerPtr listener)
 try to send a text zone More...
 
void flushExtra ()
 flush extra zone More...
 
bool send (RagTimeTextInternal::TextZone const &zone, MWAWListenerPtr listener)
 try to send a text zone More...
 

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state More...
 
shared_ptr
< RagTimeTextInternal::State
m_state
 the state More...
 
RagTimeParserm_mainParser
 the main parser; More...
 

Private Member Functions

 RagTimeText (RagTimeText const &orig)
 
RagTimeTextoperator= (RagTimeText const &orig)
 

Friends

class RagTimeParser
 

Detailed Description

the main class to read the text part of ragTime file

Constructor & Destructor Documentation

RagTimeText::RagTimeText ( RagTimeParser parser)

constructor

RagTimeText::~RagTimeText ( )
virtual

destructor

RagTimeText::RagTimeText ( RagTimeText const &  orig)
private

Member Function Documentation

void RagTimeText::flushExtra ( )
protected

flush extra zone

bool RagTimeText::getCharStyle ( int  charId,
MWAWFont font 
) const

returns font style corresponding to a char style id

int RagTimeText::getFontId ( int  localId) const

returns a mac font id corresponding to a local id

Referenced by readCharProperties(), and readFonts().

RagTimeText& RagTimeText::operator= ( RagTimeText const &  orig)
private
bool RagTimeText::readCharProperties ( MWAWEntry entry)
protected

try to read the character properties zone: FHsl zone

bool RagTimeText::readFontNames ( MWAWEntry entry)
protected

try to read the font name: the FHFo structure: FileH?Font zone

bool RagTimeText::readFonts ( RagTimeTextInternal::TextZone zone,
MWAWColor const &  color,
long  endPos 
)
protected

try to read the character properties (knowing the font color)

Referenced by readTextZone().

bool RagTimeText::readParagraphs ( RagTimeTextInternal::TextZone zone,
int  width,
long  endPos 
)
protected

try to read the paragraph properties (knowing the zone width in point used to determine the right margin)

Referenced by readTextZone().

bool RagTimeText::readTextZone ( MWAWEntry entry,
int  width,
MWAWColor const &  fontColor = MWAWColor::black() 
)
protected

try to read a text zone (knowing the zone width in point and the font color)

bool RagTimeText::readTokens ( RagTimeTextInternal::TextZone zone,
long  endPos 
)
protected

try to read the token zones

Referenced by readTextZone().

bool RagTimeText::send ( int  id,
MWAWListenerPtr  listener 
)
protected

try to send a text zone

Referenced by flushExtra().

bool RagTimeText::send ( RagTimeTextInternal::TextZone const &  zone,
MWAWListenerPtr  listener 
)
protected

try to send a text zone

int RagTimeText::version ( ) const

returns the file version

Referenced by readFonts(), readParagraphs(), readTextZone(), readTokens(), and send().

Friends And Related Function Documentation

friend class RagTimeParser
friend

Member Data Documentation

RagTimeParser* RagTimeText::m_mainParser
protected

the main parser;

Referenced by readFonts(), readTextZone(), and readTokens().

MWAWParserStatePtr RagTimeText::m_parserState
protected

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

Generated on Thu Jul 9 2015 20:26:39 for libmwaw by doxygen 1.8.8