diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2020-10-22 19:45:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-10-23 11:53:52 +0200 |
commit | 1a356dc0262022f8c0880d992f628507fdca408e (patch) | |
tree | 196eed8d0ae8152916dc4f2f6194f870520e5572 /sc/source/ui/inc/gridwin.hxx | |
parent | fb8286255ff8d9872156a73dc0cf32ab04bf8f2a (diff) |
tdf#136694 - share spelling context across all ScGridWindows.
Adding new ScGridWindows later (as we do for split panes)
didn't call EnableAutoSpell on them; also duplicating the
spell-checking cache looks wasteful, so share it.
Change-Id: Ieb67bb292590a097bb5a59d369416a094c54c954
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104704
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/ui/inc/gridwin.hxx')
-rw-r--r-- | sc/source/ui/inc/gridwin.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index 5623a0c92d11..a576375283b9 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -142,7 +142,7 @@ class SAL_DLLPUBLIC_RTTI ScGridWindow : public vcl::Window, public DropTargetHel // zoom levels demanded from a ScGridWindow instance. std::vector<LOKCursorEntry> maLOKLastCursor; - std::unique_ptr<sc::SpellCheckContext> mpSpellCheckCxt; + std::shared_ptr<sc::SpellCheckContext> mpSpellCheckCxt; ScViewData* pViewData; ScSplitPos const eWhich; @@ -428,7 +428,7 @@ public: void CursorChanged(); void DrawLayerCreated(); - void EnableAutoSpell( bool bEnable ); + void SetAutoSpellContext( const std::shared_ptr<sc::SpellCheckContext> &ctx ); void ResetAutoSpell(); void ResetAutoSpellForContentChange(); void SetAutoSpellData( SCCOL nPosX, SCROW nPosY, const std::vector<editeng::MisspellRanges>* pRanges ); |