Kaydet (Commit) 7513af89 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

tdf#42949 Fix IWYU warnings in sc/inc; sc/source/filter/inc/

Found with bin/find-unneeded-includes after recent improvements
- remove UNO headers from blacklist
- remove newly found unneeded fw declarations
- fix up some not self contained headers

Change-Id: I605656bc98a64640a78d2ff4de9c7c37326033cf
Reviewed-on: https://gerrit.libreoffice.org/62264
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst f4818faf
...@@ -10,9 +10,6 @@ blacklist: ...@@ -10,9 +10,6 @@ blacklist:
sc/inc/AccessibleFilterMenuItem.hxx: sc/inc/AccessibleFilterMenuItem.hxx:
# base class has to be a complete type # base class has to be a complete type
- com/sun/star/accessibility/XAccessibleAction.hpp - com/sun/star/accessibility/XAccessibleAction.hpp
sc/inc/address.hxx:
# base class has to be a complete type
- com/sun/star/uno/Sequence.hxx
sc/inc/addruno.hxx: sc/inc/addruno.hxx:
# base class has to be a complete type # base class has to be a complete type
- com/sun/star/beans/XPropertySet.hpp - com/sun/star/beans/XPropertySet.hpp
...@@ -79,6 +76,8 @@ blacklist: ...@@ -79,6 +76,8 @@ blacklist:
sc/inc/conditio.hxx: sc/inc/conditio.hxx:
# base class has to be a complete type # base class has to be a complete type
- tools/link.hxx - tools/link.hxx
# Used as type for a boost::optional variable
- tools/color.hxx
sc/inc/dapiuno.hxx: sc/inc/dapiuno.hxx:
# base class has to be a complete type # base class has to be a complete type
- com/sun/star/container/XEnumerationAccess.hpp - com/sun/star/container/XEnumerationAccess.hpp
...@@ -202,6 +201,7 @@ blacklist: ...@@ -202,6 +201,7 @@ blacklist:
- memory - memory
# needed for conditionally enabled code path # needed for conditionally enabled code path
- struct ScFormulaCellGroup - struct ScFormulaCellGroup
- namespace osl { class File; }
sc/inc/formulaparserpool.hxx: sc/inc/formulaparserpool.hxx:
# base class has to be a complete type # base class has to be a complete type
- com/sun/star/sheet/XFormulaParser.hpp - com/sun/star/sheet/XFormulaParser.hpp
...@@ -215,7 +215,6 @@ blacklist: ...@@ -215,7 +215,6 @@ blacklist:
- com/sun/star/sheet/XFunctionAccess.hpp - com/sun/star/sheet/XFunctionAccess.hpp
sc/inc/global.hxx: sc/inc/global.hxx:
# base class has to be a complete type # base class has to be a complete type
- com/sun/star/uno/Reference.hxx
- tools/ref.hxx - tools/ref.hxx
sc/inc/linkuno.hxx: sc/inc/linkuno.hxx:
# base class has to be a complete type # base class has to be a complete type
......
...@@ -28,12 +28,6 @@ ...@@ -28,12 +28,6 @@
#include <vector> #include <vector>
namespace com { namespace sun { namespace star {
namespace accessibility {
struct AccessibleEventObject;
}
}}}
class ScMenuFloatingWindow; class ScMenuFloatingWindow;
typedef ::cppu::ImplHelper1< typedef ::cppu::ImplHelper1<
......
...@@ -40,7 +40,6 @@ namespace formula { struct VectorRefArray; } ...@@ -40,7 +40,6 @@ namespace formula { struct VectorRefArray; }
namespace sc { namespace sc {
struct FormulaGroupContext;
struct FormulaGroupEntry; struct FormulaGroupEntry;
class StartListeningContext; class StartListeningContext;
class EndListeningContext; class EndListeningContext;
...@@ -49,7 +48,6 @@ class CopyToClipContext; ...@@ -49,7 +48,6 @@ class CopyToClipContext;
class CopyToDocContext; class CopyToDocContext;
class MixDocContext; class MixDocContext;
class ColumnSpanSet; class ColumnSpanSet;
struct ColumnBlockPosition;
class SingleColumnSpanSet; class SingleColumnSpanSet;
struct RefUpdateContext; struct RefUpdateContext;
struct RefUpdateInsertTabContext; struct RefUpdateInsertTabContext;
...@@ -64,7 +62,6 @@ struct RowSpan; ...@@ -64,7 +62,6 @@ struct RowSpan;
class RowHeightContext; class RowHeightContext;
class CompileFormulaContext; class CompileFormulaContext;
struct SetFormulaDirtyContext; struct SetFormulaDirtyContext;
class RefMovedHint;
enum class MatrixEdge; enum class MatrixEdge;
class ColumnIterator; class ColumnIterator;
......
...@@ -24,7 +24,6 @@ namespace sc { ...@@ -24,7 +24,6 @@ namespace sc {
class ScDBDataManager; class ScDBDataManager;
class DataProvider; class DataProvider;
class ScDBDataManager;
class DataTransformation; class DataTransformation;
class SC_DLLPUBLIC ExternalDataSource class SC_DLLPUBLIC ExternalDataSource
......
...@@ -58,7 +58,6 @@ public: ...@@ -58,7 +58,6 @@ public:
private: private:
struct MemberNode; struct MemberNode;
struct DimensionNode;
typedef std::map<OUString, std::shared_ptr<MemberNode> > MembersType; typedef std::map<OUString, std::shared_ptr<MemberNode> > MembersType;
struct DimensionNode struct DimensionNode
......
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
namespace com { namespace sun { namespace star { namespace sheet {
struct DataPilotFieldFilter;
}}}}
class ScDPDimensionSaveData; class ScDPDimensionSaveData;
/** /**
......
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
namespace com { namespace sun { namespace star { namespace sheet {
struct DataPilotFieldFilter;
}}}}
#define SC_DAPI_HIERARCHY_FLAT 0 #define SC_DAPI_HIERARCHY_FLAT 0
#define SC_DAPI_HIERARCHY_QUARTER 1 #define SC_DAPI_HIERARCHY_QUARTER 1
#define SC_DAPI_HIERARCHY_WEEK 2 #define SC_DAPI_HIERARCHY_WEEK 2
......
...@@ -55,9 +55,6 @@ namespace com { namespace sun { namespace star { ...@@ -55,9 +55,6 @@ namespace com { namespace sun { namespace star {
struct DataPilotFieldFilter; struct DataPilotFieldFilter;
struct MemberResult; struct MemberResult;
} }
namespace table {
struct CellAddress;
}
}}} }}}
class ScDPResultMember; class ScDPResultMember;
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
namespace sc { namespace sc {
class CompiledFormula;
class StartListeningContext; class StartListeningContext;
class EndListeningContext; class EndListeningContext;
struct RefUpdateContext; struct RefUpdateContext;
......
...@@ -11,9 +11,13 @@ ...@@ -11,9 +11,13 @@
#define INCLUDED_SC_INC_INTERPRETERCONTEXT_HXX #define INCLUDED_SC_INC_INTERPRETERCONTEXT_HXX
#include <vector> #include <vector>
#include <formula/token.hxx>
#include "types.hxx" #include "types.hxx"
namespace formula
{
class FormulaToken;
}
#define TOKEN_CACHE_SIZE 8 #define TOKEN_CACHE_SIZE 8
class ScDocument; class ScDocument;
......
...@@ -28,9 +28,6 @@ namespace com { namespace sun { namespace star { ...@@ -28,9 +28,6 @@ namespace com { namespace sun { namespace star {
namespace util { namespace util {
class XModifyListener; class XModifyListener;
} }
namespace lang {
struct EventObject;
}
} } } } } }
struct ScUnoListenerEntry struct ScUnoListenerEntry
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
namespace sc { namespace sc {
struct RowSpan;
struct ColRowSpan; struct ColRowSpan;
} }
......
...@@ -39,8 +39,6 @@ class SvNumberFormatter; ...@@ -39,8 +39,6 @@ class SvNumberFormatter;
class ScMatrixImpl; class ScMatrixImpl;
enum class FormulaError : sal_uInt16; enum class FormulaError : sal_uInt16;
namespace formula { class DoubleVectorRefToken; }
namespace sc { namespace sc {
struct Compare; struct Compare;
......
...@@ -33,12 +33,6 @@ ...@@ -33,12 +33,6 @@
// Matrix token constants. // Matrix token constants.
#define MATRIX_TOKEN_HAS_RANGE 1 #define MATRIX_TOKEN_HAS_RANGE 1
namespace sc {
struct RangeMatrix;
}
class ScJumpMatrix; class ScJumpMatrix;
class ScMatrix; class ScMatrix;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "conditio.hxx" #include "conditio.hxx"
#include "scdllapi.h" #include "scdllapi.h"
namespace vcl { class Window; }
namespace weld { class Window; } namespace weld { class Window; }
namespace sc { namespace sc {
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <brdcst.hxx> #include <brdcst.hxx>
#include <document.hxx> #include <document.hxx>
#include <reftokenhelper.hxx> #include <reftokenhelper.hxx>
#include <formula/token.hxx>
#include <com/sun/star/chart/XChartDataChangeEventListener.hpp> #include <com/sun/star/chart/XChartDataChangeEventListener.hpp>
using namespace com::sun::star; using namespace com::sun::star;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#include <interpretercontext.hxx> #include <interpretercontext.hxx>
#include <formula/token.hxx>
#include <lookupcache.hxx> #include <lookupcache.hxx>
ScInterpreterContext::~ScInterpreterContext() ScInterpreterContext::~ScInterpreterContext()
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
namespace oox { namespace oox {
namespace xls { namespace xls {
class ExternalLink;
/** This class implements importing the sheetData element in external sheets. /** This class implements importing the sheetData element in external sheets.
The sheetData element embedded in the externalBook element contains cached The sheetData element embedded in the externalBook element contains cached
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "richstring.hxx" #include "richstring.hxx"
#include "worksheethelper.hxx" #include "worksheethelper.hxx"
#include "addressconverter.hxx"
namespace com { namespace sun { namespace star { namespace com { namespace sun { namespace star {
namespace util { struct DateTime; } namespace util { struct DateTime; }
...@@ -151,7 +152,6 @@ public: ...@@ -151,7 +152,6 @@ public:
const ScAddress& rCellAddr, const ScAddress& rCellAddr,
const ApiTokenSequence& rTokens ); const ApiTokenSequence& rTokens );
private: private:
struct XfIdRowRange;
/** Creates a formula token array representing the shared formula with the /** Creates a formula token array representing the shared formula with the
passed identifier. */ passed identifier. */
......
...@@ -46,8 +46,6 @@ class XclImpChart; ...@@ -46,8 +46,6 @@ class XclImpChart;
class XclImpDffConverter; class XclImpDffConverter;
class XclImpDrawing; class XclImpDrawing;
struct SdrObjectFreeOp;
// Drawing objects ============================================================ // Drawing objects ============================================================
class XclImpDrawObjBase; class XclImpDrawObjBase;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment