diff options
author | Mox Soini <mox@iki.fi> | 2015-06-02 23:52:56 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-06-04 21:31:58 +0000 |
commit | e4d55e8045c99af65a2cae57b26ec076825c9673 (patch) | |
tree | 3a56aa0c7998ff643e15c0edee5ad8fdaa0e1fed /include | |
parent | 8854643a0a964f6aa511013c6ab31ed198c74e86 (diff) |
Cleanup crossplatform cairo
Mac / Win cairo is not built / used, this cairo code can be removed to
reduce code bloat.
Change-Id: I758d674291e25e0722f5c66a0096295e903786b1
Reviewed-on: https://gerrit.libreoffice.org/16049
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/sysdata.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx index a525f77fbbc8..57217df2fb57 100644 --- a/include/vcl/sysdata.hxx +++ b/include/vcl/sysdata.hxx @@ -23,6 +23,8 @@ #include <vector> #include <cstddef> +#include <config_cairo_canvas.h> + #ifdef MACOSX // predeclare the native classes to avoid header/include problems typedef struct CGContext *CGContextRef; @@ -200,13 +202,12 @@ struct SystemGlyphData int fallbacklevel; }; +#if ENABLE_CAIRO_CANVAS + struct SystemFontData { unsigned long nSize; // size in bytes of this structure -#if defined( WNT ) - HFONT hFont; // native font object -#elif defined( MACOSX ) -#elif defined( UNX ) +#if defined( UNX ) void* nFontId; // native font id int nFontFlags; // native font flags #endif @@ -217,10 +218,7 @@ struct SystemFontData SystemFontData() : nSize( sizeof( SystemFontData ) ) -#if defined( WNT ) - , hFont( 0 ) -#elif defined( MACOSX ) -#elif defined( UNX ) +#if defined( UNX ) , nFontId( NULL ) , nFontFlags( 0 ) #endif @@ -232,6 +230,8 @@ struct SystemFontData } }; +#endif // ENABLE_CAIRO_CANVAS + typedef std::vector<SystemGlyphData> SystemGlyphDataVector; struct SystemTextLayoutData |