diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-10 12:11:59 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-11 06:51:48 +0000 |
commit | 6104a9807500c59196ff007d24cfe111f0b2754a (patch) | |
tree | 1b91d7936d2895fcb30fe8cd47239ca3515837ed /vcl/inc | |
parent | 1da9b4c24e806ad2447b4a656e2a7192755bb6a8 (diff) |
remove unused return type from SalGraphics::SetFont
Change-Id: I0ca41130f5e1028a70f1242f7af3366b7c57c572
Reviewed-on: https://gerrit.libreoffice.org/24833
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/fontinstance.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/headless/svpgdi.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/quartz/salgdi.h | 2 | ||||
-rw-r--r-- | vcl/inc/salgdi.hxx | 5 | ||||
-rw-r--r-- | vcl/inc/textrender.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/cairotextrender.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/genpspgraphics.h | 2 | ||||
-rw-r--r-- | vcl/inc/unx/salgdi.h | 2 | ||||
-rw-r--r-- | vcl/inc/win/salgdi.h | 2 |
9 files changed, 8 insertions, 12 deletions
diff --git a/vcl/inc/fontinstance.hxx b/vcl/inc/fontinstance.hxx index db5c6c1211d5..7bc5a7345cc5 100644 --- a/vcl/inc/fontinstance.hxx +++ b/vcl/inc/fontinstance.hxx @@ -44,7 +44,6 @@ public: // TODO: make data members private long mnLineHeight; sal_uInt32 mnRefCount; - sal_uInt16 mnSetFontFlags; // Flags returned by SalGraphics::SetFont() short mnOwnOrientation; // text angle if lower layers don't rotate text themselves short mnOrientation; // text angle in 3600 system bool mbInit; // true if maFontMetric member is valid diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index 7be69f97bab5..f93e1c7317f4 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -122,7 +122,7 @@ public: virtual void SetROPFillColor( SalROPColor nROPColor ) override; virtual void SetTextColor( SalColor nSalColor ) override; - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) override; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) override; virtual void GetFontMetric( ImplFontMetricDataPtr&, int nFallbackLevel ) override; virtual const FontCharMapPtr GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; diff --git a/vcl/inc/quartz/salgdi.h b/vcl/inc/quartz/salgdi.h index e4c9ca1a2eeb..0f183ab53968 100644 --- a/vcl/inc/quartz/salgdi.h +++ b/vcl/inc/quartz/salgdi.h @@ -336,7 +336,7 @@ public: // set the text color to a specific color virtual void SetTextColor( SalColor nSalColor ) override; // set the font - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) override; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) override; // get the current font's metrics virtual void GetFontMetric( ImplFontMetricDataPtr&, int nFallbackLevel ) override; // get the repertoire of the current font diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx index feecc85153fc..11bbe91d3dc5 100644 --- a/vcl/inc/salgdi.hxx +++ b/vcl/inc/salgdi.hxx @@ -56,9 +56,6 @@ namespace basegfx { class B2DPolyPolygon; } -#define SAL_SETFONT_USEDRAWTEXTARRAY ((sal_uInt16)0x0004) -#define SAL_SETFONT_BADFONT ((sal_uInt16)0x1000) - #define SAL_COPYAREA_WINDOWINVALIDATE ((sal_uInt16)0x0001) typedef sal_Unicode sal_Ucs; // TODO: use sal_UCS4 instead of sal_Unicode @@ -131,7 +128,7 @@ public: virtual void SetTextColor( SalColor nSalColor ) = 0; // set the font - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) = 0; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) = 0; // release the fonts void ReleaseFonts() { SetFont( nullptr, 0 ); } diff --git a/vcl/inc/textrender.hxx b/vcl/inc/textrender.hxx index 483eff039fb5..e08274ee22c5 100644 --- a/vcl/inc/textrender.hxx +++ b/vcl/inc/textrender.hxx @@ -36,7 +36,7 @@ public: virtual ~TextRenderImpl() {} virtual void SetTextColor( SalColor nSalColor ) = 0; - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) = 0; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) = 0; virtual void GetFontMetric( ImplFontMetricDataPtr&, int nFallbackLevel ) = 0; virtual const FontCharMapPtr GetFontCharMap() const = 0; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const = 0; diff --git a/vcl/inc/unx/cairotextrender.hxx b/vcl/inc/unx/cairotextrender.hxx index 2de9b1102e2b..14b35031b5b7 100644 --- a/vcl/inc/unx/cairotextrender.hxx +++ b/vcl/inc/unx/cairotextrender.hxx @@ -85,7 +85,7 @@ public: virtual void SetTextColor( SalColor nSalColor ) override; - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) override; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) override; virtual void GetFontMetric( ImplFontMetricDataPtr&, int nFallbackLevel ) override; virtual const FontCharMapPtr GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; diff --git a/vcl/inc/unx/genpspgraphics.h b/vcl/inc/unx/genpspgraphics.h index e609c124f4d1..19780831923d 100644 --- a/vcl/inc/unx/genpspgraphics.h +++ b/vcl/inc/unx/genpspgraphics.h @@ -92,7 +92,7 @@ public: virtual void SetROPFillColor( SalROPColor nROPColor ) override; virtual void SetTextColor( SalColor nSalColor ) override; - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) override; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) override; virtual void GetFontMetric( ImplFontMetricDataPtr&, int nFallbackLevel ) override; virtual const FontCharMapPtr GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index 29522824ca4a..cea628436be7 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.h @@ -116,7 +116,7 @@ public: virtual void SetROPFillColor( SalROPColor nROPColor ) override; virtual void SetTextColor( SalColor nSalColor ) override; - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) override; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) override; virtual void GetFontMetric( ImplFontMetricDataPtr&, int nFallbackLevel ) override; virtual const FontCharMapPtr GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h index 2c89393d9ed0..4c4cbca8e85f 100644 --- a/vcl/inc/win/salgdi.h +++ b/vcl/inc/win/salgdi.h @@ -378,7 +378,7 @@ public: // set the text color to a specific color virtual void SetTextColor( SalColor nSalColor ) override; // set the font - virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) override; + virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) override; // get the current font's metrics virtual void GetFontMetric( ImplFontMetricDataPtr&, int nFallbackLevel ) override; // get the repertoire of the current font |