diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-12-01 17:59:14 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2018-12-03 15:13:07 +0100 |
commit | be99b42489b3dad31e2a92ece937131803b17275 (patch) | |
tree | d05fd370dce737eecb7461373b0daf091063aa62 /include | |
parent | b3e77dd93f2305f09e89d9a23a9b4404d7c796ba (diff) |
tdf#42949 Fix IWYU warnings in include/vcl/[n-r]*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: I5a4951e983078ab6b6cbf0e96b00a20584b85e20
Reviewed-on: https://gerrit.libreoffice.org/64398
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/IwyuFilter_include.yaml | 9 | ||||
-rw-r--r-- | include/vcl/NotebookbarContextControl.hxx | 2 | ||||
-rw-r--r-- | include/vcl/notebookbar.hxx | 6 | ||||
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 6 | ||||
-rw-r--r-- | include/vcl/opengl/OpenGLHelper.hxx | 3 | ||||
-rw-r--r-- | include/vcl/outdev.hxx | 14 | ||||
-rw-r--r-- | include/vcl/outdevstate.hxx | 8 | ||||
-rw-r--r-- | include/vcl/pdfextoutdevdata.hxx | 5 | ||||
-rw-r--r-- | include/vcl/pdfwriter.hxx | 14 | ||||
-rw-r--r-- | include/vcl/pngwrite.hxx | 9 | ||||
-rw-r--r-- | include/vcl/ppdparser.hxx | 6 | ||||
-rw-r--r-- | include/vcl/print.hxx | 7 | ||||
-rw-r--r-- | include/vcl/prntypes.hxx | 1 | ||||
-rw-r--r-- | include/vcl/region.hxx | 1 |
14 files changed, 32 insertions, 59 deletions
diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml index 3d6389e633f3..0615d343c09d 100644 --- a/include/IwyuFilter_include.yaml +++ b/include/IwyuFilter_include.yaml @@ -326,4 +326,11 @@ blacklist: # Needed for macros - com/sun/star/awt/Key.hpp - com/sun/star/awt/KeyGroup.hpp - + include/vcl/outdevstate.hxx: + # Full definition needed for boost::optional + - vcl/mapmod.hxx + - tools/color.hxx + - tools/gen.hxx + include/vcl/prntypes.hxx: + # Needed for macro + - tools/solar.h diff --git a/include/vcl/NotebookbarContextControl.hxx b/include/vcl/NotebookbarContextControl.hxx index b338d8dd3e57..ce557c54904f 100644 --- a/include/vcl/NotebookbarContextControl.hxx +++ b/include/vcl/NotebookbarContextControl.hxx @@ -12,8 +12,6 @@ #include <vcl/EnumContext.hxx> -class NotebookBar; - class NotebookbarContextControl { public: diff --git a/include/vcl/notebookbar.hxx b/include/vcl/notebookbar.hxx index 1e9ab288d9b4..4a031753609a 100644 --- a/include/vcl/notebookbar.hxx +++ b/include/vcl/notebookbar.hxx @@ -12,11 +12,11 @@ #include <vcl/builder.hxx> #include <vcl/ctrl.hxx> -#include <vcl/EnumContext.hxx> -#include <vcl/NotebookbarContextControl.hxx> -#include <com/sun/star/ui/XContextChangeEventListener.hpp> #include <vector> +namespace com { namespace sun { namespace star { namespace ui { class XContextChangeEventListener; } } } } + +class NotebookbarContextControl; class SystemWindow; /// This implements Widget Layout-based notebook-like menu bar. diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index a7b227a687e8..b17ada7e343e 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -15,22 +15,16 @@ #include <epoxy/gl.h> #include <vcl/dllapi.h> -#include <vcl/window.hxx> -#include <tools/gen.hxx> #include <vcl/syschild.hxx> #include <rtl/crc.h> #include <rtl/ref.hxx> -#include <map> #include <memory> -#include <set> #include <unordered_map> class OpenGLFramebuffer; class OpenGLProgram; class OpenGLTexture; -class SalGraphicsImpl; -class OpenGLTests; class RenderState; /// Holds the information of our new child window diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx index 1502fc5d1ebb..9475aeb09355 100644 --- a/include/vcl/opengl/OpenGLHelper.hxx +++ b/include/vcl/opengl/OpenGLHelper.hxx @@ -11,11 +11,12 @@ #define INCLUDED_VCL_OPENGL_OPENGLHELPER_HXX #include <epoxy/gl.h> -#include <sal/log.hxx> +#include <sal/detail/log.h> #include <vcl/dllapi.h> #include <vcl/bitmapex.hxx> #include <rtl/ustring.hxx> +#include <sstream> /// Helper to do a SAL_INFO as well as a GL log. #define VCL_GL_INFO(stream) \ diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 81c47e63c7c6..0d6b80eb6bc2 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -31,7 +31,6 @@ #include <vcl/devicecoordinate.hxx> #include <vcl/dllapi.h> #include <vcl/font.hxx> -#include <vcl/glyphitem.hxx> #include <vcl/region.hxx> #include <vcl/mapmod.hxx> #include <vcl/wall.hxx> @@ -55,7 +54,6 @@ struct ImplOutDevData; class LogicalFontInstance; -class OutDevState; struct SystemGraphicsData; struct SystemFontData; struct SystemTextLayoutData; @@ -68,7 +66,6 @@ class SalGraphics; class Gradient; class Hatch; class AllSettings; -class Bitmap; class BitmapReadAccess; class BitmapEx; class Image; @@ -86,35 +83,26 @@ class SalLayout; class ImplLayoutArgs; class VirtualDevice; struct SalTwoRect; -class VirtualDevice; class Printer; -class FontSelectPattern; class VCLXGraphics; class OutDevStateStack; -struct BitmapSystemData; +class SalLayoutGlyphs; namespace vcl { - class PDFWriterImpl; class ExtOutDevData; class ITextLayout; struct FontCapabilities; class TextLayoutCache; class Window; - class FontInfo; namespace font { struct Feature; } } -namespace com { namespace sun { namespace star { namespace rendering { - class XCanvas; -}}}} - namespace basegfx { class B2DHomMatrix; class B2DPolygon; - class B2DPolyPolygon; class B2IVector; typedef B2IVector B2ISize; } diff --git a/include/vcl/outdevstate.hxx b/include/vcl/outdevstate.hxx index d1f1ff6726b9..d3c469eff513 100644 --- a/include/vcl/outdevstate.hxx +++ b/include/vcl/outdevstate.hxx @@ -21,18 +21,18 @@ #define INCLUDED_VCL_OUTDEVSTATE_HXX #include <vcl/mapmod.hxx> -#include <vcl/region.hxx> -#include <vcl/font.hxx> #include <vcl/vclenum.hxx> -#include <tools/solar.h> +#include <tools/color.hxx> #include <tools/gen.hxx> #include <tools/fontenum.hxx> #include <o3tl/typed_flags_set.hxx> #include <memory> #include <boost/optional.hpp> +#include <i18nlangtag/lang.h> -class Color; +namespace vcl { class Font; } +namespace vcl { class Region; } // Flags for OutputDevice::Push() and OutDevState enum class PushFlags { diff --git a/include/vcl/pdfextoutdevdata.hxx b/include/vcl/pdfextoutdevdata.hxx index fa218655cb0c..4c54b7efcfb0 100644 --- a/include/vcl/pdfextoutdevdata.hxx +++ b/include/vcl/pdfextoutdevdata.hxx @@ -24,14 +24,11 @@ #include <vcl/pdfwriter.hxx> #include <vcl/extoutdevdata.hxx> -#include <vcl/gdimtf.hxx> -#include <vcl/mapmod.hxx> #include <vector> #include <memory> class Graphic; - -namespace vcl { class PDFWriter; } +class GDIMetaFile; namespace vcl { diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 3029202f959a..c8cd7ec0af03 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -26,23 +26,20 @@ #include <rtl/strbuf.hxx> #include <vcl/dllapi.h> -#include <vcl/vclenum.hxx> #include <vcl/font.hxx> -#include <vcl/graphictools.hxx> #include <vcl/outdev.hxx> +#include <vcl/graph.hxx> -#include <com/sun/star/io/XOutputStream.hpp> -#include <com/sun/star/beans/XMaterialHolder.hpp> -#include <com/sun/star/security/XCertificate.hpp> #include <com/sun/star/lang/Locale.hpp> #include <memory> #include <vector> #include <set> -namespace vcl { class Font; } -class Point; -class OutputDevice; +namespace com { namespace sun { namespace star { namespace beans { class XMaterialHolder; } } } } +namespace com { namespace sun { namespace star { namespace io { class XOutputStream; } } } } +namespace com { namespace sun { namespace star { namespace security { class XCertificate; } } } } + class GDIMetaFile; class MapMode; class LineInfo; @@ -52,7 +49,6 @@ namespace tools { } class Bitmap; class BitmapEx; -class Image; class Gradient; class Hatch; class Wallpaper; diff --git a/include/vcl/pngwrite.hxx b/include/vcl/pngwrite.hxx index fe1b2c3e412d..4aa49244df36 100644 --- a/include/vcl/pngwrite.hxx +++ b/include/vcl/pngwrite.hxx @@ -20,13 +20,16 @@ #ifndef INCLUDED_VCL_PNGWRITE_HXX #define INCLUDED_VCL_PNGWRITE_HXX -#include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/beans/PropertyValue.hpp> #include <vcl/dllapi.h> -#include <vcl/bitmapex.hxx> #include <memory> #include <vector> +namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } } +namespace com { namespace sun { namespace star { namespace uno { template <typename > class Sequence; } } } } + +class BitmapEx; +class SvStream; + namespace vcl { class PNGWriterImpl; diff --git a/include/vcl/ppdparser.hxx b/include/vcl/ppdparser.hxx index ce578c1733c3..7ea91547232c 100644 --- a/include/vcl/ppdparser.hxx +++ b/include/vcl/ppdparser.hxx @@ -28,14 +28,11 @@ #include <tools/solar.h> #include <vcl/dllapi.h> -#include <com/sun/star/lang/Locale.hpp> - #define PRINTER_PPDDIR "driver" namespace psp { class PPDCache; -class PPDParser; class PPDTranslator; enum PPDValueType { eInvocation, eQuoted, eSymbol, eString, eNo }; @@ -114,9 +111,6 @@ struct PPDKeyhash * PPDParser - parses a PPD file and contains all available keys from it */ -class PPDContext; -class CUPSManager; - class VCL_DLLPUBLIC PPDParser { friend class PPDContext; diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index a8069d2fec8c..2d1c17e9e486 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -21,24 +21,22 @@ #define INCLUDED_VCL_PRINT_HXX #include <rtl/ustring.hxx> +#include <i18nutil/paper.hxx> #include <vcl/errcode.hxx> -#include <tools/solar.h> #include <vcl/dllapi.h> #include <vcl/outdev.hxx> #include <vcl/prntypes.hxx> #include <vcl/jobset.hxx> -#include <vcl/gdimtf.hxx> -#include <tools/multisel.hxx> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/view/PrintableState.hpp> #include <memory> -#include <set> #include <unordered_map> +class GDIMetaFile; class SalInfoPrinter; struct SalPrinterQueueInfo; class SalPrinter; @@ -47,7 +45,6 @@ enum class SalPrinterError; namespace vcl { class PrinterController; - class PrintDialog; class Window; } diff --git a/include/vcl/prntypes.hxx b/include/vcl/prntypes.hxx index dc7bd64f449b..de85acaa6ea1 100644 --- a/include/vcl/prntypes.hxx +++ b/include/vcl/prntypes.hxx @@ -21,7 +21,6 @@ #define INCLUDED_VCL_PRNTYPES_HXX #include <tools/solar.h> -#include <i18nutil/paper.hxx> #include <o3tl/typed_flags_set.hxx> diff --git a/include/vcl/region.hxx b/include/vcl/region.hxx index ba6715475115..80feefcec5b5 100644 --- a/include/vcl/region.hxx +++ b/include/vcl/region.hxx @@ -25,7 +25,6 @@ #include <basegfx/polygon/b2dpolypolygon.hxx> #include <memory> -class ImplRegionBand; class RegionBand; namespace tools { |