CFileNameField Class Reference

class CFileNameField : public CTextField

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.

Inherits from

Member Functions Documentation

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &)[inline, virtual]

Overrides the base class method to do nothing, because this class has no persistent data.

Parameters

RReadStream &

RestoreL(const CStreamStore &, TStreamId)

IMPORT_C voidRestoreL(const CStreamStore &aStore,
TStreamIdaId
)[virtual]

Restores the field data from a stream store. Concrete field types with no persistent data should override this function to do nothing.

Parameters

const CStreamStore & aStoreStream store containing the field data to restore.
TStreamId aIdThe ID of the stream store in which the field data was previously stored.

SetFileNameInfo(MFieldFileNameInfo *)

voidSetFileNameInfo(MFieldFileNameInfo *aInfo)[inline]

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.

Parameters

MFieldFileNameInfo * aInfoPointer to an object which implements the UpdateFieldFileName() function.

StoreL(CStreamStore &)

IMPORT_C TStreamIdStoreL(CStreamStore &aStore)const [virtual]

Stores the field data to a stream store. Concrete field types with no persistent data should override this function to return KNullStreamId.

Parameters

CStreamStore & aStoreStream store to which the field data is written.

Type()

IMPORT_C TUidType()const [virtual]

Returns the field's type UID.

Value(TPtr &)

IMPORT_C TIntValue(TPtr &aValueText)[virtual]

Sets aValueText to the current field value if the buffer is large enough. If not, aValueText is not changed, and the function returns the length which is required to hold the field's value.

Parameters

TPtr & aValueTextDescriptor which on return contains the field's updated value.

Member Data Documentation

MFieldFileNameInfo * iFileNameInfo

MFieldFileNameInfo *iFileNameInfo[protected]