summaryrefslogtreecommitdiff
path: root/editeng/source/items
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-16 23:22:11 +0100
committerEike Rathke <erack@redhat.com>2012-11-16 23:25:22 +0100
commit378e437fbe313e87b7e56f8f0a1fc4009470679c (patch)
tree7a1d6aea330b484521f7625acc5873546f5508cd /editeng/source/items
parent9e818a2381e75928fbd2a208f79ff67712bdad59 (diff)
use LanguageTag
Change-Id: If056193c803f70f8707373ed7ff7b1abbf953852
Diffstat (limited to 'editeng/source/items')
-rw-r--r--editeng/source/items/textitem.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 401ca6f8a0d2..25f998b047db 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -37,7 +37,7 @@
#include <tools/tenccvt.hxx>
#include <rtl/ustring.hxx>
-#include <i18npool/mslangid.hxx>
+#include <i18npool/languagetag.hxx>
#include <svl/itemset.hxx>
#include <svtools/langtab.hxx>
@@ -2607,7 +2607,7 @@ bool SvxLanguageItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
rVal <<= (sal_Int16)(GetValue());
break;
case MID_LANG_LOCALE:
- lang::Locale aRet( MsLangId::convertLanguageToLocale( GetValue(), false));
+ lang::Locale aRet( LanguageTag( GetValue()).getLocale( false));
rVal <<= aRet;
break;
}
@@ -2635,7 +2635,7 @@ bool SvxLanguageItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
return sal_False;
if (!aLocale.Language.isEmpty() || !aLocale.Country.isEmpty())
- SetValue(MsLangId::convertLocaleToLanguage( aLocale ));
+ SetValue( LanguageTag( aLocale ).getLanguageType( false));
else
SetValue(LANGUAGE_NONE);
}