summaryrefslogtreecommitdiff
path: root/sw/inc/doc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-09-07 19:17:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-09-07 20:45:22 +0200
commit774b578c65c2443f2ea2b95bc6402a49f0020ea0 (patch)
treedd8bd71db7818c37de5916a635890a0ee3106f3e /sw/inc/doc.hxx
parent50d373a275626d894dc885d4c2cc28a9f9b8b912 (diff)
dont use GetItemSurrogates for gathering SwTOXMark
which is very expensive these days Change-Id: I412c30310f001a7b7c9350a7e0da62bdcddc498c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173001 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 a8fdadfd4b06..e09e51aeb0ca 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -937,6 +937,8 @@ public:
void DeleteTOXMark( const SwTOXMark* pTOXMark );
SW_DLLPUBLIC const SwTOXMark& GotoTOXMark( const SwTOXMark& rCurTOXMark,
SwTOXSearch eDir, bool bInReadOnly );
+ /// Iterate over all SwTOXMark, if the function returns false, iteration is stopped
+ SW_DLLPUBLIC void ForEachTOXMark( const std::function<bool(const SwTOXMark&)>& ) const;
// Insert/Renew table/index
SW_DLLPUBLIC SwTOXBaseSection* InsertTableOf( const SwPosition& rPos,