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

tdf#42949 Fix IWYU warnings in sc/inc/d*

Found with bin/find-unneeded-includes
Mostly removal proposals are dealt with here
and a few trivial substitutions in small headers

Change-Id: Ic4b2e48f1e55fc5d10e3dab16cfee1e358a8e917
Reviewed-on: https://gerrit.libreoffice.org/54005Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 9992338f
...@@ -77,3 +77,49 @@ blacklist: ...@@ -77,3 +77,49 @@ blacklist:
sc/inc/convuno.hxx: sc/inc/convuno.hxx:
# base class has to be a complete type # base class has to be a complete type
- com/sun/star/lang/Locale.hpp - com/sun/star/lang/Locale.hpp
sc/inc/dbdocutl.hxx:
# base class has to be a complete type
- com/sun/star/uno/Reference.hxx
sc/inc/defltuno.hxx:
# base class has to be a complete type
- com/sun/star/beans/XPropertySet.hpp
- com/sun/star/beans/XPropertyState.hpp
- com/sun/star/lang/XServiceInfo.hpp
sc/inc/dispuno.hxx:
# base class has to be a complete type
- com/sun/star/frame/XDispatchProviderInterceptor.hpp
- com/sun/star/view/XSelectionChangeListener.hpp
sc/inc/dpglobal.hxx:
# base class has to be a complete type
- o3tl/typed_flags_set.hxx
sc/inc/dpoutput.hxx:
# base class has to be a complete type
- com/sun/star/sheet/DataResult.hpp
- com/sun/star/sheet/MemberResult.hpp
- com/sun/star/sheet/XDimensionsSupplier.hpp
sc/inc/dpobject.hxx:
# base class has to be a complete type
- com/sun/star/sheet/XDimensionsSupplier.hpp
sc/inc/dpsave.hxx:
# base class has to be a complete type
- com/sun/star/sheet/XDimensionsSupplier.hpp
sc/inc/dptabres.hxx:
# base class has to be a complete type
- com/sun/star/sheet/DataResult.hpp
- com/sun/star/sheet/MemberResult.hpp
- com/sun/star/uno/Sequence.hxx
sc/inc/dptabsrc.hxx:
# base class has to be a complete type
- com/sun/star/beans/XPropertySet.hpp
- com/sun/star/container/XNamed.hpp
- com/sun/star/lang/XServiceInfo.hpp
- com/sun/star/sheet/MemberResult.hpp
- com/sun/star/sheet/XDataPilotMemberResults.hpp
- com/sun/star/sheet/XDataPilotResults.hpp
- com/sun/star/sheet/XDimensionsSupplier.hpp
- com/sun/star/sheet/XDrillDownDataSupplier.hpp
- com/sun/star/sheet/XHierarchiesSupplier.hpp
- com/sun/star/sheet/XLevelsSupplier.hpp
- com/sun/star/sheet/XMembersSupplier.hpp
- com/sun/star/util/XCloneable.hpp
- com/sun/star/util/XRefreshable.hpp
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#ifndef INCLUDED_SC_INC_EXTERNALDATAMAPPER_HXX #ifndef INCLUDED_SC_INC_EXTERNALDATAMAPPER_HXX
#define INCLUDED_SC_INC_EXTERNALDATAMAPPER_HXX #define INCLUDED_SC_INC_EXTERNALDATAMAPPER_HXX
#include <memory>
#include <vector> #include <vector>
#include "scdllapi.h" #include "scdllapi.h"
......
...@@ -36,7 +36,6 @@ class ScDocument; ...@@ -36,7 +36,6 @@ class ScDocument;
struct ScSortParam; struct ScSortParam;
struct ScQueryParam; struct ScQueryParam;
struct ScSubTotalParam; struct ScSubTotalParam;
struct ScImportParam;
/** Enum used to indicate which portion of the DBArea is to be considered. */ /** Enum used to indicate which portion of the DBArea is to be considered. */
enum class ScDBDataPortion enum class ScDBDataPortion
......
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
#ifndef INCLUDED_SC_INC_DBDOCUTL_HXX #ifndef INCLUDED_SC_INC_DBDOCUTL_HXX
#define INCLUDED_SC_INC_DBDOCUTL_HXX #define INCLUDED_SC_INC_DBDOCUTL_HXX
#include "address.hxx"
#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Reference.hxx>
#include "types.hxx"
#include <sal/types.h>
class ScDocument; class ScDocument;
......
...@@ -12,9 +12,8 @@ ...@@ -12,9 +12,8 @@
#include <svl/poolitem.hxx> #include <svl/poolitem.hxx>
#include <unotools/configitem.hxx> #include <unotools/configitem.hxx>
#include <formula/grammar.hxx>
#include "scdllapi.h" #include "scdllapi.h"
#include "global.hxx" #include "types.hxx"
class SC_DLLPUBLIC ScDefaultsOptions class SC_DLLPUBLIC ScDefaultsOptions
{ {
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <tools/color.hxx> #include <tools/color.hxx>
#include "scdllapi.h" #include "scdllapi.h"
#include "token.hxx"
#include <vector> #include <vector>
...@@ -32,8 +31,6 @@ class SdrObject; ...@@ -32,8 +31,6 @@ class SdrObject;
class ScDetectiveData; class ScDetectiveData;
class ScDocument; class ScDocument;
class ScAddress;
class ScRange;
#define SC_DET_MAXCIRCLE 1000 #define SC_DET_MAXCIRCLE 1000
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "address.hxx" #include "address.hxx"
#include "formulagroup.hxx" #include "formulagroup.hxx"
#include <tools/solar.h>
#include "global.hxx" #include "global.hxx"
#include "scdllapi.h" #include "scdllapi.h"
#include "cellvalue.hxx" #include "cellvalue.hxx"
...@@ -37,7 +36,6 @@ class ScDocument; ...@@ -37,7 +36,6 @@ class ScDocument;
class ScPatternAttr; class ScPatternAttr;
class ScAttrArray; class ScAttrArray;
class ScAttrIterator; class ScAttrIterator;
class ScRange;
class ScFlatBoolRowSegments; class ScFlatBoolRowSegments;
class ScMatrix; class ScMatrix;
struct ScDBQueryParamBase; struct ScDBQueryParamBase;
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
#ifndef INCLUDED_SC_INC_DOCPARAM_HXX #ifndef INCLUDED_SC_INC_DOCPARAM_HXX
#define INCLUDED_SC_INC_DOCPARAM_HXX #define INCLUDED_SC_INC_DOCPARAM_HXX
#include "address.hxx" #include <sal/types.h> // for sal_uInt32
#include "types.hxx" // for SCROW
// Let's put here misc structures that get passed to ScDocument's methods. // Let's put here misc structures that get passed to ScDocument's methods.
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
class EditTextObject; class EditTextObject;
class ScDocument; class ScDocument;
class ScColumn; class ScColumn;
class ScAddress;
struct ScAttrEntry; struct ScAttrEntry;
class ScTokenArray; class ScTokenArray;
class ScFormulaCell; class ScFormulaCell;
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <memory> #include <memory>
class ScDocument;
class SfxObjectShell; class SfxObjectShell;
namespace weld { class Window; } namespace weld { class Window; }
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "global.hxx" #include "global.hxx"
#include "dpnumgroupinfo.hxx" #include "dpnumgroupinfo.hxx"
#include "calcmacros.hxx" #include "calcmacros.hxx"
#include <tools/date.hxx>
#include <mdds/flat_segment_tree.hpp> #include <mdds/flat_segment_tree.hpp>
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
struct ScQueryParam; struct ScQueryParam;
class ScDPObject; class ScDPObject;
class ScDPItemData; class ScDPItemData;
struct ScDPNumGroupInfo;
enum class SvNumFormatType : sal_Int16; enum class SvNumFormatType : sal_Int16;
/** /**
......
...@@ -21,21 +21,15 @@ ...@@ -21,21 +21,15 @@
#define INCLUDED_SC_INC_DPFILTEREDCACHE_HXX #define INCLUDED_SC_INC_DPFILTEREDCACHE_HXX
#include <sal/types.h> #include <sal/types.h>
#include <osl/mutex.hxx>
#include "global.hxx"
#include "dpitemdata.hxx" #include "dpitemdata.hxx"
#include "calcmacros.hxx" #include "calcmacros.hxx"
#include <memory>
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
#include <mdds/flat_segment_tree.hpp> #include <mdds/flat_segment_tree.hpp>
class ScDPItemData;
class ScDPCache; class ScDPCache;
class ScDocument;
class ScRange;
struct ScDPValue; struct ScDPValue;
struct ScQueryParam; struct ScQueryParam;
......
...@@ -56,10 +56,8 @@ namespace com { namespace sun { namespace star { ...@@ -56,10 +56,8 @@ namespace com { namespace sun { namespace star {
namespace tools { class Rectangle; } namespace tools { class Rectangle; }
class ScDPSaveData; class ScDPSaveData;
class ScDPOutput; class ScDPOutput;
struct ScPivotParam;
struct ScImportSourceDesc; struct ScImportSourceDesc;
class ScSheetSourceDesc; class ScSheetSourceDesc;
struct ScPivotField;
class ScDPTableData; class ScDPTableData;
class ScDPDimensionSaveData; class ScDPDimensionSaveData;
class ScRangeList; class ScRangeList;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <com/sun/star/sheet/DataPilotOutputRangeType.hpp> #include <com/sun/star/sheet/DataPilotOutputRangeType.hpp>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp> #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
#include "global.hxx"
#include "address.hxx" #include "address.hxx"
#include "dpfilteredcache.hxx" #include "dpfilteredcache.hxx"
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include "address.hxx" #include "address.hxx"
#include <vector> #include <vector>
class ScAddress;
class SC_DLLPUBLIC ScDPOutputGeometry class SC_DLLPUBLIC ScDPOutputGeometry
{ {
public: public:
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_DPSAVE_HXX #ifndef INCLUDED_SC_INC_DPSAVE_HXX
#define INCLUDED_SC_INC_DPSAVE_HXX #define INCLUDED_SC_INC_DPSAVE_HXX
#include <list>
#include <memory> #include <memory>
#include <vector> #include <vector>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
class ScDPFilteredCache;
class ScDocument; class ScDocument;
class ScDPCache; class ScDPCache;
class ScDPDimensionSaveData; class ScDPDimensionSaveData;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define INCLUDED_SC_INC_DPSHTTAB_HXX #define INCLUDED_SC_INC_DPSHTTAB_HXX
#include "dptabdat.hxx" #include "dptabdat.hxx"
#include "global.hxx"
#include "address.hxx" #include "address.hxx"
#include "scdllapi.h" #include "scdllapi.h"
#include "queryparam.hxx" #include "queryparam.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_DPTABDAT_HXX #ifndef INCLUDED_SC_INC_DPTABDAT_HXX
#define INCLUDED_SC_INC_DPTABDAT_HXX #define INCLUDED_SC_INC_DPTABDAT_HXX
#include "address.hxx"
#include "dpoutput.hxx" #include "dpoutput.hxx"
#include "dpfilteredcache.hxx" #include "dpfilteredcache.hxx"
#include "dpcache.hxx" #include "dpcache.hxx"
...@@ -28,9 +27,7 @@ ...@@ -28,9 +27,7 @@
#include <svl/zforlist.hxx> #include <svl/zforlist.hxx>
#include <set>
#include <unordered_set> #include <unordered_set>
#include <unordered_map>
#include <vector> #include <vector>
namespace com { namespace sun { namespace star { namespace sheet { namespace com { namespace sun { namespace star { namespace sheet {
...@@ -56,7 +53,6 @@ class ScDPResultMember; ...@@ -56,7 +53,6 @@ class ScDPResultMember;
class ScDPDimension; class ScDPDimension;
class ScDPLevel; class ScDPLevel;
class ScDPInitState; class ScDPInitState;
class ScDPResultMember;
class ScDocument; class ScDocument;
/** /**
......
...@@ -39,13 +39,10 @@ namespace com { namespace sun { namespace star { namespace sheet { ...@@ -39,13 +39,10 @@ namespace com { namespace sun { namespace star { namespace sheet {
struct DataPilotFieldReference; struct DataPilotFieldReference;
} } } } } } } }
class ScAddress;
class ScDocument;
class ScDPSource; class ScDPSource;
class ScDPDimension; class ScDPDimension;
class ScDPLevel; class ScDPLevel;
class ScDPMember; class ScDPMember;
class ScDPAggData;
class ScDPResultMember; class ScDPResultMember;
class ScDPResultVisibilityData; class ScDPResultVisibilityData;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_DPTABSRC_HXX #ifndef INCLUDED_SC_INC_DPTABSRC_HXX
#define INCLUDED_SC_INC_DPTABSRC_HXX #define INCLUDED_SC_INC_DPTABSRC_HXX
#include "global.hxx"
#include <com/sun/star/sheet/XDimensionsSupplier.hpp> #include <com/sun/star/sheet/XDimensionsSupplier.hpp>
#include <com/sun/star/sheet/XHierarchiesSupplier.hpp> #include <com/sun/star/sheet/XHierarchiesSupplier.hpp>
#include <com/sun/star/sheet/XLevelsSupplier.hpp> #include <com/sun/star/sheet/XLevelsSupplier.hpp>
...@@ -44,10 +43,8 @@ ...@@ -44,10 +43,8 @@
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include "dptabdat.hxx" #include "dptabdat.hxx"
#include "dpglobal.hxx"
#include "dpresfilter.hxx" #include "dpresfilter.hxx"
#include <list>
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>
...@@ -66,7 +63,6 @@ namespace com { namespace sun { namespace star { ...@@ -66,7 +63,6 @@ namespace com { namespace sun { namespace star {
class ScDPResultMember; class ScDPResultMember;
class ScDPResultData; class ScDPResultData;
class ScDPItemData; class ScDPItemData;
class ScDPTableData;
class ScDPDimensions; class ScDPDimensions;
class ScDPDimension; class ScDPDimension;
class ScDPHierarchies; class ScDPHierarchies;
......
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#include "scdllapi.h" #include "scdllapi.h"
#include "global.hxx" #include "global.hxx"
#include <com/sun/star/sheet/GeneralFunction.hpp>
class SvNumberFormatter; class SvNumberFormatter;
struct ScDPNumGroupInfo; struct ScDPNumGroupInfo;
enum class ScGeneralFunction; enum class ScGeneralFunction;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_DRWLAYER_HXX #ifndef INCLUDED_SC_INC_DRWLAYER_HXX
#define INCLUDED_SC_INC_DRWLAYER_HXX #define INCLUDED_SC_INC_DRWLAYER_HXX
#include <vcl/graph.hxx>
#include <svx/fmmodel.hxx> #include <svx/fmmodel.hxx>
#include <svx/svdundo.hxx> #include <svx/svdundo.hxx>
#include "global.hxx" #include "global.hxx"
...@@ -32,8 +31,6 @@ class ScIMapInfo; ...@@ -32,8 +31,6 @@ class ScIMapInfo;
class ScMacroInfo; class ScMacroInfo;
class IMapObject; class IMapObject;
class ScMarkData; class ScMarkData;
class ScRange;
class ScAddress;
class ScTabDeletedHint : public SfxHint class ScTabDeletedHint : public SfxHint
{ {
......
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