summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2020-02-24 00:11:16 +0100
committerBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>2020-02-25 08:08:05 +0100
commit619e757283037e2ba91cfe2038fa3778e5249dfd (patch)
treee4d24082d36012dcaa3ec02b7313eedc83545600 /sw/inc
parente5f81b90629c5f3bd733f862d17a57c251acc291 (diff)
add GatherField member function
Change-Id: Ifa2ea333ccccec240cc10374fd6539a8b3f6df46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89316 Tested-by: Jenkins Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/fldbas.hxx1
-rw-r--r--sw/inc/fmtfld.hxx4
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx
index 92a94fb8a096..1cd3b0f85c68 100644
--- a/sw/inc/fldbas.hxx
+++ b/sw/inc/fldbas.hxx
@@ -279,6 +279,7 @@ public:
bool HasHiddenInformationNotes();
void GatherNodeIndex(std::vector<sal_uLong>& rvNodeIndex);
void GatherRefFields(std::vector<SwGetRefField*>& rvRFields, const sal_uInt16 nTyp);
+ void GatherFields(std::vector<SwFormatField*>& rvFormatFields) const;
};
inline void SwFieldType::UpdateFields() const
diff --git a/sw/inc/fmtfld.hxx b/sw/inc/fmtfld.hxx
index 3ddce1977d96..13145771096a 100644
--- a/sw/inc/fmtfld.hxx
+++ b/sw/inc/fmtfld.hxx
@@ -67,6 +67,10 @@ namespace sw {
const sal_uInt16 m_nType;
GatherRefFieldsHint(std::vector<SwGetRefField*>& rvRFields, const sal_uInt16 nType) : m_rvRFields(rvRFields), m_nType(nType) {};
};
+ struct GatherFieldsHint final : SfxHint {
+ std::vector<SwFormatField*>& m_rvFields;
+ GatherFieldsHint(std::vector<SwFormatField*>& rvFields) : m_rvFields(rvFields) {};
+ };
}