TCharFormat Class Reference

class TCharFormat

A transient container of character format attributes, including font-dependent and font-independent attributes.

The font-independent attributes are stored in a TFontPresentation object. Rich and global text objects store character formatting using character format layers (see class CCharFormatLayer). The TCharFormat class is used to store the relevant attribute values when setting or sensing a CCharFormatLayer. It is normally used in combination with a TCharFormatMask, to specify which attributes are relevant to the function concerned.

Public Member Functions
TCharFormat()
TCharFormat(const TDesC &, TInt)
IMPORT_C TBoolIsEqual(const TCharFormat &, const TCharFormatMask &)
IMPORT_C TBoolIsEqual(const TCharFormat &)
Public Attributes
TFontPresentation iFontPresentation
TFontSpec iFontSpec
TInt32 iLanguage

Constructor & Destructor Documentation

TCharFormat()

IMPORT_CTCharFormat()

TCharFormat(const TDesC &, TInt)

IMPORT_CTCharFormat(const TDesC &aTypefaceName,
TIntaHeight
)

Parameters

const TDesC & aTypefaceName
TInt aHeight

Member Functions Documentation

IsEqual(const TCharFormat &, const TCharFormatMask &)

IMPORT_C TBoolIsEqual(const TCharFormat &aFormat,
const TCharFormatMask &aMask
)const

Parameters

const TCharFormat & aFormat
const TCharFormatMask & aMask

IsEqual(const TCharFormat &)

IMPORT_C TBoolIsEqual(const TCharFormat &aFormat)const

Parameters

const TCharFormat & aFormat

Member Data Documentation

TFontPresentation iFontPresentation

TFontPresentation iFontPresentation

Font independent character format attributes.

TFontSpec iFontSpec

TFontSpec iFontSpec

Device independent font specification.

TInt32 iLanguage

TInt32 iLanguage

Specifies the language of individual characters for proofing. Used for example when spell checking a document which contains text in more than one language, so that the program recognises the text as being in another language. Language is also a paragraph format attribute. If the language setting of a character is different from the language setting of the containing paragraph, the character's setting takes precedence.