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:
sc/inc/convuno.hxx:
# base class has to be a complete type
- 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 @@
#ifndef INCLUDED_SC_INC_EXTERNALDATAMAPPER_HXX
#define INCLUDED_SC_INC_EXTERNALDATAMAPPER_HXX
#include <memory>
#include <vector>
#include "scdllapi.h"
......
......@@ -36,7 +36,6 @@ class ScDocument;
struct ScSortParam;
struct ScQueryParam;
struct ScSubTotalParam;
struct ScImportParam;
/** Enum used to indicate which portion of the DBArea is to be considered. */
enum class ScDBDataPortion
......
......@@ -20,8 +20,9 @@
#ifndef INCLUDED_SC_INC_DBDOCUTL_HXX
#define INCLUDED_SC_INC_DBDOCUTL_HXX
#include "address.hxx"
#include <com/sun/star/uno/Reference.hxx>
#include "types.hxx"
#include <sal/types.h>
class ScDocument;
......
......@@ -12,9 +12,8 @@
#include <svl/poolitem.hxx>
#include <unotools/configitem.hxx>
#include <formula/grammar.hxx>
#include "scdllapi.h"
#include "global.hxx"
#include "types.hxx"
class SC_DLLPUBLIC ScDefaultsOptions
{
......
......@@ -24,7 +24,6 @@
#include <tools/gen.hxx>
#include <tools/color.hxx>
#include "scdllapi.h"
#include "token.hxx"
#include <vector>
......@@ -32,8 +31,6 @@ class SdrObject;
class ScDetectiveData;
class ScDocument;
class ScAddress;
class ScRange;
#define SC_DET_MAXCIRCLE 1000
......
......@@ -22,7 +22,6 @@
#include "address.hxx"
#include "formulagroup.hxx"
#include <tools/solar.h>
#include "global.hxx"
#include "scdllapi.h"
#include "cellvalue.hxx"
......@@ -37,7 +36,6 @@ class ScDocument;
class ScPatternAttr;
class ScAttrArray;
class ScAttrIterator;
class ScRange;
class ScFlatBoolRowSegments;
class ScMatrix;
struct ScDBQueryParamBase;
......
......@@ -10,7 +10,8 @@
#ifndef 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.
......
......@@ -21,7 +21,6 @@
class EditTextObject;
class ScDocument;
class ScColumn;
class ScAddress;
struct ScAttrEntry;
class ScTokenArray;
class ScFormulaCell;
......
......@@ -13,7 +13,6 @@
#include <rtl/ustring.hxx>
#include <memory>
class ScDocument;
class SfxObjectShell;
namespace weld { class Window; }
......
......@@ -22,7 +22,6 @@
#include "global.hxx"
#include "dpnumgroupinfo.hxx"
#include "calcmacros.hxx"
#include <tools/date.hxx>
#include <mdds/flat_segment_tree.hpp>
......@@ -34,7 +33,6 @@
struct ScQueryParam;
class ScDPObject;
class ScDPItemData;
struct ScDPNumGroupInfo;
enum class SvNumFormatType : sal_Int16;
/**
......
......@@ -21,21 +21,15 @@
#define INCLUDED_SC_INC_DPFILTEREDCACHE_HXX
#include <sal/types.h>
#include <osl/mutex.hxx>
#include "global.hxx"
#include "dpitemdata.hxx"
#include "calcmacros.hxx"
#include <memory>
#include <unordered_set>
#include <vector>
#include <mdds/flat_segment_tree.hpp>
class ScDPItemData;
class ScDPCache;
class ScDocument;
class ScRange;
struct ScDPValue;
struct ScQueryParam;
......
......@@ -56,10 +56,8 @@ namespace com { namespace sun { namespace star {
namespace tools { class Rectangle; }
class ScDPSaveData;
class ScDPOutput;
struct ScPivotParam;
struct ScImportSourceDesc;
class ScSheetSourceDesc;
struct ScPivotField;
class ScDPTableData;
class ScDPDimensionSaveData;
class ScRangeList;
......
......@@ -26,7 +26,6 @@
#include <com/sun/star/sheet/DataPilotOutputRangeType.hpp>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
#include "global.hxx"
#include "address.hxx"
#include "dpfilteredcache.hxx"
......
......@@ -23,8 +23,6 @@
#include "address.hxx"
#include <vector>
class ScAddress;
class SC_DLLPUBLIC ScDPOutputGeometry
{
public:
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_DPSAVE_HXX
#define INCLUDED_SC_INC_DPSAVE_HXX
#include <list>
#include <memory>
#include <vector>
......
......@@ -27,7 +27,6 @@
#include <unordered_set>
#include <vector>
class ScDPFilteredCache;
class ScDocument;
class ScDPCache;
class ScDPDimensionSaveData;
......
......@@ -21,7 +21,6 @@
#define INCLUDED_SC_INC_DPSHTTAB_HXX
#include "dptabdat.hxx"
#include "global.hxx"
#include "address.hxx"
#include "scdllapi.h"
#include "queryparam.hxx"
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_DPTABDAT_HXX
#define INCLUDED_SC_INC_DPTABDAT_HXX
#include "address.hxx"
#include "dpoutput.hxx"
#include "dpfilteredcache.hxx"
#include "dpcache.hxx"
......@@ -28,9 +27,7 @@
#include <svl/zforlist.hxx>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <vector>
namespace com { namespace sun { namespace star { namespace sheet {
......@@ -56,7 +53,6 @@ class ScDPResultMember;
class ScDPDimension;
class ScDPLevel;
class ScDPInitState;
class ScDPResultMember;
class ScDocument;
/**
......
......@@ -39,13 +39,10 @@ namespace com { namespace sun { namespace star { namespace sheet {
struct DataPilotFieldReference;
} } } }
class ScAddress;
class ScDocument;
class ScDPSource;
class ScDPDimension;
class ScDPLevel;
class ScDPMember;
class ScDPAggData;
class ScDPResultMember;
class ScDPResultVisibilityData;
......
......@@ -20,7 +20,6 @@
#ifndef 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/XHierarchiesSupplier.hpp>
#include <com/sun/star/sheet/XLevelsSupplier.hpp>
......@@ -44,10 +43,8 @@
#include <rtl/ref.hxx>
#include "dptabdat.hxx"
#include "dpglobal.hxx"
#include "dpresfilter.hxx"
#include <list>
#include <memory>
#include <unordered_map>
#include <unordered_set>
......@@ -66,7 +63,6 @@ namespace com { namespace sun { namespace star {
class ScDPResultMember;
class ScDPResultData;
class ScDPItemData;
class ScDPTableData;
class ScDPDimensions;
class ScDPDimension;
class ScDPHierarchies;
......
......@@ -14,8 +14,6 @@
#include "scdllapi.h"
#include "global.hxx"
#include <com/sun/star/sheet/GeneralFunction.hpp>
class SvNumberFormatter;
struct ScDPNumGroupInfo;
enum class ScGeneralFunction;
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_DRWLAYER_HXX
#define INCLUDED_SC_INC_DRWLAYER_HXX
#include <vcl/graph.hxx>
#include <svx/fmmodel.hxx>
#include <svx/svdundo.hxx>
#include "global.hxx"
......@@ -32,8 +31,6 @@ class ScIMapInfo;
class ScMacroInfo;
class IMapObject;
class ScMarkData;
class ScRange;
class ScAddress;
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