| 
                   | 
               
                  
                   | 
            |
Location: 
            FLDBLTIN.H
            
Link against: field.lib
            
         
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.
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
            CFileNameField - A filename field
            Defined in CFileNameField:
            InternalizeL(), RestoreL(), SetFileNameInfo(), StoreL(), Type(), Value(), iFileNameInfo
            
         
Inherited from CBase:
            Delete(),
            Extension_(),
            operator new()
Inherited from CTextField:
            ExternalizeL()
inline 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 IMPORT_C TStreamId StoreL(CStreamStore &aStore) const;
Stores the field data to a stream store. Concrete field types with no persistent data should override this function to return KNullStreamId.
                  
  | 
            
                  
  | 
            
virtual IMPORT_C void RestoreL(const CStreamStore &aStore, TStreamId aId);
Restores the field data from a stream store. Concrete field types with no persistent data should override this function to do nothing.
                  
  | 
            
virtual IMPORT_C 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.
         
                  
  | 
            
                  
  | 
            
inline virtual void InternalizeL(RReadStream &);
Overrides the base class method to do nothing, because this class has no persistent data.
                  
  | 
            
virtual IMPORT_C TUid Type() const;
Gets the field's type UID.
                  
  | 
            
protected: MFieldFileNameInfo * iFileNameInfo;