diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-19 18:26:43 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-19 18:27:18 +0100 |
commit | fe985aaa8ef3931bef5507806e8f3b795a107487 (patch) | |
tree | 21eaab3840514ecd671d90c64194596df7cbe3a9 /sd | |
parent | f3221085e3b84e0c84c1adca3d76ab4c293678ee (diff) |
use LanguageTag
Change-Id: I4c55e30ec64f4e4d0217f226bc99ff693d054093
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/drawdoc.cxx | 3 | ||||
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopool.cxx | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx index efe0adb9358b..6b5603c127e9 100644 --- a/sd/source/core/drawdoc.cxx +++ b/sd/source/core/drawdoc.cxx @@ -65,6 +65,7 @@ #include <unotools/saveopt.hxx> #include <comphelper/extract.hxx> #include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <unotools/charclass.hxx> #include <comphelper/processfactory.hxx> #include <unotools/pathoptions.hxx> @@ -231,7 +232,7 @@ SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh) } LanguageType eRealLanguage = MsLangId::getRealLanguage( meLanguage ); - mpLocale = new ::com::sun::star::lang::Locale( MsLangId::convertLanguageToLocale( eRealLanguage )); + mpLocale = new ::com::sun::star::lang::Locale( LanguageTag( eRealLanguage ).getLocale()); mpCharClass = new CharClass( *mpLocale ); // If the current application language is a language that uses right-to-left text... diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index d4632c65a984..67a444fd56e2 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -85,7 +85,7 @@ #include <com/sun/star/table/BorderLine.hpp> #include <set> #include <oox/ole/olehelper.hxx> -#include "i18npool/mslangid.hxx" +#include "i18npool/languagetag.hxx" using namespace ::com::sun::star; @@ -3862,7 +3862,7 @@ void TextObjBinary::WriteTextSpecInfo( SvStream* pStrm ) *pStrm << static_cast< sal_uInt32 >( nPortionSize ) << nFlags << static_cast< sal_Int16 >( 1 ) // spellinfo -> needs rechecking - << static_cast< sal_Int16 >( MsLangId::convertLocaleToLanguageWithFallback( pPortion->meCharLocale ) ) + << static_cast< sal_Int16 >( LanguageTag( pPortion->meCharLocale ).makeFallback().getLanguageType() ) << static_cast< sal_Int16 >( 0 ); // alt language } } diff --git a/sd/source/ui/unoidl/unopool.cxx b/sd/source/ui/unoidl/unopool.cxx index 907fd3151a09..c441a4d520f2 100644 --- a/sd/source/ui/unoidl/unopool.cxx +++ b/sd/source/ui/unoidl/unopool.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <comphelper/propertysetinfo.hxx> #include <editeng/eeitem.hxx> #include <svx/unopool.hxx> @@ -35,7 +35,7 @@ LanguageType SdUnoGetLanguage( const lang::Locale& rLocale ) if ( rLocale.Language.getLength() == 0 ) return LANGUAGE_SYSTEM; - LanguageType eRet = MsLangId::convertLocaleToLanguage( rLocale ); + LanguageType eRet = LanguageTag( rLocale ).getLanguageType( false); if ( eRet == LANGUAGE_NONE ) eRet = LANGUAGE_SYSTEM; //! or throw an exception? |