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