summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-05-07 22:38:05 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-05-08 14:48:05 +0200
commitfba6889f2590185a15646d5b36a49159407a6aaf (patch)
treee74a593f06a03c47e7265a8058cf495e88c0fd5b
parentaf22967160ca02cc65a301b55beb55b1103ecc4a (diff)
tdf#42949 Fix IWYU warnings in sc/inc/[bc]*
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ie63df2185e0586d1fc7db4ed2825a7aa8d8dde73 Reviewed-on: https://gerrit.libreoffice.org/53950 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sc/IwyuFilter_sc.yaml37
-rw-r--r--sc/inc/brdcst.hxx2
-rw-r--r--sc/inc/calcconfig.hxx1
-rw-r--r--sc/inc/cellform.hxx1
-rw-r--r--sc/inc/cellvalues.hxx1
-rw-r--r--sc/inc/chartarr.hxx1
-rw-r--r--sc/inc/chartpos.hxx2
-rw-r--r--sc/inc/chartuno.hxx1
-rw-r--r--sc/inc/chgtrack.hxx8
-rw-r--r--sc/inc/colcontainer.hxx2
-rw-r--r--sc/inc/column.hxx11
-rw-r--r--sc/inc/columnspanset.hxx1
-rw-r--r--sc/inc/compiler.hxx1
-rw-r--r--sc/inc/compressedarray.hxx1
-rw-r--r--sc/inc/conditio.hxx2
-rw-r--r--sc/inc/convuno.hxx1
16 files changed, 37 insertions, 36 deletions
diff --git a/sc/IwyuFilter_sc.yaml b/sc/IwyuFilter_sc.yaml
index e81a97ec325c..668002dbd66b 100644
--- a/sc/IwyuFilter_sc.yaml
+++ b/sc/IwyuFilter_sc.yaml
@@ -40,3 +40,40 @@ blacklist:
sc/inc/autoform.hxx:
# contains macro definitions
- scitems.hxx
+ sc/inc/calcconfig.hxx:
+ # needed for std::shared_ptr
+ - memory
+ sc/inc/chartuno.hxx:
+ # base class has to be a complete type
+ - com/sun/star/container/XEnumerationAccess.hpp
+ - com/sun/star/container/XIndexAccess.hpp
+ - com/sun/star/container/XNamed.hpp
+ - com/sun/star/document/XEmbeddedObjectSupplier.hpp
+ - com/sun/star/lang/XServiceInfo.hpp
+ - com/sun/star/table/XTableChart.hpp
+ - com/sun/star/table/XTableCharts.hpp
+ sc/inc/chgviset.hxx:
+ # base class has to be a complete type
+ - unotools/textsearch.hxx
+ sc/inc/column.hxx:
+ # base class has to be a complete type
+ - mdds/flat_segment_tree.hpp
+ - svx/svdobj.hxx
+ sc/inc/columnset.hxx:
+ # contains macro definitions
+ - address.hxx
+ sc/inc/compiler.hxx:
+ # base class has to be a complete type
+ - com/sun/star/sheet/ExternalLinkInfo.hpp
+ - o3tl/typed_flags_set.hxx
+ - unotools/charclass.hxx
+ sc/inc/confuno.hxx:
+ # base class has to be a complete type
+ - com/sun/star/beans/XPropertySet.hpp
+ - com/sun/star/lang/XServiceInfo.hpp
+ sc/inc/conditio.hxx:
+ # base class has to be a complete type
+ - tools/link.hxx
+ sc/inc/convuno.hxx:
+ # base class has to be a complete type
+ - com/sun/star/lang/Locale.hpp
diff --git a/sc/inc/brdcst.hxx b/sc/inc/brdcst.hxx
index fc0fb7e109af..a05b95f55a06 100644
--- a/sc/inc/brdcst.hxx
+++ b/sc/inc/brdcst.hxx
@@ -22,8 +22,6 @@
#include "address.hxx"
#include <svl/hint.hxx>
-class SvtBroadcaster;
-
class ScHint : public SfxHint
{
ScAddress aAddress;
diff --git a/sc/inc/calcconfig.hxx b/sc/inc/calcconfig.hxx
index d14ff39b183e..3ef920857fd0 100644
--- a/sc/inc/calcconfig.hxx
+++ b/sc/inc/calcconfig.hxx
@@ -13,7 +13,6 @@
#include "scdllapi.h"
#include <memory>
-#include <ostream>
#include <set>
#include <formula/grammar.hxx>
diff --git a/sc/inc/cellform.hxx b/sc/inc/cellform.hxx
index 37a2cebea216..618ad7146220 100644
--- a/sc/inc/cellform.hxx
+++ b/sc/inc/cellform.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_CELLFORM_HXX
#define INCLUDED_SC_INC_CELLFORM_HXX
-#include <tools/solar.h>
#include "scdllapi.h"
#include <rtl/ustring.hxx>
diff --git a/sc/inc/cellvalues.hxx b/sc/inc/cellvalues.hxx
index e6621dc01200..755d0ff52b67 100644
--- a/sc/inc/cellvalues.hxx
+++ b/sc/inc/cellvalues.hxx
@@ -11,7 +11,6 @@
#define INCLUDED_SC_INC_CELLVALUES_HXX
#include "address.hxx"
-#include "global.hxx"
#include <memory>
class ScColumn;
diff --git a/sc/inc/chartarr.hxx b/sc/inc/chartarr.hxx
index bb31f7404d15..b24745bc7388 100644
--- a/sc/inc/chartarr.hxx
+++ b/sc/inc/chartarr.hxx
@@ -24,7 +24,6 @@
#include "chartpos.hxx"
#include <memory>
-#include <vector>
class ScDocument;
diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx
index db699ef2e062..cde8b9ff5285 100644
--- a/sc/inc/chartpos.hxx
+++ b/sc/inc/chartpos.hxx
@@ -24,8 +24,6 @@
#include <memory>
#include <map>
-class ScAddress;
-
// map of row number to ScAddress*
typedef std::map<sal_uLong, ScAddress*> RowMap;
// map of column number to RowMap*
diff --git a/sc/inc/chartuno.hxx b/sc/inc/chartuno.hxx
index f0b715bb3c6c..1dd16cf7a224 100644
--- a/sc/inc/chartuno.hxx
+++ b/sc/inc/chartuno.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_CHARTUNO_HXX
#define INCLUDED_SC_INC_CHARTUNO_HXX
-#include "address.hxx"
#include "rangelst.hxx"
#include <svl/lstner.hxx>
#include <comphelper/proparrhlp.hxx>
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index fd465155e1ce..d5b157184b1c 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -85,8 +85,6 @@ enum ScChangeActionClipMode
SC_CACM_PASTE
};
-class ScChangeAction;
-
/** A link/connection/dependency between change actions.
Upon construction inserts itself as the head of a chain / linked list,
@@ -197,12 +195,6 @@ public:
DECL_FIXEDMEMPOOL_NEWDEL( ScChangeActionCellListEntry )
};
-// ScChangeAction
-class ScChangeTrack;
-class ScChangeActionIns;
-class ScChangeActionDel;
-class ScChangeActionContent;
-
class ScChangeAction
{
friend class ScChangeTrack;
diff --git a/sc/inc/colcontainer.hxx b/sc/inc/colcontainer.hxx
index bf2bd206850f..9bd9c16e260b 100644
--- a/sc/inc/colcontainer.hxx
+++ b/sc/inc/colcontainer.hxx
@@ -21,12 +21,10 @@
#define INCLUDED_SC_INC_COLCONTAINER_HXX
#include "types.hxx"
-#include "address.hxx"
#include <vector>
class ScColumn;
-class ScDocument;
class ScColContainer
{
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 9a10e90a9c61..3f7493ea5fbd 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -20,10 +20,8 @@
#ifndef INCLUDED_SC_INC_COLUMN_HXX
#define INCLUDED_SC_INC_COLUMN_HXX
-#include "markarr.hxx"
#include "global.hxx"
#include "address.hxx"
-#include "rangenam.hxx"
#include "rangelst.hxx"
#include "types.hxx"
#include "mtvelements.hxx"
@@ -35,7 +33,6 @@
#include <set>
#include <vector>
-#include <boost/intrusive_ptr.hpp>
#include <mdds/flat_segment_tree.hpp>
namespace editeng { class SvxBorderLine; }
@@ -82,9 +79,6 @@ class SfxStyleSheetBase;
class SvxBoxInfoItem;
class SvxBoxItem;
-class ScAttrIterator;
-class ScAttrArray;
-struct ScAttrEntry;
class ScDocument;
class ScEditDataArray;
class ScFormulaCell;
@@ -95,16 +89,11 @@ class SvtBroadcaster;
class ScTypedStrData;
class ScProgress;
struct ScFunctionData;
-struct ScLineFlags;
-struct ScMergePatternState;
class ScFlatBoolRowSegments;
struct ScSetStringParam;
struct ScColWidthParam;
-class ScColumnTextWidthIterator;
-struct ScFormulaCellGroup;
struct ScRefCellValue;
struct ScCellValue;
-class ScDocumentImport;
class ScHint;
enum class ScMF;
struct ScFilterEntries;
diff --git a/sc/inc/columnspanset.hxx b/sc/inc/columnspanset.hxx
index fc6f5d4f49f2..8619cbc41aa4 100644
--- a/sc/inc/columnspanset.hxx
+++ b/sc/inc/columnspanset.hxx
@@ -18,7 +18,6 @@
class ScDocument;
class ScColumn;
class ScMarkData;
-class ScRange;
class ScRangeList;
namespace sc {
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx
index 41c193dfaf4f..c99b3c934ee6 100644
--- a/sc/inc/compiler.hxx
+++ b/sc/inc/compiler.hxx
@@ -81,7 +81,6 @@ namespace o3tl {
class ScDocument;
class ScMatrix;
class ScRangeData;
-class ScExternalRefManager;
class ScTokenArray;
namespace sc {
diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx
index 4f65b58e88f7..ffcdd65176fd 100644
--- a/sc/inc/compressedarray.hxx
+++ b/sc/inc/compressedarray.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SC_INC_COMPRESSEDARRAY_HXX
#include <cstddef>
-#include <algorithm>
#include "scdllapi.h"
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx
index dc254ffc042c..6fd387a0e100 100644
--- a/sc/inc/conditio.hxx
+++ b/sc/inc/conditio.hxx
@@ -26,9 +26,7 @@
#include "scdllapi.h"
#include "rangelst.hxx"
-#include <svl/hint.hxx>
#include <svl/listener.hxx>
-#include <svl/broadcast.hxx>
#include <comphelper/stl_types.hxx>
#include <com/sun/star/sheet/ConditionOperator.hpp>
diff --git a/sc/inc/convuno.hxx b/sc/inc/convuno.hxx
index 4786ace2a096..14cf2728c411 100644
--- a/sc/inc/convuno.hxx
+++ b/sc/inc/convuno.hxx
@@ -25,7 +25,6 @@
#include <com/sun/star/table/CellAddress.hpp>
#include <com/sun/star/table/CellRangeAddress.hpp>
#include <com/sun/star/lang/Locale.hpp>
-#include "global.hxx"
#include "address.hxx"
class ScUnoConversion