Kaydet (Commit) a0e0d907 authored tarafından Miklos Vajna's avatar Miklos Vajna

Disable spellcheck when LOK is active

It's not useful when viewing, and for editing probably a dedicated
overlay would be better (like the one we have for cursor/selections
already).

Disable for sw/sd explicitly, sc had it disabled implicitly already.

Change-Id: I7134f5d1a1546787c22019e6b1abdc0dd887f888
(cherry picked from commit c92ebc85)
üst c925a321
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
#include <tools/tenccvt.hxx> #include <tools/tenccvt.hxx>
#include <vcl/settings.hxx> #include <vcl/settings.hxx>
#include <comphelper/lok.hxx>
using namespace ::sd; using namespace ::sd;
using namespace ::com::sun::star; using namespace ::com::sun::star;
...@@ -229,7 +230,8 @@ SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh) ...@@ -229,7 +230,8 @@ SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh)
SetLanguage( MsLangId::resolveSystemLanguageByScriptType(aOptions.nDefaultLanguage_CTL, SetLanguage( MsLangId::resolveSystemLanguageByScriptType(aOptions.nDefaultLanguage_CTL,
::com::sun::star::i18n::ScriptType::COMPLEX), EE_CHAR_LANGUAGE_CTL ); ::com::sun::star::i18n::ScriptType::COMPLEX), EE_CHAR_LANGUAGE_CTL );
mbOnlineSpell = aOptions.bIsSpellAuto; if (!comphelper::LibreOfficeKit::isActive())
mbOnlineSpell = aOptions.bIsSpellAuto;
} }
LanguageType eRealLanguage = MsLangId::getRealLanguage( meLanguage ); LanguageType eRealLanguage = MsLangId::getRealLanguage( meLanguage );
......
...@@ -314,6 +314,9 @@ bool SwViewOption::IsAutoCompleteWords() ...@@ -314,6 +314,9 @@ bool SwViewOption::IsAutoCompleteWords()
void SwViewOption::SetOnlineSpell(bool b) void SwViewOption::SetOnlineSpell(bool b)
{ {
if (comphelper::LibreOfficeKit::isActive())
return;
b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL); b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment