CPageFieldBase Class Reference

class CPageFieldBase : public CTextField

Stores a style for displaying the value of numeric fields.

This style is used when converting the integer value of numeric fields into a descriptor for display in another format, e.g. Arabic, Roman, alphabetic. This is the base class for the numeric fields, CPageNumField and CNumPagesField.

Inherits from

Member Functions Documentation

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const [virtual]

Externalises the field data. Called by StoreL().

Calling this default implementation raises a panic. Concrete field classes with persistent data must provide their own implementation of this function. Concrete field classes with no persistent data must provide a StoreL() implementation that just returns KNullStreamId.

Parameters

RWriteStream & aStreamNot used.

InsertValue(TPtr &, TInt)

TInt InsertValue(TPtr &aValueText,
TIntaValue
)[protected]

Parameters

TPtr & aValueText
TInt aValue

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)[virtual]

Internalises the field data. Called by RestoreL().

Parameters

RReadStream & aStreamStream from which the field data should be internalised.

NumberStyle()

IMPORT_C TNumberStyleNumberStyle()const

SetNumberStyle(TNumberStyle)

voidSetNumberStyle(TNumberStyleaStyle)[inline]

Sets the numeric style.

Parameters

TNumberStyle aStyleThe numeric style.

Member Enumerations Documentation

Enum TNumberStyle

Numeric style

Enumerators

EArabic

Arabic numeral, e.g. 1, 2, 3.

ERomanUpper

Upper case Roman numeral, e.g. I, II, III.

ERomanLower

Lower case Roman numeral, e.g. i, ii, iii.

EAlphabeticUpper

Upper case alphabetic.

EAlphabeticLower

Lower case alphabetic.

Member Data Documentation

TNumberStyle iStyle

TNumberStyle iStyle[protected]