summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/access/acccontext.cxx2
-rw-r--r--sw/source/core/bastyp/init.cxx2
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
-rw-r--r--sw/source/ui/app/docshini.cxx2
-rw-r--r--sw/source/ui/config/optpage.cxx2
-rw-r--r--sw/source/ui/docvw/srcedtw.cxx4
-rw-r--r--sw/source/ui/lingu/olmenu.cxx10
7 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index d4efa24e2dab..ee8378706bce 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -702,7 +702,7 @@ lang::Locale SAL_CALL SwAccessibleContext::getLocale (void)
{
SolarMutexGuard aGuard;
- lang::Locale aLoc( Application::GetSettings().GetLocale() );
+ lang::Locale aLoc( Application::GetSettings().GetLanguageTag().getLocale() );
return aLoc;
}
diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx
index ede0dbdb1f6f..678e074a6c3d 100644
--- a/sw/source/core/bastyp/init.cxx
+++ b/sw/source/core/bastyp/init.cxx
@@ -824,7 +824,7 @@ void SwCalendarWrapper::LoadDefaultCalendar( sal_uInt16 eLang )
LanguageType GetAppLanguage()
{
- return Application::GetSettings().GetLanguage();
+ return Application::GetSettings().GetLanguageTag().getLanguageType();
}
CollatorWrapper& GetAppCollator()
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index f74bd1dc4702..925543b3acfd 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -5581,7 +5581,7 @@ WW8Fib::WW8Fib(sal_uInt8 nVer)
// --> #i90932#
lid = 0x409; // LANGUAGE_ENGLISH_US
- LanguageType nLang = Application::GetSettings().GetLanguage();
+ LanguageType nLang = Application::GetSettings().GetLanguageTag().getLanguageType();
fFarEast = MsLangId::isCJK(nLang);
if (fFarEast)
lidFE = nLang;
diff --git a/sw/source/ui/app/docshini.cxx b/sw/source/ui/app/docshini.cxx
index e0ce4e011849..b92062a343fd 100644
--- a/sw/source/ui/app/docshini.cxx
+++ b/sw/source/ui/app/docshini.cxx
@@ -213,7 +213,7 @@ sal_Bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor )
// #107782# OJ use korean language if latin was used
if ( i == 0 )
{
- LanguageType eUiLanguage = Application::GetSettings().GetUILanguage();
+ LanguageType eUiLanguage = Application::GetSettings().GetUILanguageTag().getLanguageType();
if (MsLangId::isKorean(eUiLanguage))
eLanguage = eUiLanguage;
}
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 70d3d8549097..2376e8f16a12 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -2251,7 +2251,7 @@ IMPL_LINK_NOARG(SwRedlineOptionsTabPage, ChangedMaskPrevHdl)
void SwRedlineOptionsTabPage::InitFontStyle(SvxFontPrevWindow& rExampleWin)
{
const AllSettings& rAllSettings = Application::GetSettings();
- LanguageType eLangType = rAllSettings.GetUILanguage();
+ LanguageType eLangType = rAllSettings.GetUILanguageTag().getLanguageType();
Color aBackCol( rAllSettings.GetStyleSettings().GetWindowColor() );
SvxFont& rFont = rExampleWin.GetFont();
SvxFont& rCJKFont = rExampleWin.GetCJKFont();
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx
index c97bef2f8385..405000e017b2 100644
--- a/sw/source/ui/docvw/srcedtw.cxx
+++ b/sw/source/ui/docvw/srcedtw.cxx
@@ -963,7 +963,7 @@ static sal_Bool lcl_GetLanguagesForEncoding(rtl_TextEncoding eEnc, LanguageType
case RTL_TEXTENCODING_TIS_620 :
aLanguages[0] = LANGUAGE_THAI;
break;
- default: aLanguages[0] = Application::GetSettings().GetUILanguage();
+ default: aLanguages[0] = Application::GetSettings().GetUILanguageTag().getLanguageType();
}
return aLanguages[0] != LANGUAGE_SYSTEM;
}
@@ -986,7 +986,7 @@ void SwSrcEditWindow::SetFont()
}
else
aFont = OutputDevice::GetDefaultFont(DEFAULTFONT_SANS_UNICODE,
- Application::GetSettings().GetLanguage(), 0, this);
+ Application::GetSettings().GetLanguageTag().getLanguageType(), 0, this);
sFontName = aFont.GetName();
}
const SvxFontListItem* pFontListItem =
diff --git a/sw/source/ui/lingu/olmenu.cxx b/sw/source/ui/lingu/olmenu.cxx
index a7013114da55..9bc947ef4569 100644
--- a/sw/source/ui/lingu/olmenu.cxx
+++ b/sw/source/ui/lingu/olmenu.cxx
@@ -118,7 +118,7 @@ static LanguageType lcl_CheckLanguage(
lang::Locale aLocale( xLangGuess->guessPrimaryLanguage( rText, 0, rText.getLength()) );
// get language as from "Tools/Options - Language Settings - Languages: Locale setting"
- LanguageType nTmpLang = Application::GetSettings().GetLanguage();
+ LanguageType nTmpLang = Application::GetSettings().GetLanguageTag().getLanguageType();
// if the result from language guessing does not provide a 'Country' part
// try to get it by looking up the locale setting of the office.
@@ -150,9 +150,9 @@ static LanguageType lcl_CheckLanguage(
// The default document language from "Tools/Options - Language Settings - Languages: Western"
aLangList[0] = MsLangId::resolveSystemLanguageByScriptType(aLinguOpt.nDefaultLanguage, ::com::sun::star::i18n::ScriptType::LATIN);
// The one from "Tools/Options - Language Settings - Languages: User interface"
- aLangList[1] = rSettings.GetUILanguage();
+ aLangList[1] = rSettings.GetUILanguageTag().getLanguageType();
// The one from "Tools/Options - Language Settings - Languages: Locale setting"
- aLangList[2] = rSettings.GetLanguage();
+ aLangList[2] = rSettings.GetLanguageTag().getLanguageType();
// en-US
aLangList[3] = LANGUAGE_ENGLISH_US;
#if OSL_DEBUG_LEVEL > 1
@@ -223,7 +223,7 @@ void SwSpellPopup::fillLangPopupMenu(
//2--System
const AllSettings& rAllSettings = Application::GetSettings();
- LanguageType rSystemLanguage = rAllSettings.GetLanguage();
+ LanguageType rSystemLanguage = rAllSettings.GetLanguageTag().getLanguageType();
if (rSystemLanguage != LANGUAGE_DONTKNOW)
{
if (lcl_checkScriptType( nScriptType, rSystemLanguage ))
@@ -231,7 +231,7 @@ void SwSpellPopup::fillLangPopupMenu(
}
//3--UI
- LanguageType rUILanguage = rAllSettings.GetUILanguage();
+ LanguageType rUILanguage = rAllSettings.GetUILanguageTag().getLanguageType();
if (rUILanguage != LANGUAGE_DONTKNOW)
{
if (lcl_checkScriptType(nScriptType, rUILanguage ))