summaryrefslogtreecommitdiff
path: root/sw/inc/doc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-09-07 15:52:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-09-07 19:18:15 +0200
commitad74339c052667b4d10fc655e1753db92420e2bb (patch)
tree991a492c2470a29a756b5fe8e8310f63159e0f5d /sw/inc/doc.hxx
parent911c3a840f5ce34e1fb7e34a144e4e44204eb7d9 (diff)
dont use GetItemSurrogates for gathering SwFormatRefMark
which is very expensive these days Change-Id: I8698d3bb9a7d49a5444ed901859f636647e4d116 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172996 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r--sw/inc/doc.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 2652b56882f9..a8fdadfd4b06 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -1333,6 +1333,8 @@ public:
If array pointer is 0 return only whether a RefMark is set in document. */
SW_DLLPUBLIC sal_uInt16 GetRefMarks( std::vector<OUString>* = nullptr ) const;
SW_DLLPUBLIC void GetRefMarks( std::vector<const SwFormatRefMark*>& ) const;
+ /// Iterate over all SwFormatRefMark, if the function returns false, iteration is stopped
+ SW_DLLPUBLIC void ForEachRefMark( const std::function<bool(const SwFormatRefMark&)>& ) const;
void DeleteFormatRefMark(const SwFormatRefMark* pFormatRefMark);