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

tdf#42949 Fix IWYU warnings in include/basegfx/*

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: Ifd59a5d93cfe7dc232891a681002014cd825035a
Reviewed-on: https://gerrit.libreoffice.org/61546
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 49c87270
......@@ -18,6 +18,7 @@
*/
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/range/b2drange.hxx>
#include <osl/diagnose.h>
#include <rtl/ustring.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <basegfx/matrix/b3dhommatrixtools.hxx>
#include <com/sun/star/drawing/HomogenMatrix.hpp>
namespace basegfx
{
......
......@@ -20,6 +20,7 @@
#include <basegfx/polygon/b2dpolygontriangulator.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
......
......@@ -20,6 +20,7 @@
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <o3tl/clamp.hxx>
#include <osl/diagnose.h>
#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
......
......@@ -20,6 +20,7 @@
#include <basegfx/polygon/b2dtrapezoid.hxx>
#include <basegfx/range/b1drange.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <osl/diagnose.h>
......
......@@ -20,6 +20,7 @@
#include <osl/diagnose.h>
#include <basegfx/polygon/b3dpolygontools.hxx>
#include <basegfx/polygon/b3dpolygon.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/range/b3drange.hxx>
#include <basegfx/point/b2dpoint.hxx>
......
......@@ -28,6 +28,7 @@
#include <basegfx/matrix/b3dhommatrix.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <com/sun/star/drawing/DoubleSequence.hpp>
#include <com/sun/star/drawing/PolyPolygonShape3D.hpp>
// predefines
#define nMinSegments sal_uInt32(1)
......
......@@ -18,6 +18,7 @@
*/
#include <basegfx/raster/rasterconvert3d.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/polygon/b3dpolygon.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <basegfx/point/b3dpoint.hxx>
......
......@@ -23,6 +23,7 @@
#include <cppunit/plugin/TestPlugIn.h>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
namespace basegfx
......
......@@ -24,6 +24,7 @@
#include <com/sun/star/geometry/AffineMatrix2D.hpp>
#include <com/sun/star/geometry/RealRectangle2D.hpp>
#include <rtl/instance.hxx>
#include <com/sun/star/uno/Sequence.hxx>
using namespace com::sun::star;
......
......@@ -24,6 +24,7 @@
#include <com/sun/star/geometry/RealRectangle3D.hpp>
#include <basegfx/utils/canvastools.hxx>
#include <rtl/instance.hxx>
#include <com/sun/star/uno/Sequence.hxx>
using namespace com::sun::star;
......
......@@ -20,6 +20,7 @@
#include <drawinglayer/primitive3d/polygonprimitive3d.hxx>
#include <basegfx/polygon/b3dpolygontools.hxx>
#include <basegfx/utils/canvastools.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <basegfx/polygon/b3dpolypolygontools.hxx>
#include <drawinglayer/primitive3d/polygontubeprimitive3d.hxx>
#include <drawinglayer/primitive3d/drawinglayer_primitivetypes3d.hxx>
......
......@@ -25,6 +25,7 @@
#include <tools/solar.h>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <vector>
......
......@@ -201,3 +201,11 @@ blacklist:
include/comphelper/uno3.hxx:
# Needed for macro
- comphelper/sequence.hxx
include/basegfx/polygon/b2dpolygontools.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx
include/basegfx/utils/unopolypolygon.hxx:
# base class has to be a complete type
- com/sun/star/lang/XServiceInfo.hpp
- com/sun/star/rendering/XBezierPolyPolygon2D.hpp
- com/sun/star/rendering/XLinePolyPolygon2D.hpp
......@@ -20,6 +20,8 @@
#ifndef INCLUDED_BASEGFX_BASEGFXDLLAPI_H
#define INCLUDED_BASEGFX_BASEGFXDLLAPI_H
#include <sal/types.h>
#if defined BASEGFX_STATICLIBRARY
#define BASEGFX_DLLPUBLIC
......
......@@ -25,13 +25,9 @@
#include <ostream>
#include <basegfx/tuple/b3dtuple.hxx>
#include <vector>
#include <basegfx/basegfxdllapi.h>
#include <o3tl/clamp.hxx>
namespace com { namespace sun { namespace star { namespace rendering {
class XGraphicDevice;
}}}}
namespace basegfx
{
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_BASEGFX_COLOR_BCOLORTOOLS_HXX
#define INCLUDED_BASEGFX_COLOR_BCOLORTOOLS_HXX
#include <sal/types.h>
#include <basegfx/basegfxdllapi.h>
......
......@@ -23,9 +23,11 @@
#include <sal/types.h>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/range/b2drange.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/tuple/b2dtuple.hxx>
#include <basegfx/basegfxdllapi.h>
namespace basegfx { class B2DRange; }
namespace basegfx
{
......
......@@ -20,9 +20,22 @@
#ifndef INCLUDED_BASEGFX_MATRIX_B3DHOMMATRIXTOOLS_HXX
#define INCLUDED_BASEGFX_MATRIX_B3DHOMMATRIXTOOLS_HXX
#include <sal/types.h>
#include <basegfx/basegfxdllapi.h>
#include <basegfx/matrix/b3dhommatrix.hxx>
#include <com/sun/star/drawing/HomogenMatrix.hpp>
namespace com
{
namespace sun
{
namespace star
{
namespace drawing
{
struct HomogenMatrix;
}
}
}
}
namespace basegfx
{
......
......@@ -21,7 +21,6 @@
#define INCLUDED_BASEGFX_PIXEL_BPIXEL_HXX
#include <sal/types.h>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/color/bcolor.hxx>
#include <basegfx/basegfxdllapi.h>
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_BASEGFX_POLYGON_B2DLINEGEOMETRY_HXX
#define INCLUDED_BASEGFX_POLYGON_B2DLINEGEOMETRY_HXX
#include <sal/types.h>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
......
......@@ -21,21 +21,19 @@
#define INCLUDED_BASEGFX_POLYGON_B2DPOLYGON_HXX
#include <ostream>
#include <vector>
#include <sal/types.h>
#include <o3tl/cow_wrapper.hxx>
#include <basegfx/vector/b2enums.hxx>
#include <basegfx/range/b2drange.hxx>
#include <basegfx/basegfxdllapi.h>
class ImplB2DPolygon;
class SalGraphicsImpl;
namespace basegfx
{
class B2DPolygon;
class B2DPoint;
class B2DVector;
class B2DRange;
class B2DHomMatrix;
class B2DCubicBezier;
class SystemDependentData;
......
......@@ -23,7 +23,6 @@
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/range/b2drectangle.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b3dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontriangulator.hxx>
#include <com/sun/star/drawing/PointSequence.hpp>
......@@ -33,6 +32,8 @@
#include <o3tl/typed_flags_set.hxx>
namespace basegfx { class B2DPolyPolygon; }
// Definitions for the cut flags used from the findCut methods
enum class CutFlagValue
{
......
......@@ -20,9 +20,13 @@
#ifndef INCLUDED_BASEGFX_POLYGON_B2DPOLYGONTRIANGULATOR_HXX
#define INCLUDED_BASEGFX_POLYGON_B2DPOLYGONTRIANGULATOR_HXX
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/basegfxdllapi.h>
#include <vector>
namespace basegfx { class B2DPolyPolygon; }
namespace basegfx
{
......
......@@ -21,16 +21,15 @@
#define INCLUDED_BASEGFX_POLYGON_B2DPOLYPOLYGONTOOLS_HXX
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <com/sun/star/drawing/PointSequenceSequence.hpp>
#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
#include <vector>
#include <set>
#include <basegfx/basegfxdllapi.h>
namespace com { namespace sun { namespace star { namespace drawing { struct PolyPolygonBezierCoords; } } } }
namespace basegfx
{
// predefinitions
......
......@@ -21,11 +21,13 @@
#define INCLUDED_BASEGFX_POLYGON_B2DTRAPEZOID_HXX
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <vector>
#include <basegfx/basegfxdllapi.h>
namespace basegfx { class B2DPolyPolygon; }
namespace basegfx { class B2DPoint; }
namespace basegfx
{
// class to hold a single trapezoid
......
......@@ -28,7 +28,6 @@ class ImplB3DPolygon;
namespace basegfx
{
class B3DPolygon;
class B3DPoint;
class B3DHomMatrix;
class B3DVector;
......
......@@ -22,12 +22,12 @@
#include <basegfx/point/b3dpoint.hxx>
#include <basegfx/vector/b3dvector.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <basegfx/vector/b2enums.hxx>
#include <vector>
#include <basegfx/basegfxdllapi.h>
namespace basegfx { class B3DPolyPolygon; }
namespace basegfx
{
// predefinitions
......
......@@ -20,15 +20,13 @@
#ifndef INCLUDED_BASEGFX_POLYGON_B3DPOLYPOLYGONTOOLS_HXX
#define INCLUDED_BASEGFX_POLYGON_B3DPOLYPOLYGONTOOLS_HXX
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/point/b3dpoint.hxx>
#include <com/sun/star/drawing/PolyPolygonShape3D.hpp>
#include <vector>
#include <basegfx/basegfxdllapi.h>
namespace com { namespace sun { namespace star { namespace drawing { struct PolyPolygonShape3D; } } } }
namespace basegfx
{
// predefinitions
......
......@@ -21,7 +21,6 @@
#define INCLUDED_BASEGFX_RANGE_B1DRANGE_HXX
#include <basegfx/range/basicrange.hxx>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -27,7 +27,6 @@
namespace basegfx
{
class B2DTuple;
class B2DRange;
class B2DPolyPolygon;
class B2DHomMatrix;
......
......@@ -21,14 +21,9 @@
#define INCLUDED_BASEGFX_RANGE_B2IBOX_HXX
#include <ostream>
#include <vector>
#include <basegfx/point/b2ipoint.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/tuple/b2ituple.hxx>
#include <basegfx/tuple/b2i64tuple.hxx>
#include <basegfx/range/basicbox.hxx>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
{
......
......@@ -24,7 +24,6 @@
#include <vector>
#include <basegfx/point/b2ipoint.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/tuple/b2ituple.hxx>
#include <basegfx/tuple/b2i64tuple.hxx>
#include <basegfx/range/basicrange.hxx>
......
......@@ -21,7 +21,6 @@
#define INCLUDED_BASEGFX_RANGE_BASICBOX_HXX
#include <basegfx/range/basicrange.hxx>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -20,13 +20,9 @@
#ifndef INCLUDED_BASEGFX_RASTER_BZPIXELRASTER_HXX
#define INCLUDED_BASEGFX_RASTER_BZPIXELRASTER_HXX
#include <basegfx/basegfxdllapi.h>
#include <basegfx/pixel/bpixel.hxx>
#include <basegfx/raster/bzpixelraster.hxx>
#include <osl/diagnose.h>
#include <sal/types.h>
#include <memory>
#include <algorithm>
#include <string.h>
namespace basegfx
......
......@@ -28,7 +28,6 @@
#include <basegfx/color/bcolor.hxx>
#include <basegfx/vector/b3dvector.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -22,7 +22,6 @@
#include <sal/types.h>
#include <basegfx/numeric/ftools.hxx>
#include <algorithm>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -21,7 +21,6 @@
#define INCLUDED_BASEGFX_TUPLE_B2I64TUPLE_HXX
#include <sal/types.h>
#include <basegfx/tuple/b2dtuple.hxx>
#include <basegfx/basegfxdllapi.h>
......
......@@ -21,8 +21,6 @@
#define INCLUDED_BASEGFX_TUPLE_B2ITUPLE_HXX
#include <sal/types.h>
#include <basegfx/numeric/ftools.hxx>
#include <algorithm>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -22,7 +22,6 @@
#include <sal/types.h>
#include <basegfx/numeric/ftools.hxx>
#include <algorithm>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -21,7 +21,6 @@
#define INCLUDED_BASEGFX_TUPLE_B3ITUPLE_HXX
#include <sal/types.h>
#include <basegfx/tuple/b3dtuple.hxx>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_BASEGFX_UTILS_B2DCLIPSTATE_HXX
#define INCLUDED_BASEGFX_UTILS_B2DCLIPSTATE_HXX
#include <sal/types.h>
#include <o3tl/cow_wrapper.hxx>
#include <basegfx/basegfxdllapi.h>
......@@ -28,8 +27,6 @@
namespace basegfx
{
class B2DRange;
class B2DPolyRange;
class B2DPolygon;
class B2DPolyPolygon;
class B2DHomMatrix;
......
......@@ -29,12 +29,10 @@ namespace com { namespace sun { namespace star { namespace geometry
{
struct AffineMatrix2D;
struct AffineMatrix3D;
struct Matrix2D;
struct RealPoint2D;
struct RealSize2D;
struct RealRectangle2D;
struct RealRectangle3D;
struct IntegerPoint2D;
struct IntegerSize2D;
struct IntegerRectangle2D;
struct RealBezierSegment2D;
......@@ -48,8 +46,6 @@ namespace com { namespace sun { namespace star { namespace rendering
namespace com { namespace sun { namespace star { namespace awt
{
struct Point;
struct Size;
struct Rectangle;
} } } }
......@@ -61,9 +57,7 @@ namespace basegfx
class B2DPoint;
class B2DRange;
class B3DRange;
class B2IBox;
class B2IVector;
class B2IPoint;
class B2IRange;
class B2DPolygon;
class B2DPolyPolygon;
......
......@@ -21,14 +21,11 @@
#define INCLUDED_BASEGFX_UTILS_GRADIENTTOOLS_HXX
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/range/b2drange.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/basegfxdllapi.h>
#include <vector>
#include <algorithm>
namespace basegfx { class B2DRange; }
namespace basegfx
{
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_BASEGFX_UTILS_KEYSTOPLERP_HXX
#define INCLUDED_BASEGFX_UTILS_KEYSTOPLERP_HXX
#include <basegfx/numeric/ftools.hxx>
#include <vector>
#include <basegfx/basegfxdllapi.h>
......
......@@ -20,8 +20,6 @@
#ifndef INCLUDED_BASEGFX_UTILS_LERP_HXX
#define INCLUDED_BASEGFX_UTILS_LERP_HXX
#include <sal/types.h>
namespace basegfx
{
namespace utils
......
......@@ -10,7 +10,6 @@
#ifndef INCLUDED_BASEGFX_UTILS_ZOOMTOOLS_HXX
#define INCLUDED_BASEGFX_UTILS_ZOOMTOOLS_HXX
#include <sal/types.h>
#include <basegfx/basegfxdllapi.h>
......
......@@ -20,8 +20,6 @@
#ifndef INCLUDED_BASEGFX_VECTOR_B2ENUMS_HXX
#define INCLUDED_BASEGFX_VECTOR_B2ENUMS_HXX
#include <sal/types.h>
namespace basegfx
{
/** Descriptor for the mathematical orientations of two 2D Vectors
......
......@@ -23,7 +23,6 @@
#include <ostream>
#include <basegfx/tuple/b2ituple.hxx>
#include <basegfx/vector/b2enums.hxx>
#include <basegfx/basegfxdllapi.h>
namespace basegfx
......
......@@ -25,6 +25,8 @@
#include <address.hxx>
#include <tools/solar.h>
#include <vector>
struct ScRangeFindData
{
ScRange aRef;
......
......@@ -18,6 +18,7 @@
*/
#include <sdr/primitive2d/sdrcaptionprimitive2d.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <svx/sdr/primitive2d/sdrdecompositiontools.hxx>
#include <drawinglayer/primitive2d/groupprimitive2d.hxx>
......
......@@ -20,6 +20,7 @@
#include <sdr/primitive2d/sdrcustomshapeprimitive2d.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <svx/sdr/primitive2d/sdrdecompositiontools.hxx>
#include <drawinglayer/primitive2d/groupprimitive2d.hxx>
#include <svx/sdr/primitive2d/svx_primitivetypes2d.hxx>
......
......@@ -20,6 +20,7 @@
#include <sdr/primitive2d/sdrellipseprimitive2d.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <svx/sdr/primitive2d/sdrdecompositiontools.hxx>
#include <drawinglayer/primitive2d/groupprimitive2d.hxx>
#include <svx/sdr/primitive2d/svx_primitivetypes2d.hxx>
......
......@@ -23,6 +23,7 @@
#include <svx/sdr/primitive2d/sdrdecompositiontools.hxx>
#include <drawinglayer/primitive2d/sdrdecompositiontools2d.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
using namespace com::sun::star;
......
......@@ -24,6 +24,7 @@
#include <svx/sdr/primitive2d/svx_primitivetypes2d.hxx>
#include <drawinglayer/primitive2d/sdrdecompositiontools2d.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
using namespace com::sun::star;
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/drawing/PointSequenceSequence.hpp>
#include <com/sun/star/drawing/GraphicExportFilter.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
#include <com/sun/star/embed/Aspects.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/style/BreakType.hpp>
......
......@@ -27,6 +27,8 @@
#include <com/sun/star/text/XTextDocument.hpp>
#include <cppuhelper/implbase.hxx>
#include <vector>
typedef cppu::ImplInheritanceHelper< VbaDocumentBase, ooo::vba::word::XDocument, ooo::vba::XSinkCaller > SwVbaDocument_BASE;
class SwVbaDocument : public SwVbaDocument_BASE
......
......@@ -82,6 +82,7 @@
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <o3tl/safeint.hxx>
......
......@@ -55,6 +55,7 @@
#include <xmloff/attrlist.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <basegfx/numeric/ftools.hxx>
......
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