summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/outdev3.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-18 14:49:39 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-18 14:49:39 +0100
commit77946f3b9d03e814f7ada8af7f633c649975659e (patch)
tree8a3d368f1de5cf7ff8e06e4fc989c0bbe8e564e7 /vcl/source/gdi/outdev3.cxx
parentafdcc3c093da5cadb244d2d069e63db3b56a41fe (diff)
vcl: bring ImplFindByLocale back (windows build)
Sorry for this.
Diffstat (limited to 'vcl/source/gdi/outdev3.cxx')
-rwxr-xr-xvcl/source/gdi/outdev3.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 598823e675db..4c0123f13959 100755
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -1668,6 +1668,18 @@ void ImplDevFontList::InitMatchData() const
}
}
+//----------------------------------------------------------------------------
+ImplDevFontListData* ImplDevFontList::ImplFindByLocale( com::sun::star::lang::Locale& rLocale ) const
+{
+ // get the default font for a specified locale
+ const DefaultFontConfiguration& rDefaults = DefaultFontConfiguration::get();
+ const String aDefault = rDefaults.getUserInterfaceFont( rLocale );
+ ImplDevFontListData* pFontData = ImplFindByTokenNames( aDefault );
+ if( pFontData )
+ return pFontData;
+ return NULL;
+}
+
// -----------------------------------------------------------------------
ImplDevFontListData* ImplDevFontList::ImplFindByAttributes( sal_uLong nSearchType,