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] |
Default implementation of mapping invisible character to its specified alternate.
Called by TLayDocTextSource::Map() unless overidden by custom mapping class. May be called by custom mapping class
TUint aChar | Invisible character to be remapped |
const TNonPrintingCharVisibility aNonPrintingCharVisibility | Current state of flags showing visibility of invisible characters |
const TLayDocTextSource & aLayDoc | Const ref to the calling CLayDocTextSource |
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.
TUint aChar | Invisible character to be remapped |
const TNonPrintingCharVisibility aNonPrintingCharVisibility | |
const TLayDocTextSource & aLayDoc | Const ref to the calling CLayDocTextSource |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.