diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-29 15:32:39 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-29 21:31:21 +0100 |
commit | 7a2616501bba1225df3f6bc0225c3d5a7a692002 (patch) | |
tree | 88d8436059c9e88495936c7c9b8101036eeb8263 /sc/source/ui/unoobj/docuno.cxx | |
parent | c395be2cce7030506b0913a139a4e9a5677f5753 (diff) |
tdf#144308: don't cache DoAutoComplete/AutoInput in ScInputHandler
The setting from /org.openoffice.Office.Calc/Input is already cached
in ScModule::m_pAppCfg; synchronizing the two mentioned places was
done in commit 8810812e58f1b014d3156235c1ab5a2d6c73c828.
Another existing cache in ScInputHandler only complicates things,
making the behavior inconsistent when configuring through registry,
com.sun.star.sheet.GlobalSheetSettings, and menu.
So just read the setting when needed from ScModule in methods of
ScInputHandler.
For lok, use ScModelObj::initializeForTiledRendering to set it up
(as was done in 65990058f041c3f1d280a69d411eb4ceacf5a721).
Change-Id: I102d3360aeb45b301f04f4c8bbee1191c23fe0e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126002
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 7e05bf657e6a..23305f7bf32a 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -1195,6 +1195,11 @@ void ScModelObj::initializeForTiledRendering(const css::uno::Sequence<css::beans { SolarMutexGuard aGuard; + // enable word autocompletion + ScAppOptions aAppOptions(SC_MOD()->GetAppOptions()); + aAppOptions.SetAutoComplete(true); + SC_MOD()->SetAppOptions(aAppOptions); + for (const beans::PropertyValue& rValue : rArguments) { if (rValue.Name == ".uno:SpellOnline" && rValue.Value.has<bool>()) |