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
 
SwNodeOffset 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 144 of file docfld.hxx.

Constructor & Destructor Documentation

◆ SwDocUpdateField()

SwDocUpdateField::SwDocUpdateField ( SwDoc rDocument)

Definition at line 1245 of file docfld.cxx.

◆ ~SwDocUpdateField()

SwDocUpdateField::~SwDocUpdateField ( )

Definition at line 1255 of file docfld.cxx.

Member Function Documentation

◆ GetBodyNode()

void SwDocUpdateField::GetBodyNode ( const SwTextField rTField,
SwFieldIds  nFieldWhich 
)
private

◆ GetBodyNodeGeneric()

template<typename T >
void SwDocUpdateField::GetBodyNodeGeneric ( SwNode const &  rNode,
T const &  rCond 
)
private

◆ GetFieldTypeTable()

SwHashTable< SwCalcFieldType > const & SwDocUpdateField::GetFieldTypeTable ( ) const
inline

Definition at line 188 of file docfld.hxx.

References m_FieldTypeTable.

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

◆ GetSortList()

const SetGetExpFields * SwDocUpdateField::GetSortList ( ) const
inline

Definition at line 165 of file docfld.hxx.

References m_pFieldSortList.

◆ InsDelFieldInFieldLst()

void SwDocUpdateField::InsDelFieldInFieldLst ( bool  bIns,
const SwTextField rField 
)

◆ InsertFieldType()

void SwDocUpdateField::InsertFieldType ( const SwFieldType rType)

◆ IsFieldsDirty()

bool SwDocUpdateField::IsFieldsDirty ( ) const
inline

Definition at line 177 of file docfld.hxx.

References m_bFieldsDirty.

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

◆ IsInUpdateFields()

bool SwDocUpdateField::IsInUpdateFields ( ) const
inline

Definition at line 174 of file docfld.hxx.

References m_bInUpdateFields.

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

◆ MakeFieldList()

void SwDocUpdateField::MakeFieldList ( SwDoc rDoc,
bool  bAll,
int  eGetMode 
)

◆ MakeFieldList_()

void SwDocUpdateField::MakeFieldList_ ( SwDoc pDoc,
int  eGetMode 
)
private

◆ RemoveFieldType()

void SwDocUpdateField::RemoveFieldType ( const SwFieldType rType)

◆ SetFieldsDirty()

void SwDocUpdateField::SetFieldsDirty ( bool  b)
inline

◆ SetInUpdateFields()

void SwDocUpdateField::SetInUpdateFields ( bool  b)
inline

Definition at line 175 of file docfld.hxx.

References m_bInUpdateFields.

Referenced by sw::IMPL_LINK_NOARG().

Member Data Documentation

◆ m_bFieldsDirty

bool SwDocUpdateField::m_bFieldsDirty
private

some fields are invalid

Definition at line 154 of file docfld.hxx.

Referenced by IsFieldsDirty(), and SetFieldsDirty().

◆ m_bInUpdateFields

bool SwDocUpdateField::m_bInUpdateFields
private

currently in an UpdateFields call

Definition at line 153 of file docfld.hxx.

Referenced by IsInUpdateFields(), and SetInUpdateFields().

◆ m_FieldTypeTable

SwHashTable<SwCalcFieldType> SwDocUpdateField::m_FieldTypeTable
private

Definition at line 147 of file docfld.hxx.

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

◆ m_nFieldListGetMode

int SwDocUpdateField::m_nFieldListGetMode
private

Definition at line 150 of file docfld.hxx.

Referenced by MakeFieldList(), and MakeFieldList_().

◆ m_nNodes

SwNodeOffset SwDocUpdateField::m_nNodes
private

to check if the node count changed

Definition at line 149 of file docfld.hxx.

Referenced by MakeFieldList(), and MakeFieldList_().

◆ m_pFieldSortList

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

current field list for calculation

Definition at line 146 of file docfld.hxx.

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

◆ m_rDoc

SwDoc& SwDocUpdateField::m_rDoc
private

Definition at line 151 of file docfld.hxx.

Referenced by SetFieldsDirty().


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