diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-09-08 11:03:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-09 19:23:57 +0200 |
commit | 8849c1d9cc7fbf990b1e1633b59a09c818dabc72 (patch) | |
tree | a2e9877bb55ed5fc88c9407a2a53010ca4c1edac /sw/inc | |
parent | 4f2a44849e74074b5c2741a8dec52229cf7d45e4 (diff) |
dont use GetItemSurrogates for gathering SwFormatField
which is very expensive these days
Change-Id: I830e7829ee3b919647f44ab060bf170e5cf42189
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173035
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/doc.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 6da96bd2cb82..1a4fff14b4c2 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1437,6 +1437,9 @@ public: /// Iterate over all SvxOverlineItem, if the function returns false, iteration is stopped SW_DLLPUBLIC void ForEachOverlineItem( const std::function<bool(const SvxOverlineItem&)>& ) const; + /// Iterate over all SwFormatField, if the function returns false, iteration is stopped + void ForEachFormatField( TypedWhichId<SwFormatField> nWhich, const std::function<bool(const SwFormatField&)>& ) const; + // Call into intransparent Basic; expect possible Return String. void ExecMacro( const SvxMacro& rMacro, OUString* pRet, SbxArray* pArgs ); |