summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-02-25 19:31:11 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-26 11:43:21 +0100
commit788293959f53861de5bb32ade06870f494b0968d (patch)
treede6f82ef08c75c565ade05092a1749ce2512d2c3 /vcl/source/gdi
parent381154356c15128255e313f37641f0e50145f965 (diff)
put #ifdef around Unix specific code
Why do I still get surprised about things like code in vcl/generic/ not being generic at all? Change-Id: I562e06fec0dc7b8ad0aacdba594921a8209d60ed
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/embeddedfontshelper.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx
index b5d1c01d8432..c9f3bdf3a497 100644
--- a/vcl/source/gdi/embeddedfontshelper.cxx
+++ b/vcl/source/gdi/embeddedfontshelper.cxx
@@ -11,10 +11,13 @@
#include <osl/file.hxx>
#include <rtl/bootstrap.hxx>
-#include <vcl/fontmanager.hxx>
#include <vcl/svapp.hxx>
#include <vcl/outdev.hxx>
+#if defined(UNX)
+#include <vcl/fontmanager.hxx>
+#endif
+
using namespace std;
void EmbeddedFontsHelper::clearTemporaryFontFiles()
@@ -60,6 +63,7 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil
FontWeight weight, FontPitch pitch, rtl_TextEncoding )
{
OUString url;
+#if defined(UNX)
psp::PrintFontManager& mgr = psp::PrintFontManager::get();
list< psp::fontID > fontIds;
mgr.getFontList( fontIds );
@@ -98,6 +102,13 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil
}
}
}
+#else
+ (void) familyName;
+ (void) family;
+ (void) italic;
+ (void) weight;
+ (void) pitch;
+#endif
return url;
}