summaryrefslogtreecommitdiff
path: root/editeng/source/uno
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source/uno')
-rw-r--r--editeng/source/uno/UnoForbiddenCharsTable.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/uno/UnoForbiddenCharsTable.cxx b/editeng/source/uno/UnoForbiddenCharsTable.cxx
index cee34d950507..12dcee9be9a0 100644
--- a/editeng/source/uno/UnoForbiddenCharsTable.cxx
+++ b/editeng/source/uno/UnoForbiddenCharsTable.cxx
@@ -52,7 +52,7 @@ ForbiddenCharacters SvxUnoForbiddenCharsTable::getForbiddenCharacters( const Loc
if(!mxForbiddenChars.is())
throw RuntimeException();
- const LanguageType eLang = SvxLocaleToLanguage( rLocale );
+ const LanguageType eLang = LanguageTag( rLocale ).getLanguageType();
const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, sal_False );
if(!pForbidden)
throw NoSuchElementException();
@@ -68,7 +68,7 @@ sal_Bool SvxUnoForbiddenCharsTable::hasForbiddenCharacters( const Locale& rLocal
if(!mxForbiddenChars.is())
return sal_False;
- const LanguageType eLang = SvxLocaleToLanguage( rLocale );
+ const LanguageType eLang = LanguageTag( rLocale ).getLanguageType();
const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, sal_False );
return NULL != pForbidden;
@@ -82,7 +82,7 @@ void SvxUnoForbiddenCharsTable::setForbiddenCharacters(const Locale& rLocale, co
if(!mxForbiddenChars.is())
throw RuntimeException();
- const LanguageType eLang = SvxLocaleToLanguage( rLocale );
+ const LanguageType eLang = LanguageTag( rLocale ).getLanguageType();
mxForbiddenChars->SetForbiddenCharacters( eLang, rForbiddenCharacters );
onChange();
@@ -96,7 +96,7 @@ void SvxUnoForbiddenCharsTable::removeForbiddenCharacters( const Locale& rLocale
if(!mxForbiddenChars.is())
throw RuntimeException();
- const LanguageType eLang = SvxLocaleToLanguage( rLocale );
+ const LanguageType eLang = LanguageTag( rLocale ).getLanguageType();
mxForbiddenChars->ClearForbiddenCharacters( eLang );
onChange();
@@ -119,7 +119,7 @@ Sequence< Locale > SAL_CALL SvxUnoForbiddenCharsTable::getLocales()
it != mxForbiddenChars->GetMap().end(); ++it )
{
const sal_uLong nLanguage = it->first;
- SvxLanguageToLocale ( *pLocales++, static_cast < LanguageType > (nLanguage) );
+ *pLocales++ = LanguageTag( static_cast < LanguageType > (nLanguage) ).getLocale();
}
}