| class MFormCustomInvisibleCharacterRemapper |
Mixin class used to customize visible appearance of invisible characters such as a paragraph mark or a tab.
CTextView::SetCustomInvisibleCharacterRemapper()
| Public Member Functions | |
|---|---|
| IMPORT_C TUint | DefaultMapping(TUint, const TNonPrintingCharVisibility, const TLayDocTextSource &) |
| TUint | Remap(TUint, const TNonPrintingCharVisibility, const TLayDocTextSource &) |
| IMPORT_C TUint | DefaultMapping | ( | TUint | aChar, |
| const TNonPrintingCharVisibility | aNonPrintingCharVisibility, | |||
| const TLayDocTextSource & | aLayDoc | |||
| ) | [static] | |||
| TUint aChar | |
| const TNonPrintingCharVisibility aNonPrintingCharVisibility | |
| const TLayDocTextSource & aLayDoc |
| TUint | Remap | ( | TUint | aChar, |
| const TNonPrintingCharVisibility | aNonPrintingCharVisibility, | |||
| const TLayDocTextSource & | aLayDoc | |||
| ) | [pure virtual] | |||
Allows custom remapping of invisible characters.
Called by TLayDocTextSource::Map() if it has been created and registered with TLayDocTextSource using CTextLayout::SetInvisibleCharacterRemapper().
Unless there is a specific reason for doing otherwise it is recommended that where this function has not remapped a given character it should pass it to DefaultMapping() to let it try.
The replacement character if remapping has taken place, else return original character
| TUint aChar | Invisible character to be remapped |
| const TNonPrintingCharVisibility aNonPrintingCharVisibility | |
| const TLayDocTextSource & aLayDoc | Const ref to the calling CLayDocTextSource |