MParser Class Reference

class MParser

Implement ParseThisText() in order to parse text

Member Functions Documentation

ActivateThisTextL(const CRichText &, TInt, TInt)

void ActivateThisTextL ( const CRichText & aTextObj,
TInt aStartText,
TInt aLength
) [pure virtual]

Parameters

const CRichText & aTextObj
TInt aStartText
TInt aLength

ConfirmCursorOverTag(const CRichText &, TInt, TInt, TInt)

IMPORT_C TBool ConfirmCursorOverTag ( const CRichText & aTextObj,
TInt aTagStart,
TInt aTagLen,
TInt aCurPos
) [virtual]

This confirmation routine is called by the parsing framework when it's logic determines the cursor is over a tag. It gives the parser a chance to override the default cursor-tag rollover matching. This is not necessary if the default behaviour is acceptable. It is called from the CRichText::CursorOverTag() when the framework tests for format redraw when over a tag and CRichText::OverrideFormatForParsersIfApplicable() when Tagma is formatting text.

Parameters

const CRichText & aTextObj A reference to the text document tag is within.
TInt aTagStart The document position of the first tag character.
TInt aTagLen The number of characters in the tag.
TInt aCurPos The cursor position used in calculation of calling routines.

CreateDoItText(const CRichText &, TInt, TInt)

const TDesC & CreateDoItText ( const CRichText & aTextObj,
TInt aStartText,
TInt aLength
) [pure virtual]

Parameters

const CRichText & aTextObj
TInt aStartText
TInt aLength

GetRecogniseFormat(TCharFormat &)

IMPORT_C void GetRecogniseFormat ( TCharFormat & aFormat ) [virtual]

Parameters

TCharFormat & aFormat

GetRolloverFormat(TCharFormat &)

IMPORT_C void GetRolloverFormat ( TCharFormat & aFormat ) [virtual]

Parameters

TCharFormat & aFormat

MParser_Reserved_2()

IMPORT_C void MParser_Reserved_2 ( ) [virtual]

ParseThisText(const CRichText &, TBool, TInt, TInt, TInt &, TInt &)

TBool ParseThisText ( const CRichText & aTextObj,
TBool aAllowBack,
TInt aStartScan,
TInt aScanLength,
TInt & aStartTag,
TInt & aTagLength
) [pure virtual]

Parameters

const CRichText & aTextObj
TBool aAllowBack
TInt aStartScan
TInt aScanLength
TInt & aStartTag
TInt & aTagLength

ReformatOnRecognise()

IMPORT_C TBool ReformatOnRecognise ( ) const [virtual]

ReformatOnRollover()

IMPORT_C TBool ReformatOnRollover ( ) const [virtual]

Release()

void Release ( ) [pure virtual]