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 /basic/source/sbx | |
parent | 9c5d6ea5efb5f56a4ac96b4a8505ed84abbbc6bf (diff) |
AllSettings with LanguageTag
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
Diffstat (limited to 'basic/source/sbx')
-rw-r--r-- | basic/source/sbx/sbxdate.cxx | 4 | ||||
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxdate.cxx b/basic/source/sbx/sbxdate.cxx index 7c0182791a84..6d0a4073a64a 100644 --- a/basic/source/sbx/sbxdate.cxx +++ b/basic/source/sbx/sbxdate.cxx @@ -96,7 +96,7 @@ double ImpGetDate( const SbxValues* p ) } else { - LanguageType eLangType = GetpApp()->GetSettings().GetLanguage(); + LanguageType eLangType = GetpApp()->GetSettings().GetLanguageTag().getLanguageType(); SvNumberFormatter* pFormatter; com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > @@ -270,7 +270,7 @@ start: } Color* pColor; - LanguageType eLangType = GetpApp()->GetSettings().GetLanguage(); + LanguageType eLangType = GetpApp()->GetSettings().GetLanguageTag().getLanguageType(); SvNumberFormatter* pFormatter; com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xFactory = comphelper::getProcessServiceFactory(); diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index 111c8b3285b3..f9a328ea26bf 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -629,7 +629,7 @@ ResMgr* implGetResMgr( void ) static ResMgr* pResMgr = NULL; if( !pResMgr ) { - ::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale(); + ::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale(); pResMgr = ResMgr::CreateResMgr("sb", aLocale ); } return pResMgr; @@ -725,7 +725,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const return; } - LanguageType eLangType = GetpApp()->GetSettings().GetLanguage(); + LanguageType eLangType = GetpApp()->GetSettings().GetLanguageTag().getLanguageType(); com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xFactory = comphelper::getProcessServiceFactory(); SvNumberFormatter aFormatter( xFactory, eLangType ); @@ -853,7 +853,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const { SbxAppData& rAppData = GetSbxData_Impl(); - LanguageType eLangType = GetpApp()->GetSettings().GetLanguage(); + LanguageType eLangType = GetpApp()->GetSettings().GetLanguageTag().getLanguageType(); if( rAppData.pBasicFormater ) { if( rAppData.eBasicFormaterLangType != eLangType ) |