tdf#42949 Fix IWYU warnings in sc/source/ui/inc/[f-p]*

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

Change-Id: Ie40401e8706dda219b8578d180983811114cabed
Reviewed-on: https://gerrit.libreoffice.org/62208
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
diff --git a/sc/IwyuFilter_sc.yaml b/sc/IwyuFilter_sc.yaml
index 3f63ccb..0b8fff4 100644
--- a/sc/IwyuFilter_sc.yaml
+++ b/sc/IwyuFilter_sc.yaml
@@ -462,6 +462,9 @@ blacklist:
    sc/source/ui/inc/ExponentialSmoothingDialog.hxx:
    # base class has to be a complete type
    - viewdata.hxx
    sc/source/ui/inc/impex.hxx:
    # Needed for template
    - o3tl/deleter.hxx
    sc/source/ui/inc/MatrixComparisonGenerator.hxx:
    # base class has to be a complete type
    - viewdata.hxx
@@ -483,3 +486,4 @@ blacklist:
    sc/source/ui/inc/StatisticsTwoVariableDialog.hxx:
    # base class has to be a complete type
    - viewdata.hxx

diff --git a/sc/source/ui/dbgui/imoptdlg.cxx b/sc/source/ui/dbgui/imoptdlg.cxx
index 0407642..a71eaee 100644
--- a/sc/source/ui/dbgui/imoptdlg.cxx
+++ b/sc/source/ui/dbgui/imoptdlg.cxx
@@ -22,6 +22,7 @@
#include <comphelper/string.hxx>
#include <osl/thread.h>
#include <rtl/tencinfo.h>
#include <global.hxx>

static const sal_Char pStrFix[] = "FIX";

diff --git a/sc/source/ui/inc/cellsh.hxx b/sc/source/ui/inc/cellsh.hxx
index a4a8eee..6c963e2 100644
--- a/sc/source/ui/inc/cellsh.hxx
+++ b/sc/source/ui/inc/cellsh.hxx
@@ -28,11 +28,13 @@
#include "formatsh.hxx"
#include <rtl/ref.hxx>
#include <sot/formats.hxx>
#include <vcl/vclptr.hxx>

class SvxClipboardFormatItem;
class TransferableDataHelper;
class TransferableClipboardListener;
class AbstractScLinkedAreaDlg;
class Dialog;

struct CellShell_Impl
{
diff --git a/sc/source/ui/inc/filldlg.hxx b/sc/source/ui/inc/filldlg.hxx
index de6ec72..afa1527 100644
--- a/sc/source/ui/inc/filldlg.hxx
+++ b/sc/source/ui/inc/filldlg.hxx
@@ -25,8 +25,6 @@

class ScDocument;

#include "scui_def.hxx"

class ScFillSeriesDlg : public weld::GenericDialogController
{
public:
diff --git a/sc/source/ui/inc/filtdlg.hxx b/sc/source/ui/inc/filtdlg.hxx
index 86df479..5a2ab15 100644
--- a/sc/source/ui/inc/filtdlg.hxx
+++ b/sc/source/ui/inc/filtdlg.hxx
@@ -23,7 +23,6 @@
#include <vcl/combobox.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/layout.hxx>
#include <global.hxx>
#include <address.hxx>
#include "anyrefdg.hxx"
#include <queryparam.hxx>
diff --git a/sc/source/ui/inc/foptmgr.hxx b/sc/source/ui/inc/foptmgr.hxx
index 01ff63e..eddfc10 100644
--- a/sc/source/ui/inc/foptmgr.hxx
+++ b/sc/source/ui/inc/foptmgr.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_FOPTMGR_HXX

#include <vcl/fixed.hxx>
#include <vcl/edit.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/button.hxx>

diff --git a/sc/source/ui/inc/formatsh.hxx b/sc/source/ui/inc/formatsh.hxx
index 1b21237..ad1c55b 100644
--- a/sc/source/ui/inc/formatsh.hxx
+++ b/sc/source/ui/inc/formatsh.hxx
@@ -22,9 +22,8 @@

#include <sfx2/shell.hxx>
#include <shellids.hxx>
#include <sfx2/module.hxx>
#include <svx/svdmark.hxx>

class SfxModule;
class ScViewData;
enum class SvNumFormatType : sal_Int16;

diff --git a/sc/source/ui/inc/formula.hxx b/sc/source/ui/inc/formula.hxx
index d494054..a40b55e 100644
--- a/sc/source/ui/inc/formula.hxx
+++ b/sc/source/ui/inc/formula.hxx
@@ -22,12 +22,6 @@

#include <memory>
#include "anyrefdg.hxx"
#include <global.hxx>
#include <vcl/lstbox.hxx>
#include <svtools/svmedit.hxx>
#include <vcl/tabpage.hxx>

#include <compiler.hxx>

#include <formula/formula.hxx>
#include "IAnyRefDialog.hxx"
@@ -37,7 +31,6 @@ class ScDocument;
class ScFuncDesc;
class ScInputHandler;
class ScDocShell;
class ScFormulaCell;

class ScFormulaDlg final : public formula::FormulaDlg,
                     public IAnyRefDialog
diff --git a/sc/source/ui/inc/fupoor.hxx b/sc/source/ui/inc/fupoor.hxx
index 74bdc96..4fb2101 100644
--- a/sc/source/ui/inc/fupoor.hxx
+++ b/sc/source/ui/inc/fupoor.hxx
@@ -20,19 +20,18 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_FUPOOR_HXX
#define INCLUDED_SC_SOURCE_UI_INC_FUPOOR_HXX

#include <vcl/event.hxx>
#include <vcl/timer.hxx>
#include <sfx2/request.hxx>
#include <svx/svdobj.hxx>
#include <vcl/window.hxx>

class ScDrawView;
class ScTabViewShell;
namespace vcl { class Window; }
class SdrModel;
class Dialog;

// Create default drawing objects via keyboard
class SdrObject;
class CommandEvent;
class KeyEvent;
class MouseEvent;

//  Return values for command
#define SC_CMD_NONE     0
diff --git a/sc/source/ui/inc/futext.hxx b/sc/source/ui/inc/futext.hxx
index 97bf3a3..d6bbdb8 100644
--- a/sc/source/ui/inc/futext.hxx
+++ b/sc/source/ui/inc/futext.hxx
@@ -22,8 +22,6 @@

#include "fuconstr.hxx"

class SdrObject;
class SdrTextObj;
class SdrOutliner;

/** Base class for Text functions */
diff --git a/sc/source/ui/inc/graphsh.hxx b/sc/source/ui/inc/graphsh.hxx
index 8d86458..d2fee24 100644
--- a/sc/source/ui/inc/graphsh.hxx
+++ b/sc/source/ui/inc/graphsh.hxx
@@ -21,13 +21,13 @@
#define INCLUDED_SC_SOURCE_UI_INC_GRAPHSH_HXX

#include <memory>
#include <vector>
#include <sfx2/shell.hxx>
#include <shellids.hxx>
#include <sfx2/module.hxx>
#include <svx/svdmark.hxx>

class SdrExternalToolEdit;
class ScViewData;
class SfxModule;

#include "drawsh.hxx"

diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index 06a01df..24415a7 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -24,10 +24,7 @@
#include "viewutil.hxx"
#include "viewdata.hxx"
#include "cbutton.hxx"
#include <o3tl/deleter.hxx>
#include <svx/sdr/overlay/overlayobject.hxx>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
#include <basegfx/matrix/b2dhommatrix.hxx>

#include <memory>
#include <vector>
@@ -40,6 +37,9 @@ namespace sc {
    struct SpellCheckContext;
}

namespace sdr { namespace overlay { class OverlayManager; } }
namespace o3tl { template <typename T> struct default_delete; }

class FmFormView;
struct ScTableInfo;
class ScDPObject;
diff --git a/sc/source/ui/inc/hdrcont.hxx b/sc/source/ui/inc/hdrcont.hxx
index 03bbb26..2ffc9c9 100644
--- a/sc/source/ui/inc/hdrcont.hxx
+++ b/sc/source/ui/inc/hdrcont.hxx
@@ -21,8 +21,8 @@
#define INCLUDED_SC_SOURCE_UI_INC_HDRCONT_HXX

#include <vcl/window.hxx>
#include <vcl/seleng.hxx>
#include <address.hxx>
#include <scdllapi.h>
#include <types.hxx>

#define HDR_SIZE_OPTIMUM    0xFFFF

@@ -30,6 +30,7 @@
#define HDR_SLIDERSIZE      2

class ScTabView;
class SelectionEngine;

class SC_DLLPUBLIC ScHeaderControl : public vcl::Window
{
diff --git a/sc/source/ui/inc/hfedtdlg.hxx b/sc/source/ui/inc/hfedtdlg.hxx
index 3f3c13a..0011bd2 100644
--- a/sc/source/ui/inc/hfedtdlg.hxx
+++ b/sc/source/ui/inc/hfedtdlg.hxx
@@ -21,9 +21,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_HFEDTDLG_HXX

#include <sfx2/tabdlg.hxx>
#include <svx/pageitem.hxx>

#include <scres.hrc>
#include <editeng/svxenum.hxx>

class ScHFEditDlg : public SfxTabDialog
{
diff --git a/sc/source/ui/inc/highred.hxx b/sc/source/ui/inc/highred.hxx
index c13d4a1..1a4c595 100644
--- a/sc/source/ui/inc/highred.hxx
+++ b/sc/source/ui/inc/highred.hxx
@@ -20,18 +20,9 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX
#define INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX

#include <vcl/combobox.hxx>
#include <svtools/headbar.hxx>
#include <svtools/simptabl.hxx>
#include <svtools/svtabbx.hxx>

#include <rangenam.hxx>
#include "anyrefdg.hxx"

#include <vcl/lstbox.hxx>

#include <svx/ctredlin.hxx>
#include <chgtrack.hxx>
#include <chgviset.hxx>

class ScViewData;
diff --git a/sc/source/ui/inc/hiranges.hxx b/sc/source/ui/inc/hiranges.hxx
index 425f246..3a1d92c 100644
--- a/sc/source/ui/inc/hiranges.hxx
+++ b/sc/source/ui/inc/hiranges.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_HIRANGES_HXX

#include <tools/color.hxx>
#include <global.hxx>
#include <address.hxx>

struct ScHighlightEntry
diff --git a/sc/source/ui/inc/imoptdlg.hxx b/sc/source/ui/inc/imoptdlg.hxx
index 4bdbbbb..1f8b946 100644
--- a/sc/source/ui/inc/imoptdlg.hxx
+++ b/sc/source/ui/inc/imoptdlg.hxx
@@ -20,14 +20,9 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX
#define INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX

#include <vcl/dialog.hxx>
#include <vcl/fixed.hxx>
#include <vcl/combobox.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/button.hxx>
#include <svx/txencbox.hxx>
#include <rtl/textenc.h>
#include <rtl/ustring.hxx>
#include <scdllapi.h>
#include <global.hxx>

class SC_DLLPUBLIC ScImportOptions
{
diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx
index f33d777..1b703d8 100644
--- a/sc/source/ui/inc/impex.hxx
+++ b/sc/source/ui/inc/impex.hxx
@@ -21,14 +21,12 @@
#define INCLUDED_SC_SOURCE_UI_INC_IMPEX_HXX

#include <o3tl/deleter.hxx>
#include <sot/exchange.hxx>
#include <global.hxx>
#include <sot/formats.hxx>
#include <address.hxx>
#include <tools/stream.hxx>

class ScDocShell;
class ScDocument;
class SvStream;
class ScAsciiOptions;

/**
diff --git a/sc/source/ui/inc/inputhdl.hxx b/sc/source/ui/inc/inputhdl.hxx
index 0afa464a..a034617 100644
--- a/sc/source/ui/inc/inputhdl.hxx
+++ b/sc/source/ui/inc/inputhdl.hxx
@@ -28,7 +28,6 @@
#include <tools/fract.hxx>
#include <tools/gen.hxx>
#include <tools/link.hxx>
#include <vcl/vclevent.hxx>
#include <vcl/vclptr.hxx>
#include <editeng/svxenum.hxx>

@@ -48,8 +47,8 @@ class ScRangeFindList;
class Timer;
class KeyEvent;
class CommandEvent;

struct ESelection;
class VclWindowEvent;
namespace vcl { class Window; }

//  ScInputHandler

diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index c562198..1a78985 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -31,16 +31,13 @@
#include <vcl/window.hxx>
#include <svtools/transfer.hxx>

class Accelerator;
class EditView;
class ScAccessibleEditLineTextData;
class ScEditEngineDefaulter;
class ScInputBarGroup;
class ScInputHandler;
class ScRangeList;
class ScTabViewShell;
struct EENotify;
struct ESelection;

class ScTextWndBase : public vcl::Window
{
diff --git a/sc/source/ui/inc/instbdlg.hxx b/sc/source/ui/inc/instbdlg.hxx
index 60bb94d..449ec75 100644
--- a/sc/source/ui/inc/instbdlg.hxx
+++ b/sc/source/ui/inc/instbdlg.hxx
@@ -22,7 +22,7 @@

#include <sfx2/objsh.hxx>
#include <vcl/weld.hxx>
#include <address.hxx>
#include <types.hxx>

class ScViewData;
class ScDocument;
diff --git a/sc/source/ui/inc/linkarea.hxx b/sc/source/ui/inc/linkarea.hxx
index 222fe52..8b2151d 100644
--- a/sc/source/ui/inc/linkarea.hxx
+++ b/sc/source/ui/inc/linkarea.hxx
@@ -22,12 +22,12 @@

#include <vcl/weld.hxx>
#include <sfx2/objsh.hxx>
#include <svtools/inettbc.hxx>

namespace sfx2 { class DocumentInserter; }
namespace sfx2 { class FileDialogHelper; }

class ScDocShell;
class URLBox;

class ScLinkedAreaDlg : public weld::GenericDialogController
{
diff --git a/sc/source/ui/inc/mediash.hxx b/sc/source/ui/inc/mediash.hxx
index d6b2358..86737cc 100644
--- a/sc/source/ui/inc/mediash.hxx
+++ b/sc/source/ui/inc/mediash.hxx
@@ -22,10 +22,9 @@

#include <sfx2/shell.hxx>
#include <shellids.hxx>
#include <sfx2/module.hxx>
#include <svx/svdmark.hxx>

class ScViewData;
class SfxModule;

#include "drawsh.hxx"

diff --git a/sc/source/ui/inc/msgpool.hxx b/sc/source/ui/inc/msgpool.hxx
index 76a56ac..decadab 100644
--- a/sc/source/ui/inc/msgpool.hxx
+++ b/sc/source/ui/inc/msgpool.hxx
@@ -20,12 +20,10 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_MSGPOOL_HXX
#define INCLUDED_SC_SOURCE_UI_INC_MSGPOOL_HXX

#include <scitems.hxx>
#include <svl/srchitem.hxx>

#include <svl/itempool.hxx>
#include <svl/stritem.hxx>
#include <svl/eitem.hxx>

#include "uiitems.hxx"
#include "condformatdlgitem.hxx"
diff --git a/sc/source/ui/inc/mvtabdlg.hxx b/sc/source/ui/inc/mvtabdlg.hxx
index 6c56de7..9836cc5 100644
--- a/sc/source/ui/inc/mvtabdlg.hxx
+++ b/sc/source/ui/inc/mvtabdlg.hxx
@@ -20,9 +20,11 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_MVTABDLG_HXX
#define INCLUDED_SC_SOURCE_UI_INC_MVTABDLG_HXX

#include <address.hxx>
#include <types.hxx>
#include <vcl/weld.hxx>

class ScDocument;

class ScMoveTableDlg : public weld::GenericDialogController
{
public:
diff --git a/sc/source/ui/inc/namedefdlg.hxx b/sc/source/ui/inc/namedefdlg.hxx
index 7d58850..aa97172 100644
--- a/sc/source/ui/inc/namedefdlg.hxx
+++ b/sc/source/ui/inc/namedefdlg.hxx
@@ -13,7 +13,6 @@
#include "anyrefdg.hxx"
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/edit.hxx>
#include <vcl/lstbox.hxx>

#include <map>
diff --git a/sc/source/ui/inc/namedlg.hxx b/sc/source/ui/inc/namedlg.hxx
index 4139c1a..cf8192b 100644
--- a/sc/source/ui/inc/namedlg.hxx
+++ b/sc/source/ui/inc/namedlg.hxx
@@ -20,16 +20,13 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_NAMEDLG_HXX
#define INCLUDED_SC_SOURCE_UI_INC_NAMEDLG_HXX

#include <vcl/combobox.hxx>
#include <vcl/fixed.hxx>
#include <vcl/lstbox.hxx>

#include <rangenam.hxx>
#include "anyrefdg.hxx"
#include "namemgrtable.hxx"

#include <memory>
#include <stack>
#include <map>

class ScViewData;
diff --git a/sc/source/ui/inc/namemgrtable.hxx b/sc/source/ui/inc/namemgrtable.hxx
index c429dc8..adf2175 100644
--- a/sc/source/ui/inc/namemgrtable.hxx
+++ b/sc/source/ui/inc/namemgrtable.hxx
@@ -11,7 +11,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_NAMEMGRTABLE_HXX

#include <svtools/simptabl.hxx>
#include <vcl/ctrl.hxx>

#include <address.hxx>

diff --git a/sc/source/ui/inc/namepast.hxx b/sc/source/ui/inc/namepast.hxx
index ba460fb..bf07a07 100644
--- a/sc/source/ui/inc/namepast.hxx
+++ b/sc/source/ui/inc/namepast.hxx
@@ -22,15 +22,12 @@

#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/lstbox.hxx>
#include "namemgrtable.hxx"

#include <memory>
#include <vector>
#include <map>

#include "scui_def.hxx"
class ScRangeName;
class ScDocShell;

diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx
index 4f6a639..32c6c8b 100644
--- a/sc/source/ui/inc/navipi.hxx
+++ b/sc/source/ui/inc/navipi.hxx
@@ -25,22 +25,20 @@
#include <vcl/field.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/idle.hxx>
#include <svl/poolitem.hxx>
#include <svl/lstner.hxx>
#include <sfx2/childwin.hxx>
#include <svx/sidebar/PanelLayout.hxx>
#include "content.hxx"
#include <svtools/svmedit.hxx>

class SfxPoolItem;
class ScTabViewShell;
class ScViewData;
class ScArea;
class ScScenarioWindow;
class ScNavigatorControllerItem;
class ScNavigatorDialogWrapper;
class ScNavigatorDlg;
class ScNavigatorSettings;
class VclContainer;

#define SC_DROPMODE_URL         0
#define SC_DROPMODE_LINK        1
diff --git a/sc/source/ui/inc/navsett.hxx b/sc/source/ui/inc/navsett.hxx
index 226626d..9dbf842 100644
--- a/sc/source/ui/inc/navsett.hxx
+++ b/sc/source/ui/inc/navsett.hxx
@@ -22,7 +22,6 @@

#include <tools/solar.h>

#include <vector>
#include <o3tl/enumarray.hxx>
#include "content.hxx"

diff --git a/sc/source/ui/inc/notemark.hxx b/sc/source/ui/inc/notemark.hxx
index c53ead3..45a09ed 100644
--- a/sc/source/ui/inc/notemark.hxx
+++ b/sc/source/ui/inc/notemark.hxx
@@ -22,12 +22,15 @@

#include <vcl/mapmod.hxx>
#include <vcl/timer.hxx>
#include <global.hxx>
#include <vcl/vclptr.hxx>
#include <tools/gen.hxx>
#include <address.hxx>
#include <postit.hxx>

namespace vcl { class Window; }

class SdrModel;
class ScDrawView;
class SdrCaptionObj;

class ScNoteMarker
{
diff --git a/sc/source/ui/inc/oleobjsh.hxx b/sc/source/ui/inc/oleobjsh.hxx
index 5b88140..fa449b4 100644
--- a/sc/source/ui/inc/oleobjsh.hxx
+++ b/sc/source/ui/inc/oleobjsh.hxx
@@ -22,10 +22,9 @@

#include <sfx2/shell.hxx>
#include <shellids.hxx>
#include <sfx2/module.hxx>
#include <svx/svdmark.hxx>

class ScViewData;
class SfxModule;

#include "drawsh.hxx"

diff --git a/sc/source/ui/inc/olinefun.hxx b/sc/source/ui/inc/olinefun.hxx
index 89e34ec..e29f7df 100644
--- a/sc/source/ui/inc/olinefun.hxx
+++ b/sc/source/ui/inc/olinefun.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_OLINEFUN_HXX
#define INCLUDED_SC_SOURCE_UI_INC_OLINEFUN_HXX

#include <global.hxx>
#include <types.hxx>

class ScDocShell;
class ScRange;
diff --git a/sc/source/ui/inc/opredlin.hxx b/sc/source/ui/inc/opredlin.hxx
index f6df6e1..1d834af 100644
--- a/sc/source/ui/inc/opredlin.hxx
+++ b/sc/source/ui/inc/opredlin.hxx
@@ -20,13 +20,8 @@
#define INCLUDED_SC_SOURCE_UI_INC_OPREDLIN_HXX

#include <sfx2/tabdlg.hxx>
#include <vcl/button.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/field.hxx>
#include <vcl/fixed.hxx>
#include <svtools/ctrlbox.hxx>
#include <svx/fntctrl.hxx>
#include <svx/strarray.hxx>

class SvxColorListBox;

class ScRedlineOptionsTabPage : public SfxTabPage
{
diff --git a/sc/source/ui/inc/optsolver.hxx b/sc/source/ui/inc/optsolver.hxx
index 9912229..eae1756 100644
--- a/sc/source/ui/inc/optsolver.hxx
+++ b/sc/source/ui/inc/optsolver.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_OPTSOLVER_HXX
#define INCLUDED_SC_SOURCE_UI_INC_OPTSOLVER_HXX

#include <global.hxx>
#include <address.hxx>
#include "anyrefdg.hxx"
#include <vcl/fixed.hxx>
diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx
index b833eec..6150dd7 100644
--- a/sc/source/ui/inc/output.hxx
+++ b/sc/source/ui/inc/output.hxx
@@ -24,10 +24,9 @@
#include <cellvalue.hxx>
#include <tools/color.hxx>
#include <tools/fract.hxx>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <tools/gen.hxx>
#include <editeng/svxenum.hxx>
#include <o3tl/deleter.hxx>
#include <vcl/outdev.hxx>

namespace sc {
    struct SpellCheckContext;
@@ -36,14 +35,13 @@ namespace sc {
namespace editeng {
    struct MisspellRanges;
}
namespace drawinglayer { namespace processor2d { class BaseProcessor2D; } }
namespace o3tl { template <typename T> struct default_delete; }

namespace tools { class Rectangle; }
namespace vcl { class Font; }
class OutputDevice;
class EditEngine;
class ScDocument;
class ScPatternAttr;
class SdrObject;
struct RowInfo;
struct ScTableInfo;
class ScTabViewShell;
@@ -57,7 +55,6 @@ class SdrPaintWindow;

enum ScOutputType { OUTTYPE_WINDOW, OUTTYPE_PRINTER };

class ScFieldEditEngine;
class ClearableClipRegion;
typedef std::unique_ptr<ClearableClipRegion, o3tl::default_delete<ClearableClipRegion>> ClearableClipRegionPtr;

diff --git a/sc/source/ui/inc/pagedata.hxx b/sc/source/ui/inc/pagedata.hxx
index 4f0c057..81a277c 100644
--- a/sc/source/ui/inc/pagedata.hxx
+++ b/sc/source/ui/inc/pagedata.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_PAGEDATA_HXX
#define INCLUDED_SC_SOURCE_UI_INC_PAGEDATA_HXX

#include <global.hxx>
#include <address.hxx>
#include <memory>
#include <vector>
diff --git a/sc/source/ui/inc/pfiltdlg.hxx b/sc/source/ui/inc/pfiltdlg.hxx
index 7b4537d..df40641 100644
--- a/sc/source/ui/inc/pfiltdlg.hxx
+++ b/sc/source/ui/inc/pfiltdlg.hxx
@@ -29,12 +29,11 @@
#include <queryparam.hxx>
#include <array>
#include <memory>
#include <vector>

class ScViewData;
class ScDocument;
class ScQueryItem;
class ScTypedStrData;
class SfxItemSet;
struct ScFilterEntries;

class ScPivotFilterDlg : public ModalDialog
diff --git a/sc/source/ui/inc/pgbrksh.hxx b/sc/source/ui/inc/pgbrksh.hxx
index c90b39b..0827662 100644
--- a/sc/source/ui/inc/pgbrksh.hxx
+++ b/sc/source/ui/inc/pgbrksh.hxx
@@ -20,11 +20,11 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_PGBRKSH_HXX
#define INCLUDED_SC_SOURCE_UI_INC_PGBRKSH_HXX

#include <sfx2/module.hxx>
#include <sfx2/shell.hxx>

#include <shellids.hxx>

class SfxModule;
class ScTabViewShell;

class ScPageBreakShell : public SfxShell
diff --git a/sc/source/ui/inc/pivotsh.hxx b/sc/source/ui/inc/pivotsh.hxx
index dd73a90..16e5eba 100644
--- a/sc/source/ui/inc/pivotsh.hxx
+++ b/sc/source/ui/inc/pivotsh.hxx
@@ -20,13 +20,13 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_PIVOTSH_HXX
#define INCLUDED_SC_SOURCE_UI_INC_PIVOTSH_HXX

#include <sfx2/module.hxx>
#include <sfx2/shell.hxx>

#include <shellids.hxx>

class ScTabViewShell;
class ScDPObject;
class SfxModule;

class ScPivotShell : public SfxShell
{
diff --git a/sc/source/ui/inc/prevloc.hxx b/sc/source/ui/inc/prevloc.hxx
index b6657ef..8cebf10 100644
--- a/sc/source/ui/inc/prevloc.hxx
+++ b/sc/source/ui/inc/prevloc.hxx
@@ -38,9 +38,6 @@
#define SC_PREVIEW_RANGE_TAB    3

class OutputDevice;
namespace tools { class Rectangle; }
class ScAddress;
class ScRange;
class ScDocument;
struct ScPreviewLocationEntry;

diff --git a/sc/source/ui/inc/prevwsh.hxx b/sc/source/ui/inc/prevwsh.hxx
index 7f7f6b7..5511d7c 100644
--- a/sc/source/ui/inc/prevwsh.hxx
+++ b/sc/source/ui/inc/prevwsh.hxx
@@ -20,10 +20,9 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_PREVWSH_HXX
#define INCLUDED_SC_SOURCE_UI_INC_PREVWSH_HXX

class ScrollBar;
#include <types.hxx>
#include <scdllapi.h>

#include <address.hxx>
#include <sfx2/viewfac.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/zoomitem.hxx>

@@ -35,6 +34,7 @@ class ScPreview;
struct ScHeaderFieldData;
class ScPreviewLocationData;
class CommandEvent;
class SfxViewFactory;

class SC_DLLPUBLIC ScPreviewShell: public SfxViewShell
{
diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx
index f298eeb..7115b7f 100644
--- a/sc/source/ui/inc/printfun.hxx
+++ b/sc/source/ui/inc/printfun.hxx
@@ -24,8 +24,6 @@
#include <pagepar.hxx>
#include <editutil.hxx>

#include <vcl/print.hxx>

class SfxPrinter;
class ScDocShell;
class ScDocument;
@@ -34,7 +32,6 @@ class SfxItemSet;
class ScPageHFItem;
class EditTextObject;
class MultiSelection;
class ScHeaderEditEngine;
class ScPageBreakData;
class ScPreviewLocationData;
class ScPrintOptions;
diff --git a/sc/source/ui/inc/protectiondlg.hxx b/sc/source/ui/inc/protectiondlg.hxx
index 1f87032..3f30ea3 100644
--- a/sc/source/ui/inc/protectiondlg.hxx
+++ b/sc/source/ui/inc/protectiondlg.hxx
@@ -22,8 +22,6 @@

#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/edit.hxx>
#include <vcl/layout.hxx>
#include <svx/checklbx.hxx>

diff --git a/sc/source/ui/inc/pvfundlg.hxx b/sc/source/ui/inc/pvfundlg.hxx
index 18134d0..3dae7b7 100644
--- a/sc/source/ui/inc/pvfundlg.hxx
+++ b/sc/source/ui/inc/pvfundlg.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_PVFUNDLG_HXX

#include <com/sun/star/sheet/DataPilotFieldReference.hpp>
#include <com/sun/star/sheet/DataPilotFieldSortInfo.hpp>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>

#include <vcl/fixed.hxx>
diff --git a/sc/source/ui/inc/scuiimoptdlg.hxx b/sc/source/ui/inc/scuiimoptdlg.hxx
index e4202ee..aa16ba72 100644
--- a/sc/source/ui/inc/scuiimoptdlg.hxx
+++ b/sc/source/ui/inc/scuiimoptdlg.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_SCUIIMOPTDLG_HXX

#include <vcl/layout.hxx>
#include <svx/txencbox.hxx>
#include "imoptdlg.hxx"

class ScDelimiterTable;
diff --git a/sc/source/ui/miscdlgs/datatableview.cxx b/sc/source/ui/miscdlgs/datatableview.cxx
index 897e7a31..0922c14 100644
--- a/sc/source/ui/miscdlgs/datatableview.cxx
+++ b/sc/source/ui/miscdlgs/datatableview.cxx
@@ -27,6 +27,7 @@
#include <table.hxx>

#include <vcl/builderfactory.hxx>
#include <vcl/seleng.hxx>
#include <sal/log.hxx>

constexpr double nPPTX = 0.06666;
diff --git a/sc/source/ui/miscdlgs/filldlg.cxx b/sc/source/ui/miscdlgs/filldlg.cxx
index dbcdc1c..b0133f5 100644
--- a/sc/source/ui/miscdlgs/filldlg.cxx
+++ b/sc/source/ui/miscdlgs/filldlg.cxx
@@ -28,6 +28,7 @@
#include <document.hxx>
#include <strings.hrc>
#include <filldlg.hxx>
#include <scui_def.hxx>

// class ScFillSeriesDlg

diff --git a/sc/source/ui/miscdlgs/highred.cxx b/sc/source/ui/miscdlgs/highred.cxx
index 36f231a..17d3f75 100644
--- a/sc/source/ui/miscdlgs/highred.cxx
+++ b/sc/source/ui/miscdlgs/highred.cxx
@@ -21,6 +21,7 @@
#include <reffact.hxx>
#include <document.hxx>
#include <docsh.hxx>
#include <chgtrack.hxx>

#include <highred.hxx>
#include <sfx2/app.hxx>
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx
index 62890a86..a55c27f 100644
--- a/sc/source/ui/miscdlgs/linkarea.cxx
+++ b/sc/source/ui/miscdlgs/linkarea.cxx
@@ -26,6 +26,7 @@
#include <sfx2/fcontnr.hxx>
#include <sfx2/filedlghelper.hxx>
#include <svtools/ehdl.hxx>
#include <svtools/inettbc.hxx>
#include <svtools/sfxecode.hxx>
#include <vcl/waitobj.hxx>

diff --git a/sc/source/ui/namedlg/namepast.cxx b/sc/source/ui/namedlg/namepast.cxx
index ff2b3cc..7b9125b 100644
--- a/sc/source/ui/namedlg/namepast.cxx
+++ b/sc/source/ui/namedlg/namepast.cxx
@@ -23,6 +23,7 @@
#include <docsh.hxx>
#include <rangenam.hxx>
#include <viewdata.hxx>
#include <scui_def.hxx>

#include <o3tl/make_unique.hxx>

diff --git a/sc/source/ui/pagedlg/hfedtdlg.cxx b/sc/source/ui/pagedlg/hfedtdlg.cxx
index ecf866e..ca6d105 100644
--- a/sc/source/ui/pagedlg/hfedtdlg.cxx
+++ b/sc/source/ui/pagedlg/hfedtdlg.cxx
@@ -27,6 +27,7 @@
#include <globstr.hrc>
#include <scresid.hxx>
#include <scuitphfedit.hxx>
#include <svx/svxids.hrc>

ScHFEditDlg::ScHFEditDlg( vcl::Window*           pParent,
                          const SfxItemSet& rCoreSet,
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx
index cc7b9cf..8cc1f28 100644
--- a/sc/source/ui/pagedlg/tphf.cxx
+++ b/sc/source/ui/pagedlg/tphf.cxx
@@ -28,6 +28,7 @@
#include <attrib.hxx>
#include <tphf.hxx>
#include <sc.hrc>
#include <scres.hrc>
#include <scabstdlg.hxx>
#include <globstr.hrc>
#include <scresid.hxx>