summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-05-26 21:07:23 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-05-27 09:06:33 +0200
commit6d0eba11f7b859303759af97c6fbc417fd2c5a9f (patch)
tree6312f1a239648145d196ee0561a1ae983e425036
parent0a7341c26741f16835c9062c309e7d3a7fca8209 (diff)
Remove some unused includes
Change-Id: Id5a31185faf2a3a13b6ea266e058a7df41d44423 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94890 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--connectivity/IwyuFilter_connectivity.yaml2
-rw-r--r--filter/source/msfilter/rtfutil.cxx1
-rw-r--r--svx/qa/unit/sdr.cxx2
-rw-r--r--sw/IwyuFilter_sw.yaml6
-rw-r--r--sw/qa/core/frmedt/frmedt.cxx1
-rw-r--r--sw/qa/core/objectpositioning/objectpositioning.cxx11
-rw-r--r--sw/qa/core/txtnode/txtnode.cxx11
-rw-r--r--sw/qa/uibase/dochdl/dochdl.cxx14
-rw-r--r--writerfilter/source/rtftok/rtfdispatchvalue.cxx2
-rw-r--r--writerperfect/IwyuFilter_writerperfect.yaml2
-rw-r--r--xmloff/qa/unit/style.cxx7
11 files changed, 11 insertions, 48 deletions
diff --git a/connectivity/IwyuFilter_connectivity.yaml b/connectivity/IwyuFilter_connectivity.yaml
index 7b5cba571001..969f545b3240 100644
--- a/connectivity/IwyuFilter_connectivity.yaml
+++ b/connectivity/IwyuFilter_connectivity.yaml
@@ -71,3 +71,5 @@ blacklist:
connectivity/source/drivers/odbc/OTools.cxx:
# OSL_BIGENDIAN is being checked
- osl/endian.h
+ connectivity/source/drivers/writer/WDatabaseMetaData.cxx:
+ - com/sun/star/text/XTextDocument.hpp
diff --git a/filter/source/msfilter/rtfutil.cxx b/filter/source/msfilter/rtfutil.cxx
index b347d5726d8d..c4c6b30dfc63 100644
--- a/filter/source/msfilter/rtfutil.cxx
+++ b/filter/source/msfilter/rtfutil.cxx
@@ -14,7 +14,6 @@
#include <svtools/rtfkeywd.hxx>
#include <rtl/character.hxx>
#include <tools/stream.hxx>
-#include <sot/stg.hxx>
#include <sot/storage.hxx>
namespace
diff --git a/svx/qa/unit/sdr.cxx b/svx/qa/unit/sdr.cxx
index a83ad564f33f..18cfd8400ab9 100644
--- a/svx/qa/unit/sdr.cxx
+++ b/svx/qa/unit/sdr.cxx
@@ -11,11 +11,9 @@
#include <unotest/macros_test.hxx>
#include <test/xmltesttools.hxx>
-#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <com/sun/star/frame/Desktop.hpp>
-#include <com/sun/star/text/XTextRange.hpp>
#include <drawinglayer/tools/primitive2dxmldump.hxx>
#include <rtl/ustring.hxx>
diff --git a/sw/IwyuFilter_sw.yaml b/sw/IwyuFilter_sw.yaml
index 860950e24c04..be357a95d7c0 100644
--- a/sw/IwyuFilter_sw.yaml
+++ b/sw/IwyuFilter_sw.yaml
@@ -742,3 +742,9 @@ blacklist:
sw/source/ui/vba/vbatabstops.cxx:
# Actually needed
- com/sun/star/beans/XPropertySet.hpp
+ sw/source/filter/rtf/swparrtf.cxx:
+ - com/sun/star/frame/XModel.hpp
+ sw/source/filter/ww8/docxtablestyleexport.cxx:
+ - com/sun/star/frame/XModel.hpp
+ sw/source/filter/ww8/rtfexport.cxx:
+ - com/sun/star/frame/XModel.hpp
diff --git a/sw/qa/core/frmedt/frmedt.cxx b/sw/qa/core/frmedt/frmedt.cxx
index 87d482eaa09e..c737187887c9 100644
--- a/sw/qa/core/frmedt/frmedt.cxx
+++ b/sw/qa/core/frmedt/frmedt.cxx
@@ -19,7 +19,6 @@
#include <drawdoc.hxx>
#include <dcontact.hxx>
#include <frameformats.hxx>
-#include <pagefrm.hxx>
static char const DATA_DIRECTORY[] = "/sw/qa/core/frmedt/data/";
diff --git a/sw/qa/core/objectpositioning/objectpositioning.cxx b/sw/qa/core/objectpositioning/objectpositioning.cxx
index a000f1c80634..d0431764b5ba 100644
--- a/sw/qa/core/objectpositioning/objectpositioning.cxx
+++ b/sw/qa/core/objectpositioning/objectpositioning.cxx
@@ -11,18 +11,7 @@
#include <com/sun/star/text/VertOrientation.hpp>
-#include <comphelper/classids.hxx>
-#include <svtools/embedhlp.hxx>
-#include <svx/svdpage.hxx>
-#include <tools/globname.hxx>
-#include <unotest/bootstrapfixturebase.hxx>
-#include <vcl/gdimtf.hxx>
-
#include <wrtsh.hxx>
-#include <fmtanchr.hxx>
-#include <IDocumentDrawModelAccess.hxx>
-#include <drawdoc.hxx>
-#include <dcontact.hxx>
static char const DATA_DIRECTORY[] = "/sw/qa/core/objectpositioning/data/";
diff --git a/sw/qa/core/txtnode/txtnode.cxx b/sw/qa/core/txtnode/txtnode.cxx
index c51bdefcfb42..0638fe742ff3 100644
--- a/sw/qa/core/txtnode/txtnode.cxx
+++ b/sw/qa/core/txtnode/txtnode.cxx
@@ -9,19 +9,8 @@
#include <swmodeltestbase.hxx>
-#include <comphelper/classids.hxx>
-#include <svtools/embedhlp.hxx>
-#include <svx/svdpage.hxx>
-#include <tools/globname.hxx>
-#include <unotest/bootstrapfixturebase.hxx>
#include <vcl/gdimtf.hxx>
-#include <wrtsh.hxx>
-#include <fmtanchr.hxx>
-#include <IDocumentDrawModelAccess.hxx>
-#include <drawdoc.hxx>
-#include <dcontact.hxx>
-
static char const DATA_DIRECTORY[] = "/sw/qa/core/txtnode/data/";
/// Covers sw/source/core/txtnode/ fixes.
diff --git a/sw/qa/uibase/dochdl/dochdl.cxx b/sw/qa/uibase/dochdl/dochdl.cxx
index 07e50a78df36..26f8fe502e50 100644
--- a/sw/qa/uibase/dochdl/dochdl.cxx
+++ b/sw/qa/uibase/dochdl/dochdl.cxx
@@ -9,23 +9,9 @@
#include <swmodeltestbase.hxx>
-#include <sfx2/dispatch.hxx>
-#include <sfx2/viewfrm.hxx>
-#include <vcl/GraphicObject.hxx>
-#include <svx/svdpage.hxx>
-#include <editeng/eeitem.hxx>
-#include <editeng/adjustitem.hxx>
-#include <editeng/outlobj.hxx>
-#include <editeng/editobj.hxx>
#include <vcl/transfer.hxx>
-#include <IDocumentContentOperations.hxx>
-#include <cmdid.h>
-#include <fmtanchr.hxx>
-#include <view.hxx>
#include <wrtsh.hxx>
-#include <IDocumentDrawModelAccess.hxx>
-#include <drawdoc.hxx>
#include <swdtflvr.hxx>
/// Covers sw/source/uibase/dochdl/ fixes.
diff --git a/writerfilter/source/rtftok/rtfdispatchvalue.cxx b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
index 2738e96b403f..d6b0fc79b21a 100644
--- a/writerfilter/source/rtftok/rtfdispatchvalue.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
@@ -17,7 +17,7 @@
#include <osl/thread.h>
#include <sal/log.hxx>
#include <rtl/tencinfo.h>
-#include <tools/mapunit.hxx>
+#include <tools/UnitConversion.hxx>
#include <ooxml/resourceids.hxx>
diff --git a/writerperfect/IwyuFilter_writerperfect.yaml b/writerperfect/IwyuFilter_writerperfect.yaml
index 221ae69eacdb..86b497dfffa0 100644
--- a/writerperfect/IwyuFilter_writerperfect.yaml
+++ b/writerperfect/IwyuFilter_writerperfect.yaml
@@ -198,3 +198,5 @@ blacklist:
writerperfect/source/writer/EPUBExportFilter.cxx:
# Actually used
- com/sun/star/uno/XComponentContext.hpp
+ writerperfect/source/writer/EPUBPackage.cxx:
+ - com/sun/star/embed/XStorage.hpp
diff --git a/xmloff/qa/unit/style.cxx b/xmloff/qa/unit/style.cxx
index 0cb37346cc92..4a5b7af616c1 100644
--- a/xmloff/qa/unit/style.cxx
+++ b/xmloff/qa/unit/style.cxx
@@ -11,15 +11,8 @@
#include <unotest/macros_test.hxx>
#include <com/sun/star/frame/Desktop.hpp>
-#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
-#include <comphelper/embeddedobjectcontainer.hxx>
-#include <comphelper/propertyvalue.hxx>
-#include <comphelper/scopeguard.hxx>
-#include <comphelper/storagehelper.hxx>
-#include <officecfg/Office/Common.hxx>
-
using namespace ::com::sun::star;
char const DATA_DIRECTORY[] = "/xmloff/qa/unit/data/";