#include <ie_imp_RTFParse.h>
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. |
This class is meant to implement callback for a standard group parser.
IE_Imp_RTFGroupParser::IE_Imp_RTFGroupParser | ( | ) | [inline] |
virtual IE_Imp_RTFGroupParser::~IE_Imp_RTFGroupParser | ( | ) | [inline, virtual] |
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] |
return the nesting level
Referenced by IE_Imp_RTF::StandardKeywordParser(), IE_Imp_ShpPropParser::tokenCloseBrace(), and IE_Imp_ShpPropParser::tokenKeyword().
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] |
called to parse PCDATA to an UT_UTF8String
Reimplemented in IE_Imp_ShpPropParser, IE_Imp_TextParaPropParser, and IE_Imp_ShpGroupParser.
Referenced by IE_Imp_RTF::StandardKeywordParser().
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().
int IE_Imp_RTFGroupParser::m_nested [protected] |
Netsing level, increase when a brace opens and decrease when a brace close.
Referenced by tokenCloseBrace(), and tokenOpenBrace().