summaryrefslogtreecommitdiff
path: root/sc/inc
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/inc
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/inc')
-rw-r--r--sc/inc/ChartTools.hxx10
-rw-r--r--sc/inc/datamapper.hxx1
-rw-r--r--sc/inc/dociter.hxx1
-rw-r--r--sc/inc/externalrefmgr.hxx16
-rw-r--r--sc/inc/fielduno.hxx6
-rw-r--r--sc/inc/formulaiter.hxx1
-rw-r--r--sc/inc/funcuno.hxx1
-rw-r--r--sc/inc/nameuno.hxx4
-rw-r--r--sc/inc/recursionhelper.hxx1
-rw-r--r--sc/inc/scabstdlg.hxx14
-rw-r--r--sc/inc/scdll.hxx6
-rw-r--r--sc/inc/scmod.hxx11
-rw-r--r--sc/inc/shapeuno.hxx2
-rw-r--r--sc/inc/sheetevents.hxx3
-rw-r--r--sc/inc/testlotus.hxx2
15 files changed, 28 insertions, 51 deletions
diff --git a/sc/inc/ChartTools.hxx b/sc/inc/ChartTools.hxx
index ffac3aeb036d..736142a056c6 100644
--- a/sc/inc/ChartTools.hxx
+++ b/sc/inc/ChartTools.hxx
@@ -12,11 +12,15 @@
#define INCLUDED_SC_INC_CHARTTOOLS_HXX
#include <memory>
-#include <svx/svdoole2.hxx>
+#include <vector>
+
#include <svx/svditer.hxx>
+#include <rtl/ustring.hxx>
+
+#include "types.hxx"
-#include <docsh.hxx>
-#include "drwlayer.hxx"
+class ScDocShell;
+class SdrOle2Obj;
namespace sc {
namespace tools {
diff --git a/sc/inc/datamapper.hxx b/sc/inc/datamapper.hxx
index 1ea5e4111c6a..2c20897b7356 100644
--- a/sc/inc/datamapper.hxx
+++ b/sc/inc/datamapper.hxx
@@ -19,7 +19,6 @@
#include "orcusxml.hxx"
class ScDocument;
-class ScDBData;
namespace sc {
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index 5ceacf4a9b26..ad90b360a120 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -37,7 +37,6 @@ class ScPatternAttr;
class ScAttrArray;
class ScAttrIterator;
class ScFlatBoolRowSegments;
-struct ScInterpreterContext;
class ScMatrix;
struct ScDBQueryParamBase;
struct ScQueryParam;
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 028dcdf67cb6..f889c1406d59 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -20,40 +20,30 @@
#ifndef INCLUDED_SC_INC_EXTERNALREFMGR_HXX
#define INCLUDED_SC_INC_EXTERNALREFMGR_HXX
-#include "global.hxx"
#include "address.hxx"
#include <sfx2/objsh.hxx>
#include <sfx2/lnkbase.hxx>
-#include <sfx2/event.hxx>
#include <tools/time.hxx>
#include <vcl/timer.hxx>
#include <svl/zforlist.hxx>
#include <svl/lstner.hxx>
#include "types.hxx"
#include "rangelst.hxx"
-#include <formula/token.hxx>
#include <osl/mutex.hxx>
+#include <formula/types.hxx>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <vector>
-#include <list>
#include <set>
#include <formula/ExternalReferenceHelper.hxx>
class ScDocument;
class ScTokenArray;
-namespace vcl { class Window; }
-class ScFormulaCell;
-
-class ScExternalRefCache;
-
-namespace svl {
+namespace weld { class Window; }
-class SharedStringPool;
-
-}
+class ScFormulaCell;
namespace sc {
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx
index c600f29d79e9..7bc542aacfb3 100644
--- a/sc/inc/fielduno.hxx
+++ b/sc/inc/fielduno.hxx
@@ -24,7 +24,6 @@
#include "mutexhlp.hxx"
#include <svl/lstner.hxx>
-#include <svl/itemprop.hxx>
#include <editeng/editdata.hxx>
#include <com/sun/star/text/XTextField.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -37,17 +36,18 @@
#include <com/sun/star/util/DateTime.hpp>
#include <cppuhelper/component.hxx>
#include <cppuhelper/implbase.hxx>
-#include <comphelper/interfacecontainer2.hxx>
#include <osl/mutex.hxx>
#include <memory>
+namespace comphelper { class OInterfaceContainerHelper2; }
+
class ScEditSource;
class SvxFieldItem;
class SvxFieldData;
-class ScEditFieldObj;
class ScDocShell;
class ScHeaderFooterTextData;
+class SfxItemPropertySet;
class ScCellFieldsObj : public cppu::WeakImplHelper<
css::container::XEnumerationAccess,
diff --git a/sc/inc/formulaiter.hxx b/sc/inc/formulaiter.hxx
index 6e471d7574b1..5a0775a8b056 100644
--- a/sc/inc/formulaiter.hxx
+++ b/sc/inc/formulaiter.hxx
@@ -24,7 +24,6 @@
#include "address.hxx"
-class ScTokenArray;
class ScFormulaCell;
/**
diff --git a/sc/inc/funcuno.hxx b/sc/inc/funcuno.hxx
index df65d249c212..08a60c42467a 100644
--- a/sc/inc/funcuno.hxx
+++ b/sc/inc/funcuno.hxx
@@ -28,7 +28,6 @@
#include <svl/lstner.hxx>
#include "document.hxx"
#include <svl/itemprop.hxx>
-#include <o3tl/deleter.hxx>
class ScDocOptions;
diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx
index 62375e598007..448db7c8af7f 100644
--- a/sc/inc/nameuno.hxx
+++ b/sc/inc/nameuno.hxx
@@ -30,9 +30,7 @@
#include <com/sun/star/sheet/XNamedRange.hpp>
#include <com/sun/star/sheet/XFormulaTokens.hpp>
#include <com/sun/star/sheet/XNamedRanges.hpp>
-#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XServiceName.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -40,6 +38,8 @@
#include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx>
+namespace com { namespace sun { namespace star { namespace container { class XNamed; } } } }
+
class ScDocShell;
class ScNamedRangesObj;
diff --git a/sc/inc/recursionhelper.hxx b/sc/inc/recursionhelper.hxx
index b2d21daa378b..03ed1db176ed 100644
--- a/sc/inc/recursionhelper.hxx
+++ b/sc/inc/recursionhelper.hxx
@@ -27,7 +27,6 @@
#include <stack>
class ScFormulaCell;
-struct ScFormulaCellGroup;
struct ScFormulaRecursionEntry
{
diff --git a/sc/inc/scabstdlg.hxx b/sc/inc/scabstdlg.hxx
index d6c7e0deda94..170d739da8db 100644
--- a/sc/inc/scabstdlg.hxx
+++ b/sc/inc/scabstdlg.hxx
@@ -21,18 +21,15 @@
#define INCLUDED_SC_INC_SCABSTDLG_HXX
#include <tools/solar.h>
-#include <sfx2/sfxdlg.hxx>
-#include <vcl/syswin.hxx>
-#include <vcl/field.hxx>
-#include "sc.hrc"
+#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
+#include <sfx2/tabdlg.hxx>
+#include <tools/fldunit.hxx>
+#include <vcl/abstdlg.hxx>
#include "global.hxx"
#include "pivot.hxx"
#include <i18nlangtag/lang.h>
#include <asciiopt.hxx>
-#include <tabvwsh.hxx>
-
-class ScAsciiOptions;
class ScAutoFormat;
class ScAutoFormatData;
class ScDocument;
@@ -41,10 +38,9 @@ class ScViewData;
class ScQueryItem;
class ScImportOptions;
class SfxStyleSheetBase;
+class SfxAbstractTabDialog;
class ScDPObject;
-struct ScPivotFuncData;
struct ScDPNumGroupInfo;
-class ScSortWarningDlg;
class ScTabViewShell;
class ScConditionalFormat;
class ScConditionalFormatList;
diff --git a/sc/inc/scdll.hxx b/sc/inc/scdll.hxx
index a0e0d9ce0362..59fa75a47a0b 100644
--- a/sc/inc/scdll.hxx
+++ b/sc/inc/scdll.hxx
@@ -20,12 +20,6 @@
#ifndef INCLUDED_SC_INC_SCDLL_HXX
#define INCLUDED_SC_INC_SCDLL_HXX
-class SfxMedium;
-class SfxFilter;
-
-#include <sfx2/module.hxx>
-#include <sfx2/docfac.hxx>
-
#include "scdllapi.h"
/**
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index fb9d0ab5c973..7ba92a747aec 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -21,22 +21,18 @@
#define INCLUDED_SC_INC_SCMOD_HXX
#include "scdllapi.h"
-#include "scdll.hxx"
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <svl/lstner.hxx>
+#include <sfx2/module.hxx>
#include "global.hxx"
#include "shellids.hxx"
#include <unotools/options.hxx>
-#include <ooo/vba/XSinkCaller.hpp>
+#include <com/sun/star/uno/Reference.h>
-#include <com/sun/star/datatransfer/XTransferable2.hpp>
-
-#include <algorithm>
#include <vector>
#include <map>
#include <memory>
-#include <stack>
class KeyEvent;
class EditView;
@@ -46,6 +42,9 @@ class SvtCTLOptions;
class SvtUserOptions;
namespace svtools { class ColorConfig; }
+namespace ooo { namespace vba { class XSinkCaller; } }
+namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
+namespace com { namespace sun { namespace star { namespace uno { template <typename > class Sequence; } } } }
class ScRange;
class ScDocument;
diff --git a/sc/inc/shapeuno.hxx b/sc/inc/shapeuno.hxx
index 270399377b65..e3ce7f2855d8 100644
--- a/sc/inc/shapeuno.hxx
+++ b/sc/inc/shapeuno.hxx
@@ -24,7 +24,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/text/XText.hpp>
-#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/document/XEventsSupplier.hpp>
#include <com/sun/star/container/XChild.hpp>
@@ -43,7 +42,6 @@ namespace com { namespace sun { namespace star {
class SdrObject;
struct SvEventDescription;
-class ShapeUnoEventAccessImpl;
class ScMacroInfo;
// object which aggregates all svx shape objects,
diff --git a/sc/inc/sheetevents.hxx b/sc/inc/sheetevents.hxx
index 8434cc209e4c..64dd3e498592 100644
--- a/sc/inc/sheetevents.hxx
+++ b/sc/inc/sheetevents.hxx
@@ -22,7 +22,8 @@
#include <rtl/ustring.hxx>
#include <memory>
-#include <boost/optional.hpp>
+
+namespace boost { template <class T> class optional; }
enum class ScSheetEventId {
FOCUS, UNFOCUS, SELECT, DOUBLECLICK, RIGHTCLICK, CHANGE, CALCULATE, COUNT,
diff --git a/sc/inc/testlotus.hxx b/sc/inc/testlotus.hxx
index aeaf359124f3..f160dc7327bd 100644
--- a/sc/inc/testlotus.hxx
+++ b/sc/inc/testlotus.hxx
@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#include "scdll.hxx"
+#include <sal/types.h>
class SvStream;