LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwDocUpdateField Class Reference

#include <docfld.hxx>

Collaboration diagram for SwDocUpdateField:
[legend]

Public Member Functions

 SwDocUpdateField (SwDoc &rDocument)
 
 ~SwDocUpdateField ()
 
const SetGetExpFieldsGetSortList () const
 
void MakeFieldList (SwDoc &rDoc, bool bAll, int eGetMode)
 
void InsDelFieldInFieldLst (bool bIns, const SwTextField &rField)
 
void InsertFieldType (const SwFieldType &rType)
 
void RemoveFieldType (const SwFieldType &rType)
 
bool IsInUpdateFields () const
 
void SetInUpdateFields (bool b)
 
bool IsFieldsDirty () const
 
void SetFieldsDirty (bool b)
 
SwHashTable< SwCalcFieldType > const & GetFieldTypeTable () const
 

Private Member Functions

void MakeFieldList_ (SwDoc &pDoc, int eGetMode)
 
void GetBodyNode (const SwTextField &, SwFieldIds nFieldWhich)
 
template<typename T >
void GetBodyNodeGeneric (SwNode const &rNode, T const &)
 

Private Attributes

std::unique_ptr< SetGetExpFieldsm_pFieldSortList
 current field list for calculation More...
 
SwHashTable< SwCalcFieldTypem_FieldTypeTable
 
sal_uLong m_nNodes
 to check if the node count changed More...
 
int m_nFieldListGetMode
 
SwDocm_rDoc
 
bool m_bInUpdateFields: 1
 currently in an UpdateFields call More...
 
bool m_bFieldsDirty: 1
 some fields are invalid More...
 

Detailed Description

Definition at line 138 of file docfld.hxx.

Constructor & Destructor Documentation

SwDocUpdateField::SwDocUpdateField ( SwDoc rDocument)

Definition at line 1193 of file docfld.cxx.

SwDocUpdateField::~SwDocUpdateField ( )

Definition at line 1203 of file docfld.cxx.

Member Function Documentation

void SwDocUpdateField::GetBodyNode ( const SwTextField rTField,
SwFieldIds  nFieldWhich 
)
private
template<typename T >
void SwDocUpdateField::GetBodyNodeGeneric ( SwNode const &  rNode,
T const &  rCond 
)
private
SwHashTable<SwCalcFieldType> const& SwDocUpdateField::GetFieldTypeTable ( ) const
inline

Definition at line 182 of file docfld.hxx.

References m_FieldTypeTable.

Referenced by InsertFieldType(), RemoveFieldType(), and SwCalc::VarLook().

const SetGetExpFields* SwDocUpdateField::GetSortList ( ) const
inline

Definition at line 159 of file docfld.hxx.

void SwDocUpdateField::InsDelFieldInFieldLst ( bool  bIns,
const SwTextField rField 
)
void SwDocUpdateField::InsertFieldType ( const SwFieldType rType)
bool SwDocUpdateField::IsFieldsDirty ( ) const
inline

Definition at line 171 of file docfld.hxx.

References m_bFieldsDirty.

Referenced by sw::DocumentTimerManager::GetNextIdleJob().

bool SwDocUpdateField::IsInUpdateFields ( ) const
inline

Definition at line 168 of file docfld.hxx.

References m_bInUpdateFields.

Referenced by sw::DocumentTimerManager::GetNextIdleJob().

void SwDocUpdateField::MakeFieldList ( SwDoc rDoc,
bool  bAll,
int  eGetMode 
)
void SwDocUpdateField::MakeFieldList_ ( SwDoc pDoc,
int  eGetMode 
)
private
void SwDocUpdateField::RemoveFieldType ( const SwFieldType rType)
void SwDocUpdateField::SetFieldsDirty ( bool  b)
inline
void SwDocUpdateField::SetInUpdateFields ( bool  b)
inline

Definition at line 169 of file docfld.hxx.

References m_bInUpdateFields.

Referenced by sw::IMPL_LINK_NOARG().

Member Data Documentation

bool SwDocUpdateField::m_bFieldsDirty
private

some fields are invalid

Definition at line 148 of file docfld.hxx.

Referenced by IsFieldsDirty(), and SetFieldsDirty().

bool SwDocUpdateField::m_bInUpdateFields
private

currently in an UpdateFields call

Definition at line 147 of file docfld.hxx.

Referenced by IsInUpdateFields(), and SetInUpdateFields().

SwHashTable<SwCalcFieldType> SwDocUpdateField::m_FieldTypeTable
private

Definition at line 141 of file docfld.hxx.

Referenced by GetFieldTypeTable(), InsertFieldType(), and RemoveFieldType().

int SwDocUpdateField::m_nFieldListGetMode
private

Definition at line 144 of file docfld.hxx.

Referenced by MakeFieldList(), and MakeFieldList_().

sal_uLong SwDocUpdateField::m_nNodes
private

to check if the node count changed

Definition at line 143 of file docfld.hxx.

Referenced by MakeFieldList(), and MakeFieldList_().

std::unique_ptr<SetGetExpFields> SwDocUpdateField::m_pFieldSortList
private

current field list for calculation

Definition at line 140 of file docfld.hxx.

Referenced by GetBodyNode(), GetBodyNodeGeneric(), InsDelFieldInFieldLst(), MakeFieldList(), and MakeFieldList_().

SwDoc& SwDocUpdateField::m_rDoc
private

Definition at line 145 of file docfld.hxx.


The documentation for this class was generated from the following files: