Location:
fldbltin.h
Link against: field.lib
CPageNumField
Supported from 5.0
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.
|
Defined in CPageNumField
:
SetPageNumInfo()
, Type()
, Value()
Inherited from CBase
:
operator new()
Inherited from CPageFieldBase
:
EAlphabeticLower
,
EAlphabeticUpper
,
EArabic
,
ERomanLower
,
ERomanUpper
,
ExternalizeL()
,
InternalizeL()
,
NumberStyle()
,
SetNumberStyle()
,
TNumberStyle
Inherited from CTextField
:
RestoreL()
,
StoreL()
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.
|
|
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.
|
TUid Type()const;
Gets the field's type UID.
|