Kaydet (Commit) 5df31134 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

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: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst e8db364c
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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"
......
......@@ -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"
......
......@@ -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>
......
......@@ -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"
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -20,6 +20,7 @@
#include <sal/config.h>
#include <canvas/propertysethelper.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
using namespace ::com::sun::star;
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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
......@@ -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
{
......
......@@ -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 */
......
......@@ -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
......
......@@ -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
{
......
......@@ -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
{
......
......@@ -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
{
......
......@@ -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 */
......
......@@ -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
......
......@@ -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;
}
......
......@@ -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
{
......
......@@ -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
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_CANVAS_ELAPSEDTIME_HXX
#define INCLUDED_CANVAS_ELAPSEDTIME_HXX
#include <sal/types.h>
#include <canvas/canvastoolsdllapi.h>
#include <memory>
......
......@@ -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 */
......
......@@ -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.
......
......@@ -21,7 +21,6 @@
#define INCLUDED_CANVAS_RENDERING_ICOLORBUFFER_HXX
#include <sal/types.h>
#include <memory>
namespace canvas
{
......
......@@ -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
......
......@@ -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
......
......@@ -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;
......
......@@ -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.
......
......@@ -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 */
......
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment