diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-16 20:59:35 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-16 20:59:38 +0100 |
commit | 032164972c7f4c720937e6117c0e147cfdd448b0 (patch) | |
tree | 23f0532f66d8490dab5a31ca08bbc234a7ff62d9 /drawinglayer | |
parent | use LanguageTag (diff) | |
download | core-032164972c7f4c720937e6117c0e147cfdd448b0.tar.gz core-032164972c7f4c720937e6117c0e147cfdd448b0.zip |
use LanguageTag
Change-Id: I28b1dbb21e40585aaf2451e12ffd4f03783d4c4b
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/metafileprimitive2d.cxx | 8 | ||||
-rw-r--r-- | drawinglayer/source/primitive2d/textlayoutdevice.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx index 791801bbb607..d168bef63cb7 100644 --- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx @@ -48,7 +48,7 @@ #include <drawinglayer/primitive2d/textprimitive2d.hxx> #include <drawinglayer/primitive2d/textlayoutdevice.hxx> #include <drawinglayer/primitive2d/textdecoratedprimitive2d.hxx> -#include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <drawinglayer/primitive2d/textlineprimitive2d.hxx> #include <drawinglayer/primitive2d/textstrikeoutprimitive2d.hxx> #include <drawinglayer/primitive2d/epsprimitive2d.hxx> @@ -1312,7 +1312,7 @@ namespace // prepare FontColor and Locale const basegfx::BColor aFontColor(rProperty.getTextColor()); - const com::sun::star::lang::Locale aLocale(MsLangId::convertLanguageToLocale(rProperty.getLanguageType())); + const com::sun::star::lang::Locale aLocale(LanguageTag(rProperty.getLanguageType()).getLocale()); const bool bWordLineMode(rFont.IsWordLineMode()); const bool bDecoratedIsNeeded( @@ -1552,8 +1552,8 @@ namespace // strikeout with character const sal_Unicode aStrikeoutChar( drawinglayer::primitive2d::TEXT_STRIKEOUT_SLASH == aTextStrikeout ? '/' : 'X'); - const com::sun::star::lang::Locale aLocale(MsLangId::convertLanguageToLocale( - rProperty.getLanguageType())); + const com::sun::star::lang::Locale aLocale(LanguageTag( + rProperty.getLanguageType()).getLocale()); aTargetVector.push_back( new drawinglayer::primitive2d::TextCharacterStrikeoutPrimitive2D( diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx index 4e1e87319931..664099935227 100644 --- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx +++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx @@ -24,7 +24,7 @@ #include <vcl/virdev.hxx> #include <vcl/font.hxx> #include <vcl/metric.hxx> -#include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <drawinglayer/primitive2d/textprimitive2d.hxx> #include <vcl/svapp.hxx> @@ -403,7 +403,7 @@ namespace drawinglayer aRetval.SetItalic(rFontAttribute.getItalic() ? ITALIC_NORMAL : ITALIC_NONE); aRetval.SetOutline(rFontAttribute.getOutline()); aRetval.SetPitch(rFontAttribute.getMonospaced() ? PITCH_FIXED : PITCH_VARIABLE); - aRetval.SetLanguage(MsLangId::convertLocaleToLanguage(rLocale)); + aRetval.SetLanguage(LanguageTag(rLocale).getLanguageType(false)); #ifdef WIN32 // for WIN32 systems, correct the FontWidth if FontScaling is used |