#include <mparser.h>
class MParser |
Public Member Functions | |
---|---|
pure virtual void | ActivateThisTextL(const CRichText &, TInt, TInt) |
virtual IMPORT_C TBool | ConfirmCursorOverTag(const CRichText &, TInt, TInt, TInt) |
pure virtual const TDesC & | CreateDoItText(const CRichText &, TInt, TInt) |
virtual IMPORT_C void | GetRecogniseFormat(TCharFormat &) |
virtual IMPORT_C void | GetRolloverFormat(TCharFormat &) |
virtual IMPORT_C void | MParser_Reserved_2() |
pure virtual TBool | ParseThisText(const CRichText &, TBool, TInt, TInt, TInt &, TInt &) |
virtual IMPORT_C TBool | ReformatOnRecognise() |
virtual IMPORT_C TBool | ReformatOnRollover() |
pure virtual void | Release() |
Implement ParseThisText() in order to parse text
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.
Parameter | Description |
---|---|
aTextObj | A reference to the text document tag is within. |
aTagStart | The document position of the first tag character. |
aTagLen | The number of characters in the tag. |
aCurPos | The cursor position used in calculation of calling routines. |
Returns: TBool ETrue if parser agrees cursor over a tag, EFalse otherwise.