summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-05 09:58:47 +0200
committerNoel Grandin <noel@peralex.com>2015-05-06 09:01:29 +0200
commitbfcb2a1a75ae0ff780bff0747ea90c1e79a56fc3 (patch)
tree27c331cb0cfd7fd4717b61bfe7ec493e9c512fc1 /vcl/source/font
parent9b37c2176e4da7575398c15921e3466208f19847 (diff)
convert DEFAULTFONT_ constants to scoped enum
Change-Id: Ia33e957f6cf530e2639b3c86d9482f642652cb46
Diffstat (limited to 'vcl/source/font')
-rw-r--r--vcl/source/font/PhysicalFontCollection.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx
index eed3367e3c9d..6266591695b9 100644
--- a/vcl/source/font/PhysicalFontCollection.cxx
+++ b/vcl/source/font/PhysicalFontCollection.cxx
@@ -900,23 +900,23 @@ PhysicalFontFamily* PhysicalFontCollection::FindDefaultFont() const
// UNICODE, SANSSERIF, SERIF or FIXED default font lists
const utl::DefaultFontConfiguration& rDefaults = utl::DefaultFontConfiguration::get();
LanguageTag aLanguageTag( OUString( "en"));
- OUString aFontname = rDefaults.getDefaultFont( aLanguageTag, DEFAULTFONT_SANS_UNICODE );
+ OUString aFontname = rDefaults.getDefaultFont( aLanguageTag, DefaultFontType::SANS_UNICODE );
PhysicalFontFamily* pFoundData = ImplFindByTokenNames( aFontname );
if( pFoundData )
return pFoundData;
- aFontname = rDefaults.getDefaultFont( aLanguageTag, DEFAULTFONT_SANS );
+ aFontname = rDefaults.getDefaultFont( aLanguageTag, DefaultFontType::SANS );
pFoundData = ImplFindByTokenNames( aFontname );
if( pFoundData )
return pFoundData;
- aFontname = rDefaults.getDefaultFont( aLanguageTag, DEFAULTFONT_SERIF );
+ aFontname = rDefaults.getDefaultFont( aLanguageTag, DefaultFontType::SERIF );
pFoundData = ImplFindByTokenNames( aFontname );
if( pFoundData )
return pFoundData;
- aFontname = rDefaults.getDefaultFont( aLanguageTag, DEFAULTFONT_FIXED );
+ aFontname = rDefaults.getDefaultFont( aLanguageTag, DefaultFontType::FIXED );
pFoundData = ImplFindByTokenNames( aFontname );
if( pFoundData )
return pFoundData;
@@ -1199,7 +1199,7 @@ PhysicalFontFamily* PhysicalFontCollection::ImplFindByFont( FontSelectPattern& r
if( rFSD.IsSymbolFont() )
{
LanguageTag aDefaultLanguageTag( OUString( "en"));
- aSearchName = utl::DefaultFontConfiguration::get().getDefaultFont( aDefaultLanguageTag, DEFAULTFONT_SYMBOL );
+ aSearchName = utl::DefaultFontConfiguration::get().getDefaultFont( aDefaultLanguageTag, DefaultFontType::SYMBOL );
PhysicalFontFamily* pFoundData = ImplFindByTokenNames( aSearchName );
if( pFoundData )
return pFoundData;