From 4d94541a7b88b76d856e30dba7f8a3de48260eda Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Sat, 7 Oct 2017 22:01:45 +1100 Subject: Make Color a forward declaration Change-Id: Ib28833555661b119de8e967b05e3c8691fca826a Reviewed-on: https://gerrit.libreoffice.org/43227 Tested-by: Jenkins Reviewed-by: Chris Sherlock --- include/vcl/bitmap.hxx | 3 ++- include/vcl/button.hxx | 2 +- include/vcl/menu.hxx | 1 - include/vcl/outdevstate.hxx | 3 ++- include/vcl/salbtype.hxx | 2 +- include/vcl/texteng.hxx | 1 + include/vcl/wall.hxx | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) (limited to 'include/vcl') diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 0be13c12bf3e..e0d92edfd462 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_VCL_BITMAP_HXX #define INCLUDED_VCL_BITMAP_HXX -#include #include #include #include @@ -30,6 +29,8 @@ #include #include +class Color; + enum class BmpMirrorFlags { NONE = 0x00, diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index 3ec0d467bf85..60a2aaff7249 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -21,7 +21,6 @@ #define INCLUDED_VCL_BUTTON_HXX #include -#include #include #include #include @@ -34,6 +33,7 @@ #include +class Color; class UserDrawEvent; class ImplCommonButtonData; enum class DrawButtonFlags; diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 680ccd9d5af2..669271494f4c 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include diff --git a/include/vcl/outdevstate.hxx b/include/vcl/outdevstate.hxx index 8e2236bb34ae..94cf877e03d0 100644 --- a/include/vcl/outdevstate.hxx +++ b/include/vcl/outdevstate.hxx @@ -27,10 +27,11 @@ #include #include -#include #include #include +class Color; + // Flags for OutputDevice::Push() and OutDevState enum class PushFlags { NONE = 0x0000, diff --git a/include/vcl/salbtype.hxx b/include/vcl/salbtype.hxx index 97b0b213ba11..97ca0cf98493 100644 --- a/include/vcl/salbtype.hxx +++ b/include/vcl/salbtype.hxx @@ -23,8 +23,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx index 1596e0094c7b..c4e70d56d06e 100644 --- a/include/vcl/texteng.hxx +++ b/include/vcl/texteng.hxx @@ -31,6 +31,7 @@ #include #include #include +#include #include #include diff --git a/include/vcl/wall.hxx b/include/vcl/wall.hxx index d63fabf83e1d..c68bbf31ac10 100644 --- a/include/vcl/wall.hxx +++ b/include/vcl/wall.hxx @@ -20,11 +20,11 @@ #ifndef INCLUDED_VCL_WALL_HXX #define INCLUDED_VCL_WALL_HXX -#include #include #include #include +class Color; class Gradient; class BitmapEx; class ImplWallpaper; -- cgit