summaryrefslogtreecommitdiff
path: root/unotools/inc/unotools/fontcfg.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/inc/unotools/fontcfg.hxx')
-rw-r--r--unotools/inc/unotools/fontcfg.hxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/unotools/inc/unotools/fontcfg.hxx b/unotools/inc/unotools/fontcfg.hxx
index 56c93403197a..bc27cc4554cc 100644
--- a/unotools/inc/unotools/fontcfg.hxx
+++ b/unotools/inc/unotools/fontcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,7 +76,7 @@ class UNOTOOLS_DLLPUBLIC DefaultFontConfiguration
m_xConfigProvider;
com::sun::star::uno::Reference< com::sun::star::container::XNameAccess >
m_xConfigAccess;
-
+
struct LocaleAccess
{
// the real string used in the configuration
@@ -85,22 +85,22 @@ class UNOTOOLS_DLLPUBLIC DefaultFontConfiguration
// xAccess is mutable to be able to be filled on demand
mutable com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xAccess;
};
-
+
std::hash_map< com::sun::star::lang::Locale,
LocaleAccess,
utl::LocaleHash >
m_aConfig;
-
+
rtl::OUString tryLocale( const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rType ) const;
-
+
DefaultFontConfiguration();
public:
~DefaultFontConfiguration();
-
+
static DefaultFontConfiguration* get();
-
+
rtl::OUString getDefaultFont( const com::sun::star::lang::Locale& rLocale, int nType ) const;
- rtl::OUString getUserInterfaceFont( const com::sun::star::lang::Locale& rLocale ) const;
+ rtl::OUString getUserInterfaceFont( const com::sun::star::lang::Locale& rLocale ) const;
};
// IMPL_FONT_ATTR_DEFAULT - Default-Font like Andale Sans UI, Palace Script, Albany, Thorndale, Cumberland, ...
@@ -163,14 +163,14 @@ class UNOTOOLS_DLLPUBLIC DefaultFontConfiguration
struct UNOTOOLS_DLLPUBLIC FontNameAttr
{
- String Name;
- ::std::vector< String > Substitutions;
- ::std::vector< String > MSSubstitutions;
- ::std::vector< String > PSSubstitutions;
- ::std::vector< String > HTMLSubstitutions;
- FontWeight Weight;
- FontWidth Width;
- unsigned long Type; // bitfield of IMPL_FONT_ATTR_*
+ String Name;
+ ::std::vector< String > Substitutions;
+ ::std::vector< String > MSSubstitutions;
+ ::std::vector< String > PSSubstitutions;
+ ::std::vector< String > HTMLSubstitutions;
+ FontWeight Weight;
+ FontWidth Width;
+ unsigned long Type; // bitfield of IMPL_FONT_ATTR_*
};
class UNOTOOLS_DLLPUBLIC FontSubstConfiguration
@@ -189,14 +189,14 @@ private:
// a minimal match is sufficient (that is e.g. "Thorndale" will match
// "Thorndale BlaBlub"). Also names must be lower case.
mutable std::vector< FontNameAttr > aSubstAttributes;
-
+
LocaleSubst() : bConfigRead( false ) {}
};
std::hash_map< com::sun::star::lang::Locale, LocaleSubst, utl::LocaleHash > m_aSubst;
typedef std::hash_set< rtl::OUString, rtl::OUStringHash > UniqueSubstHash;
mutable UniqueSubstHash maSubstHash;
-
+
void fillSubstVector( const com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xFont,
const rtl::OUString& rType,
std::vector< String >& rSubstVector ) const;