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 void ExternalizeL ( 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 & aStream Not used.

InsertValue(TPtr &, TInt)

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

Parameters

TPtr & aValueText
TInt aValue

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream ) [virtual]

Internalises the field data. Called by RestoreL() .

Parameters

RReadStream & aStream Stream from which the field data should be internalised.

NumberStyle()

IMPORT_C TNumberStyle NumberStyle ( ) const

SetNumberStyle(TNumberStyle)

void SetNumberStyle ( TNumberStyle aStyle ) [inline]

Sets the numeric style.

Parameters

TNumberStyle aStyle The 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]