summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-06-06 09:59:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-06-07 15:55:33 +0200
commitb542d90447230e1d6705a665f3a3e524fa966b5d (patch)
tree0c6a497714dd6c759ea4611528f4b70f11c8bba9 /include/svl
parent734d53534a6ca023e9c2eb819cde889b01818f1b (diff)
tdf#155376 partially convert SvCTLOptions to officecfg
When accessibility is enabled, Calc will add tens of thousands of listeners. We then spend a significant chunk of time creating SvCTLOptions objects (attached to ImpEditEngine) and adding and removing those objects from the related listener lists. But the required information is already globally cached by the officecfg module, so we can avoid that overhead and just fetch it directly from officecfg. Change-Id: I7ff55fd7c4926866eb7086812275ba8bd6e84c75 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152645 Tested-by: Jenkins Reviewed-by: Patrick Luby <plubius@neooffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/ctloptions.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/svl/ctloptions.hxx b/include/svl/ctloptions.hxx
index 5140907ddedf..fe3432658929 100644
--- a/include/svl/ctloptions.hxx
+++ b/include/svl/ctloptions.hxx
@@ -39,16 +39,16 @@ public:
virtual ~SvtCTLOptions() override;
void SetCTLFontEnabled( bool _bEnabled );
- bool IsCTLFontEnabled() const;
+ static bool IsCTLFontEnabled();
void SetCTLSequenceChecking( bool _bEnabled );
- bool IsCTLSequenceChecking() const;
+ static bool IsCTLSequenceChecking();
void SetCTLSequenceCheckingRestricted( bool _bEnable );
- bool IsCTLSequenceCheckingRestricted() const;
+ static bool IsCTLSequenceCheckingRestricted();
void SetCTLSequenceCheckingTypeAndReplace( bool _bEnable );
- bool IsCTLSequenceCheckingTypeAndReplace() const;
+ static bool IsCTLSequenceCheckingTypeAndReplace();
enum CursorMovement
{
@@ -56,7 +56,7 @@ public:
MOVEMENT_VISUAL
};
void SetCTLCursorMovement( CursorMovement _eMovement );
- CursorMovement GetCTLCursorMovement() const;
+ static CursorMovement GetCTLCursorMovement();
enum TextNumerals
{
@@ -66,7 +66,7 @@ public:
NUMERALS_CONTEXT
};
void SetCTLTextNumerals( TextNumerals _eNumerals );
- TextNumerals GetCTLTextNumerals() const;
+ static TextNumerals GetCTLTextNumerals();
enum EOption
{