diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-22 12:26:52 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-22 12:34:59 +0100 |
commit | 9955dbebbdf1b7d36fec272dfea46f57fab47e19 (patch) | |
tree | 80705ccc2382e7440ea76f62a544d64d12d1ce4f /framework | |
parent | 9c5d6ea5efb5f56a4ac96b4a8505ed84abbbc6bf (diff) |
AllSettings with LanguageTag
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Library_fwe.mk | 1 | ||||
-rw-r--r-- | framework/source/classes/fwlresid.cxx | 2 | ||||
-rw-r--r-- | framework/source/fwe/classes/fwkresid.cxx | 2 | ||||
-rw-r--r-- | framework/source/fwi/helper/mischelper.cxx | 4 | ||||
-rw-r--r-- | framework/source/services/license.cxx | 2 | ||||
-rw-r--r-- | framework/source/uielement/controlmenucontroller.cxx | 4 | ||||
-rw-r--r-- | framework/source/uielement/fontsizemenucontroller.cxx | 2 | ||||
-rw-r--r-- | framework/source/uielement/toolbarsmenucontroller.cxx | 2 |
8 files changed, 10 insertions, 9 deletions
diff --git a/framework/Library_fwe.mk b/framework/Library_fwe.mk index 1723d723f532..ebbfc1709c03 100644 --- a/framework/Library_fwe.mk +++ b/framework/Library_fwe.mk @@ -37,6 +37,7 @@ $(eval $(call gb_Library_use_libraries,fwe,\ cppuhelper \ fwi \ sal \ + i18nisolang1 \ svl \ svt \ tl \ diff --git a/framework/source/classes/fwlresid.cxx b/framework/source/classes/fwlresid.cxx index 9d3d435692f2..ba3987a0c01d 100644 --- a/framework/source/classes/fwlresid.cxx +++ b/framework/source/classes/fwlresid.cxx @@ -34,7 +34,7 @@ ResMgr* FwlResId::GetResManager() if ( !pResMgr ) { SolarMutexGuard aSolarGuard; - pResMgr = ResMgr::CreateResMgr("fwe", Application::GetSettings().GetUILocale()); + pResMgr = ResMgr::CreateResMgr("fwe", Application::GetSettings().GetUILanguageTag().getLocale()); } return pResMgr; diff --git a/framework/source/fwe/classes/fwkresid.cxx b/framework/source/fwe/classes/fwkresid.cxx index 3533506f1247..ff78bb393238 100644 --- a/framework/source/fwe/classes/fwkresid.cxx +++ b/framework/source/fwe/classes/fwkresid.cxx @@ -34,7 +34,7 @@ ResMgr* FwkResId::GetResManager() if ( !pResMgr ) { SolarMutexGuard aSolarGuard; - pResMgr = ResMgr::CreateResMgr("fwe", Application::GetSettings().GetUILocale()); + pResMgr = ResMgr::CreateResMgr("fwe", Application::GetSettings().GetUILanguageTag().getLocale()); } return pResMgr; diff --git a/framework/source/fwi/helper/mischelper.cxx b/framework/source/fwi/helper/mischelper.cxx index 379ec36e67a0..bf7d275b85e7 100644 --- a/framework/source/fwi/helper/mischelper.cxx +++ b/framework/source/fwi/helper/mischelper.cxx @@ -159,7 +159,7 @@ void FillLangItems( std::set< OUString > &rLangItems, //2--System const AllSettings& rAllSettings = Application::GetSettings(); - LanguageType rSystemLanguage = rAllSettings.GetLanguage(); + LanguageType rSystemLanguage = rAllSettings.GetLanguageTag().getLanguageType(); if( rSystemLanguage != LANGUAGE_DONTKNOW ) { if ( IsScriptTypeMatchingToLanguage( nScriptType, rSystemLanguage )) @@ -167,7 +167,7 @@ void FillLangItems( std::set< OUString > &rLangItems, } //3--UI - LanguageType rUILanguage = rAllSettings.GetUILanguage(); + LanguageType rUILanguage = rAllSettings.GetUILanguageTag().getLanguageType(); if( rUILanguage != LANGUAGE_DONTKNOW ) { if ( IsScriptTypeMatchingToLanguage( nScriptType, rUILanguage )) diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx index 8e4c1d395afd..e5c0b3b1f128 100644 --- a/framework/source/services/license.cxx +++ b/framework/source/services/license.cxx @@ -224,7 +224,7 @@ css::uno::Any SAL_CALL License::execute(const css::uno::Sequence< css::beans::Na ::rtl::OUString aLangString; ::com::sun::star::lang::Locale aLocale; AllSettings aSettings(Application::GetSettings()); - aLocale = aSettings.GetUILocale(); + aLocale = aSettings.GetUILanguageTag().getLocale(); ResMgr* pResMgr = ResMgr::SearchCreateResMgr("fwe", aLocale); aLangString = aLocale.Language; diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx index 408af0b267b9..5ee41bc0da27 100644 --- a/framework/source/uielement/controlmenucontroller.cxx +++ b/framework/source/uielement/controlmenucontroller.cxx @@ -206,7 +206,7 @@ ControlMenuController::~ControlMenuController() // private function void ControlMenuController::updateImagesPopupMenu( PopupMenu* pPopupMenu ) { - ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILocale()); + ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag().getLocale()); ResId aResId( RID_SVXIMGLIST_FMEXPL, *pResMgr ); aResId.SetRT( RSC_IMAGELIST ); @@ -355,7 +355,7 @@ void ControlMenuController::impl_setPopupMenu() { if ( m_pResPopupMenu == 0 ) { - ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILocale()); + ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag().getLocale()); if ( pResMgr ) { ResId aResId( RID_FMSHELL_CONVERSIONMENU, *pResMgr ); diff --git a/framework/source/uielement/fontsizemenucontroller.cxx b/framework/source/uielement/fontsizemenucontroller.cxx index f8d050e692a4..87e1823bab1c 100644 --- a/framework/source/uielement/fontsizemenucontroller.cxx +++ b/framework/source/uielement/fontsizemenucontroller.cxx @@ -172,7 +172,7 @@ void FontSizeMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& r // first insert font size names (for simplified/traditional chinese) float fPoint; - FontSizeNames aFontSizeNames( Application::GetSettings().GetUILanguage() ); + FontSizeNames aFontSizeNames( Application::GetSettings().GetUILanguageTag().getLanguageType() ); m_pHeightArray = new long[nSizeCount+aFontSizeNames.Count()]; rtl::OUString aCommand; diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx index c5979614dfa8..b95af5f80936 100644 --- a/framework/source/uielement/toolbarsmenucontroller.cxx +++ b/framework/source/uielement/toolbarsmenucontroller.cxx @@ -141,7 +141,7 @@ ToolbarsMenuController::ToolbarsMenuController( const ::com::sun::star::uno::Ref m_aPropResourceURL( "ResourceURL" ), m_bModuleIdentified( sal_False ), m_bResetActive( sal_False ), - m_aIntlWrapper( xServiceManager, Application::GetSettings().GetLocale() ) + m_aIntlWrapper( xServiceManager, Application::GetSettings().GetLanguageTag().getLocale() ) { } |