[Libreoffice-commits] core.git: canvas/source include/canvas include/IwyuFilter_include.yaml

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 25 13:17:57 UTC 2019


 canvas/source/cairo/cairo_cachedbitmap.cxx        |    1 +
 canvas/source/cairo/cairo_cachedbitmap.hxx        |    1 +
 canvas/source/cairo/cairo_canvashelper_text.cxx   |    1 +
 canvas/source/cairo/cairo_spritecanvas.cxx        |    2 ++
 canvas/source/cairo/cairo_spritecanvas.hxx        |    1 +
 canvas/source/directx/dx_canvas.hxx               |    2 ++
 canvas/source/directx/dx_canvasbitmap.hxx         |    1 +
 canvas/source/directx/dx_spritecanvas.hxx         |    2 ++
 canvas/source/directx/dx_surfacebitmap.cxx        |    1 +
 canvas/source/opengl/ogl_canvashelper.cxx         |    1 +
 canvas/source/opengl/ogl_spritedevicehelper.cxx   |    1 +
 canvas/source/simplecanvas/simplecanvasimpl.cxx   |    1 +
 canvas/source/tools/canvascustomspritehelper.cxx  |    5 +++++
 canvas/source/tools/parametricpolypolygon.cxx     |    2 ++
 canvas/source/tools/propertysethelper.cxx         |    1 +
 canvas/source/tools/verifyinput.cxx               |    1 +
 canvas/source/vcl/cachedbitmap.cxx                |    1 +
 canvas/source/vcl/cachedbitmap.hxx                |    1 +
 canvas/source/vcl/canvas.hxx                      |    1 +
 canvas/source/vcl/spritecanvas.cxx                |    1 +
 canvas/source/vcl/spritecanvas.hxx                |    1 +
 include/IwyuFilter_include.yaml                   |    8 ++++++++
 include/canvas/base/bitmapcanvasbase.hxx          |    4 +++-
 include/canvas/base/bufferedgraphicdevicebase.hxx |    4 ++--
 include/canvas/base/cachedprimitivebase.hxx       |    3 ++-
 include/canvas/base/canvasbase.hxx                |   13 ++++++++++++-
 include/canvas/base/canvascustomspritebase.hxx    |    7 +++----
 include/canvas/base/canvascustomspritehelper.hxx  |   11 +++++++++--
 include/canvas/base/graphicdevicebase.hxx         |   10 ++++------
 include/canvas/base/integerbitmapbase.hxx         |    5 +++--
 include/canvas/base/sprite.hxx                    |    3 ---
 include/canvas/base/spritecanvasbase.hxx          |    7 ++++++-
 include/canvas/canvastools.hxx                    |    6 +-----
 include/canvas/elapsedtime.hxx                    |    1 -
 include/canvas/parametricpolypolygon.hxx          |    7 +------
 include/canvas/propertysethelper.hxx              |    6 ++++--
 include/canvas/rendering/icolorbuffer.hxx         |    1 -
 include/canvas/rendering/irendermodule.hxx        |    4 ----
 include/canvas/rendering/isurface.hxx             |    4 ----
 include/canvas/rendering/isurfaceproxy.hxx        |    3 ---
 include/canvas/rendering/isurfaceproxymanager.hxx |    4 ++--
 include/canvas/spriteredrawmanager.hxx            |    4 +---
 include/canvas/verifyinput.hxx                    |    8 +-------
 43 files changed, 91 insertions(+), 61 deletions(-)

New commits:
commit 5df31134f151d2bd5cd921d91441b1752025662e
Author:     Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Wed Feb 13 21:41:07 2019 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Feb 25 14:17:32 2019 +0100

    tdf#42949 Fix IWYU warnings in include/canvas/
    
    Found with bin/find-unneeded-includes
    Only removal proposals are dealt with here.
    
    Change-Id: I93d516146ba44d83f84cb245e712ef6d14634a18
    Reviewed-on: https://gerrit.libreoffice.org/68035
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/canvas/source/cairo/cairo_cachedbitmap.cxx b/canvas/source/cairo/cairo_cachedbitmap.cxx
index 73b139786fcd..4e47ddd6885f 100644
--- a/canvas/source/cairo/cairo_cachedbitmap.cxx
+++ b/canvas/source/cairo/cairo_cachedbitmap.cxx
@@ -21,6 +21,7 @@
 
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/utils/canvastools.hxx>
+#include <com/sun/star/rendering/XCanvas.hpp>
 #include <com/sun/star/rendering/RepaintResult.hpp>
 #include <com/sun/star/rendering/XPolyPolygon2D.hpp>
 #include <tools/diagnose_ex.h>
diff --git a/canvas/source/cairo/cairo_cachedbitmap.hxx b/canvas/source/cairo/cairo_cachedbitmap.hxx
index 5ad6ebaaf271..e3dd9856bc17 100644
--- a/canvas/source/cairo/cairo_cachedbitmap.hxx
+++ b/canvas/source/cairo/cairo_cachedbitmap.hxx
@@ -21,6 +21,7 @@
 #define INCLUDED_CANVAS_SOURCE_CAIRO_CAIRO_CACHEDBITMAP_HXX
 
 #include <canvas/base/cachedprimitivebase.hxx>
+#include <com/sun/star/rendering/RenderState.hpp>
 
 #include <vcl/cairo.hxx>
 
diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx
index 39e1689c5b68..675683f8d500 100644
--- a/canvas/source/cairo/cairo_canvashelper_text.cxx
+++ b/canvas/source/cairo/cairo_canvashelper_text.cxx
@@ -19,6 +19,7 @@
 
 #include <sal/config.h>
 
+#include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/polygon/b2dpolypolygon.hxx>
 #include <basegfx/utils/canvastools.hxx>
 #include <tools/diagnose_ex.h>
diff --git a/canvas/source/cairo/cairo_spritecanvas.cxx b/canvas/source/cairo/cairo_spritecanvas.cxx
index e90ab09b1c01..b7b7792009e5 100644
--- a/canvas/source/cairo/cairo_spritecanvas.cxx
+++ b/canvas/source/cairo/cairo_spritecanvas.cxx
@@ -23,7 +23,9 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/numeric/ftools.hxx>
 #include <basegfx/point/b2dpoint.hxx>
+#include <basegfx/range/b2irange.hxx>
 #include <basegfx/utils/canvastools.hxx>
+#include <com/sun/star/awt/XTopWindow.hpp>
 #include <com/sun/star/lang/NoSupportException.hpp>
 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
 #include <com/sun/star/registry/XRegistryKey.hpp>
diff --git a/canvas/source/cairo/cairo_spritecanvas.hxx b/canvas/source/cairo/cairo_spritecanvas.hxx
index b84086675b19..4ec6e8b10522 100644
--- a/canvas/source/cairo/cairo_spritecanvas.hxx
+++ b/canvas/source/cairo/cairo_spritecanvas.hxx
@@ -36,6 +36,7 @@
 #include <comphelper/uno3.hxx>
 
 #include <canvas/base/spritecanvasbase.hxx>
+#include <canvas/base/spritesurface.hxx>
 #include <canvas/base/disambiguationhelper.hxx>
 #include <canvas/base/bufferedgraphicdevicebase.hxx>
 
diff --git a/canvas/source/directx/dx_canvas.hxx b/canvas/source/directx/dx_canvas.hxx
index 61974735d1bf..210723ca2a4b 100644
--- a/canvas/source/directx/dx_canvas.hxx
+++ b/canvas/source/directx/dx_canvas.hxx
@@ -37,6 +37,8 @@
 #include <canvas/base/integerbitmapbase.hxx>
 #include <canvas/base/basemutexhelper.hxx>
 #include <canvas/base/graphicdevicebase.hxx>
+#include <canvas/base/canvasbase.hxx>
+#include <canvas/base/bitmapcanvasbase.hxx>
 
 #include "dx_bitmapprovider.hxx"
 #include "dx_canvashelper.hxx"
diff --git a/canvas/source/directx/dx_canvasbitmap.hxx b/canvas/source/directx/dx_canvasbitmap.hxx
index 25d1ead2f2b2..d7031aaa4eb2 100644
--- a/canvas/source/directx/dx_canvasbitmap.hxx
+++ b/canvas/source/directx/dx_canvasbitmap.hxx
@@ -27,6 +27,7 @@
 #include <basegfx/vector/b2isize.hxx>
 #include <cppuhelper/compbase.hxx>
 #include <canvas/base/basemutexhelper.hxx>
+#include <canvas/base/bitmapcanvasbase.hxx>
 #include <canvas/base/integerbitmapbase.hxx>
 
 #include "dx_bitmapprovider.hxx"
diff --git a/canvas/source/directx/dx_spritecanvas.hxx b/canvas/source/directx/dx_spritecanvas.hxx
index f57cbe5eee27..bef5f5c15f73 100644
--- a/canvas/source/directx/dx_spritecanvas.hxx
+++ b/canvas/source/directx/dx_spritecanvas.hxx
@@ -26,6 +26,7 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/lang/XServiceName.hpp>
 #include <com/sun/star/awt/XWindowListener.hpp>
+#include <com/sun/star/awt/XTopWindow.hpp>
 #include <com/sun/star/util/XUpdatable.hpp>
 #include <com/sun/star/rendering/XSpriteCanvas.hpp>
 #include <com/sun/star/rendering/XIntegerBitmap.hpp>
@@ -36,6 +37,7 @@
 #include <comphelper/uno3.hxx>
 
 #include <canvas/base/spritecanvasbase.hxx>
+#include <canvas/base/spritesurface.hxx>
 #include <canvas/base/disambiguationhelper.hxx>
 #include <canvas/base/bufferedgraphicdevicebase.hxx>
 
diff --git a/canvas/source/directx/dx_surfacebitmap.cxx b/canvas/source/directx/dx_surfacebitmap.cxx
index 17f0a7bf9ddd..4fcdcba66d1f 100644
--- a/canvas/source/directx/dx_surfacebitmap.cxx
+++ b/canvas/source/directx/dx_surfacebitmap.cxx
@@ -26,6 +26,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/range/b2irange.hxx>
 #include <tools/diagnose_ex.h>
+#include <canvas/rendering/icolorbuffer.hxx>
 
 #include "dx_graphicsprovider.hxx"
 #include "dx_impltools.hxx"
diff --git a/canvas/source/opengl/ogl_canvashelper.cxx b/canvas/source/opengl/ogl_canvashelper.cxx
index f99047a18ccf..f29a69302063 100644
--- a/canvas/source/opengl/ogl_canvashelper.cxx
+++ b/canvas/source/opengl/ogl_canvashelper.cxx
@@ -13,6 +13,7 @@
 #include <functional>
 #include <epoxy/gl.h>
 
+#include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/polygon/b2dpolygontriangulator.hxx>
 #include <basegfx/polygon/b2dpolypolygon.hxx>
 #include <basegfx/polygon/b2dpolypolygontools.hxx>
diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx
index cbbe93a134e3..304414bfeea1 100644
--- a/canvas/source/opengl/ogl_spritedevicehelper.cxx
+++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx
@@ -12,6 +12,7 @@
 
 #include <basegfx/utils/canvastools.hxx>
 #include <basegfx/utils/unopolypolygon.hxx>
+#include <com/sun/star/awt/XTopWindow.hpp>
 #include <com/sun/star/lang/NoSupportException.hpp>
 #include <com/sun/star/rendering/XColorSpace.hpp>
 #include <com/sun/star/rendering/XIntegerBitmapColorSpace.hpp>
diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx
index 2e38ee8ffc2b..fb82b701459a 100644
--- a/canvas/source/simplecanvas/simplecanvasimpl.cxx
+++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx
@@ -21,6 +21,7 @@
 
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/matrix/b2dhommatrixtools.hxx>
+#include <com/sun/star/lang/IllegalArgumentException.hpp>
 #include <com/sun/star/lang/XServiceName.hpp>
 #include <com/sun/star/rendering/CompositeOperation.hpp>
 #include <com/sun/star/rendering/PanoseLetterForm.hpp>
diff --git a/canvas/source/tools/canvascustomspritehelper.cxx b/canvas/source/tools/canvascustomspritehelper.cxx
index 90a9506d0b84..8c8889b66274 100644
--- a/canvas/source/tools/canvascustomspritehelper.cxx
+++ b/canvas/source/tools/canvascustomspritehelper.cxx
@@ -19,6 +19,10 @@
 
 #include <sal/config.h>
 
+#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
+#include <com/sun/star/geometry/RealSize2D.hpp>
+#include <com/sun/star/rendering/XBitmap.hpp>
+#include <com/sun/star/geometry/IntegerSize2D.hpp>
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/numeric/ftools.hxx>
 #include <basegfx/point/b2dpoint.hxx>
@@ -26,6 +30,7 @@
 #include <basegfx/polygon/b2dpolygontools.hxx>
 #include <basegfx/polygon/b2dpolypolygontools.hxx>
 #include <basegfx/utils/canvastools.hxx>
+#include <basegfx/vector/b2dsize.hxx>
 #include <rtl/math.hxx>
 #include <tools/diagnose_ex.h>
 
diff --git a/canvas/source/tools/parametricpolypolygon.cxx b/canvas/source/tools/parametricpolypolygon.cxx
index f999831ffc85..bdfa9dbeae12 100644
--- a/canvas/source/tools/parametricpolypolygon.cxx
+++ b/canvas/source/tools/parametricpolypolygon.cxx
@@ -31,6 +31,8 @@
 #include <cppuhelper/supportsservice.hxx>
 #include <rtl/math.hxx>
 
+#include <com/sun/star/rendering/XGraphicDevice.hpp>
+
 #include <canvas/canvastools.hxx>
 #include <canvas/parametricpolypolygon.hxx>
 
diff --git a/canvas/source/tools/propertysethelper.cxx b/canvas/source/tools/propertysethelper.cxx
index 35b67e03e3f0..c866fe9fc4b1 100644
--- a/canvas/source/tools/propertysethelper.cxx
+++ b/canvas/source/tools/propertysethelper.cxx
@@ -20,6 +20,7 @@
 #include <sal/config.h>
 
 #include <canvas/propertysethelper.hxx>
+#include <com/sun/star/beans/XPropertySet.hpp>
 
 using namespace ::com::sun::star;
 
diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx
index 9e15738302b4..b5ee48b813a7 100644
--- a/canvas/source/tools/verifyinput.cxx
+++ b/canvas/source/tools/verifyinput.cxx
@@ -35,6 +35,7 @@
 #include <com/sun/star/geometry/RealPoint2D.hpp>
 #include <com/sun/star/geometry/RealRectangle2D.hpp>
 #include <com/sun/star/geometry/RealSize2D.hpp>
+#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <com/sun/star/rendering/CompositeOperation.hpp>
 #include <com/sun/star/rendering/FloatingPointBitmapFormat.hpp>
diff --git a/canvas/source/vcl/cachedbitmap.cxx b/canvas/source/vcl/cachedbitmap.cxx
index b71ecd8fc7dd..2d65a40c5e33 100644
--- a/canvas/source/vcl/cachedbitmap.cxx
+++ b/canvas/source/vcl/cachedbitmap.cxx
@@ -21,6 +21,7 @@
 
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/utils/canvastools.hxx>
+#include <com/sun/star/rendering/XCanvas.hpp>
 #include <com/sun/star/rendering/RepaintResult.hpp>
 #include <com/sun/star/rendering/XPolyPolygon2D.hpp>
 #include <tools/diagnose_ex.h>
diff --git a/canvas/source/vcl/cachedbitmap.hxx b/canvas/source/vcl/cachedbitmap.hxx
index 7d2878f10aab..c96e24bb31b7 100644
--- a/canvas/source/vcl/cachedbitmap.hxx
+++ b/canvas/source/vcl/cachedbitmap.hxx
@@ -20,6 +20,7 @@
 #ifndef INCLUDED_CANVAS_SOURCE_VCL_CACHEDBITMAP_HXX
 #define INCLUDED_CANVAS_SOURCE_VCL_CACHEDBITMAP_HXX
 
+#include <com/sun/star/rendering/RenderState.hpp>
 #include <canvas/base/cachedprimitivebase.hxx>
 #include <vcl/GraphicObject.hxx>
 #include <memory>
diff --git a/canvas/source/vcl/canvas.hxx b/canvas/source/vcl/canvas.hxx
index f7b8c097113f..1eee73282329 100644
--- a/canvas/source/vcl/canvas.hxx
+++ b/canvas/source/vcl/canvas.hxx
@@ -37,6 +37,7 @@
 #include <cppu/unotype.hxx>
 
 #include <canvas/base/basemutexhelper.hxx>
+#include <canvas/base/bitmapcanvasbase.hxx>
 #include <canvas/base/integerbitmapbase.hxx>
 #include <canvas/base/graphicdevicebase.hxx>
 
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx
index aaac0c3c6697..ee1de2808c66 100644
--- a/canvas/source/vcl/spritecanvas.cxx
+++ b/canvas/source/vcl/spritecanvas.cxx
@@ -23,6 +23,7 @@
 #include <algorithm>
 
 #include <basegfx/utils/canvastools.hxx>
+#include <com/sun/star/awt/XTopWindow.hpp>
 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
 #include <com/sun/star/registry/XRegistryKey.hpp>
 #include <com/sun/star/uno/XComponentContext.hpp>
diff --git a/canvas/source/vcl/spritecanvas.hxx b/canvas/source/vcl/spritecanvas.hxx
index 194c3c5537b2..08c6d9bb2e1d 100644
--- a/canvas/source/vcl/spritecanvas.hxx
+++ b/canvas/source/vcl/spritecanvas.hxx
@@ -37,6 +37,7 @@
 #include <comphelper/types.hxx>
 
 #include <canvas/base/spritecanvasbase.hxx>
+#include <canvas/base/spritesurface.hxx>
 #include <canvas/base/disambiguationhelper.hxx>
 #include <canvas/base/bufferedgraphicdevicebase.hxx>
 
diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml
index 167ae3e2234d..5bfdcf17c53a 100644
--- a/include/IwyuFilter_include.yaml
+++ b/include/IwyuFilter_include.yaml
@@ -552,3 +552,11 @@ blacklist:
     - com/sun/star/document/XDocumentEventListener.hpp
     # Don't propose hxx -> h change in URE libs
     - cppuhelper/interfacecontainer.hxx
+    include/canvas/base/cachedprimitivebase.hxx:
+    # base class has to be a complete type
+    - com/sun/star/rendering/XCachedPrimitive.hpp
+    - com/sun/star/lang/XServiceInfo.hpp
+    include/canvas/parametricpolypolygon.hxx:
+    # base class has to be a complete type
+    - com/sun/star/lang/XServiceInfo.hpp
+    - com/sun/star/rendering/XParametricPolyPolygon2D.hpp
diff --git a/include/canvas/base/bitmapcanvasbase.hxx b/include/canvas/base/bitmapcanvasbase.hxx
index 55d156edf474..c15f76413288 100644
--- a/include/canvas/base/bitmapcanvasbase.hxx
+++ b/include/canvas/base/bitmapcanvasbase.hxx
@@ -21,7 +21,9 @@
 #define INCLUDED_CANVAS_BASE_BITMAPCANVASBASE_HXX
 
 #include <canvas/base/canvasbase.hxx>
-#include <com/sun/star/rendering/XBitmapCanvas.hpp>
+#include <com/sun/star/geometry/IntegerSize2D.hpp>
+
+namespace com::sun::star::rendering { class XBitmapCanvas; }
 
 namespace canvas
 {
diff --git a/include/canvas/base/bufferedgraphicdevicebase.hxx b/include/canvas/base/bufferedgraphicdevicebase.hxx
index 235091f76798..f3d77d3e9fec 100644
--- a/include/canvas/base/bufferedgraphicdevicebase.hxx
+++ b/include/canvas/base/bufferedgraphicdevicebase.hxx
@@ -21,12 +21,12 @@
 #define INCLUDED_CANVAS_BASE_BUFFEREDGRAPHICDEVICEBASE_HXX
 
 #include <com/sun/star/awt/XWindow2.hpp>
-#include <com/sun/star/awt/XTopWindow.hpp>
-#include <com/sun/star/awt/XWindowListener.hpp>
 
 #include <canvas/canvastools.hxx>
 #include <canvas/base/graphicdevicebase.hxx>
 
+namespace com::sun::star::awt { class XTopWindow; }
+
 
 /* Definition of BufferedGraphicDeviceBase class */
 
diff --git a/include/canvas/base/cachedprimitivebase.hxx b/include/canvas/base/cachedprimitivebase.hxx
index 65811c33e0e4..3897aecf6c29 100644
--- a/include/canvas/base/cachedprimitivebase.hxx
+++ b/include/canvas/base/cachedprimitivebase.hxx
@@ -22,7 +22,6 @@
 
 #include <com/sun/star/uno/Reference.hxx>
 #include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/rendering/XCanvas.hpp>
 #include <com/sun/star/rendering/XCachedPrimitive.hpp>
 #include <com/sun/star/rendering/ViewState.hpp>
 #include <cppuhelper/compbase.hxx>
@@ -30,6 +29,8 @@
 
 #include <canvas/canvastoolsdllapi.h>
 
+namespace com::sun::star::rendering { class XCanvas; }
+
 /* Definition of CachedPrimitiveBase class */
 
 namespace canvas
diff --git a/include/canvas/base/canvasbase.hxx b/include/canvas/base/canvasbase.hxx
index a36af3b71ff3..3166e7fbb086 100644
--- a/include/canvas/base/canvasbase.hxx
+++ b/include/canvas/base/canvasbase.hxx
@@ -21,11 +21,22 @@
 #define INCLUDED_CANVAS_BASE_CANVASBASE_HXX
 
 #include <com/sun/star/uno/Reference.hxx>
-#include <com/sun/star/rendering/XCanvas.hpp>
 #include <com/sun/star/rendering/TextDirection.hpp>
+#include <osl/diagnose.h>
 #include <osl/mutex.hxx>
 #include <canvas/verifyinput.hxx>
 
+namespace com::sun::star::beans { struct PropertyValue; }
+namespace com::sun::star::geometry { class XMapping2D; }
+namespace com::sun::star::rendering { class XBitmap; }
+namespace com::sun::star::rendering { class XCachedPrimitive; }
+namespace com::sun::star::rendering { class XCanvasFont; }
+namespace com::sun::star::rendering { class XGraphicDevice; }
+namespace com::sun::star::rendering { class XPolyPolygon2D; }
+namespace com::sun::star::rendering { class XTextLayout; }
+namespace com::sun::star::rendering { struct FontInfo; }
+namespace com::sun::star::rendering { struct StringContext; }
+
 
 namespace canvas
 {
diff --git a/include/canvas/base/canvascustomspritebase.hxx b/include/canvas/base/canvascustomspritebase.hxx
index 9990b37be6e3..14b530b9c5f0 100644
--- a/include/canvas/base/canvascustomspritebase.hxx
+++ b/include/canvas/base/canvascustomspritebase.hxx
@@ -20,14 +20,13 @@
 #ifndef INCLUDED_CANVAS_BASE_CANVASCUSTOMSPRITEBASE_HXX
 #define INCLUDED_CANVAS_BASE_CANVASCUSTOMSPRITEBASE_HXX
 
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/rendering/XCustomSprite.hpp>
-#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
 #include <basegfx/point/b2dpoint.hxx>
 #include <basegfx/vector/b2dvector.hxx>
 #include <basegfx/range/b2drange.hxx>
 #include <canvas/base/integerbitmapbase.hxx>
-#include <canvas/base/sprite.hxx>
+#include <canvas/base/bitmapcanvasbase.hxx>
+
+namespace com::sun::star::rendering { class XPolyPolygon2D; }
 
 namespace canvas
 {
diff --git a/include/canvas/base/canvascustomspritehelper.hxx b/include/canvas/base/canvascustomspritehelper.hxx
index 5e62d4ed88a7..e524a439e454 100644
--- a/include/canvas/base/canvascustomspritehelper.hxx
+++ b/include/canvas/base/canvascustomspritehelper.hxx
@@ -27,8 +27,15 @@
 #include <basegfx/vector/b2dvector.hxx>
 #include <canvas/base/spritesurface.hxx>
 #include <canvas/canvastoolsdllapi.h>
-#include <com/sun/star/rendering/XCustomSprite.hpp>
-#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
+
+namespace com::sun::star::geometry { struct AffineMatrix2D; }
+namespace com::sun::star::geometry { struct RealPoint2D; }
+namespace com::sun::star::geometry { struct RealSize2D; }
+namespace com::sun::star::rendering { class XBitmap; }
+namespace com::sun::star::rendering { class XPolyPolygon2D; }
+namespace com::sun::star::rendering { struct RenderState; }
+namespace com::sun::star::rendering { struct ViewState; }
+
 
 namespace canvas
 {
diff --git a/include/canvas/base/graphicdevicebase.hxx b/include/canvas/base/graphicdevicebase.hxx
index 6e4bdc7f0a6c..b7b3b22a0921 100644
--- a/include/canvas/base/graphicdevicebase.hxx
+++ b/include/canvas/base/graphicdevicebase.hxx
@@ -21,17 +21,15 @@
 #define INCLUDED_CANVAS_BASE_GRAPHICDEVICEBASE_HXX
 
 #include <rtl/ref.hxx>
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/util/XUpdatable.hpp>
-#include <com/sun/star/rendering/XGraphicDevice.hpp>
-#include <com/sun/star/rendering/XColorSpace.hpp>
 
 #include <canvas/parametricpolypolygon.hxx>
 #include <canvas/propertysethelper.hxx>
 #include <canvas/verifyinput.hxx>
 
+namespace com::sun::star::beans { class XPropertySetInfo; }
+namespace com::sun::star::lang { class XMultiServiceFactory; }
+namespace com::sun::star::rendering { class XColorSpace; }
+
 
 /* Definition of GraphicDeviceBase class */
 
diff --git a/include/canvas/base/integerbitmapbase.hxx b/include/canvas/base/integerbitmapbase.hxx
index ecebd5794a3f..2ea548452ce3 100644
--- a/include/canvas/base/integerbitmapbase.hxx
+++ b/include/canvas/base/integerbitmapbase.hxx
@@ -20,8 +20,9 @@
 #ifndef INCLUDED_CANVAS_BASE_INTEGERBITMAPBASE_HXX
 #define INCLUDED_CANVAS_BASE_INTEGERBITMAPBASE_HXX
 
-#include <com/sun/star/rendering/XIntegerBitmap.hpp>
-#include <canvas/base/bitmapcanvasbase.hxx>
+#include <com/sun/star/rendering/IntegerBitmapLayout.hpp>
+#include <canvas/verifyinput.hxx>
+#include <osl/diagnose.h>
 
 
 namespace canvas
diff --git a/include/canvas/base/sprite.hxx b/include/canvas/base/sprite.hxx
index 349e164f5585..937c0328474b 100644
--- a/include/canvas/base/sprite.hxx
+++ b/include/canvas/base/sprite.hxx
@@ -22,13 +22,10 @@
 
 #include <rtl/ref.hxx>
 #include <com/sun/star/lang/XComponent.hpp>
-#include <com/sun/star/rendering/XCanvas.hpp>
 #include <basegfx/point/b2dpoint.hxx>
-#include <basegfx/vector/b2dsize.hxx>
 
 namespace basegfx
 {
-    class B2DPoint;
     class B2DVector;
     class B2DRange;
 }
diff --git a/include/canvas/base/spritecanvasbase.hxx b/include/canvas/base/spritecanvasbase.hxx
index 044a279c061e..2809894b7bc0 100644
--- a/include/canvas/base/spritecanvasbase.hxx
+++ b/include/canvas/base/spritecanvasbase.hxx
@@ -21,11 +21,16 @@
 #define INCLUDED_CANVAS_BASE_SPRITECANVASBASE_HXX
 
 #include <rtl/ref.hxx>
-#include <com/sun/star/rendering/XSpriteCanvas.hpp>
 #include <com/sun/star/rendering/InterpolationMode.hpp>
 #include <canvas/base/integerbitmapbase.hxx>
+#include <canvas/base/bitmapcanvasbase.hxx>
 #include <canvas/spriteredrawmanager.hxx>
 
+namespace com::sun::star::rendering { class XAnimation; }
+namespace com::sun::star::rendering { class XAnimatedSprite; }
+namespace com::sun::star::rendering { class XCustomSprite; }
+namespace com::sun::star::rendering { class XSprite; }
+
 
 namespace canvas
 {
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx
index 31c8ba3fc345..6e67227fbd0c 100644
--- a/include/canvas/canvastools.hxx
+++ b/include/canvas/canvastools.hxx
@@ -20,20 +20,17 @@
 #ifndef INCLUDED_CANVAS_CANVASTOOLS_HXX
 #define INCLUDED_CANVAS_CANVASTOOLS_HXX
 
-#include <rtl/math.hxx>
 #include <com/sun/star/uno/Reference.hxx>
 #include <com/sun/star/uno/Sequence.hxx>
 #include <com/sun/star/uno/RuntimeException.hpp>
-#include <com/sun/star/lang/IllegalArgumentException.hpp>
-#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
 #include <osl/diagnose.h>
 #include <rtl/ustring.hxx>
 #include <sal/log.hxx>
 
+#include <math.h>
 #include <string.h>
 #include <vector>
 #include <limits>
-#include <algorithm>
 
 #include <canvas/canvastoolsdllapi.h>
 
@@ -62,7 +59,6 @@ namespace com { namespace sun { namespace star { namespace rendering
     class  XCanvas;
     struct Texture;
     class  XIntegerBitmapColorSpace;
-    class  XPolyPolygon2D;
 } } } }
 
 namespace com { namespace sun { namespace star { namespace awt
diff --git a/include/canvas/elapsedtime.hxx b/include/canvas/elapsedtime.hxx
index 7113cff0455e..9fb8bb5dea79 100644
--- a/include/canvas/elapsedtime.hxx
+++ b/include/canvas/elapsedtime.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_CANVAS_ELAPSEDTIME_HXX
 #define INCLUDED_CANVAS_ELAPSEDTIME_HXX
 
-#include <sal/types.h>
 #include <canvas/canvastoolsdllapi.h>
 #include <memory>
 
diff --git a/include/canvas/parametricpolypolygon.hxx b/include/canvas/parametricpolypolygon.hxx
index 060b2037c532..960f27c084b1 100644
--- a/include/canvas/parametricpolypolygon.hxx
+++ b/include/canvas/parametricpolypolygon.hxx
@@ -21,7 +21,6 @@
 #define INCLUDED_CANVAS_PARAMETRICPOLYPOLYGON_HXX
 
 #include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/rendering/XGraphicDevice.hpp>
 #include <com/sun/star/rendering/XParametricPolyPolygon2D.hpp>
 #include <cppuhelper/compbase.hxx>
 #include <cppuhelper/basemutex.hxx>
@@ -29,11 +28,7 @@
 
 #include <canvas/canvastoolsdllapi.h>
 
-namespace basegfx
-{
-    class B2DPolygon;
-    class B2DHomMatrix;
-}
+namespace com::sun::star::rendering { class XGraphicDevice; }
 
 
 /* Definition of ParametricPolyPolygon class */
diff --git a/include/canvas/propertysethelper.hxx b/include/canvas/propertysethelper.hxx
index 95126d6de615..509bb45e2b72 100644
--- a/include/canvas/propertysethelper.hxx
+++ b/include/canvas/propertysethelper.hxx
@@ -20,8 +20,6 @@
 #ifndef INCLUDED_CANVAS_PROPERTYSETHELPER_HXX
 #define INCLUDED_CANVAS_PROPERTYSETHELPER_HXX
 
-#include <com/sun/star/beans/XPropertySetInfo.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
 #include <canvas/canvastools.hxx>
 
 #include <functional>
@@ -30,6 +28,10 @@
 
 #include <canvas/canvastoolsdllapi.h>
 
+namespace com::sun::star::beans { class XPropertyChangeListener; }
+namespace com::sun::star::beans { class XPropertySetInfo; }
+namespace com::sun::star::beans { class XVetoableChangeListener; }
+
 namespace canvas
 {
     /** Really simplistic XPropertySet helper for properties.
diff --git a/include/canvas/rendering/icolorbuffer.hxx b/include/canvas/rendering/icolorbuffer.hxx
index 3a877ad49317..7d851131eec8 100644
--- a/include/canvas/rendering/icolorbuffer.hxx
+++ b/include/canvas/rendering/icolorbuffer.hxx
@@ -21,7 +21,6 @@
 #define INCLUDED_CANVAS_RENDERING_ICOLORBUFFER_HXX
 
 #include <sal/types.h>
-#include <memory>
 
 namespace canvas
 {
diff --git a/include/canvas/rendering/irendermodule.hxx b/include/canvas/rendering/irendermodule.hxx
index 21d03d35d8c7..186dc2b699e7 100644
--- a/include/canvas/rendering/irendermodule.hxx
+++ b/include/canvas/rendering/irendermodule.hxx
@@ -20,15 +20,11 @@
 #ifndef INCLUDED_CANVAS_RENDERING_IRENDERMODULE_HXX
 #define INCLUDED_CANVAS_RENDERING_IRENDERMODULE_HXX
 
-#include <sal/types.h>
 #include <memory>
 
 namespace basegfx
 {
-    class B2DRange;
-    class B2IRange;
     class B2IVector;
-    class B2IPoint;
 }
 
 namespace canvas
diff --git a/include/canvas/rendering/isurface.hxx b/include/canvas/rendering/isurface.hxx
index 68477bc9bee9..67ce0f387dee 100644
--- a/include/canvas/rendering/isurface.hxx
+++ b/include/canvas/rendering/isurface.hxx
@@ -20,14 +20,10 @@
 #ifndef INCLUDED_CANVAS_RENDERING_ISURFACE_HXX
 #define INCLUDED_CANVAS_RENDERING_ISURFACE_HXX
 
-#include <sal/types.h>
-#include <memory>
-
 namespace basegfx
 {
     class B2IRange;
     class B2IPoint;
-    class B2IVector;
 }
 
 namespace canvas
diff --git a/include/canvas/rendering/isurfaceproxy.hxx b/include/canvas/rendering/isurfaceproxy.hxx
index 6baf0af61c09..d4d8e246118e 100644
--- a/include/canvas/rendering/isurfaceproxy.hxx
+++ b/include/canvas/rendering/isurfaceproxy.hxx
@@ -20,9 +20,6 @@
 #ifndef INCLUDED_CANVAS_RENDERING_ISURFACEPROXY_HXX
 #define INCLUDED_CANVAS_RENDERING_ISURFACEPROXY_HXX
 
-#include <canvas/rendering/irendermodule.hxx>
-#include <memory>
-
 namespace basegfx
 {
     class B2DRange;
diff --git a/include/canvas/rendering/isurfaceproxymanager.hxx b/include/canvas/rendering/isurfaceproxymanager.hxx
index 9cd9bcaf9c1b..155c6f81a199 100644
--- a/include/canvas/rendering/isurfaceproxymanager.hxx
+++ b/include/canvas/rendering/isurfaceproxymanager.hxx
@@ -20,14 +20,14 @@
 #ifndef INCLUDED_CANVAS_RENDERING_ISURFACEPROXYMANAGER_HXX
 #define INCLUDED_CANVAS_RENDERING_ISURFACEPROXYMANAGER_HXX
 
-#include <canvas/rendering/irendermodule.hxx>
-#include <canvas/rendering/icolorbuffer.hxx>
 #include <canvas/canvastoolsdllapi.h>
 #include <memory>
 
 namespace canvas
 {
     struct ISurfaceProxy;
+    struct IColorBuffer;
+    struct IRenderModule;
 
     /** Manager interface, which handles surface proxy objects.
 
diff --git a/include/canvas/spriteredrawmanager.hxx b/include/canvas/spriteredrawmanager.hxx
index 4a3359d6d442..3115fe5d3f84 100644
--- a/include/canvas/spriteredrawmanager.hxx
+++ b/include/canvas/spriteredrawmanager.hxx
@@ -24,13 +24,11 @@
 #include <basegfx/point/b2dpoint.hxx>
 #include <basegfx/vector/b2dvector.hxx>
 #include <basegfx/range/b2drange.hxx>
-#include <basegfx/range/b2irange.hxx>
-#include <basegfx/matrix/b2dhommatrix.hxx>
-#include <canvas/base/spritesurface.hxx>
 
 #include <vector>
 #include <algorithm>
 
+#include <canvas/base/sprite.hxx>
 #include <canvas/canvastoolsdllapi.h>
 
 /* Definition of SpriteRedrawManager class */
diff --git a/include/canvas/verifyinput.hxx b/include/canvas/verifyinput.hxx
index ac9d4e840748..edc7dc3c2c55 100644
--- a/include/canvas/verifyinput.hxx
+++ b/include/canvas/verifyinput.hxx
@@ -21,12 +21,7 @@
 #define INCLUDED_CANVAS_VERIFYINPUT_HXX
 
 #include <com/sun/star/uno/Reference.hxx>
-#include <com/sun/star/uno/Sequence.hxx>
-#include <com/sun/star/uno/RuntimeException.hpp>
 #include <com/sun/star/lang/IllegalArgumentException.hpp>
-#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
-
-#include <algorithm>
 
 #include <canvas/canvastoolsdllapi.h>
 
@@ -51,10 +46,9 @@ namespace com { namespace sun { namespace star { namespace rendering
     struct ViewState;
     struct IntegerBitmapLayout;
     struct FontRequest;
-    struct FontInfo;
-    class  XCanvas;
 } } } }
 
+namespace com::sun::star::uno { template <class E> class Sequence; }
 
 namespace canvas
 {


More information about the Libreoffice-commits mailing list