LibreOffice Module sw (master) 1
|
#include <docfld.hxx>
Public Member Functions | |
SwDocUpdateField (SwDoc &rDocument) | |
~SwDocUpdateField () | |
const SetGetExpFields * | GetSortList () 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< SetGetExpFields > | m_pFieldSortList |
current field list for calculation More... | |
SwHashTable< SwCalcFieldType > | m_FieldTypeTable |
SwNodeOffset | m_nNodes |
to check if the node count changed More... | |
int | m_nFieldListGetMode |
SwDoc & | m_rDoc |
bool | m_bInUpdateFields: 1 |
currently in an UpdateFields call More... | |
bool | m_bFieldsDirty: 1 |
some fields are invalid More... | |
Definition at line 144 of file docfld.hxx.
SwDocUpdateField::SwDocUpdateField | ( | SwDoc & | rDocument | ) |
Definition at line 1245 of file docfld.cxx.
SwDocUpdateField::~SwDocUpdateField | ( | ) |
Definition at line 1255 of file docfld.cxx.
|
private |
Definition at line 1064 of file docfld.cxx.
References SwDBField::ChgBodyTextFlag(), SwGetExpField::ChgBodyTextFlag(), Database, sw::FindNeighbourFrameForNode(), GetBodyTextNode(), SwPosition::GetContentIndex(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwNodes::GetEndOfExtras(), SwNodes::GetEndOfPostIts(), GetExp, SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetIndex(), SwContentNode::getLayoutFrame(), SwPosition::GetNode(), SwDoc::GetNodes(), SwFrame::GetPhyPageNum(), SwTextAttr::GetStart(), SwTextField::GetTextNode(), SwFrame::IsInDocBody(), m_pFieldSortList, and pos.
Referenced by InsDelFieldInFieldLst(), and MakeFieldList_().
|
private |
Definition at line 1127 of file docfld.cxx.
References sw::FindNeighbourFrameForNode(), GetBodyTextNode(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwNodes::GetEndOfExtras(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetIndex(), SwContentNode::getLayoutFrame(), SwDoc::GetNodes(), SwFrame::GetPhyPageNum(), SwNodes::GoNext(), SwNode::IsSectionNode(), SwNode::IsTextNode(), m_pFieldSortList, and SwPosition::nNode.
Referenced by MakeFieldList_().
|
inline |
Definition at line 188 of file docfld.hxx.
References m_FieldTypeTable.
Referenced by InsertFieldType(), RemoveFieldType(), and SwCalc::VarLook().
|
inline |
Definition at line 165 of file docfld.hxx.
References m_pFieldSortList.
void SwDocUpdateField::InsDelFieldInFieldLst | ( | bool | bIns, |
const SwTextField & | rField | ||
) |
Definition at line 786 of file docfld.cxx.
References Database, DbNextSet, DbNumSet, DbSetNumber, GetBodyNode(), GetExp, SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwField::GetTyp(), HiddenPara, HiddenText, m_pFieldSortList, n, SetExp, SetFieldsDirty(), and SwFieldType::Which().
void SwDocUpdateField::InsertFieldType | ( | const SwFieldType & | rType | ) |
Definition at line 1172 of file docfld.cxx.
References SwHashTable< T >::Find(), GetAppCharClass(), GetFieldTypeTable(), GetName(), CharClass::lowercase(), m_FieldTypeTable, n, SwHash::pNext, SetExp, SetFieldsDirty(), User, and SwFieldType::Which().
|
inline |
Definition at line 177 of file docfld.hxx.
References m_bFieldsDirty.
Referenced by sw::DocumentTimerManager::GetNextIdleJob().
|
inline |
Definition at line 174 of file docfld.hxx.
References m_bInUpdateFields.
Referenced by sw::DocumentTimerManager::GetNextIdleJob().
Definition at line 830 of file docfld.cxx.
References SwNodes::Count(), SwDoc::GetNodes(), m_nFieldListGetMode, m_nNodes, m_pFieldSortList, and MakeFieldList_().
Definition at line 840 of file docfld.cxx.
References SwNodes::Count(), Database, DbNextSet, DbNumSet, DbSetNumber, SwHiddenTextField::Evaluate(), o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), SwDoc::GetAttrPool(), GetBodyNode(), GetBodyNodeGeneric(), SwSection::GetCondition(), SwDoc::GetDBManager(), SwNodes::GetEndOfExtras(), GetExp, SwFormatField::GetField(), GETFLD_ALL, GETFLD_CALC, GETFLD_EXPAND, SwSection::GetFormat(), SwDoc::getIDocumentMarkAccess(), SwNode::GetIndex(), SfxItemPool::GetItemSurrogates(), SwDoc::GetNodes(), SwNode::GetNodes(), SwField::GetPar1(), SwSectionNode::GetSection(), SwSectionFormat::GetSectionNode(), SwDoc::GetSections(), SwField::GetSubType(), SwFormatField::GetTextField(), SwTextField::GetTextNode(), SwField::GetTyp(), nsSwGetSetExpType::GSE_STRING, HiddenPara, HiddenText, SwDBNextSetField::IsCondValid(), SwDBNumSetField::IsCondValid(), SwNodes::IsDocNodes(), SwSection::IsHidden(), m_nFieldListGetMode, m_nNodes, m_pFieldSortList, n, nId, SwDBManager::OpenDataSource(), RES_TXTATR_FIELD(), RES_TXTATR_INPUTFIELD(), SwDBData::sCommand, SwDBData::sDataSource, SwSection::SetCondHidden(), SetExp, SwHiddenParaField::SetHidden(), SwHiddenTextField::SetValue(), SetValue(), sFormula, SwVectorModifyBase< Value >::size(), u, and SwFieldType::Which().
Referenced by MakeFieldList().
void SwDocUpdateField::RemoveFieldType | ( | const SwFieldType & | rType | ) |
Definition at line 1205 of file docfld.cxx.
References SwHashTable< T >::Find(), sw::proofreadingiterator::get(), GetAppCharClass(), GetFieldTypeTable(), GetName(), CharClass::lowercase(), m_FieldTypeTable, n, SwHash::pNext, SetExp, SetFieldsDirty(), User, and SwFieldType::Which().
|
inline |
Definition at line 178 of file docfld.hxx.
References SwDoc::getIDocumentTimerAccess(), m_bFieldsDirty, m_rDoc, and IDocumentTimerAccess::StartIdling().
Referenced by sw::IMPL_LINK_NOARG(), InsDelFieldInFieldLst(), InsertFieldType(), RemoveFieldType(), sw::DocumentFieldsManager::SetFieldsDirty(), and SwTextInputField::UpdateFieldContent().
|
inline |
Definition at line 175 of file docfld.hxx.
References m_bInUpdateFields.
Referenced by sw::IMPL_LINK_NOARG().
|
private |
some fields are invalid
Definition at line 154 of file docfld.hxx.
Referenced by IsFieldsDirty(), and SetFieldsDirty().
|
private |
currently in an UpdateFields call
Definition at line 153 of file docfld.hxx.
Referenced by IsInUpdateFields(), and SetInUpdateFields().
|
private |
Definition at line 147 of file docfld.hxx.
Referenced by GetFieldTypeTable(), InsertFieldType(), and RemoveFieldType().
|
private |
Definition at line 150 of file docfld.hxx.
Referenced by MakeFieldList(), and MakeFieldList_().
|
private |
to check if the node count changed
Definition at line 149 of file docfld.hxx.
Referenced by MakeFieldList(), and MakeFieldList_().
|
private |
current field list for calculation
Definition at line 146 of file docfld.hxx.
Referenced by GetBodyNode(), GetBodyNodeGeneric(), GetSortList(), InsDelFieldInFieldLst(), MakeFieldList(), and MakeFieldList_().
|
private |
Definition at line 151 of file docfld.hxx.
Referenced by SetFieldsDirty().