summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2020-11-29 22:26:58 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-12-01 14:56:43 +0100
commit107399d684bae9e58f5e4020f15eb8a689f1db82 (patch)
treed4acfa1fab53bf624a245f893fcca6221b56230c /svtools
parent9c94bae963ef5019f6ca0394d076b1288969aa53 (diff)
tdf#42949 Fix new IWYU warnings in directories s*
Except recently checked sc, sd, svx, sw Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ice1b86628e4f22a39f307b9c5fa567b6ab9d5acb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106917 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/IwyuFilter_svtools.yaml6
-rw-r--r--svtools/inc/table/tablecontrol.hxx1
-rw-r--r--svtools/qa/unit/svtools-dialogs-test.cxx3
-rw-r--r--svtools/source/brwbox/brwbox1.cxx3
-rw-r--r--svtools/source/brwbox/brwbox2.cxx2
-rw-r--r--svtools/source/brwbox/datwin.cxx1
-rw-r--r--svtools/source/brwbox/datwin.hxx4
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx1
-rw-r--r--svtools/source/control/asynclink.cxx1
-rw-r--r--svtools/source/control/ctrlbox.cxx4
-rw-r--r--svtools/source/control/inettbc.cxx2
-rw-r--r--svtools/source/control/toolbarmenu.cxx4
-rw-r--r--svtools/source/control/valueacc.cxx2
-rw-r--r--svtools/source/control/valueset.cxx6
-rw-r--r--svtools/source/dialogs/ServerDetailsControls.cxx3
-rw-r--r--svtools/source/inc/unoiface.hxx4
-rw-r--r--svtools/source/misc/acceleratorexecute.cxx2
-rw-r--r--svtools/source/misc/templatefoldercache.cxx1
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx2
-rw-r--r--svtools/source/uno/unocontroltablemodel.cxx1
-rw-r--r--svtools/source/uno/unocontroltablemodel.hxx3
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx1
-rw-r--r--svtools/source/uno/wizard/wizardpagecontroller.cxx2
-rw-r--r--svtools/source/uno/wizard/wizardshell.hxx1
24 files changed, 11 insertions, 49 deletions
diff --git a/svtools/IwyuFilter_svtools.yaml b/svtools/IwyuFilter_svtools.yaml
index 7f2a6f35cbf5..19ad784bc3ef 100644
--- a/svtools/IwyuFilter_svtools.yaml
+++ b/svtools/IwyuFilter_svtools.yaml
@@ -14,3 +14,9 @@ excludelist:
svtools/qa/unit/testHtmlReader.cxx:
# Needed for the CPPUNIT_TEST_FIXTURE() macro.
- unotest/bootstrapfixturebase.hxx
+ svtools/qa/unit/testHtmlWriter.cxx:
+ # Needed for --with-system-cppunit
+ - unotest/bootstrapfixturebase.hxx
+ svtools/source/uno/statusbarcontroller.cxx:
+ # Needed for template
+ - com/sun/star/ui/XStatusbarItem.hpp
diff --git a/svtools/inc/table/tablecontrol.hxx b/svtools/inc/table/tablecontrol.hxx
index 0514d0238e5a..ecb6ea52c8d9 100644
--- a/svtools/inc/table/tablecontrol.hxx
+++ b/svtools/inc/table/tablecontrol.hxx
@@ -19,7 +19,6 @@
#pragma once
-#include <svtools/svtdllapi.h>
#include <table/tablemodel.hxx>
#include <vcl/accessibletable.hxx>
diff --git a/svtools/qa/unit/svtools-dialogs-test.cxx b/svtools/qa/unit/svtools-dialogs-test.cxx
index 2dc921a7bb8e..85537fc42572 100644
--- a/svtools/qa/unit/svtools-dialogs-test.cxx
+++ b/svtools/qa/unit/svtools-dialogs-test.cxx
@@ -10,9 +10,6 @@
#include <sal/config.h>
#include <test/screenshot_test.hxx>
#include <vcl/abstdlg.hxx>
-#include <vcl/scheduler.hxx>
-#include <vcl/wrkwin.hxx>
-#include <svtools/valueset.hxx>
using namespace ::com::sun::star;
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index f1b42d910075..822ba21f7c00 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -19,15 +19,16 @@
#include <svtools/brwbox.hxx>
#include <svtools/brwhead.hxx>
-#include <svtools/recorditemwindow.hxx>
#include <o3tl/numeric.hxx>
#include <o3tl/safeint.hxx>
#include "datwin.hxx"
#include <tools/debug.hxx>
#include <tools/fract.hxx>
#include <sal/log.hxx>
+#include <vcl/InterimItemWindow.hxx>
#include <vcl/scrbar.hxx>
#include <vcl/svapp.hxx>
+#include <vcl/weld.hxx>
#include <algorithm>
#include <com/sun/star/accessibility/AccessibleTableModelChange.hpp>
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index d2e9f4e04237..c7a83818c7a0 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -22,7 +22,7 @@
#include <osl/diagnose.h>
#include <tools/debug.hxx>
#include <svtools/brwbox.hxx>
-#include <svtools/recorditemwindow.hxx>
+#include <svtools/brwhead.hxx>
#include "datwin.hxx"
#include <svtools/colorcfg.hxx>
#include <vcl/commandevent.hxx>
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index dec389c8769c..a8a20fae8918 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -19,6 +19,7 @@
#include "datwin.hxx"
#include <o3tl/numeric.hxx>
+#include <svtools/brwhead.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/help.hxx>
#include <vcl/settings.hxx>
diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx
index b01e63fbbc7d..8ff37a137324 100644
--- a/svtools/source/brwbox/datwin.hxx
+++ b/svtools/source/brwbox/datwin.hxx
@@ -20,14 +20,10 @@
#pragma once
#include <svtools/brwbox.hxx>
-#include <svtools/brwhead.hxx>
#include <tools/long.hxx>
#include <vcl/scrbar.hxx>
-#include <vcl/timer.hxx>
-#include <vcl/transfer.hxx>
#include <limits>
-#include <vector>
#define MIN_COLUMNWIDTH 2
diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx
index 6557552fc7d5..5e22c9ba33c1 100644
--- a/svtools/source/brwbox/ebbcontrols.cxx
+++ b/svtools/source/brwbox/ebbcontrols.cxx
@@ -18,7 +18,6 @@
#include <svtools/editbrowsebox.hxx>
#include <vcl/svapp.hxx>
-#include <vcl/virdev.hxx>
namespace svt
{
diff --git a/svtools/source/control/asynclink.cxx b/svtools/source/control/asynclink.cxx
index 31a7b28e7978..49ebadb062c1 100644
--- a/svtools/source/control/asynclink.cxx
+++ b/svtools/source/control/asynclink.cxx
@@ -23,7 +23,6 @@
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <vcl/timer.hxx>
-#include <vcl/idle.hxx>
#include <vcl/svapp.hxx>
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 4a0210cde5bd..2f7c3eb4dfdd 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -33,9 +33,7 @@
#include <rtl/math.hxx>
#include <sal/macros.h>
#include <sal/log.hxx>
-#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
-#include <unotools/charclass.hxx>
#include <unotools/localedatawrapper.hxx>
#include <unotools/syslocale.hxx>
@@ -54,8 +52,6 @@
#include <rtl/bootstrap.hxx>
-#include <boost/property_tree/ptree.hpp>
-
#include <borderline.hrc>
#include <stdio.h>
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 006bc2981af9..907ddb32abbb 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -44,8 +44,6 @@
#include <tools/debug.hxx>
#include <osl/file.hxx>
#include <osl/mutex.hxx>
-#include <vcl/event.hxx>
-#include <vcl/svapp.hxx>
#include <unotools/historyoptions.hxx>
#include <unotools/pathoptions.hxx>
#include <ucbhelper/commandenvironment.hxx>
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index b376490fa4fd..0181b2627f2d 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -22,13 +22,9 @@
#include <osl/diagnose.h>
#include <vcl/taskpanelist.hxx>
-#include <vcl/settings.hxx>
-#include <vcl/commandevent.hxx>
-#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <svtools/framestatuslistener.hxx>
-#include <svtools/valueset.hxx>
#include <svtools/toolbarmenu.hxx>
using namespace ::com::sun::star::uno;
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index c43e8d070127..0973f9ff5a15 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -29,9 +29,7 @@
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
-#include <com/sun/star/accessibility/AccessibleRelationType.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
-#include <unotools/accessiblerelationsethelper.hxx>
using namespace ::com::sun::star;
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index c9a94de237a1..ce6bbaacba2a 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -21,16 +21,11 @@
#include <o3tl/safeint.hxx>
#include <tools/debug.hxx>
-#include <tools/stream.hxx>
#include <comphelper/base64.hxx>
#include <vcl/decoview.hxx>
#include <vcl/event.hxx>
-#include <vcl/graph.hxx>
#include <vcl/svapp.hxx>
-#include <vcl/cvtgrf.hxx>
-#include <vcl/help.hxx>
#include <vcl/settings.hxx>
-#include <vcl/commandevent.hxx>
#include <vcl/virdev.hxx>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
@@ -40,7 +35,6 @@
#include "valueimp.hxx"
#include <svtools/valueset.hxx>
-#include <boost/property_tree/ptree.hpp>
#include <uiobject.hxx>
#include <vcl/uitest/logger.hxx>
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx
index 339704dc6fc2..8a3b481b50f3 100644
--- a/svtools/source/dialogs/ServerDetailsControls.cxx
+++ b/svtools/source/dialogs/ServerDetailsControls.cxx
@@ -7,11 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/task/PasswordContainer.hpp>
#include <com/sun/star/task/XPasswordContainer2.hpp>
-#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
@@ -29,7 +27,6 @@
#include "ServerDetailsControls.hxx"
using namespace std;
-using namespace com::sun::star::lang;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::task;
using namespace com::sun::star::ucb;
diff --git a/svtools/source/inc/unoiface.hxx b/svtools/source/inc/unoiface.hxx
index 8bd6cbd38cee..fbfdc1b61609 100644
--- a/svtools/source/inc/unoiface.hxx
+++ b/svtools/source/inc/unoiface.hxx
@@ -19,10 +19,6 @@
#pragma once
-#include <toolkit/awt/vclxwindow.hxx>
-#include <toolkit/awt/vclxwindows.hxx>
-#include <toolkit/helper/listenermultiplexer.hxx>
-
namespace com::sun::star::util
{
class XNumberFormatsSupplier;
diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx
index 0a36c491f556..5ff9e5fa8aae 100644
--- a/svtools/source/misc/acceleratorexecute.cxx
+++ b/svtools/source/misc/acceleratorexecute.cxx
@@ -35,8 +35,6 @@
#include <vcl/evntpost.hxx>
#include <sal/log.hxx>
#include <vcl/lok.hxx>
-#include <vcl/window.hxx>
-#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
namespace svt
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index 6a0af5a84552..d8aa5bc81afc 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -18,7 +18,6 @@
*/
#include <sal/config.h>
-#include <sal/log.hxx>
#include <osl/file.hxx>
#include <svtools/templatefoldercache.hxx>
diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx
index 66986be60430..1f86c6ce0f0e 100644
--- a/svtools/source/uno/popupwindowcontroller.cxx
+++ b/svtools/source/uno/popupwindowcontroller.cxx
@@ -22,9 +22,7 @@
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
-#include <vcl/weldutils.hxx>
-#include <svtools/framestatuslistener.hxx>
#include <svtools/popupwindowcontroller.hxx>
#include <svtools/toolbarmenu.hxx>
diff --git a/svtools/source/uno/unocontroltablemodel.cxx b/svtools/source/uno/unocontroltablemodel.cxx
index e4711daf33d2..f069cad74cc9 100644
--- a/svtools/source/uno/unocontroltablemodel.cxx
+++ b/svtools/source/uno/unocontroltablemodel.cxx
@@ -23,6 +23,7 @@
#include <table/defaultinputhandler.hxx>
#include <table/gridtablerenderer.hxx>
+#include <com/sun/star/awt/grid/XSortableGridData.hpp>
#include <com/sun/star/util/Color.hpp>
#include <o3tl/safeint.hxx>
#include <sal/log.hxx>
diff --git a/svtools/source/uno/unocontroltablemodel.hxx b/svtools/source/uno/unocontroltablemodel.hxx
index 76f8d80c176d..4a69357626ae 100644
--- a/svtools/source/uno/unocontroltablemodel.hxx
+++ b/svtools/source/uno/unocontroltablemodel.hxx
@@ -28,12 +28,9 @@
#include <com/sun/star/awt/grid/XGridDataModel.hpp>
#include <com/sun/star/awt/grid/XGridColumn.hpp>
#include <com/sun/star/awt/grid/XGridColumn.hpp>
-#include <com/sun/star/awt/grid/XSortableGridData.hpp>
#include <com/sun/star/style/VerticalAlignment.hpp>
#include <cppuhelper/weakref.hxx>
-#include <memory>
-
namespace svt::table
{
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index ddc87539c66a..b92c4afafdae 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -21,7 +21,6 @@
#include "wizardshell.hxx"
#include <com/sun/star/container/NoSuchElementException.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/ucb/AlreadyInitializedException.hpp>
diff --git a/svtools/source/uno/wizard/wizardpagecontroller.cxx b/svtools/source/uno/wizard/wizardpagecontroller.cxx
index 2790a0e57c73..69b864fbf049 100644
--- a/svtools/source/uno/wizard/wizardpagecontroller.cxx
+++ b/svtools/source/uno/wizard/wizardpagecontroller.cxx
@@ -21,8 +21,6 @@
#include "wizardpagecontroller.hxx"
#include "wizardshell.hxx"
-#include <com/sun/star/awt/XControl.hpp>
-
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/diagnose_ex.h>
diff --git a/svtools/source/uno/wizard/wizardshell.hxx b/svtools/source/uno/wizard/wizardshell.hxx
index 21e3130e477b..a563ab9547a7 100644
--- a/svtools/source/uno/wizard/wizardshell.hxx
+++ b/svtools/source/uno/wizard/wizardshell.hxx
@@ -20,7 +20,6 @@
#pragma once
#include <com/sun/star/ui/dialogs/XWizardController.hpp>
-#include <com/sun/star/ui/dialogs/XWizard.hpp>
#include <vcl/roadmapwizard.hxx>
#include <map>
#include <memory>