diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-23 21:12:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-29 09:59:26 +0100 |
commit | 7ecf1c5aceec1cf93e00f4caf94d06e78f678278 (patch) | |
tree | 10c15c1874fcbd2fc4c456db7aec2bd20144b7bb /sc/source/ui/docshell | |
parent | a8a2c49d1984447297085824b593039908498fe5 (diff) |
move inline spelling setting out of document and into viewshell
like what writer does, so one view of a document can have spelling
enabled and another disabled
Change-Id: I9eae02fd1a2def56bfa9399860e416180fc178c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163874
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docsh3.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index 922c2c358a26..f00f40d853a0 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -427,14 +427,12 @@ void ScDocShell::InitOptions(bool bForLoading) // called from InitNew and L // Settings from the SpellCheckCfg get into Doc- and ViewOptions LanguageType nDefLang, nCjkLang, nCtlLang; - bool bAutoSpell; - ScModule::GetSpellSettings( nDefLang, nCjkLang, nCtlLang, bAutoSpell ); + ScModule::GetSpellSettings( nDefLang, nCjkLang, nCtlLang ); ScModule* pScMod = SC_MOD(); ScDocOptions aDocOpt = pScMod->GetDocOptions(); ScFormulaOptions aFormulaOpt = pScMod->GetFormulaOptions(); ScViewOptions aViewOpt = pScMod->GetViewOptions(); - aDocOpt.SetAutoSpell( bAutoSpell ); if (!comphelper::IsFuzzing()) { diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 00477ab1107d..ca2f5d2b41f9 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1144,9 +1144,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) } else if ( aLangText == "RESET_LANGUAGES" ) { - bool bAutoSpell; - - ScModule::GetSpellSettings(eLang, eCjk, eCtl, bAutoSpell); + ScModule::GetSpellSettings(eLang, eCjk, eCtl); rDoc.SetLanguage(eLang, eCjk, eCtl); } else |