tdf#42949 Fix IWYU warnings in sc/source/ui/[f-o]*/*cxx
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: I56e32029f40a7c440143e395d851396fb2740fa8
Reviewed-on: https://gerrit.libreoffice.org/68837
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
diff --git a/sc/IwyuFilter_sc.yaml b/sc/IwyuFilter_sc.yaml
index dc3b4ab..d04da62 100644
--- a/sc/IwyuFilter_sc.yaml
+++ b/sc/IwyuFilter_sc.yaml
@@ -521,6 +521,9 @@
sc/source/ui/inc/StatisticsTwoVariableDialog.hxx:
# base class has to be a complete type
- viewdata.hxx
sc/source/ui/inc/tpview.hxx:
# Needed for VclPtr type
- svx/colorbox.hxx
sc/source/ui/unoobj/exceldetect.hxx:
# base class has to be a complete type
- com/sun/star/document/XExtendedFilterDetection.hpp
@@ -860,3 +863,7 @@
sc/source/ui/drawfunc/futext3.cxx:
# Needed for direct member access
- svx/svdocapt.hxx
sc/source/ui/formdlg/formula.cxx:
# Complete type is needed
- com/sun/star/sheet/XFormulaParser.hpp
- com/sun/star/sheet/XFormulaOpCodeMapper.hpp
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index f2c52f45..bc99704 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -19,23 +19,14 @@
#include <comphelper/string.hxx>
#include <editeng/editview.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/viewsh.hxx>
#include <formula/funcvarargs.h>
#include <vcl/fixed.hxx>
#include <sc.hrc>
#include <global.hxx>
#include <reffact.hxx>
#include <document.hxx>
#include <formulacell.hxx>
#include <scmod.hxx>
#include <inputhdl.hxx>
#include <tabvwsh.hxx>
#include <appoptio.hxx>
#include <compiler.hxx>
#include <funcdesc.hxx>
#include <dwfunctr.hxx>
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index 23f4479..56d96a4 100644
--- a/sc/source/ui/formdlg/formula.cxx
+++ b/sc/source/ui/formdlg/formula.cxx
@@ -24,17 +24,13 @@
#include <sfx2/objsh.hxx>
#include <svl/zforlist.hxx>
#include <svl/stritem.hxx>
#include <vcl/treelistbox.hxx>
#include <sfx2/viewfrm.hxx>
#include <vcl/svapp.hxx>
#include <vcl/mnemonic.hxx>
#include <unotools/charclass.hxx>
#include <tools/urlobj.hxx>
#include <formula/formulahelper.hxx>
#include <formula/IFunctionDescription.hxx>
#include <formula/errorcodes.hxx>
#include <tokenuno.hxx>
#include <compiler.hxx>
#include <formula.hxx>
#include <formdata.hxx>
#include <reffact.hxx>
@@ -43,10 +39,8 @@
#include <scmod.hxx>
#include <inputhdl.hxx>
#include <tabvwsh.hxx>
#include <appoptio.hxx>
#include <docsh.hxx>
#include <funcdesc.hxx>
#include <formula/token.hxx>
#include <tokenarray.hxx>
#include <sc.hrc>
#include <servuno.hxx>
@@ -54,6 +48,8 @@
#include <externalrefmgr.hxx>
#include <com/sun/star/table/CellAddress.hpp>
#include <com/sun/star/sheet/XFormulaOpCodeMapper.hpp>
#include <com/sun/star/sheet/XFormulaParser.hpp>
using namespace formula;
using namespace com::sun::star;
diff --git a/sc/source/ui/inc/dataproviderdlg.hxx b/sc/source/ui/inc/dataproviderdlg.hxx
index 7a3a98b..441c492 100644
--- a/sc/source/ui/inc/dataproviderdlg.hxx
+++ b/sc/source/ui/inc/dataproviderdlg.hxx
@@ -15,12 +15,12 @@
#include <vcl/dialog.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/listctrl.hxx>
#include <vcl/menu.hxx>
#include "datatableview.hxx"
#include <memory>
class Menu;
class ScDocument;
class ScDataProviderBaseControl;
class ScDBData;
diff --git a/sc/source/ui/inc/namemgrtable.hxx b/sc/source/ui/inc/namemgrtable.hxx
index f407a9c..623e0cf 100644
--- a/sc/source/ui/inc/namemgrtable.hxx
+++ b/sc/source/ui/inc/namemgrtable.hxx
@@ -11,6 +11,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_NAMEMGRTABLE_HXX
#include <svtools/simptabl.hxx>
#include <vcl/weld.hxx>
#include <address.hxx>
diff --git a/sc/source/ui/inc/tpview.hxx b/sc/source/ui/inc/tpview.hxx
index c0985e2..15b3018 100644
--- a/sc/source/ui/inc/tpview.hxx
+++ b/sc/source/ui/inc/tpview.hxx
@@ -21,11 +21,11 @@
#define INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX
#include <sfx2/tabdlg.hxx>
#include <svx/colorbox.hxx>
#include <vcl/field.hxx>
#include <vcl/fixed.hxx>
class ScViewOptions;
class SvxColorListBox;
class ScTpContentOptions : public SfxTabPage
{
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index 0c769df..540ccff0 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -21,7 +21,6 @@
#include <unotools/textsearch.hxx>
#include <unotools/localedatawrapper.hxx>
#include <unotools/collatorwrapper.hxx>
#include <sfx2/app.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/basedlgs.hxx>
@@ -32,7 +31,6 @@
#include <docsh.hxx>
#include <scresid.hxx>
#include <strings.hrc>
#include <simpref.hxx>
#include <scmod.hxx>
#include <tabvwsh.hxx>
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 64b00df..eef896e 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -22,7 +22,6 @@
#include <sfx2/app.hxx>
#include <sfx2/viewsh.hxx>
#include <vcl/accel.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/mnemonic.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
@@ -36,8 +35,6 @@
#include <docsh.hxx>
#include <rfindlst.hxx>
#include <compiler.hxx>
#include <formulacell.hxx>
#include <global.hxx>
#include <inputopt.hxx>
#include <rangeutl.hxx>
#include <tokenarray.hxx>
diff --git a/sc/source/ui/miscdlgs/autofmt.cxx b/sc/source/ui/miscdlgs/autofmt.cxx
index ae3978f..e031ccb 100644
--- a/sc/source/ui/miscdlgs/autofmt.cxx
+++ b/sc/source/ui/miscdlgs/autofmt.cxx
@@ -18,7 +18,6 @@
*/
#include <scitems.hxx>
#include <svx/algitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/contouritem.hxx>
@@ -29,27 +28,21 @@
#include <editeng/shdditem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <vcl/svapp.hxx>
#include <svl/zforlist.hxx>
#include <svtools/scriptedtext.hxx>
#include <vcl/settings.hxx>
#include <vcl/builderfactory.hxx>
#include <vcl/virdev.hxx>
#include <sfx2/viewfrm.hxx>
#include <comphelper/processfactory.hxx>
#include <drawinglayer/processor2d/processor2dtools.hxx>
#include <strings.hrc>
#include <scmod.hxx>
#include <attrib.hxx>
#include <zforauto.hxx>
#include <global.hxx>
#include <autoform.hxx>
#include <autofmt.hxx>
#include <scresid.hxx>
#include <document.hxx>
#include <docsh.hxx>
#include <tabvwsh.hxx>
#include <viewdata.hxx>
#define FRAME_OFFSET 4
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx
index efd37d8..8f7e404 100644
--- a/sc/source/ui/miscdlgs/datafdlg.cxx
+++ b/sc/source/ui/miscdlgs/datafdlg.cxx
@@ -12,8 +12,6 @@
#include <datafdlg.hxx>
#include <viewdata.hxx>
#include <docsh.hxx>
#include <refundo.hxx>
#include <undodat.hxx>
#include <tabvwsh.hxx>
#include <rtl/ustrbuf.hxx>
diff --git a/sc/source/ui/miscdlgs/dataproviderdlg.cxx b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
index 38c9d6b..726e4f2 100644
--- a/sc/source/ui/miscdlgs/dataproviderdlg.cxx
+++ b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
@@ -14,7 +14,6 @@
#include <datatransformation.hxx>
#include <datamapper.hxx>
#include <dbdata.hxx>
#include <docsh.hxx>
#include <comphelper/string.hxx>
#include <sal/log.hxx>
@@ -24,6 +23,7 @@
#include <vcl/lstbox.hxx>
#include <vcl/fixed.hxx>
#include <vcl/field.hxx>
#include <vcl/layout.hxx>
constexpr int MENU_START = 0;
constexpr int MENU_COLUMN = 1;
diff --git a/sc/source/ui/miscdlgs/datastreamdlg.cxx b/sc/source/ui/miscdlgs/datastreamdlg.cxx
index a270844..db07c12 100644
--- a/sc/source/ui/miscdlgs/datastreamdlg.cxx
+++ b/sc/source/ui/miscdlgs/datastreamdlg.cxx
@@ -11,7 +11,6 @@
#include <sfx2/filedlghelper.hxx>
#include <svtools/inettbc.hxx>
#include <vcl/layout.hxx>
#include <address.hxx>
#include <docsh.hxx>
#include <datastream.hxx>
diff --git a/sc/source/ui/miscdlgs/filldlg.cxx b/sc/source/ui/miscdlgs/filldlg.cxx
index b0133f5..09108cc 100644
--- a/sc/source/ui/miscdlgs/filldlg.cxx
+++ b/sc/source/ui/miscdlgs/filldlg.cxx
@@ -22,7 +22,6 @@
#include <svl/zforlist.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <limits.h>
#include <scresid.hxx>
#include <document.hxx>
diff --git a/sc/source/ui/miscdlgs/highred.cxx b/sc/source/ui/miscdlgs/highred.cxx
index 9030ee1..d59ee07 100644
--- a/sc/source/ui/miscdlgs/highred.cxx
+++ b/sc/source/ui/miscdlgs/highred.cxx
@@ -17,14 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <global.hxx>
#include <reffact.hxx>
#include <document.hxx>
#include <docsh.hxx>
#include <chgtrack.hxx>
#include <highred.hxx>
#include <sfx2/app.hxx>
// class ScHighlightChgDlg
diff --git a/sc/source/ui/miscdlgs/instbdlg.cxx b/sc/source/ui/miscdlgs/instbdlg.cxx
index 64142da..a4e2fe7 100644
--- a/sc/source/ui/miscdlgs/instbdlg.cxx
+++ b/sc/source/ui/miscdlgs/instbdlg.cxx
@@ -19,7 +19,6 @@
#undef SC_DLLIMPLEMENTATION
#include <sfx2/app.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docinsert.hxx>
#include <sfx2/filedlghelper.hxx>
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx
index c941ef3..8e8d820 100644
--- a/sc/source/ui/miscdlgs/linkarea.cxx
+++ b/sc/source/ui/miscdlgs/linkarea.cxx
@@ -19,7 +19,6 @@
#undef SC_DLLIMPLEMENTATION
#include <sfx2/app.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/docinsert.hxx>
@@ -28,10 +27,8 @@
#include <svtools/ehdl.hxx>
#include <svtools/inettbc.hxx>
#include <svtools/sfxecode.hxx>
#include <vcl/waitobj.hxx>
#include <linkarea.hxx>
#include <sc.hrc>
#include <rangeutl.hxx>
#include <docsh.hxx>
#include <tablink.hxx>
diff --git a/sc/source/ui/miscdlgs/mvtabdlg.cxx b/sc/source/ui/miscdlgs/mvtabdlg.cxx
index ab594ee..12652b6 100644
--- a/sc/source/ui/miscdlgs/mvtabdlg.cxx
+++ b/sc/source/ui/miscdlgs/mvtabdlg.cxx
@@ -22,7 +22,6 @@
#include <mvtabdlg.hxx>
#include <document.hxx>
#include <docsh.hxx>
#include <global.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
diff --git a/sc/source/ui/miscdlgs/optsolver.cxx b/sc/source/ui/miscdlgs/optsolver.cxx
index 2f4232d..239591a 100644
--- a/sc/source/ui/miscdlgs/optsolver.cxx
+++ b/sc/source/ui/miscdlgs/optsolver.cxx
@@ -18,7 +18,6 @@
*/
#include <rangelst.hxx>
#include <scitems.hxx>
#include <sfx2/bindings.hxx>
#include <svl/zforlist.hxx>
#include <vcl/builderfactory.hxx>
@@ -26,11 +25,9 @@
#include <vcl/weld.hxx>
#include <vcl/svapp.hxx>
#include <uiitems.hxx>
#include <reffact.hxx>
#include <docsh.hxx>
#include <docfunc.hxx>
#include <formulacell.hxx>
#include <rangeutl.hxx>
#include <convuno.hxx>
#include <unonames.hxx>
@@ -41,8 +38,10 @@
#include <optsolver.hxx>
#include <com/sun/star/sheet/Solver.hpp>
#include <com/sun/star/sheet/SolverConstraint.hpp>
#include <com/sun/star/sheet/SolverConstraintOperator.hpp>
#include <com/sun/star/sheet/XSolverDescription.hpp>
#include <com/sun/star/sheet/XSolver.hpp>
using namespace com::sun::star;
diff --git a/sc/source/ui/miscdlgs/protectiondlg.cxx b/sc/source/ui/miscdlgs/protectiondlg.cxx
index 61fe3de..3dc4708 100644
--- a/sc/source/ui/miscdlgs/protectiondlg.cxx
+++ b/sc/source/ui/miscdlgs/protectiondlg.cxx
@@ -19,9 +19,7 @@
#include <protectiondlg.hxx>
#include <tabprotection.hxx>
#include <vcl/fixed.hxx>
#include <sal/macros.h>
#include <vector>
namespace {
diff --git a/sc/source/ui/miscdlgs/redcom.cxx b/sc/source/ui/miscdlgs/redcom.cxx
index cccab8d..d63b5a5 100644
--- a/sc/source/ui/miscdlgs/redcom.cxx
+++ b/sc/source/ui/miscdlgs/redcom.cxx
@@ -22,9 +22,10 @@
#include <chgtrack.hxx>
#include <redcom.hxx>
#include <docsh.hxx>
#include <tabvwsh.hxx>
#include <dbfunc.hxx>
#include <tabview.hxx>
#include <viewutil.hxx>
#include <svx/svxdlg.hxx>
#include <svx/dialogs.hrc>
ScRedComDialog::ScRedComDialog( weld::Window* pParent, const SfxItemSet& rCoreSet,
ScDocShell *pShell, ScChangeAction *pAction, bool bPrevNext)
diff --git a/sc/source/ui/miscdlgs/scuiautofmt.cxx b/sc/source/ui/miscdlgs/scuiautofmt.cxx
index f4a1828..4593ef7 100644
--- a/sc/source/ui/miscdlgs/scuiautofmt.cxx
+++ b/sc/source/ui/miscdlgs/scuiautofmt.cxx
@@ -19,35 +19,20 @@
#undef SC_DLLIMPLEMENTATION
#include <scitems.hxx>
#include <svx/algitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <svl/zforlist.hxx>
#include <vcl/button.hxx>
#include <vcl/dialog.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <sfx2/strings.hrc>
#include <sfx2/sfxresid.hxx>
#include <strings.hrc>
#include <scmod.hxx>
#include <attrib.hxx>
#include <zforauto.hxx>
#include <global.hxx>
#include <globstr.hrc>
#include <autoform.hxx>
#include <strindlg.hxx>
#include <scuiautofmt.hxx>
#include <scresid.hxx>
#include <document.hxx>
#include <helpids.h>
// AutoFormat-Dialog:
diff --git a/sc/source/ui/miscdlgs/sharedocdlg.cxx b/sc/source/ui/miscdlgs/sharedocdlg.cxx
index 261cd55..ee8a931 100644
--- a/sc/source/ui/miscdlgs/sharedocdlg.cxx
+++ b/sc/source/ui/miscdlgs/sharedocdlg.cxx
@@ -21,7 +21,6 @@
#include <sfx2/dialoghelper.hxx>
#include <svl/sharecontrolfile.hxx>
#include <unotools/useroptions.hxx>
#include <svtools/simptabl.hxx>
#include <docsh.hxx>
diff --git a/sc/source/ui/miscdlgs/simpref.cxx b/sc/source/ui/miscdlgs/simpref.cxx
index 9416c01..def1bab 100644
--- a/sc/source/ui/miscdlgs/simpref.cxx
+++ b/sc/source/ui/miscdlgs/simpref.cxx
@@ -17,13 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sfx2/app.hxx>
#include <reffact.hxx>
#include <document.hxx>
#include <rangenam.hxx>
#include <simpref.hxx>
#include <scmod.hxx>
ScSimpleRefDlg::ScSimpleRefDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pParent)
: ScAnyRefDlg(pB, pCW, pParent, "SimpleRefDialog", "modules/scalc/ui/simplerefdialog.ui")
diff --git a/sc/source/ui/miscdlgs/solveroptions.cxx b/sc/source/ui/miscdlgs/solveroptions.cxx
index 5830a20..072595f 100644
--- a/sc/source/ui/miscdlgs/solveroptions.cxx
+++ b/sc/source/ui/miscdlgs/solveroptions.cxx
@@ -26,16 +26,12 @@
#include <rtl/math.hxx>
#include <unotools/collatorwrapper.hxx>
#include <unotools/localedatawrapper.hxx>
#include <vcl/svlbitm.hxx>
#include <vcl/treelistentry.hxx>
#include <osl/diagnose.h>
#include <algorithm>
#include <com/sun/star/sheet/Solver.hpp>
#include <com/sun/star/sheet/XSolverDescription.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
using namespace com::sun::star;
diff --git a/sc/source/ui/miscdlgs/solvrdlg.cxx b/sc/source/ui/miscdlgs/solvrdlg.cxx
index 4ed6da3..fe5af2f 100644
--- a/sc/source/ui/miscdlgs/solvrdlg.cxx
+++ b/sc/source/ui/miscdlgs/solvrdlg.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <rangelst.hxx>
#include <scitems.hxx>
#include <sfx2/dispatch.hxx>
#include <svl/zforlist.hxx>
diff --git a/sc/source/ui/miscdlgs/strindlg.cxx b/sc/source/ui/miscdlgs/strindlg.cxx
index 5ecb5f5..61ba775 100644
--- a/sc/source/ui/miscdlgs/strindlg.cxx
+++ b/sc/source/ui/miscdlgs/strindlg.cxx
@@ -20,7 +20,6 @@
#undef SC_DLLIMPLEMENTATION
#include <strindlg.hxx>
#include <vcl/svapp.hxx>
ScStringInputDlg::ScStringInputDlg(weld::Window* pParent,
const OUString& rTitle,
diff --git a/sc/source/ui/miscdlgs/tabbgcolordlg.cxx b/sc/source/ui/miscdlgs/tabbgcolordlg.cxx
index 061e949..bc9301c 100644
--- a/sc/source/ui/miscdlgs/tabbgcolordlg.cxx
+++ b/sc/source/ui/miscdlgs/tabbgcolordlg.cxx
@@ -20,16 +20,9 @@
#undef SC_DLLIMPLEMENTATION
#include <tabbgcolordlg.hxx>
#include <sc.hrc>
#include <tools/color.hxx>
#include <sfx2/objsh.hxx>
#include <svx/xtable.hxx>
#include <svx/drawitem.hxx>
#include <unotools/pathoptions.hxx>
#include <vcl/builderfactory.hxx>
#include <vcl/event.hxx>
#include <osl/diagnose.h>
#include <officecfg/Office/Common.hxx>
diff --git a/sc/source/ui/miscdlgs/tabopdlg.cxx b/sc/source/ui/miscdlgs/tabopdlg.cxx
index bb9e456..901376a 100644
--- a/sc/source/ui/miscdlgs/tabopdlg.cxx
+++ b/sc/source/ui/miscdlgs/tabopdlg.cxx
@@ -17,12 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <scitems.hxx>
#include <sfx2/dispatch.hxx>
#include <vcl/weld.hxx>
#include <uiitems.hxx>
#include <global.hxx>
#include <document.hxx>
#include <scresid.hxx>
#include <sc.hrc>
diff --git a/sc/source/ui/miscdlgs/textdlgs.cxx b/sc/source/ui/miscdlgs/textdlgs.cxx
index 02c67a8..1cbd139 100644
--- a/sc/source/ui/miscdlgs/textdlgs.cxx
+++ b/sc/source/ui/miscdlgs/textdlgs.cxx
@@ -27,7 +27,6 @@
#include <svl/cjkoptions.hxx>
#include <textdlgs.hxx>
#include <sc.hrc>
#include <svl/intitem.hxx>
#include <svx/flagsdef.hxx>
diff --git a/sc/source/ui/miscdlgs/warnbox.cxx b/sc/source/ui/miscdlgs/warnbox.cxx
index 740fa0c..4c53b65 100644
--- a/sc/source/ui/miscdlgs/warnbox.cxx
+++ b/sc/source/ui/miscdlgs/warnbox.cxx
@@ -21,7 +21,6 @@
#include <scmod.hxx>
#include <inputopt.hxx>
#include <helpids.h>
ScReplaceWarnBox::ScReplaceWarnBox(weld::Window* pParent)
: MessageDialogController(pParent, "modules/scalc/ui/checkwarningdialog.ui",
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx
index 0520d917..2b3e6ce 100644
--- a/sc/source/ui/namedlg/namedefdlg.cxx
+++ b/sc/source/ui/namedlg/namedefdlg.cxx
@@ -24,7 +24,6 @@
#include <undorangename.hxx>
#include <tabvwsh.hxx>
#include <tokenarray.hxx>
#include <sc.hrc>
ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pParent,
const ScViewData* pViewData, const std::map<OUString, ScRangeName*>& aRangeMap,
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index f32732c..4be3d82 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -32,8 +32,6 @@
#include <globalnames.hxx>
#include <tokenarray.hxx>
#include <sfx2/app.hxx>
#include <vcl/settings.hxx>
#include <formula/errorcodes.hxx>
#include <unotools/charclass.hxx>
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index 51d7279..0268fd3 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -10,17 +10,17 @@
//ScRangeManagerTable
#include <memory>
#include <global.hxx>
#include <reffact.hxx>
#include <document.hxx>
#include <docfunc.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <namedlg.hxx>
#include <viewdata.hxx>
#include <globalnames.hxx>
#include <namemgrtable.hxx>
#include <rangenam.hxx>
#include <sfx2/app.hxx>
#include <unotools/charclass.hxx>
#include <svtools/simptabl.hxx>
#include <vcl/weld.hxx>
#include <vcl/layout.hxx>
#include <tools/link.hxx>
#define ITEMID_NAME 1
#define ITEMID_RANGE 2
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 0787489..4ecbdf3 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -19,20 +19,15 @@
#include <svx/svditer.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svdview.hxx>
#include <svx/svdxcgv.hxx>
#include <sfx2/linkmgr.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/viewfrm.hxx>
#include <vcl/help.hxx>
#include <vcl/svapp.hxx>
#include <tools/urlobj.hxx>
#include <svl/urlbmk.hxx>
#include <vcl/svlbitm.hxx>
#include <vcl/treelistentry.hxx>
#include <stdlib.h>
#include <sal/log.hxx>
#include <unotools/charclass.hxx>
@@ -48,8 +43,6 @@
#include <transobj.hxx>
#include <drwtrans.hxx>
#include <lnktrans.hxx>
#include <formulacell.hxx>
#include <dociter.hxx>
#include <strings.hrc>
#include <scresid.hxx>
#include <bitmaps.hlst>
diff --git a/sc/source/ui/navipi/navcitem.cxx b/sc/source/ui/navipi/navcitem.cxx
index 3778fdd..7e0ac94 100644
--- a/sc/source/ui/navipi/navcitem.cxx
+++ b/sc/source/ui/navipi/navcitem.cxx
@@ -22,7 +22,6 @@
#include <osl/diagnose.h>
#include <navcitem.hxx>
#include <global.hxx>
#include <navipi.hxx>
#include <sc.hrc>
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index b741764..755856c 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -17,25 +17,19 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <rangelst.hxx>
#include <sfx2/app.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/event.hxx>
#include <sfx2/navigat.hxx>
#include <svl/stritem.hxx>
#include <svl/urlbmk.hxx>
#include <vcl/builderfactory.hxx>
#include <vcl/settings.hxx>
#include <unotools/charclass.hxx>
#include <stdlib.h>
#include <viewdata.hxx>
#include <tabvwsh.hxx>
#include <docsh.hxx>
#include <document.hxx>
#include <dbdata.hxx>
#include <rangenam.hxx>
#include <rangeutl.hxx>
#include <sc.hrc>
#include <strings.hrc>
@@ -48,8 +42,6 @@
#include <navsett.hxx>
#include <markdata.hxx>
#include <algorithm>
#include <com/sun/star/uno/Reference.hxx>
using namespace com::sun::star;
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx
index a5b2a9f..43533c4 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.cxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx
@@ -9,25 +9,8 @@
#include <sal/config.h>
#include <algorithm>
#include <cmath>
#include <calcconfig.hxx>
#include "calcoptionsdlg.hxx"
#include <docfunc.hxx>
#include <docsh.hxx>
#include <interpre.hxx>
#include <sc.hrc>
#include <scopetools.hxx>
#include <viewdata.hxx>
#include <vcl/svlbitm.hxx>
#include <vcl/treelistentry.hxx>
#if HAVE_FEATURE_OPENCL
#include <formulagroup.hxx>
#include <globalnames.hxx>
#endif
namespace {
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.hxx b/sc/source/ui/optdlg/calcoptionsdlg.hxx
index 2baae9d..1f26e64 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.hxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.hxx
@@ -10,7 +10,6 @@
#ifndef INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX
#define INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX
#include <config_features.h>
#include <vcl/weld.hxx>
#include <calcconfig.hxx>
diff --git a/sc/source/ui/optdlg/opredlin.cxx b/sc/source/ui/optdlg/opredlin.cxx
index b64670d..49e952d 100644
--- a/sc/source/ui/optdlg/opredlin.cxx
+++ b/sc/source/ui/optdlg/opredlin.cxx
@@ -20,20 +20,11 @@
#undef SC_DLLIMPLEMENTATION
#include <svx/colorbox.hxx>
#include <svx/dlgutil.hxx>
#include <svx/drawitem.hxx>
#include <svx/xtable.hxx>
#include <appoptio.hxx>
#include <scmod.hxx>
#include <scitems.hxx>
#include <tpview.hxx>
#include <global.hxx>
#include <viewopti.hxx>
#include <tabvwsh.hxx>
#include <uiitems.hxx>
#include <docsh.hxx>
#include <sc.hrc>
#include <svx/svxids.hrc>
#include <opredlin.hxx>
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx
index 3f7f11d..cc29f7c 100644
--- a/sc/source/ui/optdlg/tpcalc.cxx
+++ b/sc/source/ui/optdlg/tpcalc.cxx
@@ -19,23 +19,17 @@
#undef SC_DLLIMPLEMENTATION
#include <scitems.hxx>
#include <vcl/weld.hxx>
#include <svl/zforlist.hxx>
#include <global.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <uiitems.hxx>
#include <docsh.hxx>
#include <document.hxx>
#include <docoptio.hxx>
#include <sc.hrc>
#include <officecfg/Office/Calc.hxx>
#include <tpcalc.hxx>
#include <math.h>
ScTpCalcOptions::ScTpCalcOptions(vcl::Window* pParent, const SfxItemSet& rCoreAttrs)
: SfxTabPage(pParent, "OptCalculatePage",
"modules/scalc/ui/optcalculatepage.ui", &rCoreAttrs)
diff --git a/sc/source/ui/optdlg/tpcompatibility.cxx b/sc/source/ui/optdlg/tpcompatibility.cxx
index 593ac69..efd464e 100644
--- a/sc/source/ui/optdlg/tpcompatibility.cxx
+++ b/sc/source/ui/optdlg/tpcompatibility.cxx
@@ -9,10 +9,11 @@
#undef SC_DLLIMPLEMENTATION
#include <scmod.hxx>
#include <svl/intitem.hxx>
#include <tpcompatibility.hxx>
#include <sc.hrc>
#include <appoptio.hxx>
#include <optutil.hxx>
ScTpCompatOptions::ScTpCompatOptions(vcl::Window *pParent, const SfxItemSet &rCoreAttrs) :
SfxTabPage(pParent, "OptCompatibilityPage","modules/scalc/ui/optcompatibilitypage.ui", &rCoreAttrs)
diff --git a/sc/source/ui/optdlg/tpdefaults.cxx b/sc/source/ui/optdlg/tpdefaults.cxx
index c252b96..cc4642d 100644
--- a/sc/source/ui/optdlg/tpdefaults.cxx
+++ b/sc/source/ui/optdlg/tpdefaults.cxx
@@ -11,7 +11,6 @@
#include <tpdefaults.hxx>
#include <sc.hrc>
#include <scmod.hxx>
#include <defaultsoptions.hxx>
#include <document.hxx>
diff --git a/sc/source/ui/optdlg/tpformula.cxx b/sc/source/ui/optdlg/tpformula.cxx
index 95553d1..fff31c3 100644
--- a/sc/source/ui/optdlg/tpformula.cxx
+++ b/sc/source/ui/optdlg/tpformula.cxx
@@ -19,9 +19,7 @@
#undef SC_DLLIMPLEMENTATION
#include <scmod.hxx>
#include <svl/eitem.hxx>
#include <svl/stritem.hxx>
#include <global.hxx>
#include <tpformula.hxx>
#include <formulaopt.hxx>
#include <sc.hrc>
diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx
index 77e89cd..d16b9b2 100644
--- a/sc/source/ui/optdlg/tpview.cxx
+++ b/sc/source/ui/optdlg/tpview.cxx
@@ -19,24 +19,17 @@
#undef SC_DLLIMPLEMENTATION
#include <scitems.hxx>
#include <tpview.hxx>
#include <global.hxx>
#include <viewopti.hxx>
#include <tabvwsh.hxx>
#include <uiitems.hxx>
#include <scresid.hxx>
#include <docsh.hxx>
#include <sc.hrc>
#include <strings.hrc>
#include <globstr.hrc>
#include <units.hrc>
#include <appoptio.hxx>
#include <scmod.hxx>
#include <svx/colorbox.hxx>
#include <svx/dlgutil.hxx>
#include <svx/drawitem.hxx>
#include <svx/xtable.hxx>
#include <svtools/unitconv.hxx>
ScTpContentOptions::ScTpContentOptions( vcl::Window* pParent,
const SfxItemSet& rArgSet ) :