Public Member Functions | Protected Attributes

IE_Imp_RTFGroupParser Class Reference

#include <ie_imp_RTFParse.h>

Inheritance diagram for IE_Imp_RTFGroupParser:
IE_Imp_ShpGroupParser IE_Imp_ShpPropParser IE_Imp_TextParaPropParser

List of all members.

Public Member Functions

 IE_Imp_RTFGroupParser ()
virtual ~IE_Imp_RTFGroupParser ()
virtual bool tokenError (IE_Imp_RTF *ie)
 called when parsing is in error
virtual bool tokenKeyword (IE_Imp_RTF *ie, RTF_KEYWORD_ID kwID, UT_sint32 param, bool paramUsed)
 called to parse a KeyWord
virtual bool tokenOpenBrace (IE_Imp_RTF *ie)
 called when a brace opens. Must be called by override
virtual bool tokenCloseBrace (IE_Imp_RTF *ie)
 called when a brace close. Must be called by override
virtual bool tokenData (IE_Imp_RTF *ie, UT_UTF8String &data)
 called to parse PCDATA to an UT_UTF8String
virtual bool finalizeParse (void)
 called at the end of the group parsing to finalize stuff
int nested (void) const
 return the nesting level

Protected Attributes

int m_nested
 Netsing level, increase when a brace opens and decrease when a brace close.

Detailed Description

This class is meant to implement callback for a standard group parser.

Note:
even though the methods could have been made as pure virtual, they are not to ease subclassing parsers by "just what we need"

Constructor & Destructor Documentation

IE_Imp_RTFGroupParser::IE_Imp_RTFGroupParser (  )  [inline]
virtual IE_Imp_RTFGroupParser::~IE_Imp_RTFGroupParser (  )  [inline, virtual]

Member Function Documentation

bool IE_Imp_RTFGroupParser::finalizeParse ( void   )  [virtual]

called at the end of the group parsing to finalize stuff

Reimplemented in IE_Imp_ShpPropParser, and IE_Imp_TextParaPropParser.

Referenced by IE_Imp_RTF::StandardKeywordParser().

int IE_Imp_RTFGroupParser::nested ( void   )  const [inline]
bool IE_Imp_RTFGroupParser::tokenCloseBrace ( IE_Imp_RTF ie  )  [virtual]

called when a brace close. Must be called by override

Reimplemented in IE_Imp_ShpPropParser, IE_Imp_TextParaPropParser, and IE_Imp_ShpGroupParser.

References m_nested.

Referenced by IE_Imp_RTF::StandardKeywordParser().

bool IE_Imp_RTFGroupParser::tokenData ( IE_Imp_RTF ie,
UT_UTF8String data 
) [virtual]
bool IE_Imp_RTFGroupParser::tokenError ( IE_Imp_RTF ie  )  [virtual]

called when parsing is in error

References UT_DEBUGMSG.

Referenced by IE_Imp_RTF::StandardKeywordParser().

bool IE_Imp_RTFGroupParser::tokenKeyword ( IE_Imp_RTF ie,
RTF_KEYWORD_ID  kwID,
UT_sint32  param,
bool  paramUsed 
) [virtual]

called to parse a KeyWord

Reimplemented in IE_Imp_ShpPropParser, IE_Imp_TextParaPropParser, and IE_Imp_ShpGroupParser.

Referenced by IE_Imp_RTF::StandardKeywordParser().

bool IE_Imp_RTFGroupParser::tokenOpenBrace ( IE_Imp_RTF ie  )  [virtual]

called when a brace opens. Must be called by override

Reimplemented in IE_Imp_ShpPropParser, and IE_Imp_TextParaPropParser.

References m_nested.

Referenced by IE_Imp_RTF::StandardKeywordParser().


Member Data Documentation

Netsing level, increase when a brace opens and decrease when a brace close.

Referenced by tokenCloseBrace(), and tokenOpenBrace().


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