summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-08-07 10:56:34 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-08-07 17:28:47 +0200
commita30072282e7bc7d9dda68986b4859cc1d6575597 (patch)
tree86d148805a1c64a634380c1192bca27133380a73 /sc/source
parent8e7d6bd5095404337c6e6dab1b9a20f69765ef29 (diff)
tdf#42949 Fix remaining IWYU warnings in sc/inc
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. With this patch, find-unneeded-includes gives no more problems Change-Id: I24e62be7a387d7fd97a36f54eed0ba9d83ddaf0c Reviewed-on: https://gerrit.libreoffice.org/58667 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/drwlayer.cxx1
-rw-r--r--sc/source/core/data/sheetevents.cxx1
-rw-r--r--sc/source/core/tool/chgtrack.cxx1
-rw-r--r--sc/source/core/tool/editutil.cxx1
-rw-r--r--sc/source/ui/app/scmod.cxx1
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.cxx1
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.hxx1
-rw-r--r--sc/source/ui/attrdlg/scuiexp.cxx1
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx1
-rw-r--r--sc/source/ui/docshell/docsh.cxx2
-rw-r--r--sc/source/ui/docshell/docsh4.cxx1
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx1
-rw-r--r--sc/source/ui/inc/scuiasciiopt.hxx1
-rw-r--r--sc/source/ui/pagedlg/tphf.cxx1
-rw-r--r--sc/source/ui/pagedlg/tphfedit.cxx1
-rw-r--r--sc/source/ui/unoobj/ChartTools.cxx4
-rw-r--r--sc/source/ui/unoobj/TablePivotChart.cxx1
-rw-r--r--sc/source/ui/unoobj/appluno.cxx1
-rw-r--r--sc/source/ui/view/cellsh2.cxx1
-rw-r--r--sc/source/ui/view/formatsh.cxx1
-rw-r--r--sc/source/ui/view/tabvwsha.cxx1
21 files changed, 25 insertions, 0 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 1c49c947cb01..ca1f47f96756 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -48,6 +48,7 @@
#include <svx/shapepropertynotifier.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/docfile.hxx>
+#include <sfx2/objsh.hxx>
#include <sot/storage.hxx>
#include <svl/itempool.hxx>
#include <vcl/virdev.hxx>
diff --git a/sc/source/core/data/sheetevents.cxx b/sc/source/core/data/sheetevents.cxx
index 507bca6d1c64..5531473bb9bb 100644
--- a/sc/source/core/data/sheetevents.cxx
+++ b/sc/source/core/data/sheetevents.cxx
@@ -19,6 +19,7 @@
#include <sheetevents.hxx>
#include <com/sun/star/script/vba/VBAEventId.hpp>
+#include <boost/optional.hpp>
OUString ScSheetEvents::GetEventName(ScSheetEventId nEvent)
{
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index 8b73880e718e..77f09a9105a5 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -42,6 +42,7 @@
#include <svl/isethint.hxx>
#include <svl/itempool.hxx>
#include <sfx2/app.hxx>
+#include <sfx2/objsh.hxx>
#include <unotools/useroptions.hxx>
#include <unotools/datetime.hxx>
#include <sfx2/sfxsids.hrc>
diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx
index bdadc8f64693..579434fdc8db 100644
--- a/sc/source/core/tool/editutil.cxx
+++ b/sc/source/core/tool/editutil.cxx
@@ -34,6 +34,7 @@
#include <vcl/outdev.hxx>
#include <svl/inethist.hxx>
#include <unotools/syslocale.hxx>
+#include <sfx2/objsh.hxx>
#include <com/sun/star/text/textfield/Type.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 62cea990b760..707ebb1e8f82 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -71,6 +71,7 @@
#include <com/sun/star/linguistic2/XThesaurus.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/datatransfer/XTransferable2.hpp>
+#include <ooo/vba/XSinkCaller.hpp>
#include <scmod.hxx>
#include <global.hxx>
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx
index a511594f2126..9f40c38f2b7e 100644
--- a/sc/source/ui/attrdlg/scdlgfact.cxx
+++ b/sc/source/ui/attrdlg/scdlgfact.cxx
@@ -74,6 +74,7 @@
#include <editutil.hxx>
#include <scres.hrc>
#include <svx/dialogs.hrc>
+#include <sfx2/sfxdlg.hxx>
IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);
IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl);
diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx
index ec1f62d35f9f..c1d6aac33a58 100644
--- a/sc/source/ui/attrdlg/scdlgfact.hxx
+++ b/sc/source/ui/attrdlg/scdlgfact.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_SC_SOURCE_UI_ATTRDLG_SCDLGFACT_HXX
#include <scabstdlg.hxx>
+#include <sfx2/sfxdlg.hxx>
class Dialog;
class ScImportAsciiDlg;
class ScAutoFormatDlg;
diff --git a/sc/source/ui/attrdlg/scuiexp.cxx b/sc/source/ui/attrdlg/scuiexp.cxx
index f034589cf2f2..e93b23995c10 100644
--- a/sc/source/ui/attrdlg/scuiexp.cxx
+++ b/sc/source/ui/attrdlg/scuiexp.cxx
@@ -51,6 +51,7 @@
#include <tabbgcolordlg.hxx>
#include <textimportoptions.hxx>
#include <sal/types.h>
+#include <sfx2/sfxdlg.hxx>
namespace scui
{
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 53a902288c3f..83eb6215ac77 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -23,6 +23,7 @@
#include <vcl/waitobj.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <svx/svdpage.hxx>
+#include <svx/svdoole2.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <dbdocfun.hxx>
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 390fb9ab9bee..fba755a6e823 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -20,6 +20,7 @@
#include <docsh.hxx>
#include <scitems.hxx>
+#include <sc.hrc>
#include <vcl/errinf.hxx>
#include <editeng/justifyitem.hxx>
#include <comphelper/fileformat.h>
@@ -36,6 +37,7 @@
#include <sfx2/bindings.hxx>
#include <sfx2/dinfdlg.hxx>
#include <sfx2/docfile.hxx>
+#include <sfx2/event.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/viewfrm.hxx>
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 56e47acad5ec..c1139561817e 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -52,6 +52,7 @@ using namespace ::com::sun::star;
#include <sfx2/passwd.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/dispatch.hxx>
+#include <sfx2/sfxdlg.hxx>
#include <svl/PasswordHelper.hxx>
#include <svl/documentlockfile.hxx>
#include <svl/sharecontrolfile.hxx>
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index ed03347ebbf9..a70d2019a69d 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -40,6 +40,7 @@
#include <sfx2/app.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/docfile.hxx>
+#include <sfx2/event.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/objsh.hxx>
diff --git a/sc/source/ui/inc/scuiasciiopt.hxx b/sc/source/ui/inc/scuiasciiopt.hxx
index 49fa4b1b69b3..223ca7288c9d 100644
--- a/sc/source/ui/inc/scuiasciiopt.hxx
+++ b/sc/source/ui/inc/scuiasciiopt.hxx
@@ -22,6 +22,7 @@
#include <vcl/dialog.hxx>
#include <svx/langbox.hxx>
+#include <tools/stream.hxx>
#include "asciiopt.hxx"
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx
index 571a650a679a..c3268772696e 100644
--- a/sc/source/ui/pagedlg/tphf.cxx
+++ b/sc/source/ui/pagedlg/tphf.cxx
@@ -21,6 +21,7 @@
#include <scitems.hxx>
#include <sfx2/basedlgs.hxx>
+#include <sfx2/sfxdlg.hxx>
#include <svl/style.hxx>
#include <vcl/svapp.hxx>
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index ba8582e5db87..54c72df18fb8 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -28,6 +28,7 @@
#include <editeng/fhgtitem.hxx>
#include <sfx2/basedlgs.hxx>
#include <sfx2/objsh.hxx>
+#include <sfx2/sfxdlg.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/builderfactory.hxx>
diff --git a/sc/source/ui/unoobj/ChartTools.cxx b/sc/source/ui/unoobj/ChartTools.cxx
index 942cbceac822..c74263697442 100644
--- a/sc/source/ui/unoobj/ChartTools.cxx
+++ b/sc/source/ui/unoobj/ChartTools.cxx
@@ -9,11 +9,15 @@
*/
#include <ChartTools.hxx>
+#include <docsh.hxx>
+#include <drwlayer.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/chart2/data/XPivotTableDataProvider.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
+#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <svx/svditer.hxx>
+#include <svx/svdoole2.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdundo.hxx>
#include <sfx2/app.hxx>
diff --git a/sc/source/ui/unoobj/TablePivotChart.cxx b/sc/source/ui/unoobj/TablePivotChart.cxx
index 75604ca31e89..5f0448cdb5fd 100644
--- a/sc/source/ui/unoobj/TablePivotChart.cxx
+++ b/sc/source/ui/unoobj/TablePivotChart.cxx
@@ -10,6 +10,7 @@
#include <com/sun/star/chart2/data/XPivotTableDataProvider.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <svx/charthelper.hxx>
+#include <svx/svdoole2.hxx>
#include <svtools/embedhlp.hxx>
#include <miscuno.hxx>
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index b62ddd6db66a..febd4f2fcadd 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -35,6 +35,7 @@
#include <printopt.hxx>
#include <userlist.hxx>
#include <sc.hrc>
+#include <scdll.hxx>
#include <unonames.hxx>
#include <funcdesc.hxx>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index b9cead695b7a..390e396b43c4 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -25,6 +25,7 @@
#include <sfx2/viewfrm.hxx>
#include <sfx2/app.hxx>
#include <sfx2/request.hxx>
+#include <sfx2/sfxdlg.hxx>
#include <svl/aeitem.hxx>
#include <basic/sbxcore.hxx>
#include <svl/whiter.hxx>
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index 5b11b8b046de..7622c978683c 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -31,6 +31,7 @@
#include <sfx2/newstyle.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/request.hxx>
+#include <sfx2/sfxdlg.hxx>
#include <svl/whiter.hxx>
#include <svl/stritem.hxx>
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index a5c51b7fc5f5..985c229a4a78 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -32,6 +32,7 @@
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
+#include <sfx2/sfxdlg.hxx>
#include <global.hxx>
#include <attrib.hxx>