Location:
fldbltin.h
Link against: field.lib
CFileNameField
Supported from 5.0
A filename field. This is a field which evaluates to the filename
of the current document. Before the filename field can be evaluated, it must be
passed a pointer to an object which implements the
UpdateFieldFileName()
function.
|
Defined in CFileNameField
:
InternalizeL()
, RestoreL()
, SetFileNameInfo()
, StoreL()
, Type()
, Value()
Inherited from CBase
:
operator new()
Inherited from CTextField
:
ExternalizeL()
virtual TInt Value(TPtr& aValueText);
Gets the document's filename, by calling
UpdateFieldFileName()
(implemented by the object passed to the
filename field using SetFileNameInfo()
).
Note
SetFileNameInfo()
must have been called
beforehand, or a panic occurs.
|
|
void SetFileNameInfo(MFieldFileNameInfo* aInfo);
Sets the object which implements the
UpdateFieldFileName()
function, to get the current document's
filename. SetFileNameInfo()
must be called before the filename
field can be evaluated.
|
virtual void InternalizeL(RReadStream& /*aStream*/);
Overrides the base class method to do nothing, because this class has no persistent data.
virtual void RestoreL(const CStreamStore& aStore,TStreamId aId);
Overrides the base class method to do nothing, because this class has no persistent data.
virtual TStreamId StoreL(CStreamStore& aStore)const;
Returns KNullStreamId
, overriding the base class method,
because this class has no persistent data.