tdf#42949 Fix IWYU warnings in sc/source/filter/*cxx

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Clean remaining cxx files in directories:
dif/ ftools/ html/ lotus/ orcus/ qpro/ rtf/ xcl97/

Change-Id: I219b61c087c07b0538b4525bf53d79f413d409c5
Reviewed-on: https://gerrit.libreoffice.org/66657
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
diff --git a/sc/IwyuFilter_sc.yaml b/sc/IwyuFilter_sc.yaml
index 68f62a5..571bcd2 100644
--- a/sc/IwyuFilter_sc.yaml
+++ b/sc/IwyuFilter_sc.yaml
@@ -387,6 +387,9 @@
    sc/source/filter/inc/formulabase.hxx:
    # Needed for typedef
    - com/sun/star/table/CellAddress.hpp
    sc/source/filter/inc/fprogressbar.hxx:
    # Avoid collision with fprogressbar.cxx checking
    - progress.hxx
    sc/source/filter/inc/ooxformulaparser.hxx:
    # base class has to be a complete type
    - com/sun/star/lang/XInitialization.hpp
@@ -665,6 +668,9 @@
    sc/source/filter/xml/xmldrani.hxx:
    # Complex type needs complete type
    - com/sun/star/beans/PropertyValue.hpp
    sc/source/filter/ftools/sharedformulagroups.cxx:
    # Needed for implicit dtor
    - tokenarray.hxx
    sc/source/filter/excel/excimp8.cxx:
    # base class has to be a complete type
    - com/sun/star/container/XIndexContainer.hpp
@@ -688,6 +694,15 @@
    sc/source/filter/excel/xistyle.cxx:
    # Needed for direct member access
    - xladdress.hxx
    sc/source/filter/lotus/filter.cxx:
    # Needed to avoid loplugin:unreffun error
    - filter.hxx
    sc/source/filter/lotus/memory.cxx
    # Needed to avoid loplugin:unreffun error
    - scmem.h
    sc/source/filter/lotus/op.cxx:
    # Needed to avoid loplugin:unreffun error
    - op.h
    sc/source/filter/oox/ooxformulaparser.cxx:
    # Needed for direct member access
    - com/sun/star/lang/XComponent.hpp
@@ -697,6 +712,14 @@
    sc/source/filter/oox/worksheethelper.cxx:
    # Needed for implicit dtor
    - editeng/editobj.hxx
    sc/source/filter/orcus/orcusfiltersimpl.cxx:
    # Needed for implicit dtor
    - tokenarray.hxx
    # Needed for direct member access
    - com/sun/star/task/XStatusIndicator.hpp
    sc/source/filter/orcus/xmlcontext.cxx:
    # Needed for implicit dtor
    - tokenarray.hxx
    sc/source/filter/xml/XMLExportIterator.cxx:
    # Needed for direct member access
    - com/sun/star/table/XCellRange.hpp
diff --git a/sc/inc/scitems.hxx b/sc/inc/scitems.hxx
index bd78bda..d2e982d 100644
--- a/sc/inc/scitems.hxx
+++ b/sc/inc/scitems.hxx
@@ -44,6 +44,11 @@
class SvxUnderlineItem;
class SvxWeightItem;
class SvxWordLineModeItem;
class SvxShadowItem;
class SvxHorJustifyItem;
class SvxVerJustifyItem;
class SvxBrushItem;
class SvxBoxItem;

//  EditEngine is not allowed to define its own ITEMID's
#define INCLUDED_EDITENG_EEITEMID_HXX
diff --git a/sc/source/filter/dif/difexp.cxx b/sc/source/filter/dif/difexp.cxx
index d7c3485..f4628f8 100644
--- a/sc/source/filter/dif/difexp.cxx
+++ b/sc/source/filter/dif/difexp.cxx
@@ -17,10 +17,7 @@
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#include <rtl/math.hxx>

#include <dif.hxx>
#include <filter.hxx>
#include <document.hxx>
#include <formulacell.hxx>
#include <globstr.hrc>
diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx
index 8603672..ed71c75 100644
--- a/sc/source/filter/dif/difimp.cxx
+++ b/sc/source/filter/dif/difimp.cxx
@@ -17,15 +17,11 @@
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#include <math.h>

#include <svl/zforlist.hxx>
#include <osl/diagnose.h>
#include <attrib.hxx>
#include <dif.hxx>
#include <docpool.hxx>
#include <document.hxx>
#include <filter.hxx>
#include <fprogressbar.hxx>
#include <ftools.hxx>
#include <patattr.hxx>
diff --git a/sc/source/filter/ftools/fapihelper.cxx b/sc/source/filter/ftools/fapihelper.cxx
index 91b8678..91e1730 100644
--- a/sc/source/filter/ftools/fapihelper.cxx
+++ b/sc/source/filter/ftools/fapihelper.cxx
@@ -27,12 +27,9 @@
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <comphelper/docpasswordhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <tools/urlobj.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/request.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/sfxsids.hrc>
#include <svl/stritem.hxx>
diff --git a/sc/source/filter/ftools/fprogressbar.cxx b/sc/source/filter/ftools/fprogressbar.cxx
index 77bc4cf..3c9f721 100644
--- a/sc/source/filter/ftools/fprogressbar.cxx
+++ b/sc/source/filter/ftools/fprogressbar.cxx
@@ -18,7 +18,6 @@
 */

#include <fprogressbar.hxx>
#include <global.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <progress.hxx>
diff --git a/sc/source/filter/ftools/ftools.cxx b/sc/source/filter/ftools/ftools.cxx
index 1a2da99..8f9eaed 100644
--- a/sc/source/filter/ftools/ftools.cxx
+++ b/sc/source/filter/ftools/ftools.cxx
@@ -21,7 +21,6 @@
#include <ftools.hxx>
#include <osl/diagnose.h>
#include <osl/thread.h>
#include <rtl/strbuf.hxx>
#include <tools/color.hxx>
#include <unotools/charclass.hxx>
#include <svl/itempool.hxx>
@@ -31,7 +30,6 @@

#include <math.h>
#include <global.hxx>
#include <document.hxx>
#include <stlpool.hxx>
#include <stlsheet.hxx>
#include <compiler.hxx>
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index ce6fd53..f669074 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -20,10 +20,7 @@
#include <scitems.hxx>
#include <editeng/eeitem.hxx>

#include <rtl/tencinfo.h>

#include <vcl/svapp.hxx>
#include <svx/algitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/colritem.hxx>
@@ -40,9 +37,7 @@
#include <sfx2/docfile.hxx>
#include <sfx2/frmhtmlw.hxx>
#include <sfx2/objsh.hxx>
#include <svl/stritem.hxx>
#include <svl/urihelper.hxx>
#include <svl/zforlist.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/parhtml.hxx>
@@ -51,7 +46,6 @@
#include <osl/diagnose.h>

#include <htmlexp.hxx>
#include <filter.hxx>
#include <global.hxx>
#include <postit.hxx>
#include <document.hxx>
@@ -68,7 +62,6 @@

#include <editeng/flditem.hxx>
#include <editeng/borderline.hxx>
#include <unotools/syslocale.hxx>

// Without strings.hrc: error C2679: binary '=' : no operator defined which takes a
// right-hand operand of type 'const class String (__stdcall *)(class ScResId)'
diff --git a/sc/source/filter/html/htmlexp2.cxx b/sc/source/filter/html/htmlexp2.cxx
index d8cc0e3..8529978 100644
--- a/sc/source/filter/html/htmlexp2.cxx
+++ b/sc/source/filter/html/htmlexp2.cxx
@@ -23,11 +23,8 @@
#include <svx/svdpage.hxx>
#include <svx/xoutbmp.hxx>
#include <svx/svdxcgv.hxx>
#include <sot/exchange.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmlout.hxx>
#include <vcl/transfer.hxx>
#include <svtools/embedtransfer.hxx>
#include <svl/urihelper.hxx>
#include <tools/urlobj.hxx>

@@ -35,7 +32,6 @@
#include <global.hxx>
#include <document.hxx>
#include <drwlayer.hxx>
#include <ftools.hxx>
#include <rtl/strbuf.hxx>

using namespace com::sun::star;
diff --git a/sc/source/filter/html/htmlimp.cxx b/sc/source/filter/html/htmlimp.cxx
index b3a7bcd..99ec130 100644
--- a/sc/source/filter/html/htmlimp.cxx
+++ b/sc/source/filter/html/htmlimp.cxx
@@ -19,8 +19,6 @@

#include <scitems.hxx>
#include <osl/diagnose.h>
#include <comphelper/string.hxx>
#include <editeng/eeitem.hxx>
#include <unotools/charclass.hxx>

#include <editeng/lrspitem.hxx>
@@ -39,7 +37,7 @@
#include <editutil.hxx>
#include <stlpool.hxx>
#include <stlsheet.hxx>
#include <compiler.hxx>
#include <refdata.hxx>
#include <rangenam.hxx>
#include <attrib.hxx>
#include <ftools.hxx>
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index a7d14a5..eb6136b 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -23,10 +23,8 @@
#include <comphelper/string.hxx>

#include <scitems.hxx>
#include <editeng/eeitem.hxx>

#include <svtools/htmlcfg.hxx>
#include <svx/algitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/editeng.hxx>
@@ -44,11 +42,9 @@
#include <svtools/parhtml.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmltokn.h>
#include <sfx2/docfile.hxx>

#include <vcl/svapp.hxx>
#include <tools/urlobj.hxx>
#include <tools/tenccvt.hxx>
#include <osl/diagnose.h>

#include <rtl/tencinfo.h>
diff --git a/sc/source/filter/inc/dif.hxx b/sc/source/filter/inc/dif.hxx
index d01e281..33524d1 100644
--- a/sc/source/filter/inc/dif.hxx
+++ b/sc/source/filter/inc/dif.hxx
@@ -25,6 +25,7 @@
#include <vector>

#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>

#include <types.hxx>

diff --git a/sc/source/filter/inc/fprogressbar.hxx b/sc/source/filter/inc/fprogressbar.hxx
index 42a4b50..0d80b3f 100644
--- a/sc/source/filter/inc/fprogressbar.hxx
+++ b/sc/source/filter/inc/fprogressbar.hxx
@@ -23,9 +23,9 @@
#include <vector>
#include <memory>
#include <rtl/ustring.hxx>
#include <progress.hxx>

class SfxObjectShell;
class ScProgress;
class SvStream;

const sal_Int32 SCF_INV_SEGMENT = -1;
diff --git a/sc/source/filter/lotus/filter.cxx b/sc/source/filter/lotus/filter.cxx
index b769931..9746a68 100644
--- a/sc/source/filter/lotus/filter.cxx
+++ b/sc/source/filter/lotus/filter.cxx
@@ -19,23 +19,17 @@

//  Discover WKS, WK1 and WK3; s.a op.cpp

#include <string.h>
#include <map>

#include <filter.hxx>
#include <document.hxx>
#include <compiler.hxx>
#include <scerrors.hxx>

#include <root.hxx>
#include <lotrange.hxx>
#include <optab.h>
#include <op.h>
#include <scmem.h>
#include <decl.h>
#include <tool.h>
#include <fprogressbar.hxx>
#include <patattr.hxx>
#include "lotfilter.hxx"
#include <tools/stream.hxx>

diff --git a/sc/source/filter/lotus/lotattr.cxx b/sc/source/filter/lotus/lotattr.cxx
index e07fe8a..8c04bfe 100644
--- a/sc/source/filter/lotus/lotattr.cxx
+++ b/sc/source/filter/lotus/lotattr.cxx
@@ -24,10 +24,8 @@
#include <editeng/brushitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/justifyitem.hxx>
#include <svx/algitem.hxx>
#include <sal/log.hxx>

#include <attrib.hxx>
#include <docpool.hxx>
#include <document.hxx>
#include <lotfntbf.hxx>
diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx
index 981a72c..1da11ec 100644
--- a/sc/source/filter/lotus/lotform.cxx
+++ b/sc/source/filter/lotus/lotform.cxx
@@ -19,7 +19,6 @@

#include <decl.h>
#include <lotform.hxx>
#include <compiler.hxx>
#include "lotfilter.hxx"
#include <lotrange.hxx>
#include <namebuff.hxx>
@@ -27,7 +26,6 @@
#include <ftools.hxx>
#include <tool.h>

#include <math.h>
#include <comphelper/string.hxx>
#include <sal/log.hxx>
#include <memory>
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx
index 89885e7..266dc88 100644
--- a/sc/source/filter/lotus/lotimpop.cxx
+++ b/sc/source/filter/lotus/lotimpop.cxx
@@ -22,13 +22,8 @@
#include <osl/mutex.hxx>
#include <sal/log.hxx>

#include <attrib.hxx>
#include <document.hxx>
#include <rangenam.hxx>
#include <formulacell.hxx>
#include <patattr.hxx>
#include <docpool.hxx>
#include <compiler.hxx>
#include <global.hxx>

#include <root.hxx>
@@ -36,7 +31,6 @@
#include <lotform.hxx>
#include <tool.h>
#include <namebuff.hxx>
#include <lotrange.hxx>
#include <lotattr.hxx>
#include <stringutil.hxx>

diff --git a/sc/source/filter/lotus/lotread.cxx b/sc/source/filter/lotus/lotread.cxx
index 155e265..dab87db 100644
--- a/sc/source/filter/lotus/lotread.cxx
+++ b/sc/source/filter/lotus/lotread.cxx
@@ -26,13 +26,10 @@
#include "lotfilter.hxx"
#include <lotimpop.hxx>
#include <lotattr.hxx>
#include <testlotus.hxx>
#include <fprogressbar.hxx>

#include <sal/log.hxx>

class ScFormulaCell;

ErrCode ImportLotus::parse()
{
    enum STATE
diff --git a/sc/source/filter/lotus/lotus.cxx b/sc/source/filter/lotus/lotus.cxx
index ccaf439..5b72604 100644
--- a/sc/source/filter/lotus/lotus.cxx
+++ b/sc/source/filter/lotus/lotus.cxx
@@ -27,7 +27,6 @@
#include <root.hxx>
#include <filtopt.hxx>
#include <ftools.hxx>
#include <patattr.hxx>

ErrCode ScFormatFilterPluginImpl::ScImportLotus123( SfxMedium& rMedium, ScDocument* pDocument, rtl_TextEncoding eSrc )
{
diff --git a/sc/source/filter/lotus/memory.cxx b/sc/source/filter/lotus/memory.cxx
index b9fee11..83851d9 100644
--- a/sc/source/filter/lotus/memory.cxx
+++ b/sc/source/filter/lotus/memory.cxx
@@ -22,9 +22,7 @@

#include <scitems.hxx>
#include <scmem.h>
#include <svx/algitem.hxx>
#include <editeng/justifyitem.hxx>
#include <attrib.hxx>
#include "lotfilter.hxx"
#include <tool.h>
#include <editeng/svxenum.hxx>
diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx
index 63a408eb..1cd43ef 100644
--- a/sc/source/filter/lotus/op.cxx
+++ b/sc/source/filter/lotus/op.cxx
@@ -21,13 +21,10 @@
#include <rtl/character.hxx>

#include <string.h>
#include <math.h>
#include <stdlib.h>

#include <scitems.hxx>
#include <patattr.hxx>
#include <docpool.hxx>
#include <svx/algitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
@@ -35,14 +32,12 @@
#include <unotools/configmgr.hxx>

#include <formulacell.hxx>
#include <rangenam.hxx>
#include <document.hxx>
#include <postit.hxx>

#include <op.h>
#include <optab.h>
#include <tool.h>
#include <decl.h>
#include "lotfilter.hxx"
#include <lotform.hxx>
#include <lotrange.hxx>
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx
index 1d9b84a..b7082fc 100644
--- a/sc/source/filter/lotus/tool.cxx
+++ b/sc/source/filter/lotus/tool.cxx
@@ -18,22 +18,17 @@
 */

#include <scitems.hxx>
#include <svx/algitem.hxx>
#include <editeng/justifyitem.hxx>
#include <svl/zforlist.hxx>
#include <sal/log.hxx>

#include <attrib.hxx>
#include <rangenam.hxx>
#include <compiler.hxx>
#include <document.hxx>

#include <tool.h>
#include <decl.h>
#include <root.hxx>
#include <lotrange.hxx>
#include <namebuff.hxx>
#include <ftools.hxx>
#include <stringutil.hxx>
#include <tokenarray.hxx>
#include "lotfilter.hxx"
diff --git a/sc/source/filter/orcus/filterdetect.cxx b/sc/source/filter/orcus/filterdetect.cxx
index 32bac16..a9b064b 100644
--- a/sc/source/filter/orcus/filterdetect.cxx
+++ b/sc/source/filter/orcus/filterdetect.cxx
@@ -9,7 +9,6 @@

#include <com/sun/star/document/XExtendedFilterDetection.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <cppuhelper/implbase.hxx>

@@ -19,6 +18,8 @@

#include <orcus/format_detection.hpp>

namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }

namespace {

class OrcusFormatDetect : public ::cppu::WeakImplHelper<
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index e484666..5820864 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -15,11 +15,9 @@
#include <rangenam.hxx>
#include <tokenarray.hxx>
#include <globalnames.hxx>
#include <docoptio.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <compiler.hxx>
#include <dbdata.hxx>
#include <stlpool.hxx>
#include <scitems.hxx>
#include <patattr.hxx>
@@ -33,24 +31,18 @@
#include <editeng/udlnitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/borderline.hxx>
#include <editeng/charhiddenitem.hxx>
#include <editeng/protitem.hxx>
#include <editeng/prntitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/lineitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/justifyitem.hxx>

#include <formula/token.hxx>
#include <tools/datetime.hxx>
#include <svl/sharedstringpool.hxx>
#include <o3tl/make_unique.hxx>
#include <svl/zforlist.hxx>
#include <svl/intitem.hxx>
#include <com/sun/star/task/XStatusIndicator.hpp>
#include <i18nlangtag/lang.h>
#include <vcl/outdev.hxx>
#include <tools/fontenum.hxx>
#include <sal/log.hxx>

diff --git a/sc/source/filter/orcus/orcusfiltersimpl.cxx b/sc/source/filter/orcus/orcusfiltersimpl.cxx
index b3451b1..cdfb70d 100644
--- a/sc/source/filter/orcus/orcusfiltersimpl.cxx
+++ b/sc/source/filter/orcus/orcusfiltersimpl.cxx
@@ -11,25 +11,20 @@
#include <orcusinterface.hxx>
#include <tokenarray.hxx>

#include <document.hxx>

#include <tools/urlobj.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/sfxsids.hrc>
#include <svl/itemset.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>

#include <orcus/spreadsheet/import_interface.hpp>
#include <orcus/orcus_csv.hpp>
#include <orcus/orcus_gnumeric.hpp>
#include <orcus/orcus_xlsx.hpp>
#include <orcus/orcus_xls_xml.hpp>
#include <orcus/orcus_ods.hpp>
#include <orcus/orcus_import_ods.hpp>
#include <orcus/global.hpp>
#include <orcus/stream.hpp>
#include <com/sun/star/task/XStatusIndicator.hpp>

diff --git a/sc/source/filter/orcus/xmlcontext.cxx b/sc/source/filter/orcus/xmlcontext.cxx
index 62ac118..c9fa56f 100644
--- a/sc/source/filter/orcus/xmlcontext.cxx
+++ b/sc/source/filter/orcus/xmlcontext.cxx
@@ -19,21 +19,20 @@
#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>

#include <orcus/spreadsheet/import_interface.hpp>
#include <orcus/xml_structure_tree.hpp>
#include <orcus/xml_namespace.hpp>
#include <orcus/orcus_xml.hpp>
#include <orcus/global.hpp>
#include <orcus/sax_parser_base.hpp>
#include <orcus/stream.hpp>

#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <comphelper/processfactory.hxx>

#include <string>
#include <sstream>

namespace com { namespace sun { namespace star { namespace ucb { class XCommandEnvironment; } } } }

#define BUFFER_SIZE 4096

using namespace com::sun::star;
diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx
index 27bde38..936d83e 100644
--- a/sc/source/filter/qpro/qpro.cxx
+++ b/sc/source/filter/qpro/qpro.cxx
@@ -19,17 +19,12 @@

#include <sal/config.h>
#include <sal/log.hxx>
#include <sfx2/docfile.hxx>

#include <qproform.hxx>
#include <qpro.hxx>
#include <qprostyle.hxx>

#include <global.hxx>
#include <scerrors.hxx>
#include <docpool.hxx>
#include <patattr.hxx>
#include <filter.hxx>
#include <ftools.hxx>
#include <document.hxx>
#include <formulacell.hxx>
diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx
index 73a51c2..bd1ea7f 100644
--- a/sc/source/filter/qpro/qproform.cxx
+++ b/sc/source/filter/qpro/qproform.cxx
@@ -21,13 +21,10 @@
#include <sal/config.h>
#include <sal/macros.h>
#include <sal/log.hxx>
#include <qpro.hxx>

#include <qproform.hxx>
#include <formel.hxx>
#include <compiler.hxx>
#include <tokstack.hxx>
#include <ftools.hxx>

void QProToSc::ReadSRD( ScSingleRefData& rSRD, sal_Int8 nPage, sal_Int8 nCol, sal_uInt16 nRelBit )
{
diff --git a/sc/source/filter/qpro/qprostyle.cxx b/sc/source/filter/qpro/qprostyle.cxx
index f77aa9f..4a309b9 100644
--- a/sc/source/filter/qpro/qprostyle.cxx
+++ b/sc/source/filter/qpro/qprostyle.cxx
@@ -18,10 +18,7 @@
 */

#include <sal/config.h>
#include <sfx2/docfile.hxx>

#include <qproform.hxx>
#include <qpro.hxx>
#include <qprostyle.hxx>

#include <scitems.hxx>
@@ -29,19 +26,14 @@
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/justifyitem.hxx>
#include <map>

#include <global.hxx>
#include <scerrors.hxx>
#include <docpool.hxx>
#include <patattr.hxx>
#include <filter.hxx>
#include <document.hxx>
#include <formulacell.hxx>

ScQProStyle::ScQProStyle()
{
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx
index 0cfc845..c579b89 100644
--- a/sc/source/filter/rtf/eeimpars.cxx
+++ b/sc/source/filter/rtf/eeimpars.cxx
@@ -22,22 +22,15 @@

#include <editeng/adjustitem.hxx>
#include <editeng/editobj.hxx>
#include <editeng/editview.hxx>
#include <editeng/escapementitem.hxx>
#include <editeng/justifyitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/shaditem.hxx>
#include <svx/svdograf.hxx>
#include <svx/svdpage.hxx>
#include <editeng/scripttypeitem.hxx>
#include <svtools/htmlcfg.hxx>
#include <sfx2/sfxhtml.hxx>
#include <svtools/parhtml.hxx>
#include <svtools/htmltokn.h>
#include <svl/zforlist.hxx>
#include <vcl/virdev.hxx>
#include <vcl/svapp.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/charclass.hxx>
#include <comphelper/string.hxx>

@@ -45,7 +38,6 @@
#include <global.hxx>
#include <document.hxx>
#include <editutil.hxx>
#include <stlsheet.hxx>
#include <docpool.hxx>
#include <attrib.hxx>
#include <patattr.hxx>
diff --git a/sc/source/filter/rtf/rtfexp.cxx b/sc/source/filter/rtf/rtfexp.cxx
index 22cd382..22570bb 100644
--- a/sc/source/filter/rtf/rtfexp.cxx
+++ b/sc/source/filter/rtf/rtfexp.cxx
@@ -18,28 +18,21 @@
 */

#include <scitems.hxx>
#include <editeng/eeitem.hxx>

#include <svx/algitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/justifyitem.hxx>
#include <svl/style.hxx>
#include <svtools/rtfout.hxx>
#include <svtools/rtfkeywd.hxx>

#include <rtfexp.hxx>
#include <filter.hxx>
#include <cellvalue.hxx>
#include <document.hxx>
#include <patattr.hxx>
#include <attrib.hxx>
#include <cellform.hxx>
#include <editutil.hxx>
#include <stlpool.hxx>
#include <ftools.hxx>

void ScFormatFilterPluginImpl::ScExportRTF( SvStream& rStrm, ScDocument* pDoc,
diff --git a/sc/source/filter/rtf/rtfimp.cxx b/sc/source/filter/rtf/rtfimp.cxx
index ebe1a1c..e48c87d 100644
--- a/sc/source/filter/rtf/rtfimp.cxx
+++ b/sc/source/filter/rtf/rtfimp.cxx
@@ -17,8 +17,6 @@
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#include <global.hxx>
#include <document.hxx>
#include <filter.hxx>
#include <editutil.hxx>
#include <rtfimp.hxx>
diff --git a/sc/source/filter/rtf/rtfparse.cxx b/sc/source/filter/rtf/rtfparse.cxx
index 47be06d..7579f50 100644
--- a/sc/source/filter/rtf/rtfparse.cxx
+++ b/sc/source/filter/rtf/rtfparse.cxx
@@ -23,15 +23,12 @@
#include <editeng/editeng.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/svxrtf.hxx>
#include <editeng/shaditem.hxx>
#include <vcl/outdev.hxx>
#include <svtools/rtftoken.h>
#include <osl/diagnose.h>
#include <svl/itempool.hxx>

#include <rtfparse.hxx>
#include <global.hxx>
#include <document.hxx>
#include <docpool.hxx>

#define SC_RTFTWIPTOL 10        // 10 Twips tolerance when determining columns

diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
index 5affec7..d5c4ef0 100644
--- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
@@ -26,7 +26,6 @@
#include <xehelper.hxx>
#include <xltools.hxx>
#include <formulacell.hxx>
#include <xcl97rec.hxx>
#include <document.hxx>
#include <editutil.hxx>
#include <root.hxx>
@@ -34,7 +33,6 @@
#include <oox/export/utils.hxx>
#include <oox/token/namespaces.hxx>
#include <oox/token/tokens.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/uuid.h>
#include <svl/sharedstring.hxx>

diff --git a/sc/source/filter/xcl97/xcl97esc.cxx b/sc/source/filter/xcl97/xcl97esc.cxx
index 028b338..9844e7b 100644
--- a/sc/source/filter/xcl97/xcl97esc.cxx
+++ b/sc/source/filter/xcl97/xcl97esc.cxx
@@ -21,19 +21,15 @@
#include <com/sun/star/awt/XControlModel.hpp>
#include <com/sun/star/embed/XClassifiedObject.hpp>
#include <com/sun/star/form/XFormsSupplier.hpp>
#include <com/sun/star/script/ScriptEventDescriptor.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>

#include <svx/svdpage.hxx>
#include <editeng/outlobj.hxx>
#include <o3tl/make_unique.hxx>
#include <svx/svdotext.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdoole2.hxx>
#include <svx/unoapi.hxx>
#include <svx/fmglob.hxx>
#include <vcl/outdev.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <svx/sdasitm.hxx>
@@ -44,15 +40,11 @@
#include <sot/storage.hxx>
#include <xeescher.hxx>

#include <global.hxx>
#include <document.hxx>
#include <drwlayer.hxx>
#include <xecontent.hxx>
#include <editeng/flditem.hxx>
#include <userdat.hxx>
#include <xcl97rec.hxx>
#include <xehelper.hxx>
#include <xechart.hxx>
#include <xcl97esc.hxx>
#include <unotools/streamwrap.hxx>
#include <oox/ole/olehelper.hxx>
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index 6623f44..6f44099 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -17,45 +17,31 @@
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#include <svx/svdpool.hxx>
#include <svx/sdtaitm.hxx>
#include <svx/svdotext.hxx>
#include <editeng/editobj.hxx>
#include <svx/svdoole2.hxx>
#include <sot/storage.hxx>
#include <svl/itemset.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdocapt.hxx>
#include <svx/unoapi.hxx>
#include <editeng/writingmodeitem.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <tools/urlobj.hxx>

#include <rtl/math.hxx>
#include <rtl/uuid.h>
#include <sal/log.hxx>
#include <svl/zformat.hxx>
#include <formulacell.hxx>
#include <drwlayer.hxx>

#include <root.hxx>
#include <xcl97rec.hxx>
#include <xcl97esc.hxx>
#include <editutil.hxx>
#include <xecontent.hxx>
#include <xeescher.hxx>
#include <xestyle.hxx>
#include <xehelper.hxx>
#include <xelink.hxx>
#include <xlcontent.hxx>

#include <scitems.hxx>

#include <unotools/fltrcfg.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/eeitem.hxx>
#include <filter/msfilter/msoleexp.hxx>
@@ -65,13 +51,8 @@
#include <stdio.h>

#include <document.hxx>
#include <conditio.hxx>
#include <rangelst.hxx>
#include <stlpool.hxx>
#include <viewopti.hxx>
#include <scextopt.hxx>
#include <docoptio.hxx>
#include <patattr.hxx>
#include <tabprotection.hxx>

#include <com/sun/star/embed/Aspects.hpp>