summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/docfld.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-11-12 13:23:20 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:07 +0100
commit75ae16fc2b9c5bca79b4e5b178d9952a15c4e3bf (patch)
tree89d75e5a174aa200a4e9fc2592c24eff051514c7 /sw/source/core/inc/docfld.hxx
parentac41b860be6f865732b6abafd59259b8c937f8cc (diff)
sw: prefix members of SwDocUpdateField & trivial cleanups
Change-Id: Ied1e89279e3071e0c6c1b414bb23044e6439258c
Diffstat (limited to 'sw/source/core/inc/docfld.hxx')
-rw-r--r--sw/source/core/inc/docfld.hxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/core/inc/docfld.hxx b/sw/source/core/inc/docfld.hxx
index 17704c22448b..c9d5fba43048 100644
--- a/sw/source/core/inc/docfld.hxx
+++ b/sw/source/core/inc/docfld.hxx
@@ -131,25 +131,25 @@ const int GETFLD_EXPAND = 2;
class SwDocUpdateField
{
- std::unique_ptr<SetGetExpFields> pFieldSortLst; // current field list for calculation
- SwHashTable<SwCalcFieldType> aFieldTypeTable;
+ std::unique_ptr<SetGetExpFields> m_pFieldSortList; ///< current field list for calculation
+ SwHashTable<SwCalcFieldType> m_FieldTypeTable;
- sal_uLong nNodes; // if the node count is different
- sal_uInt8 nFieldLstGetMode;
- SwDoc* pDocument;
+ sal_uLong m_nNodes; ///< to check if the node count changed
+ int m_nFieldListGetMode;
+ SwDoc& m_rDoc;
- bool bInUpdateFields : 1; // currently there is an UpdateFields
- bool bFieldsDirty : 1; // some fields are invalid
+ bool m_bInUpdateFields : 1; ///< currently in an UpdateFields call
+ bool m_bFieldsDirty : 1; ///< some fields are invalid
void MakeFieldList_( SwDoc& pDoc, int eGetMode );
void GetBodyNode( const SwTextField& , SwFieldIds nFieldWhich );
void GetBodyNode( const SwSectionNode&);
public:
- SwDocUpdateField(SwDoc* pDocument);
+ SwDocUpdateField(SwDoc& rDocument);
~SwDocUpdateField();
- const SetGetExpFields* GetSortLst() const { return pFieldSortLst.get(); }
+ const SetGetExpFields* GetSortList() const { return m_pFieldSortList.get(); }
void MakeFieldList( SwDoc& rDoc, bool bAll, int eGetMode );
@@ -158,21 +158,21 @@ public:
void InsertFieldType( const SwFieldType& rType );
void RemoveFieldType( const SwFieldType& rType );
- bool IsInUpdateFields() const { return bInUpdateFields; }
- void SetInUpdateFields( bool b ) { bInUpdateFields = b; }
+ bool IsInUpdateFields() const { return m_bInUpdateFields; }
+ void SetInUpdateFields( bool b ) { m_bInUpdateFields = b; }
- bool IsFieldsDirty() const { return bFieldsDirty; }
+ bool IsFieldsDirty() const { return m_bFieldsDirty; }
void SetFieldsDirty( bool b )
{
- bFieldsDirty = b;
+ m_bFieldsDirty = b;
if (b)
{
- pDocument->getIDocumentTimerAccess().StartIdling();
+ m_rDoc.getIDocumentTimerAccess().StartIdling();
}
}
- SwHashTable<SwCalcFieldType> const & GetFieldTypeTable() const { return aFieldTypeTable; }
+ SwHashTable<SwCalcFieldType> const& GetFieldTypeTable() const { return m_FieldTypeTable; }
};
#endif