summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-05-15 07:11:19 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-06-04 08:33:57 +0200
commit620315e0cb230b6e6922920c6e0e7bb25386cce6 (patch)
treede9ac69f7d65b07274ab8ac8103f1caae0459b42
parent951e7a43e62c22d4c7f7fb18de738d86ab3c2251 (diff)
tdf#42949 Fix IWYU warnings in sc/inc/r*
Found with bin/find-unneeded-includes Only removal proposals are dealt with here and a bit of fallout management Change-Id: I5dd272c6c5fa305113f4446ed49c130c6c007146 Reviewed-on: https://gerrit.libreoffice.org/55096 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sc/IwyuFilter_sc.yaml6
-rw-r--r--sc/inc/rangeseq.hxx5
-rw-r--r--sc/inc/rangeutl.hxx9
-rw-r--r--sc/inc/rechead.hxx2
-rw-r--r--sc/inc/refdata.hxx1
-rw-r--r--sc/inc/refreshtimerprotector.hxx1
-rw-r--r--sc/inc/reftokenhelper.hxx6
-rw-r--r--sc/inc/rowheightcontext.hxx2
8 files changed, 18 insertions, 14 deletions
diff --git a/sc/IwyuFilter_sc.yaml b/sc/IwyuFilter_sc.yaml
index 47346286fea1..3e934749e154 100644
--- a/sc/IwyuFilter_sc.yaml
+++ b/sc/IwyuFilter_sc.yaml
@@ -192,3 +192,9 @@ blacklist:
- com/sun/star/container/XNameAccess.hpp
- com/sun/star/lang/XServiceInfo.hpp
- cppuhelper/supportsservice.hxx
+ sc/inc/reftokenhelper.hxx:
+ # base class has to be a complete type
+ - refdata.hxx
+ sc/inc/rowheightcontext.hxx:
+ # base class has to be a complete type
+ - vcl/outdev.hxx
diff --git a/sc/inc/rangeseq.hxx b/sc/inc/rangeseq.hxx
index dc8ce018dd64..6b532aed75ca 100644
--- a/sc/inc/rangeseq.hxx
+++ b/sc/inc/rangeseq.hxx
@@ -20,11 +20,14 @@
#ifndef INCLUDED_SC_INC_RANGESEQ_HXX
#define INCLUDED_SC_INC_RANGESEQ_HXX
-#include <com/sun/star/uno/Any.h>
#include "types.hxx"
+#include <com/sun/star/uno/TypeClass.hpp>
+
+namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
class SvNumberFormatter;
class ScDocument;
+class ScMatrix;
class ScRange;
class ScRangeToSequence
diff --git a/sc/inc/rangeutl.hxx b/sc/inc/rangeutl.hxx
index 68c930221ca7..e65213f848db 100644
--- a/sc/inc/rangeutl.hxx
+++ b/sc/inc/rangeutl.hxx
@@ -25,16 +25,13 @@
#include "dbdata.hxx"
#include "scdllapi.h"
-#include <com/sun/star/table/CellAddress.hpp>
-#include <com/sun/star/table/CellRangeAddress.hpp>
-#include <com/sun/star/uno/Sequence.hxx>
+namespace com { namespace sun { namespace star { namespace table { struct CellAddress; } } } }
+namespace com { namespace sun { namespace star { namespace table { struct CellRangeAddress; } } } }
+namespace com { namespace sun { namespace star { namespace uno { template <typename > class Sequence; } } } }
class ScArea;
class ScDocument;
-class ScRange;
-class ScRangeName;
class ScRangeList;
-class ScDBCollection;
enum RutlNameScope { RUTL_NONE=0, RUTL_NAMES, RUTL_DBASE };
diff --git a/sc/inc/rechead.hxx b/sc/inc/rechead.hxx
index c6839e750b80..6f90c218bdbb 100644
--- a/sc/inc/rechead.hxx
+++ b/sc/inc/rechead.hxx
@@ -43,8 +43,6 @@
// btw: 10 following 09 is not a counting error but an intentional gap,
// because it was not clear, how long the RelRefs development would take. :)
-class SvStream;
-
// Header with size specification for multiple objects
class ScMultipleReadHeader
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx
index 8a7cc81b67e0..7edac9f4bb01 100644
--- a/sc/inc/refdata.hxx
+++ b/sc/inc/refdata.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_REFDATA_HXX
#define INCLUDED_SC_INC_REFDATA_HXX
-#include "global.hxx"
#include "address.hxx"
#include "scdllapi.h"
#include "calcmacros.hxx"
diff --git a/sc/inc/refreshtimerprotector.hxx b/sc/inc/refreshtimerprotector.hxx
index 9a4f41b6e209..9fcb50421096 100644
--- a/sc/inc/refreshtimerprotector.hxx
+++ b/sc/inc/refreshtimerprotector.hxx
@@ -12,6 +12,7 @@
#include <sal/config.h>
#include "scdllapi.h"
+#include <memory>
class ScRefreshTimerControl;
diff --git a/sc/inc/reftokenhelper.hxx b/sc/inc/reftokenhelper.hxx
index 0ce3336db8c2..cf71b2309bad 100644
--- a/sc/inc/reftokenhelper.hxx
+++ b/sc/inc/reftokenhelper.hxx
@@ -20,13 +20,15 @@
#ifndef INCLUDED_SC_INC_REFTOKENHELPER_HXX
#define INCLUDED_SC_INC_REFTOKENHELPER_HXX
-#include "token.hxx"
+#include "address.hxx"
+#include "types.hxx"
+#include "scdllapi.h"
#include <vector>
class ScDocument;
-class ScRange;
class ScRangeList;
+struct ScComplexRefData;
namespace ScRefTokenHelper
{
diff --git a/sc/inc/rowheightcontext.hxx b/sc/inc/rowheightcontext.hxx
index d1a8f8ff68e4..78bee982744e 100644
--- a/sc/inc/rowheightcontext.hxx
+++ b/sc/inc/rowheightcontext.hxx
@@ -16,8 +16,6 @@
#include <vcl/vclptr.hxx>
#include <vcl/outdev.hxx>
-#include <vector>
-
#include "segmenttree.hxx"
namespace sc {