summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/langhelper.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-19 20:39:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-20 13:47:25 +0100
commit9b3ce3a3192eb960341fc0d24423657f0559eff2 (patch)
treeedb8633226c4287b3398cdf48a6be7be9a00f2f8 /sw/source/uibase/shells/langhelper.cxx
parentbeafe72de3427f20c0cb59f7c7ff7852ebcc7427 (diff)
add GetInputLanguage to EditView
and hide the need to expose its vcl::Window Change-Id: Ide8a2e2500116af412a8717052a300e8ef4d1a48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112782 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/shells/langhelper.cxx')
-rw-r--r--sw/source/uibase/shells/langhelper.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/source/uibase/shells/langhelper.cxx b/sw/source/uibase/shells/langhelper.cxx
index aa7f5ae06089..b5ceb23e5ddb 100644
--- a/sw/source/uibase/shells/langhelper.cxx
+++ b/sw/source/uibase/shells/langhelper.cxx
@@ -19,8 +19,6 @@
#include <string.h>
-#include <vcl/window.hxx>
-
#include <wrtsh.hxx>
#include <doc.hxx>
#include <docary.hxx>
@@ -67,11 +65,7 @@ namespace SwLangHelper
// get keyboard language
OUString aKeyboardLang;
- LanguageType nLang = LANGUAGE_DONTKNOW;
-
- vcl::Window* pWin = rEditView.GetWindow();
- if(pWin)
- nLang = pWin->GetInputLanguage();
+ LanguageType nLang = rEditView.GetInputLanguage();
if (nLang != LANGUAGE_DONTKNOW && nLang != LANGUAGE_SYSTEM)
aKeyboardLang = SvtLanguageTable::GetLanguageString( nLang );