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.
Public Member Functions | |
---|---|
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TNumberStyle | NumberStyle() |
void | SetNumberStyle(TNumberStyle) |
Protected Member Functions | |
---|---|
TInt | InsertValue(TPtr &, TInt) |
Public Member Enumerations | |
---|---|
enum | TNumberStyle { EArabic, ERomanUpper, ERomanLower, EAlphabeticUpper, EAlphabeticLower } |
Protected Attributes | |
---|---|
TNumberStyle | iStyle |
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.
RWriteStream & aStream | Not used. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
Internalises the field data. Called by RestoreL().
RReadStream & aStream | Stream from which the field data should be internalised. |
void | SetNumberStyle | ( | TNumberStyle | aStyle | ) | [inline] |
Sets the numeric style.
TNumberStyle aStyle | The numeric style. |
Numeric style
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. |
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.