MFormCustomInvisibleCharacterRemapper Class Reference

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 TUintDefaultMapping(TUint, const TNonPrintingCharVisibility, const TLayDocTextSource &)
TUint Remap(TUint, const TNonPrintingCharVisibility, const TLayDocTextSource &)

Member Functions Documentation

DefaultMapping(TUint, const TNonPrintingCharVisibility, const TLayDocTextSource &)

IMPORT_C TUintDefaultMapping(TUintaChar,
const TNonPrintingCharVisibilityaNonPrintingCharVisibility,
const TLayDocTextSource &aLayDoc
)[static]

Parameters

TUint aChar
const TNonPrintingCharVisibility aNonPrintingCharVisibility
const TLayDocTextSource & aLayDoc

Remap(TUint, const TNonPrintingCharVisibility, const TLayDocTextSource &)

TUint Remap(TUintaChar,
const TNonPrintingCharVisibilityaNonPrintingCharVisibility,
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

Parameters

TUint aCharInvisible character to be remapped
const TNonPrintingCharVisibility aNonPrintingCharVisibility
const TLayDocTextSource & aLayDocConst ref to the calling CLayDocTextSource