20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_DOCFLD_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_DOCFLD_HXX
65 const SwIndex* pIdx =
nullptr );
84 {
return TEXTFIELD == m_eSetGetExpFieldType ? m_CNTNT.pTextField :
nullptr; }
86 {
return SECTIONNODE == m_eSetGetExpFieldType ? m_CNTNT.pSection :
nullptr; }
88 {
return TEXTINET == m_eSetGetExpFieldType ? m_CNTNT.pTextINet :
nullptr; }
90 {
return FLYFRAME == m_eSetGetExpFieldType ? m_CNTNT.pFlyFormat :
nullptr; }
94 const void*
GetPointer()
const {
return m_CNTNT.pTextField; }
112 HashStr(
const OUString& rName,
const OUString& rText,
HashStr* );
120 :
SwHash( rStr ), pFieldType( pFieldTyp )
Instances of SwFields and those derived from it occur 0 to n times.
OUString LookString(SwHashTable< HashStr > const &rTable, const OUString &rName)
Look up the Name, if it is present, return its String, otherwise return an empty String.
bool m_bInUpdateFields
currently in an UpdateFields call
Marks a position in the document model.
const SwTextTOXMark * pTextTOX
SetGetExpField(const SwNodeIndex &rNdIdx, const SwTextField *pField=nullptr, const SwIndex *pIdx=nullptr)
sal_Int32 GetContent() const
bool IsInUpdateFields() const
bool IsFieldsDirty() const
SwDocUpdateField(SwDoc &rDocument)
const void * GetPointer() const
const SwNode * GetNodeFromContent() const
bool m_bFieldsDirty
some fields are invalid
virtual void StartIdling()=0
Start the idle task.
void SetBodyPos(const SwContentFrame &rFrame)
void GetBodyNode(const SwTextField &, SwFieldIds nFieldWhich)
void RemoveFieldType(const SwFieldType &rType)
std::unique_ptr< SetGetExpFields > m_pFieldSortList
current field list for calculation
void SetInUpdateFields(bool b)
Marks a character position inside a document model node.
sal_Int32 GetCntPosFromContent() const
const SwFlyFrameFormat * GetFlyFormat() const
Marks a node in the document model.
const SwFieldType * pFieldType
sal_uLong GetNode() const
const SetGetExpFields * GetSortList() const
sal_uLong m_nNodes
to check if the node count changed
const SwSection * GetSection() const
bool operator<(const SetGetExpField &rField) const
const SwSection * pSection
SwHashTable< SwCalcFieldType > const & GetFieldTypeTable() const
void MakeFieldList_(SwDoc &pDoc, int eGetMode)
void SetFieldsDirty(bool b)
enum SetGetExpField::SetGetExpFieldType m_eSetGetExpFieldType
const SwTextINetFormat * pTextINet
const SwTextINetFormat * GetINetFormat() const
SwTableBox is one table cell in the document model.
HashStr(const OUString &rName, const OUString &rText, HashStr *)
const SwTextField * GetTextField() const
SwCalcFieldType(const OUString &rStr, const SwFieldType *pFieldTyp)
void GetPosOfContent(SwPosition &rPos) const
const SwTextField * pTextField
void MakeFieldList(SwDoc &rDoc, bool bAll, int eGetMode)
void InsertFieldType(const SwFieldType &rType)
const SwFlyFrameFormat * pFlyFormat
bool operator==(const SetGetExpField &rField) const
SwHashTable< SwCalcFieldType > m_FieldTypeTable
T should be a subclass of SwHash.
IDocumentTimerAccess const & getIDocumentTimerAccess() const
union SetGetExpField::@4 m_CNTNT
void InsDelFieldInFieldLst(bool bIns, const SwTextField &rField)
Base class of the Writer document model elements.