Kaydet (Commit) d2dab407 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Jochen Nitschke

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

Found with bin/find-unneeded-includes
Removal proposals and fallout management are dealt with here.

Change-Id: I21217fbac071f06987b989e735982b2dfad6a54e
Reviewed-on: https://gerrit.libreoffice.org/55537Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
üst 0da89ede
......@@ -203,3 +203,35 @@ blacklist:
sc/inc/rowheightcontext.hxx:
# base class has to be a complete type
- vcl/outdev.hxx
sc/inc/scerrors.hxx:
# needed for defines
- vcl/errcode.hxx
sc/inc/scitems.hxx:
# needed for defines
- svl/typedwhich.hxx
sc/inc/scmatrix.hxx:
# base class has to be a complete type
- svl/sharedstringpool.hxx
sc/inc/simplerangelist.hxx:
# base class has to be a complete type
- memory
sc/inc/spellcheckcontext.hxx:
# base class has to be a complete type
- editeng/misspellrange.hxx
sc/inc/srchuno.hxx:
# base class has to be a complete type
- com/sun/star/lang/XServiceInfo.hpp
- com/sun/star/lang/XUnoTunnel.hpp
- com/sun/star/util/XReplaceDescriptor.hpp
sc/inc/styleuno.hxx:
# base class has to be a complete type
- com/sun/star/beans/XMultiPropertySet.hpp
- com/sun/star/beans/XMultiPropertyStates.hpp
- com/sun/star/beans/XPropertySet.hpp
- com/sun/star/beans/XPropertyState.hpp
- com/sun/star/container/XIndexAccess.hpp
- com/sun/star/container/XNameContainer.hpp
- com/sun/star/lang/XServiceInfo.hpp
- com/sun/star/lang/XUnoTunnel.hpp
- com/sun/star/style/XStyle.hpp
- com/sun/star/style/XStyleLoader2.hpp
......@@ -23,8 +23,6 @@
#include <sfx2/sfxsids.hrc>
#include <svx/svxids.hrc>
#include <svx/svxcommands.h>
// areas
#define SC_VIEW_START (SID_SC_START)
......
......@@ -22,7 +22,6 @@
#include <memory>
#include <tools/gen.hxx>
#include <tools/color.hxx>
#include "global.hxx"
#include "rangelst.hxx"
/** Extended settings for the document, used in import/export filters. */
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_SCITEMS_HXX
#define INCLUDED_SC_INC_SCITEMS_HXX
#include <svx/svxids.hrc>
#include <svl/typedwhich.hxx>
// EditEngine is not allowed to define its own ITEMID's
......
......@@ -20,20 +20,17 @@
#ifndef INCLUDED_SC_INC_SCMATRIX_HXX
#define INCLUDED_SC_INC_SCMATRIX_HXX
#include "global.hxx"
#include "address.hxx"
#include "matrixoperators.hxx"
#include "types.hxx"
#include <formula/errorcodes.hxx>
#include "scdllapi.h"
#include <rtl/ustring.hxx>
#include <svl/sharedstring.hxx>
#include <svl/sharedstringpool.hxx>
#include <functional>
#include <memory>
#include <utility>
#include <vector>
#include <boost/intrusive_ptr.hpp>
#define DEBUG_MATRIX 0
......
......@@ -21,7 +21,6 @@
#define SC_SCRES_HRC
#include "sc.hrc"
#include <formula/compiler.hxx>
#define STR_START (SC_RESOURCE_START+100)
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_SC_INC_SEGMENTTREE_HXX
#define INCLUDED_SC_INC_SEGMENTTREE_HXX
#include "address.hxx"
#include "types.hxx"
#include <memory>
......
......@@ -20,8 +20,10 @@
#ifndef INCLUDED_SC_INC_SERVUNO_HXX
#define INCLUDED_SC_INC_SERVUNO_HXX
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/uno/Reference.h>
namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
class ScDocShell;
......
......@@ -20,14 +20,12 @@
#ifndef INCLUDED_SC_INC_SHEETDATA_HXX
#define INCLUDED_SC_INC_SHEETDATA_HXX
#include <xmloff/maptype.hxx>
#include <editeng/editdata.hxx>
#include <unordered_set>
#include <vector>
#include "address.hxx"
class ScAddress;
class SvXMLNamespaceMap;
struct ScStreamEntry
......
......@@ -26,9 +26,6 @@
#include <map>
#include <memory>
class ScRange;
class ScRangeList;
/**
* This container is optimized for use in the ods import filter, to store
* ranges for cell styles. We may change the name of this class once we
......
......@@ -10,10 +10,11 @@
#ifndef INCLUDED_SC_INC_SPELLCHECKCONTEXT_HXX
#define INCLUDED_SC_INC_SPELLCHECKCONTEXT_HXX
#include "address.hxx"
#include <editeng/misspellrange.hxx>
#include "types.hxx"
#include <unordered_map>
#include <vector>
namespace sc {
......
......@@ -10,7 +10,6 @@
#ifndef INCLUDED_SC_INC_STLALGORITHM_HXX
#define INCLUDED_SC_INC_STLALGORITHM_HXX
#include <functional>
#include <limits>
#include <rtl/alloc.h>
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_INC_STYLEUNO_HXX
#define INCLUDED_SC_INC_STYLEUNO_HXX
#include <svl/itemprop.hxx>
#include <svl/lstner.hxx>
#include <svl/style.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
......@@ -28,22 +27,23 @@
#include <com/sun/star/style/XStyleLoader2.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XIndexReplace.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XMultiPropertyStates.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XComponent.hpp>
namespace com { namespace sun { namespace star { namespace container { class XIndexReplace; } } } }
namespace com { namespace sun { namespace star { namespace lang { class XComponent; } } } }
class SfxStyleSheetBase;
class ScDocShell;
class SfxObjectShell;
class SfxItemPropertySet;
class SfxItemSet;
class ScStyleFamilyObj;
class ScStyleObj;
struct SfxItemPropertySimpleEntry;
class ScStyleFamiliesObj : public ::cppu::WeakImplHelper<
css::container::XIndexAccess,
......
......@@ -11,7 +11,6 @@
#define INCLUDED_SC_INC_SUBTOTALPARAM_HXX
#include "global.hxx"
#include "address.hxx"
struct SC_DLLPUBLIC ScSubTotalParam
{
......
......@@ -38,6 +38,7 @@
#include <svx/svdograf.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdundo.hxx>
#include <svx/svxids.hrc>
#include <i18nlangtag/mslangid.hxx>
#include <editeng/unolingu.hxx>
#include <svx/drawitem.hxx>
......
......@@ -22,6 +22,7 @@
#include <mdds/flat_segment_tree.hpp>
#include <algorithm>
#include <limits>
#include <address.hxx>
using ::std::numeric_limits;
......
......@@ -34,6 +34,7 @@
#include <editeng/flditem.hxx>
#include <editeng/escapementitem.hxx>
#include <editeng/svxfont.hxx>
#include <editeng/editids.hrc>
#include <document.hxx>
#include <docpool.hxx>
......
......@@ -43,6 +43,7 @@
#include <editeng/eeitem.hxx>
#include <editeng/flstitem.hxx>
#include <editeng/justifyitem.hxx>
#include <editeng/editids.hrc>
#include <sal/macros.h>
#include <vcl/fontcharmap.hxx>
#include <document.hxx>
......
......@@ -31,6 +31,7 @@
#include <sfx2/objsh.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/sfxsids.hrc>
#include <vcl/font.hxx>
#include <vcl/settings.hxx>
......
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