Location:
FLDBLTIN.H
Link against: field.lib
class CPageNumField : public CPageFieldBase;
A field which evaluates to the current page number in the document.
Before the page number field can be evaluated, it must be passed a pointer to an object which implements the UpdateFieldPageNum() function.
CBase
- Base class for all classes to be instantiated on the heap
CTextField
- Abstract class: derive from this to instantiate a particular type of field (eg date etc) Abstract base class for all field
types
CPageFieldBase
- Stores a style for displaying the value of numeric fields
CPageNumField
- A field which evaluates to the current page number in the document
Defined in CPageNumField
:
SetPageNumInfo()
, Type()
, Value()
, iPageNumInfo
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CPageFieldBase
:
EAlphabeticLower
,
EAlphabeticUpper
,
EArabic
,
ERomanLower
,
ERomanUpper
,
ExternalizeL()
,
InternalizeL()
,
NumberStyle()
,
SetNumberStyle()
,
TNumberStyle
,
iStyle
Inherited from CTextField
:
RestoreL()
,
StoreL()
inline void SetPageNumInfo(MFieldPageNumInfo *aInfo);
Sets the object which implements UpdateFieldPageNum(), to get the current page number. SetPageNumInfo()
must be called before the page number field can be evaluated.
|
virtual IMPORT_C TInt Value(TPtr &aValueText);
Gets the current page number, by calling UpdateFieldPageNum() (implemented by the object passed to the field using SetPageNumInfo()
).
Notes
SetPageNumInfo()
must have been called beforehand, or a panic occurs.
The text object should support pagination and pagination should have occurred before evaluating the field.
|
|
virtual IMPORT_C TUid Type() const;
Gets the field's type UID.
|
protected: MFieldPageNumInfo * iPageNumInfo;