From 4a88213bc5f3c7a49e1704b9954b517f4e1b1d27 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Tue, 26 Feb 2019 21:10:25 +0100 Subject: tdf#42949 Fix IWYU warnings in include/cppcanvas/* Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I8174b6e684b5b46a8abd3ca825b7de75f9255df3 Reviewed-on: https://gerrit.libreoffice.org/68703 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- cppcanvas/source/inc/canvasgraphichelper.hxx | 1 + cppcanvas/source/wrapper/implbitmapcanvas.cxx | 1 + cppcanvas/source/wrapper/implcustomsprite.cxx | 1 + cppcanvas/source/wrapper/implspritecanvas.cxx | 1 + include/IwyuFilter_include.yaml | 3 +++ include/cppcanvas/basegfxfactory.hxx | 5 ----- include/cppcanvas/bitmapcanvas.hxx | 2 -- include/cppcanvas/canvas.hxx | 2 -- include/cppcanvas/canvasgraphic.hxx | 2 -- include/cppcanvas/color.hxx | 3 +-- include/cppcanvas/customsprite.hxx | 1 - include/cppcanvas/font.hxx | 5 ----- include/cppcanvas/polypolygon.hxx | 7 +------ include/cppcanvas/sprite.hxx | 6 ------ include/cppcanvas/spritecanvas.hxx | 3 --- include/cppcanvas/vclfactory.hxx | 11 +---------- slideshow/source/engine/rehearsetimingsactivity.cxx | 1 + slideshow/source/engine/slide/layer.cxx | 1 + slideshow/source/engine/slide/userpaintoverlay.cxx | 1 + slideshow/source/engine/transitions/slidechangebase.cxx | 1 + .../source/engine/transitions/slidetransitionfactory.cxx | 1 + 21 files changed, 15 insertions(+), 44 deletions(-) diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx index fee174300e83..1a61366a8e5d 100644 --- a/cppcanvas/source/inc/canvasgraphichelper.hxx +++ b/cppcanvas/source/inc/canvasgraphichelper.hxx @@ -24,6 +24,7 @@ #include #include +#include #include diff --git a/cppcanvas/source/wrapper/implbitmapcanvas.cxx b/cppcanvas/source/wrapper/implbitmapcanvas.cxx index fee1cf357706..f8b0b666db5a 100644 --- a/cppcanvas/source/wrapper/implbitmapcanvas.cxx +++ b/cppcanvas/source/wrapper/implbitmapcanvas.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include "implbitmapcanvas.hxx" diff --git a/cppcanvas/source/wrapper/implcustomsprite.cxx b/cppcanvas/source/wrapper/implcustomsprite.cxx index 17ce28b61942..492f6d3de8fc 100644 --- a/cppcanvas/source/wrapper/implcustomsprite.cxx +++ b/cppcanvas/source/wrapper/implcustomsprite.cxx @@ -19,6 +19,7 @@ #include +#include #include "implcustomsprite.hxx" #include "implcanvas.hxx" diff --git a/cppcanvas/source/wrapper/implspritecanvas.cxx b/cppcanvas/source/wrapper/implspritecanvas.cxx index 65dd9754845e..15452f5dbb41 100644 --- a/cppcanvas/source/wrapper/implspritecanvas.cxx +++ b/cppcanvas/source/wrapper/implspritecanvas.cxx @@ -21,6 +21,7 @@ #include #include #include +#include #include "implspritecanvas.hxx" #include "implcustomsprite.hxx" diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml index c86fba0b1e83..6c92cdbc2c81 100644 --- a/include/IwyuFilter_include.yaml +++ b/include/IwyuFilter_include.yaml @@ -575,3 +575,6 @@ blacklist: include/linguistic/misc.hxx: # base class has to be a complete type - com/sun/star/frame/XTerminateListener.hpp + include/cppcanvas/renderer.hxx: + # Used in boost::optional type + - basegfx/matrix/b2dhommatrix.hxx diff --git a/include/cppcanvas/basegfxfactory.hxx b/include/cppcanvas/basegfxfactory.hxx index 8238b502ffbb..611523066792 100644 --- a/include/cppcanvas/basegfxfactory.hxx +++ b/include/cppcanvas/basegfxfactory.hxx @@ -21,12 +21,8 @@ #define INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX #include -#include -#include #include #include -#include -#include #include #include @@ -34,7 +30,6 @@ namespace basegfx { class B2DPolygon; - class B2DPolyPolygon; } diff --git a/include/cppcanvas/bitmapcanvas.hxx b/include/cppcanvas/bitmapcanvas.hxx index 1d4775ccd0aa..9c3e7f843934 100644 --- a/include/cppcanvas/bitmapcanvas.hxx +++ b/include/cppcanvas/bitmapcanvas.hxx @@ -20,8 +20,6 @@ #ifndef INCLUDED_CPPCANVAS_BITMAPCANVAS_HXX #define INCLUDED_CPPCANVAS_BITMAPCANVAS_HXX -#include -#include #include #include #include diff --git a/include/cppcanvas/canvas.hxx b/include/cppcanvas/canvas.hxx index c8ae6e8ca7e5..441986cd03b6 100644 --- a/include/cppcanvas/canvas.hxx +++ b/include/cppcanvas/canvas.hxx @@ -21,8 +21,6 @@ #define INCLUDED_CPPCANVAS_CANVAS_HXX #include -#include -#include #include namespace basegfx diff --git a/include/cppcanvas/canvasgraphic.hxx b/include/cppcanvas/canvasgraphic.hxx index 501df5b51749..ebee831f0a3b 100644 --- a/include/cppcanvas/canvasgraphic.hxx +++ b/include/cppcanvas/canvasgraphic.hxx @@ -21,8 +21,6 @@ #define INCLUDED_CPPCANVAS_CANVASGRAPHIC_HXX #include -#include -#include #include namespace basegfx diff --git a/include/cppcanvas/color.hxx b/include/cppcanvas/color.hxx index 2f735e52b638..500e5953e7cc 100644 --- a/include/cppcanvas/color.hxx +++ b/include/cppcanvas/color.hxx @@ -20,8 +20,7 @@ #ifndef INCLUDED_CPPCANVAS_COLOR_HXX #define INCLUDED_CPPCANVAS_COLOR_HXX -#include -#include +#include /* Definition of Color class */ diff --git a/include/cppcanvas/customsprite.hxx b/include/cppcanvas/customsprite.hxx index f65943100df5..abbd0c00bb05 100644 --- a/include/cppcanvas/customsprite.hxx +++ b/include/cppcanvas/customsprite.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_CPPCANVAS_CUSTOMSPRITE_HXX #define INCLUDED_CPPCANVAS_CUSTOMSPRITE_HXX -#include #include #include #include diff --git a/include/cppcanvas/font.hxx b/include/cppcanvas/font.hxx index abcc5b88b686..e52a5778f56f 100644 --- a/include/cppcanvas/font.hxx +++ b/include/cppcanvas/font.hxx @@ -22,11 +22,6 @@ #include -namespace com { namespace sun { namespace star { namespace rendering -{ - class XCanvasFont; -} } } } - /* Definition of Font class */ namespace cppcanvas diff --git a/include/cppcanvas/polypolygon.hxx b/include/cppcanvas/polypolygon.hxx index 869301652329..058ea25940d4 100644 --- a/include/cppcanvas/polypolygon.hxx +++ b/include/cppcanvas/polypolygon.hxx @@ -22,14 +22,9 @@ #include #include +#include #include -namespace basegfx -{ - class B2DPolygon; - class B2DPolyPolygon; -} - namespace com { namespace sun { namespace star { namespace rendering { class XPolyPolygon2D; diff --git a/include/cppcanvas/sprite.hxx b/include/cppcanvas/sprite.hxx index b52bffd90e83..6135ebb106b6 100644 --- a/include/cppcanvas/sprite.hxx +++ b/include/cppcanvas/sprite.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_CPPCANVAS_SPRITE_HXX #define INCLUDED_CPPCANVAS_SPRITE_HXX -#include #include namespace basegfx @@ -30,11 +29,6 @@ namespace basegfx class B2DPoint; } -namespace com { namespace sun { namespace star { namespace rendering -{ - class XSprite; -} } } } - /* Definition of Sprite class */ diff --git a/include/cppcanvas/spritecanvas.hxx b/include/cppcanvas/spritecanvas.hxx index fc449dee5a95..abeef3d2b25f 100644 --- a/include/cppcanvas/spritecanvas.hxx +++ b/include/cppcanvas/spritecanvas.hxx @@ -20,11 +20,8 @@ #ifndef INCLUDED_CPPCANVAS_SPRITECANVAS_HXX #define INCLUDED_CPPCANVAS_SPRITECANVAS_HXX -#include -#include #include #include -#include #include #include diff --git a/include/cppcanvas/vclfactory.hxx b/include/cppcanvas/vclfactory.hxx index 96d33fd1cbdc..b36b66a7ad34 100644 --- a/include/cppcanvas/vclfactory.hxx +++ b/include/cppcanvas/vclfactory.hxx @@ -23,24 +23,15 @@ #include #include #include -#include #include #include -#include #include namespace vcl { class Window; } -class Bitmap; class BitmapEx; -namespace tools { - class Polygon; - class PolyPolygon; -} -class Size; -class Graphic; + class GDIMetaFile; -class Animation; namespace com { namespace sun { namespace star { namespace rendering { diff --git a/slideshow/source/engine/rehearsetimingsactivity.cxx b/slideshow/source/engine/rehearsetimingsactivity.cxx index 42476891a567..643d7c8eb2d9 100644 --- a/slideshow/source/engine/rehearsetimingsactivity.cxx +++ b/slideshow/source/engine/rehearsetimingsactivity.cxx @@ -29,6 +29,7 @@ #include #include #include +#include #include diff --git a/slideshow/source/engine/slide/layer.cxx b/slideshow/source/engine/slide/layer.cxx index 5e5008f942ec..fce4c234e78a 100644 --- a/slideshow/source/engine/slide/layer.cxx +++ b/slideshow/source/engine/slide/layer.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include "layer.hxx" diff --git a/slideshow/source/engine/slide/userpaintoverlay.cxx b/slideshow/source/engine/slide/userpaintoverlay.cxx index fbad7fdd7fc0..e1501a602ab1 100644 --- a/slideshow/source/engine/slide/userpaintoverlay.cxx +++ b/slideshow/source/engine/slide/userpaintoverlay.cxx @@ -26,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/slideshow/source/engine/transitions/slidechangebase.cxx b/slideshow/source/engine/transitions/slidechangebase.cxx index 1e6e40a6bc6a..a9a9db55a907 100644 --- a/slideshow/source/engine/transitions/slidechangebase.cxx +++ b/slideshow/source/engine/transitions/slidechangebase.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include "slidechangebase.hxx" #include diff --git a/slideshow/source/engine/transitions/slidetransitionfactory.cxx b/slideshow/source/engine/transitions/slidetransitionfactory.cxx index 0492ce0761bd..7cc5045bcc59 100644 --- a/slideshow/source/engine/transitions/slidetransitionfactory.cxx +++ b/slideshow/source/engine/transitions/slidetransitionfactory.cxx @@ -26,6 +26,7 @@ #include #include +#include #include #include -- cgit