From 5aa54f17441afee8c2001d73f4b590eeeafd7414 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Fri, 5 May 2017 15:29:21 +0200 Subject: break circular include of include/vcl/window.hxx and include/vcl/vclevent.hxx Change-Id: Iacb3cc942693a732de5899af26e08e0977a83102 Reviewed-on: https://gerrit.libreoffice.org/37338 Tested-by: Jenkins Reviewed-by: Jochen Nitschke --- chart2/source/controller/dialogs/ObjectNameProvider.cxx | 1 + include/vcl/menu.hxx | 8 ++++++-- include/vcl/vclevent.hxx | 7 +++++-- include/vcl/window.hxx | 2 +- sc/source/ui/view/hintwin.cxx | 1 + sd/source/ui/framework/factories/FullScreenPane.hxx | 1 + sd/source/ui/presenter/CanvasUpdateRequester.cxx | 1 + sw/source/filter/html/parcss1.cxx | 1 + vcl/inc/impfontcharmap.hxx | 3 +++ vcl/inc/svdata.hxx | 1 + vcl/inc/unx/printergfx.hxx | 2 ++ vcl/source/bitmap/BitmapTools.cxx | 1 + vcl/unx/generic/print/common_gfx.cxx | 2 +- writerfilter/source/dmapper/GraphicHelpers.cxx | 1 + writerfilter/source/rtftok/rtftokenizer.cxx | 1 + writerperfect/source/common/WPFTResMgr.cxx | 2 +- xmlhelp/source/cxxhelp/provider/databases.cxx | 5 +++-- 17 files changed, 31 insertions(+), 9 deletions(-) diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx index 574de211aff5..66a7fa3637bf 100644 --- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx +++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx @@ -33,6 +33,7 @@ #include "RegressionCurveHelper.hxx" #include #include +#include #include #include diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index e3a0e8b8c529..ddf12f629c99 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -47,7 +47,6 @@ class PopupMenu; class KeyEvent; class CommandEvent; class MenuFloatingWindow; -namespace vcl { class Window; } class SalMenu; class MenuBarWindow; struct SystemMenuData; @@ -57,7 +56,12 @@ namespace com { namespace sun { namespace star { namespace accessibility { class XAccessible; }}}} -namespace vcl { struct MenuLayoutData; } +namespace vcl +{ +class Window; +struct MenuLayoutData; +typedef OutputDevice RenderContext; // same as in include/vcl/outdev.hxx +} #define MENU_APPEND (sal_uInt16(0xFFFF)) #define MENU_ITEM_NOTFOUND (sal_uInt16(0xFFFF)) diff --git a/include/vcl/vclevent.hxx b/include/vcl/vclevent.hxx index a60723167427..933ce2666fba 100644 --- a/include/vcl/vclevent.hxx +++ b/include/vcl/vclevent.hxx @@ -20,10 +20,8 @@ #ifndef INCLUDED_VCL_VCLEVENT_HXX #define INCLUDED_VCL_VCLEVENT_HXX -#include #include #include -#include #include @@ -35,6 +33,11 @@ namespace com { namespace sun { namespace star { } }}} +namespace vcl +{ + class Window; +} + enum class VclEventId { NONE, diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 36370a7c8137..ac9e1a60b908 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -1548,7 +1549,6 @@ public: // Only for compatibility - because many people outside haven't included event.hxx // These require Window to be defined for VclPtr -#include #include #endif // INCLUDED_VCL_WINDOW_HXX diff --git a/sc/source/ui/view/hintwin.cxx b/sc/source/ui/view/hintwin.cxx index 32f71131717c..816bb40281f5 100644 --- a/sc/source/ui/view/hintwin.cxx +++ b/sc/source/ui/view/hintwin.cxx @@ -34,6 +34,7 @@ #include #include #include +#include #define HINT_LINESPACE 2 #define HINT_INDENT 3 diff --git a/sd/source/ui/framework/factories/FullScreenPane.hxx b/sd/source/ui/framework/factories/FullScreenPane.hxx index 3253ea153fac..1329a05c4458 100644 --- a/sd/source/ui/framework/factories/FullScreenPane.hxx +++ b/sd/source/ui/framework/factories/FullScreenPane.hxx @@ -24,6 +24,7 @@ #include #include #include +#include #include class WorkWindow; diff --git a/sd/source/ui/presenter/CanvasUpdateRequester.cxx b/sd/source/ui/presenter/CanvasUpdateRequester.cxx index 456c37d43a58..2517c710c1d7 100644 --- a/sd/source/ui/presenter/CanvasUpdateRequester.cxx +++ b/sd/source/ui/presenter/CanvasUpdateRequester.cxx @@ -20,6 +20,7 @@ #include "CanvasUpdateRequester.hxx" #include #include +#include #include using namespace ::com::sun::star; diff --git a/sw/source/filter/html/parcss1.cxx b/sw/source/filter/html/parcss1.cxx index c22f8412e140..e3c6c44921be 100644 --- a/sw/source/filter/html/parcss1.cxx +++ b/sw/source/filter/html/parcss1.cxx @@ -19,6 +19,7 @@ #include #include +#include #include #include #include diff --git a/vcl/inc/impfontcharmap.hxx b/vcl/inc/impfontcharmap.hxx index e03bf2665f38..197333a49b6e 100644 --- a/vcl/inc/impfontcharmap.hxx +++ b/vcl/inc/impfontcharmap.hxx @@ -20,6 +20,9 @@ #ifndef INCLUDED_VCL_INC_IMPFONTCHARMAP_HXX #define INCLUDED_VCL_INC_IMPFONTCHARMAP_HXX +#include +#include + class ImplFontCharMap; typedef tools::SvRef ImplFontCharMapRef; diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx index 1d8d5ad56367..bc87e6887f1d 100644 --- a/vcl/inc/svdata.hxx +++ b/vcl/inc/svdata.hxx @@ -25,6 +25,7 @@ #include #include #include +#include #include diff --git a/vcl/inc/unx/printergfx.hxx b/vcl/inc/unx/printergfx.hxx index 41a5f843cc39..f1fc5229ced3 100644 --- a/vcl/inc/unx/printergfx.hxx +++ b/vcl/inc/unx/printergfx.hxx @@ -29,6 +29,8 @@ #include #include +enum class PolyFlags : sal_uInt8; + namespace psp { struct JobData; diff --git a/vcl/source/bitmap/BitmapTools.cxx b/vcl/source/bitmap/BitmapTools.cxx index d9990167c534..d0b00e1d8b07 100644 --- a/vcl/source/bitmap/BitmapTools.cxx +++ b/vcl/source/bitmap/BitmapTools.cxx @@ -23,6 +23,7 @@ #include #include +#include #include using namespace css; diff --git a/vcl/unx/generic/print/common_gfx.cxx b/vcl/unx/generic/print/common_gfx.cxx index ef1a767e3414..b06767308b7a 100644 --- a/vcl/unx/generic/print/common_gfx.cxx +++ b/vcl/unx/generic/print/common_gfx.cxx @@ -30,9 +30,9 @@ #include #include "printerinfomanager.hxx" -#include "tools/debug.hxx" #include "tools/color.hxx" #include "tools/poly.hxx" +#include "tools/stream.hxx" using namespace psp ; diff --git a/writerfilter/source/dmapper/GraphicHelpers.cxx b/writerfilter/source/dmapper/GraphicHelpers.cxx index 2096adf802c4..2ae112af294b 100644 --- a/writerfilter/source/dmapper/GraphicHelpers.cxx +++ b/writerfilter/source/dmapper/GraphicHelpers.cxx @@ -29,6 +29,7 @@ #include #include +#include #include #include diff --git a/writerfilter/source/rtftok/rtftokenizer.cxx b/writerfilter/source/rtftok/rtftokenizer.cxx index 5661d4137b5b..e5e1087d3645 100644 --- a/writerfilter/source/rtftok/rtftokenizer.cxx +++ b/writerfilter/source/rtftok/rtftokenizer.cxx @@ -9,6 +9,7 @@ #include #include +#include #include #include #include diff --git a/writerperfect/source/common/WPFTResMgr.cxx b/writerperfect/source/common/WPFTResMgr.cxx index fff256e7a6bf..9cc22f365140 100644 --- a/writerperfect/source/common/WPFTResMgr.cxx +++ b/writerperfect/source/common/WPFTResMgr.cxx @@ -3,7 +3,7 @@ #include "WPFTResMgr.hxx" #include - +#include #include ResMgr &WPFTResMgr::GetResMgr() diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 0df51a5e577a..25c9d4f75467 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -20,14 +20,15 @@ #include #include "db.hxx" #include +#include #include #include +#include #include -#include +#include #include #include #include -#include #include "inputstream.hxx" #include #include -- cgit v1.2.3