#include <fldbltin.h>
Link against: field.lib
class CPageFieldBase : public CTextField, public CTextField |
Protected Attributes | |
---|---|
TNumberStyle | iStyle |
Public Member Enumerations | |
---|---|
enum | TNumberStyle { EArabic, ERomanUpper, ERomanLower, EAlphabeticUpper, EAlphabeticLower } |
Public Member Functions | |
---|---|
virtual IMPORT_C void | ExternalizeL(RWriteStream &) |
virtual IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TNumberStyle | NumberStyle() |
void | SetNumberStyle(TNumberStyle) |
Protected Member Functions | |
---|---|
TInt | InsertValue(TPtr &, TInt) |
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.
TNumberStyle | iStyle | [protected] |
Numeric style
Enumerator | Value | Description |
---|---|---|
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. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Reimplemented from CTextField::ExternalizeL(RWriteStream &)const
Externalises the numeric style value to a write stream. The presence of this function means that the standard templated operator<<() (defined in s32strm.h) is available to externalise objects of this class.
Parameters | |
---|---|
aStream | Stream to which the numeric style should be externalised. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
Reimplemented from CTextField::InternalizeL(RReadStream &)
Internalises the numeric style value from a read stream. The presence of this function means that the standard templated operator>>() (defined in s32strm.h) is available to internalise objects of this class.
Parameters | |
---|---|
aStream | Stream from which the numeric style should be internalised. |
void | SetNumberStyle | ( | TNumberStyle | aStyle | ) | [inline] |
Sets the numeric style.
Parameters | |
---|---|
aStyle | The numeric style. |