summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2020-11-18 16:36:42 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-11-27 11:08:09 +0100
commitf3fc16f444f84a269df9bd2f2c3d2a47cf49d057 (patch)
treed2b2369d720e1640878642f3c15f8bcfb4ad71ca /sc/source/ui/inc
parentb8404ae521a9c2d183d4e076a7884627ba353e4b (diff)
tdf#42949 Fix new IWYU warnings in directory sc/
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I217817e2e4a42b096f5a7fb6344568c10d69aab2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106078 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r--sc/source/ui/inc/AccessibleCsvControl.hxx3
-rw-r--r--sc/source/ui/inc/ChildWindowWrapper.hxx1
-rw-r--r--sc/source/ui/inc/FilterListBox.hxx2
-rw-r--r--sc/source/ui/inc/PivotLayoutTreeList.hxx1
-rw-r--r--sc/source/ui/inc/PivotLayoutTreeListData.hxx1
-rw-r--r--sc/source/ui/inc/RegressionDialog.hxx1
-rw-r--r--sc/source/ui/inc/TableFillingAndNavigationTools.hxx1
-rw-r--r--sc/source/ui/inc/acredlin.hxx2
-rw-r--r--sc/source/ui/inc/anyrefdg.hxx2
-rw-r--r--sc/source/ui/inc/areasave.hxx1
-rw-r--r--sc/source/ui/inc/autostyl.hxx1
-rw-r--r--sc/source/ui/inc/cellsh.hxx1
-rw-r--r--sc/source/ui/inc/checklistmenu.hxx2
-rw-r--r--sc/source/ui/inc/condformatmgr.hxx2
-rw-r--r--sc/source/ui/inc/csvcontrol.hxx1
-rw-r--r--sc/source/ui/inc/csvruler.hxx1
-rw-r--r--sc/source/ui/inc/dataprovider.hxx2
-rw-r--r--sc/source/ui/inc/datatableview.hxx1
-rw-r--r--sc/source/ui/inc/foptmgr.hxx2
-rw-r--r--sc/source/ui/inc/formula.hxx1
-rw-r--r--sc/source/ui/inc/fuinsert.hxx2
-rw-r--r--sc/source/ui/inc/gridmerg.hxx3
-rw-r--r--sc/source/ui/inc/hdrcont.hxx1
-rw-r--r--sc/source/ui/inc/inputwin.hxx2
-rw-r--r--sc/source/ui/inc/instbdlg.hxx1
-rw-r--r--sc/source/ui/inc/optsolver.hxx1
-rw-r--r--sc/source/ui/inc/protectiondlg.hxx1
-rw-r--r--sc/source/ui/inc/scuiasciiopt.hxx1
-rw-r--r--sc/source/ui/inc/scuiautofmt.hxx1
-rw-r--r--sc/source/ui/inc/scuitphfedit.hxx1
-rw-r--r--sc/source/ui/inc/sharedocdlg.hxx1
-rw-r--r--sc/source/ui/inc/sizedev.hxx1
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx3
-rw-r--r--sc/source/ui/inc/tphfedit.hxx2
-rw-r--r--sc/source/ui/inc/uiobject.hxx2
-rw-r--r--sc/source/ui/inc/undoolk.hxx2
-rw-r--r--sc/source/ui/inc/validate.hxx1
-rw-r--r--sc/source/ui/inc/xmlsourcedlg.hxx1
38 files changed, 28 insertions, 28 deletions
diff --git a/sc/source/ui/inc/AccessibleCsvControl.hxx b/sc/source/ui/inc/AccessibleCsvControl.hxx
index 808368cd3c42..975698d94dde 100644
--- a/sc/source/ui/inc/AccessibleCsvControl.hxx
+++ b/sc/source/ui/inc/AccessibleCsvControl.hxx
@@ -27,6 +27,7 @@
#include <com/sun/star/accessibility/XAccessibleTable.hpp>
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
#include <tools/gen.hxx>
+#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <comphelper/accessiblecomponenthelper.hxx>
#include <cppuhelper/implbase1.hxx>
@@ -34,8 +35,6 @@
#include <cppuhelper/implbase3.hxx>
#include <editeng/AccessibleStaticTextBase.hxx>
#include <comphelper/uno3.hxx>
-#include <vcl/vclptr.hxx>
-#include "AccessibleContextBase.hxx"
#include <map>
class ScCsvControl;
diff --git a/sc/source/ui/inc/ChildWindowWrapper.hxx b/sc/source/ui/inc/ChildWindowWrapper.hxx
index dad043e22143..f88c49f5e904 100644
--- a/sc/source/ui/inc/ChildWindowWrapper.hxx
+++ b/sc/source/ui/inc/ChildWindowWrapper.hxx
@@ -11,7 +11,6 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_CHILDWINDOWWRAPPER_HXX
#define INCLUDED_SC_SOURCE_UI_INC_CHILDWINDOWWRAPPER_HXX
-#include <sfx2/basedlgs.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/childwin.hxx>
diff --git a/sc/source/ui/inc/FilterListBox.hxx b/sc/source/ui/inc/FilterListBox.hxx
index 1a4685ff5656..0177bb4691a5 100644
--- a/sc/source/ui/inc/FilterListBox.hxx
+++ b/sc/source/ui/inc/FilterListBox.hxx
@@ -19,6 +19,8 @@
#pragma once
+#include <types.hxx>
+
#include <vcl/InterimItemWindow.hxx>
class ScGridWindow;
diff --git a/sc/source/ui/inc/PivotLayoutTreeList.hxx b/sc/source/ui/inc/PivotLayoutTreeList.hxx
index ab1ce9c93ae7..4d15053c0e31 100644
--- a/sc/source/ui/inc/PivotLayoutTreeList.hxx
+++ b/sc/source/ui/inc/PivotLayoutTreeList.hxx
@@ -12,7 +12,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELIST_HXX
#include <memory>
-#include <tools/solar.h>
#include "PivotLayoutTreeListBase.hxx"
class ScPivotLayoutTreeList : public ScPivotLayoutTreeListBase
diff --git a/sc/source/ui/inc/PivotLayoutTreeListData.hxx b/sc/source/ui/inc/PivotLayoutTreeListData.hxx
index 5041ff12b8ea..bd60a765fba8 100644
--- a/sc/source/ui/inc/PivotLayoutTreeListData.hxx
+++ b/sc/source/ui/inc/PivotLayoutTreeListData.hxx
@@ -12,7 +12,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTDATA_HXX
#include "PivotLayoutTreeListBase.hxx"
-#include <tools/solar.h>
#include <vector>
#include <memory>
diff --git a/sc/source/ui/inc/RegressionDialog.hxx b/sc/source/ui/inc/RegressionDialog.hxx
index 96da94047007..2d75ae95dbac 100644
--- a/sc/source/ui/inc/RegressionDialog.hxx
+++ b/sc/source/ui/inc/RegressionDialog.hxx
@@ -12,6 +12,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_REGRESSIONDIALOG_HXX
#include "StatisticsTwoVariableDialog.hxx"
+#include "TableFillingAndNavigationTools.hxx"
class ScRegressionDialog : public ScStatisticsTwoVariableDialog
{
diff --git a/sc/source/ui/inc/TableFillingAndNavigationTools.hxx b/sc/source/ui/inc/TableFillingAndNavigationTools.hxx
index c4974bbd1bc6..a2d04400403f 100644
--- a/sc/source/ui/inc/TableFillingAndNavigationTools.hxx
+++ b/sc/source/ui/inc/TableFillingAndNavigationTools.hxx
@@ -14,6 +14,7 @@
#include <address.hxx>
#include <rangelst.hxx>
+#include <map>
#include <vector>
class FormulaTemplate
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index 7bca575093d2..04f919ecd019 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -21,6 +21,8 @@
#define INCLUDED_SC_SOURCE_UI_INC_ACREDLIN_HXX
#include <svx/ctredlin.hxx>
+#include <sfx2/basedlgs.hxx>
+#include <sfx2/bindings.hxx>
#include <chgtrack.hxx>
#include <chgviset.hxx>
#include <vcl/idle.hxx>
diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx
index 699725f712c1..30fc15a5b542 100644
--- a/sc/source/ui/inc/anyrefdg.hxx
+++ b/sc/source/ui/inc/anyrefdg.hxx
@@ -23,9 +23,7 @@
#include <sfx2/basedlgs.hxx>
#include <address.hxx>
#include <formula/funcutl.hxx>
-#include <vcl/accel.hxx>
#include "IAnyRefDialog.hxx"
-#include <scmod.hxx>
#include <memory>
diff --git a/sc/source/ui/inc/areasave.hxx b/sc/source/ui/inc/areasave.hxx
index 345331c44272..a8cf0dbc7961 100644
--- a/sc/source/ui/inc/areasave.hxx
+++ b/sc/source/ui/inc/areasave.hxx
@@ -23,6 +23,7 @@
#include <address.hxx>
#include <tools/solar.h>
+#include <memory>
#include <vector>
class ScDocument;
diff --git a/sc/source/ui/inc/autostyl.hxx b/sc/source/ui/inc/autostyl.hxx
index 83078c378aa2..8040373de837 100644
--- a/sc/source/ui/inc/autostyl.hxx
+++ b/sc/source/ui/inc/autostyl.hxx
@@ -20,6 +20,7 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_AUTOSTYL_HXX
#define INCLUDED_SC_SOURCE_UI_INC_AUTOSTYL_HXX
+#include <address.hxx>
#include <vector>
#include <rtl/ustring.hxx>
#include <tools/solar.h>
diff --git a/sc/source/ui/inc/cellsh.hxx b/sc/source/ui/inc/cellsh.hxx
index 1d543ad557f5..837923fb4e20 100644
--- a/sc/source/ui/inc/cellsh.hxx
+++ b/sc/source/ui/inc/cellsh.hxx
@@ -29,6 +29,7 @@
#include <rtl/ref.hxx>
#include <sot/formats.hxx>
#include <vcl/vclptr.hxx>
+#include <vcl/window.hxx>
#include <tools/solar.h>
class SvxClipboardFormatItem;
diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx
index 247ff1c55c42..602d6d86109d 100644
--- a/sc/source/ui/inc/checklistmenu.hxx
+++ b/sc/source/ui/inc/checklistmenu.hxx
@@ -10,14 +10,12 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_CHECKLISTMENU_HXX
#define INCLUDED_SC_SOURCE_UI_INC_CHECKLISTMENU_HXX
-#include <vcl/InterimItemWindow.hxx>
#include <vcl/dockwin.hxx>
#include <vcl/timer.hxx>
#include <vcl/weld.hxx>
#include <memory>
#include <unordered_set>
-#include <unordered_map>
#include <map>
#include <set>
diff --git a/sc/source/ui/inc/condformatmgr.hxx b/sc/source/ui/inc/condformatmgr.hxx
index 2e7eaa54eaa9..b70b0ffab851 100644
--- a/sc/source/ui/inc/condformatmgr.hxx
+++ b/sc/source/ui/inc/condformatmgr.hxx
@@ -12,8 +12,6 @@
#include <vcl/weld.hxx>
-#include <map>
-
class ScDocument;
class ScConditionalFormat;
class ScConditionalFormatList;
diff --git a/sc/source/ui/inc/csvcontrol.hxx b/sc/source/ui/inc/csvcontrol.hxx
index 8a87e306341e..65a316372f02 100644
--- a/sc/source/ui/inc/csvcontrol.hxx
+++ b/sc/source/ui/inc/csvcontrol.hxx
@@ -23,7 +23,6 @@
#include <scdllapi.h>
#include <address.hxx>
#include "csvsplits.hxx"
-#include <com/sun/star/uno/Reference.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <rtl/ref.hxx>
#include <vcl/customweld.hxx>
diff --git a/sc/source/ui/inc/csvruler.hxx b/sc/source/ui/inc/csvruler.hxx
index ad917313a1c9..6d64b3174290 100644
--- a/sc/source/ui/inc/csvruler.hxx
+++ b/sc/source/ui/inc/csvruler.hxx
@@ -22,7 +22,6 @@
#include "csvcontrol.hxx"
#include "csvsplits.hxx"
-#include <scdllapi.h>
#include <vcl/virdev.hxx>
diff --git a/sc/source/ui/inc/dataprovider.hxx b/sc/source/ui/inc/dataprovider.hxx
index a7a5f9b10d42..a1cd99ecf3bd 100644
--- a/sc/source/ui/inc/dataprovider.hxx
+++ b/sc/source/ui/inc/dataprovider.hxx
@@ -20,7 +20,7 @@
#include <rtl/strbuf.hxx>
#include <vector>
-#include <map>
+//#include <map>
#include <orcus/csv_parser.hpp>
diff --git a/sc/source/ui/inc/datatableview.hxx b/sc/source/ui/inc/datatableview.hxx
index fe415439eef7..57bcde623b82 100644
--- a/sc/source/ui/inc/datatableview.hxx
+++ b/sc/source/ui/inc/datatableview.hxx
@@ -23,7 +23,6 @@
#include <com/sun/star/awt/XWindow.hpp>
#include <vcl/ctrl.hxx>
#include <vcl/scrbar.hxx>
-#include <scdllapi.h>
#include <types.hxx>
#include "hdrcont.hxx"
diff --git a/sc/source/ui/inc/foptmgr.hxx b/sc/source/ui/inc/foptmgr.hxx
index b26ffbe1d155..319ce2421618 100644
--- a/sc/source/ui/inc/foptmgr.hxx
+++ b/sc/source/ui/inc/foptmgr.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_FOPTMGR_HXX
#define INCLUDED_SC_SOURCE_UI_INC_FOPTMGR_HXX
+#include <vcl/weld.hxx>
+
namespace formula
{
class RefButton;
diff --git a/sc/source/ui/inc/formula.hxx b/sc/source/ui/inc/formula.hxx
index d478ff008285..31ea0b41b064 100644
--- a/sc/source/ui/inc/formula.hxx
+++ b/sc/source/ui/inc/formula.hxx
@@ -23,6 +23,7 @@
#include <memory>
#include "anyrefdg.hxx"
+#include <scmod.hxx>
#include <formula/formula.hxx>
#include "IAnyRefDialog.hxx"
diff --git a/sc/source/ui/inc/fuinsert.hxx b/sc/source/ui/inc/fuinsert.hxx
index a9c8fb5c7e38..45aeb11bab10 100644
--- a/sc/source/ui/inc/fuinsert.hxx
+++ b/sc/source/ui/inc/fuinsert.hxx
@@ -22,9 +22,7 @@
#include "fupoor.hxx"
#include <scdllapi.h>
-#include <svx/svdoole2.hxx>
#include <com/sun/star/ui/dialogs/DialogClosedEvent.hpp>
-#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
class FuInsertGraphic : public FuPoor
{
diff --git a/sc/source/ui/inc/gridmerg.hxx b/sc/source/ui/inc/gridmerg.hxx
index 82fec233d038..a05c1bd8a8e8 100644
--- a/sc/source/ui/inc/gridmerg.hxx
+++ b/sc/source/ui/inc/gridmerg.hxx
@@ -20,6 +20,9 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_GRIDMERG_HXX
#define INCLUDED_SC_SOURCE_UI_INC_GRIDMERG_HXX
+#include <tools/long.hxx>
+#include <vcl/vclptr.hxx>
+
class OutputDevice;
class ScGridMerger
diff --git a/sc/source/ui/inc/hdrcont.hxx b/sc/source/ui/inc/hdrcont.hxx
index 3bb0e4223ce5..f9ef17c32eee 100644
--- a/sc/source/ui/inc/hdrcont.hxx
+++ b/sc/source/ui/inc/hdrcont.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_HDRCONT_HXX
#include <vcl/window.hxx>
-#include <scdllapi.h>
#include <types.hxx>
#define HDR_SIZE_OPTIMUM 0xFFFF
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index 04b700ae3be0..c0f37f644538 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -22,7 +22,6 @@
#include <vector>
#include <memory>
-#include <cppuhelper/weakref.hxx>
#include <vcl/customweld.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/InterimItemWindow.hxx>
@@ -30,7 +29,6 @@
#include <svl/lstner.hxx>
#include <svtools/stringtransfer.hxx>
#include <vcl/window.hxx>
-#include <vcl/transfer.hxx>
#include <vcl/menu.hxx>
#include <formula/opcode.hxx>
#include <svx/weldeditview.hxx>
diff --git a/sc/source/ui/inc/instbdlg.hxx b/sc/source/ui/inc/instbdlg.hxx
index 449ec75e2ff1..bb57c66c1d1c 100644
--- a/sc/source/ui/inc/instbdlg.hxx
+++ b/sc/source/ui/inc/instbdlg.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_INSTBDLG_HXX
#include <sfx2/objsh.hxx>
+#include <vcl/timer.hxx>
#include <vcl/weld.hxx>
#include <types.hxx>
diff --git a/sc/source/ui/inc/optsolver.hxx b/sc/source/ui/inc/optsolver.hxx
index 410f513375ee..60dad2ca0820 100644
--- a/sc/source/ui/inc/optsolver.hxx
+++ b/sc/source/ui/inc/optsolver.hxx
@@ -22,6 +22,7 @@
#include <address.hxx>
#include "anyrefdg.hxx"
+#include "docsh.hxx"
#include <com/sun/star/uno/Sequence.hxx>
#include <vector>
diff --git a/sc/source/ui/inc/protectiondlg.hxx b/sc/source/ui/inc/protectiondlg.hxx
index e3682173929c..96bdf5853b3f 100644
--- a/sc/source/ui/inc/protectiondlg.hxx
+++ b/sc/source/ui/inc/protectiondlg.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_PROTECTIONDLG_HXX
#include <vcl/weld.hxx>
-#include <scdllapi.h>
class ScTableProtection;
diff --git a/sc/source/ui/inc/scuiasciiopt.hxx b/sc/source/ui/inc/scuiasciiopt.hxx
index d327d81947bf..51cf2ec06a17 100644
--- a/sc/source/ui/inc/scuiasciiopt.hxx
+++ b/sc/source/ui/inc/scuiasciiopt.hxx
@@ -23,7 +23,6 @@
#include <svx/langbox.hxx>
#include <tools/solar.h>
#include <tools/stream.hxx>
-#include <vcl/customweld.hxx>
#include <vcl/weld.hxx>
#include "asciiopt.hxx"
diff --git a/sc/source/ui/inc/scuiautofmt.hxx b/sc/source/ui/inc/scuiautofmt.hxx
index 5fee72451235..24f9f696247a 100644
--- a/sc/source/ui/inc/scuiautofmt.hxx
+++ b/sc/source/ui/inc/scuiautofmt.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_SCUIAUTOFMT_HXX
#include <vcl/customweld.hxx>
+#include <autoform.hxx>
#include "autofmt.hxx"
class ScAutoFormatDlg : public weld::GenericDialogController
diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx
index b0f0d32c4134..940879fb293c 100644
--- a/sc/source/ui/inc/scuitphfedit.hxx
+++ b/sc/source/ui/inc/scuitphfedit.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_SCUITPHFEDIT_HXX
#include "tphfedit.hxx"
+#include <sfx2/tabdlg.hxx>
#include <vcl/customweld.hxx>
#include <vcl/weld.hxx>
diff --git a/sc/source/ui/inc/sharedocdlg.hxx b/sc/source/ui/inc/sharedocdlg.hxx
index e49d4c32a24a..a8f6d1a07283 100644
--- a/sc/source/ui/inc/sharedocdlg.hxx
+++ b/sc/source/ui/inc/sharedocdlg.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SC_SOURCE_UI_INC_SHAREDOCDLG_HXX
#include <vcl/weld.hxx>
-#include <scdllapi.h>
class ScViewData;
class ScDocShell;
diff --git a/sc/source/ui/inc/sizedev.hxx b/sc/source/ui/inc/sizedev.hxx
index 95bfac3a44e0..93255e62da68 100644
--- a/sc/source/ui/inc/sizedev.hxx
+++ b/sc/source/ui/inc/sizedev.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_SIZEDEV_HXX
#include <vcl/mapmod.hxx>
+#include <vcl/vclptr.hxx>
class OutputDevice;
class ScDocShell;
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 1061dbe90a6e..2500a8fabf9f 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_TABVWSH_HXX
#define INCLUDED_SC_SOURCE_UI_INC_TABVWSH_HXX
-#include <com/sun/star/drawing/QRCode.hpp>
#include <formula/errorcodes.hxx>
#include <formula/opcode.hxx>
#include <svx/fmshell.hxx>
@@ -32,7 +31,7 @@
#include "target.hxx"
#include <shellids.hxx>
#include <tabprotection.hxx>
-#include <com/sun/star/ui/dialogs/XDialogClosedListener.hpp>
+#include <com/sun/star/ui/dialogs/DialogClosedEvent.hpp>
#include <memory>
#include <map>
diff --git a/sc/source/ui/inc/tphfedit.hxx b/sc/source/ui/inc/tphfedit.hxx
index 85b8984c821d..7d5a9ca521a3 100644
--- a/sc/source/ui/inc/tphfedit.hxx
+++ b/sc/source/ui/inc/tphfedit.hxx
@@ -22,10 +22,8 @@
#include <scdllapi.h>
#include <cppuhelper/weakref.hxx>
-#include <tools/wintypes.hxx>
#include <svx/weldeditview.hxx>
#include <editeng/svxenum.hxx>
-#include <vcl/customweld.hxx>
#include <functional>
diff --git a/sc/source/ui/inc/uiobject.hxx b/sc/source/ui/inc/uiobject.hxx
index 235c5f7bdbda..ae3583fff154 100644
--- a/sc/source/ui/inc/uiobject.hxx
+++ b/sc/source/ui/inc/uiobject.hxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "gridwin.hxx"
+#include "navipi.hxx"
#include <memory>
#include <vcl/uitest/uiobject.hxx>
diff --git a/sc/source/ui/inc/undoolk.hxx b/sc/source/ui/inc/undoolk.hxx
index a8e03577c86e..26695085185c 100644
--- a/sc/source/ui/inc/undoolk.hxx
+++ b/sc/source/ui/inc/undoolk.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_UNDOOLK_HXX
#define INCLUDED_SC_SOURCE_UI_INC_UNDOOLK_HXX
+#include <memory>
+
class SdrUndoAction;
class ScDocument;
diff --git a/sc/source/ui/inc/validate.hxx b/sc/source/ui/inc/validate.hxx
index 3f64e1485f73..a0f84104b63b 100644
--- a/sc/source/ui/inc/validate.hxx
+++ b/sc/source/ui/inc/validate.hxx
@@ -24,6 +24,7 @@
#include "anyrefdg.hxx"
#include <sc.hrc>
+#include <scmod.hxx>
struct ScRefHandlerCaller{
virtual ~ScRefHandlerCaller(){}
diff --git a/sc/source/ui/inc/xmlsourcedlg.hxx b/sc/source/ui/inc/xmlsourcedlg.hxx
index 452bac0f8946..9f4b308e56f4 100644
--- a/sc/source/ui/inc/xmlsourcedlg.hxx
+++ b/sc/source/ui/inc/xmlsourcedlg.hxx
@@ -15,7 +15,6 @@
#include <set>
#include <memory>
-#include <vector>
class ScDocument;
class ScRange;