MParser Class Reference

class MParser

Implement ParseThisText() in order to parse text

Member Functions Documentation

ActivateThisTextL(const CRichText &, TInt, TInt)

voidActivateThisTextL(const CRichText &aTextObj,
TIntaStartText,
TIntaLength
)[pure virtual]

Parameters

const CRichText & aTextObj
TInt aStartText
TInt aLength

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

IMPORT_C TBoolConfirmCursorOverTag(const CRichText &aTextObj,
TIntaTagStart,
TIntaTagLen,
TIntaCurPos
)[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 & aTextObjA reference to the text document tag is within.
TInt aTagStartThe document position of the first tag character.
TInt aTagLenThe number of characters in the tag.
TInt aCurPosThe cursor position used in calculation of calling routines.

CreateDoItText(const CRichText &, TInt, TInt)

const TDesC &CreateDoItText(const CRichText &aTextObj,
TIntaStartText,
TIntaLength
)[pure virtual]

Parameters

const CRichText & aTextObj
TInt aStartText
TInt aLength

GetRecogniseFormat(TCharFormat &)

IMPORT_C voidGetRecogniseFormat(TCharFormat &aFormat)[virtual]

Parameters

TCharFormat & aFormat

GetRolloverFormat(TCharFormat &)

IMPORT_C voidGetRolloverFormat(TCharFormat &aFormat)[virtual]

Parameters

TCharFormat & aFormat

MParser_Reserved_2()

IMPORT_C voidMParser_Reserved_2()[virtual]

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

TBool ParseThisText(const CRichText &aTextObj,
TBoolaAllowBack,
TIntaStartScan,
TIntaScanLength,
TInt &aStartTag,
TInt &aTagLength
)[pure virtual]

Parameters

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

ReformatOnRecognise()

IMPORT_C TBoolReformatOnRecognise()const [virtual]

ReformatOnRollover()

IMPORT_C TBoolReformatOnRollover()const [virtual]

Release()

voidRelease()[pure virtual]