summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-12 00:08:32 +0200
committerEike Rathke <erack@redhat.com>2013-07-12 00:10:13 +0200
commitf66f896657967c0ce3c75680e956cad918a632d3 (patch)
tree3ffeae5734c351e290e8dbfb5f5cc7441a64c731 /include/unotools
parent1254a00da0fff439c8f8ac1697da7a96e10b1705 (diff)
DefaultFontConfiguration and FontSubstConfiguration with LanguageTag
Change-Id: I6c111392537d114358d0574f2dbdf40f684b5103
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/fontcfg.hxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/unotools/fontcfg.hxx b/include/unotools/fontcfg.hxx
index 5e63ddb7fbdf..e33397f289c6 100644
--- a/include/unotools/fontcfg.hxx
+++ b/include/unotools/fontcfg.hxx
@@ -19,6 +19,7 @@
#ifndef _UNOTOOLS_FONTCFG_HXX
#define _UNOTOOLS_FONTCFG_HXX
+#include <i18nlangtag/languagetag.hxx>
#include <unotools/unotoolsdllapi.h>
#include <tools/solar.h>
#include <tools/fontenum.hxx>
@@ -59,8 +60,8 @@ class UNOTOOLS_DLLPUBLIC DefaultFontConfiguration
static DefaultFontConfiguration& get();
- OUString getDefaultFont( const com::sun::star::lang::Locale& rLocale, int nType ) const;
- OUString getUserInterfaceFont( const com::sun::star::lang::Locale& rLocale ) const;
+ OUString getDefaultFont( const LanguageTag& rLanguageTag, int nType ) const;
+ OUString getUserInterfaceFont( const LanguageTag& rLanguageTag ) const;
};
// IMPL_FONT_ATTR_DEFAULT - Default-Font like Andale Sans UI, Palace Script, Albany, Thorndale, Cumberland, ...
@@ -175,10 +176,7 @@ public:
const FontNameAttr* getSubstInfo(
const OUString& rFontName,
- const com::sun::star::lang::Locale& rLocale =
- com::sun::star::lang::Locale( OUString( "en" ),
- OUString(),
- OUString() )
+ const LanguageTag& rLanguageTag = LanguageTag( OUString( "en"))
) const;
static void getMapName( const OUString& rOrgName, OUString& rShortName, OUString& rFamilyName, FontWeight& rWeight, FontWidth& rWidth, sal_uLong& rType );
};