From 79e618c65f398b83df45232c227f92fb5eca49a7 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 13 Jan 2019 12:44:04 +0100 Subject: tdf#42949 Fix remaining IWYU warnings in include/vcl/* Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Some new headers were added since I begun the cleanup here Also blacklist the header from commit 403e3c04420c4d20c77427c43df52d554d7329ff Change-Id: Ie2358d5e27297f873aeb4a4dfb2778e6fb95dfa5 Reviewed-on: https://gerrit.libreoffice.org/66255 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- include/IwyuFilter_include.yaml | 9 +++++++++ include/vcl/accessiblefactory.hxx | 8 ++++++-- include/vcl/accessibletable.hxx | 10 +++++++--- include/vcl/accessibletableprovider.hxx | 7 ++++--- include/vcl/mtfxmldump.hxx | 3 ++- 5 files changed, 28 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml index 6a94bcdeca5f..e9f6ccf7d8fe 100644 --- a/include/IwyuFilter_include.yaml +++ b/include/IwyuFilter_include.yaml @@ -242,10 +242,16 @@ blacklist: include/svl/urihelper.hxx: # base class has to be a complete type - tools/link.hxx + include/vcl/FilterConfigItem.hxx: + # Needed on Windows with --disable-pch + - com/sun/star/beans/PropertyValue.hpp include/vcl/builderfactory.hxx: # Needed for macros - vcl/builder.hxx - vcl/vclptr.hxx + include/vcl/decoview.hxx: + # Full definition needed for VclPtr + - vcl/outdev.hxx include/vcl/devicecoordinate.hxx: # Needed for #if configure switch - basegfx/point/b2ipoint.hxx @@ -262,6 +268,9 @@ blacklist: # Needed for macros - com/sun/star/awt/Key.hpp - com/sun/star/awt/KeyGroup.hpp + include/vcl/mtfxmldump.hxx: + # Full definition needed for o3tl::enumarray + - vcl/metaactiontypes.hxx include/vcl/outdevstate.hxx: # Full definition needed for boost::optional - vcl/mapmod.hxx diff --git a/include/vcl/accessiblefactory.hxx b/include/vcl/accessiblefactory.hxx index 8426333ecfd7..a191b0193705 100644 --- a/include/vcl/accessiblefactory.hxx +++ b/include/vcl/accessiblefactory.hxx @@ -21,12 +21,11 @@ #define INCLUDED_VCL_ACCESSIBLEFACTORY_HXX #include -#include #include -#include #include +#include namespace com { namespace sun { namespace star { namespace accessibility { @@ -37,6 +36,11 @@ namespace com { namespace sun { namespace star { class XWindow; } } } } + +namespace vcl { class IAccessibleBrowseBox; } +namespace vcl { class IAccessibleTabListBox; } +namespace vcl { class IAccessibleTableProvider; } + class SvHeaderTabListBox; class SvtIconChoiceCtrl; class TabBar; diff --git a/include/vcl/accessibletable.hxx b/include/vcl/accessibletable.hxx index d6c0dc3b7ffc..f132466c1590 100644 --- a/include/vcl/accessibletable.hxx +++ b/include/vcl/accessibletable.hxx @@ -20,9 +20,13 @@ #ifndef INCLUDED_VCL_ACCESSIBLETABLE_HXX #define INCLUDED_VCL_ACCESSIBLETABLE_HXX -#include -#include -#include +#include + +#include + +namespace com { namespace sun { namespace star { namespace accessibility { class XAccessible; } } } } +namespace utl { class AccessibleStateSetHelper; } +namespace vcl { class Window; } namespace vcl { namespace table { diff --git a/include/vcl/accessibletableprovider.hxx b/include/vcl/accessibletableprovider.hxx index 982ac62c0905..03aba6d3ef6c 100644 --- a/include/vcl/accessibletableprovider.hxx +++ b/include/vcl/accessibletableprovider.hxx @@ -20,10 +20,11 @@ #ifndef INCLUDED_VCL_ACCESSIBLETABLEPROVIDER_HXX #define INCLUDED_VCL_ACCESSIBLETABLEPROVIDER_HXX -#include -#include #include -#include +#include + +namespace com { namespace sun { namespace star { namespace accessibility { class XAccessible; } } } } +namespace utl { class AccessibleStateSetHelper; } namespace vcl { diff --git a/include/vcl/mtfxmldump.hxx b/include/vcl/mtfxmldump.hxx index 797430d0cc6b..3bdf4d663eb9 100644 --- a/include/vcl/mtfxmldump.hxx +++ b/include/vcl/mtfxmldump.hxx @@ -12,11 +12,12 @@ #include #include -#include #include #include namespace tools { class XmlWriter; } +class GDIMetaFile; +class SvStream; enum class MetaActionType; -- cgit