sc/IwyuFilter_sc.yaml                                          |    7 +++++
 sc/inc/scitems.hxx                                             |    1 
 sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx    |    9 -------
 sc/source/ui/StatisticsDialogs/ChiSquareTestDialog.cxx         |   11 ---------
 sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx           |    1 
 sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx            |    1 
 sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx |   12 
----------
 sc/source/ui/StatisticsDialogs/ExponentialSmoothingDialog.cxx  |   12 
----------
 sc/source/ui/StatisticsDialogs/FTestDialog.cxx                 |   12 
----------
 sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx   |   11 ---------
 sc/source/ui/StatisticsDialogs/MovingAverageDialog.cxx         |   12 
----------
 sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx |    4 ---
 sc/source/ui/StatisticsDialogs/RegressionDialog.cxx            |    8 ------
 sc/source/ui/StatisticsDialogs/SamplingDialog.cxx              |    4 ---
 sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx |    8 ------
 sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx |    8 ------
 sc/source/ui/StatisticsDialogs/TTestDialog.cxx                 |   12 
----------
 sc/source/ui/StatisticsDialogs/ZTestDialog.cxx                 |   12 
----------
 sc/source/ui/inc/undocell.hxx                                  |    1 
 sc/source/ui/pagedlg/areasdlg.cxx                              |    1 
 sc/source/ui/pagedlg/hfedtdlg.cxx                              |    2 -
 sc/source/ui/pagedlg/scuitphfedit.cxx                          |   12 
----------
 sc/source/ui/pagedlg/tphf.cxx                                  |    2 -
 sc/source/ui/pagedlg/tphfedit.cxx                              |    5 ----
 sc/source/ui/pagedlg/tptable.cxx                               |    1 
 sc/source/ui/sidebar/AlignmentPropertyPanel.cxx                |    5 ----
 sc/source/ui/sidebar/AlignmentPropertyPanel.hxx                |    4 ---
 sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx           |    5 ----
 sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx           |    8 ++----
 sc/source/ui/sidebar/CellBorderStyleControl.cxx                |    4 ---
 sc/source/ui/sidebar/CellLineStyleControl.cxx                  |    4 ---
 sc/source/ui/sidebar/NumberFormatControl.cxx                   |    1 
 sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx             |    1 
 sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx             |    8 ++++--
 sc/source/ui/sidebar/ScPanelFactory.cxx                        |    4 ---
 sc/source/ui/styleui/styledlg.cxx                              |    4 ---
 sc/source/ui/uitest/uiobject.cxx                               |    1 
 sc/source/ui/undo/refundo.cxx                                  |    4 ---
 sc/source/ui/undo/undobase.cxx                                 |    1 
 sc/source/ui/undo/undoblk.cxx                                  |    4 ---
 sc/source/ui/undo/undoblk2.cxx                                 |    3 --
 sc/source/ui/undo/undoblk3.cxx                                 |    9 -------
 sc/source/ui/undo/undocell.cxx                                 |    7 -----
 sc/source/ui/undo/undodat.cxx                                  |    5 ----
 sc/source/ui/undo/undodraw.cxx                                 |    2 -
 sc/source/ui/undo/undorangename.cxx                            |    3 --
 sc/source/ui/undo/undotab.cxx                                  |    1 
 47 files changed, 30 insertions(+), 227 deletions(-)

New commits:
commit 7c7a4675ad5d61add70dd073f680ea37012962ce
Author:     Gabor Kelemen <kelemen.gab...@nisz.hu>
AuthorDate: Mon Mar 18 00:34:00 2019 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Mar 21 09:10:18 2019 +0100

    tdf#42949 Fix IWYU warnings in sc/source/ui/pagedlg...undo
    
    Found with bin/find-unneeded-includes
    Only removal proposals are dealt with here.
    
    Change-Id: Icb5f0235339364e6dc09936e26f256765a60830a
    Reviewed-on: https://gerrit.libreoffice.org/69378
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sc/IwyuFilter_sc.yaml b/sc/IwyuFilter_sc.yaml
index d04da62d06f1..fc77866f682d 100644
--- a/sc/IwyuFilter_sc.yaml
+++ b/sc/IwyuFilter_sc.yaml
@@ -867,3 +867,10 @@ blacklist:
     # Complete type is needed
     - com/sun/star/sheet/XFormulaParser.hpp
     - com/sun/star/sheet/XFormulaOpCodeMapper.hpp
+    sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx:
+    # Needed for implicit dtor
+    - editeng/editobj.hxx
+    sc/source/ui/undo/undoolk.cxx:
+    # Avoid loplugin:unreffun error
+    - undoolk.hxx
+
diff --git a/sc/inc/scitems.hxx b/sc/inc/scitems.hxx
index d2e982d82083..159e6e013706 100644
--- a/sc/inc/scitems.hxx
+++ b/sc/inc/scitems.hxx
@@ -49,6 +49,7 @@ class SvxHorJustifyItem;
 class SvxVerJustifyItem;
 class SvxBrushItem;
 class SvxBoxItem;
+class ScCondFormatItem;
 
 //  EditEngine is not allowed to define its own ITEMID's
 #define INCLUDED_EDITENG_EEITEMID_HXX
diff --git a/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx 
b/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
index a655c8c1bd51..558b0be87102 100644
--- a/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
@@ -9,18 +9,9 @@
  */
 
 #include <memory>
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
 
-#include <formulacell.hxx>
 #include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <AnalysisOfVarianceDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/ChiSquareTestDialog.cxx 
b/sc/source/ui/StatisticsDialogs/ChiSquareTestDialog.cxx
index 36537e0e9ffa..d6f729c086d4 100644
--- a/sc/source/ui/StatisticsDialogs/ChiSquareTestDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/ChiSquareTestDialog.cxx
@@ -8,18 +8,7 @@
  *
  */
 
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
-#include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <ChiSquareTestDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx 
b/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx
index 48b7e7bbdcb9..c7a8a7be932e 100644
--- a/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx
@@ -8,7 +8,6 @@
  *
  */
 
-#include <docsh.hxx>
 #include <reffact.hxx>
 #include <CorrelationDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx 
b/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx
index 4407a50b691c..d5243745278b 100644
--- a/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx
@@ -8,7 +8,6 @@
  *
  */
 
-#include <docsh.hxx>
 #include <reffact.hxx>
 #include <CovarianceDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx 
b/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx
index 91537815b59c..3e55faced5d9 100644
--- a/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx
@@ -9,18 +9,8 @@
  */
 
 #include <memory>
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
-#include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
+
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <DescriptiveStatisticsDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/ExponentialSmoothingDialog.cxx 
b/sc/source/ui/StatisticsDialogs/ExponentialSmoothingDialog.cxx
index 4fc1d7be9ae3..b2ab5b48f438 100644
--- a/sc/source/ui/StatisticsDialogs/ExponentialSmoothingDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/ExponentialSmoothingDialog.cxx
@@ -9,18 +9,8 @@
  */
 
 #include <memory>
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
-#include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
+
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <ExponentialSmoothingDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/FTestDialog.cxx 
b/sc/source/ui/StatisticsDialogs/FTestDialog.cxx
index 10d6aa8cb273..95c86b80570c 100644
--- a/sc/source/ui/StatisticsDialogs/FTestDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/FTestDialog.cxx
@@ -9,18 +9,8 @@
  */
 
 #include <memory>
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
-#include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
+
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <FTestDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx 
b/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx
index 71187d018dfa..d5aa05933f24 100644
--- a/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx
+++ b/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx
@@ -8,18 +8,7 @@
  *
  */
 
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
 #include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
-#include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <MatrixComparisonGenerator.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/MovingAverageDialog.cxx 
b/sc/source/ui/StatisticsDialogs/MovingAverageDialog.cxx
index cd432d62b7e3..e1f0d6360ef2 100644
--- a/sc/source/ui/StatisticsDialogs/MovingAverageDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/MovingAverageDialog.cxx
@@ -9,18 +9,8 @@
  */
 
 #include <memory>
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
-#include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
+
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <MovingAverageDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx 
b/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
index 14d198bdde5f..4e06d6efeee9 100644
--- a/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
@@ -8,16 +8,12 @@
  *
  */
 
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
 #include <svl/undo.hxx>
 #include <rtl/math.hxx>
 
 #include <rangelst.hxx>
-#include <scitems.hxx>
 #include <docsh.hxx>
 #include <document.hxx>
-#include <uiitems.hxx>
 #include <reffact.hxx>
 #include <docfunc.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx 
b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
index f61f6f11a531..11ac7b017e77 100644
--- a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
@@ -8,16 +8,8 @@
  *
  */
 
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <scitems.hxx>
-#include <docsh.hxx>
 #include <document.hxx>
-#include <uiitems.hxx>
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <RegressionDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx 
b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
index 33d8d0bc07f0..277485f6b492 100644
--- a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
@@ -8,15 +8,11 @@
  *
  */
 
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
 #include <svl/undo.hxx>
 #include <comphelper/random.hxx>
 #include <rangelst.hxx>
-#include <scitems.hxx>
 #include <docsh.hxx>
 #include <document.hxx>
-#include <uiitems.hxx>
 #include <reffact.hxx>
 #include <docfunc.hxx>
 #include <SamplingDialog.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx 
b/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
index 228a19933e6c..7cb6e8724774 100644
--- a/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
@@ -8,19 +8,13 @@
  *
  */
 
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
 #include <svl/undo.hxx>
 
-#include <formulacell.hxx>
 #include <rangelst.hxx>
-#include <scitems.hxx>
 #include <docsh.hxx>
 #include <document.hxx>
-#include <uiitems.hxx>
-#include <reffact.hxx>
 #include <scresid.hxx>
-#include <docfunc.hxx>
+#include <tabvwsh.hxx>
 
 #include <StatisticsInputOutputDialog.hxx>
 
diff --git a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx 
b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
index b44b7b9a5f55..6f0896d3cc9d 100644
--- a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
@@ -8,19 +8,13 @@
  *
  */
 
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
 #include <svl/undo.hxx>
 
-#include <formulacell.hxx>
 #include <rangelst.hxx>
-#include <scitems.hxx>
 #include <docsh.hxx>
 #include <document.hxx>
-#include <uiitems.hxx>
-#include <reffact.hxx>
 #include <scresid.hxx>
-#include <docfunc.hxx>
+#include <tabvwsh.hxx>
 
 #include <StatisticsTwoVariableDialog.hxx>
 
diff --git a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx 
b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
index 76854cd48152..1f4b44b802e1 100644
--- a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
@@ -9,18 +9,8 @@
  */
 
 #include <memory>
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
-#include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
+
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <TTestDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx 
b/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx
index 8bfb2fcf988c..0a1e64526df0 100644
--- a/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/ZTestDialog.cxx
@@ -9,18 +9,8 @@
  */
 
 #include <memory>
-#include <sfx2/dispatch.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/undo.hxx>
-
-#include <formulacell.hxx>
-#include <rangelst.hxx>
-#include <scitems.hxx>
-#include <docsh.hxx>
-#include <document.hxx>
-#include <uiitems.hxx>
+
 #include <reffact.hxx>
-#include <docfunc.hxx>
 #include <TableFillingAndNavigationTools.hxx>
 #include <ZTestDialog.hxx>
 #include <scresid.hxx>
diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx
index 889d0e226f72..6eb30ee3ff40 100644
--- a/sc/source/ui/inc/undocell.hxx
+++ b/sc/source/ui/inc/undocell.hxx
@@ -25,7 +25,6 @@
 #include <postit.hxx>
 #include <cellvalue.hxx>
 #include <cellvalues.hxx>
-#include <svx/svdundo.hxx>
 #include <editeng/editobj.hxx>
 
 #include <memory>
diff --git a/sc/source/ui/pagedlg/areasdlg.cxx 
b/sc/source/ui/pagedlg/areasdlg.cxx
index 85b87004266d..6b46dd41790b 100644
--- a/sc/source/ui/pagedlg/areasdlg.cxx
+++ b/sc/source/ui/pagedlg/areasdlg.cxx
@@ -23,7 +23,6 @@
 #include <svl/stritem.hxx>
 #include <vcl/weld.hxx>
 #include <unotools/charclass.hxx>
-#include <stdlib.h>
 
 #include <areasdlg.hxx>
 #include <rangenam.hxx>
diff --git a/sc/source/ui/pagedlg/hfedtdlg.cxx 
b/sc/source/ui/pagedlg/hfedtdlg.cxx
index 64fe37c1a8eb..0eb5953f0689 100644
--- a/sc/source/ui/pagedlg/hfedtdlg.cxx
+++ b/sc/source/ui/pagedlg/hfedtdlg.cxx
@@ -23,13 +23,11 @@
 #include <svl/eitem.hxx>
 
 #include <hfedtdlg.hxx>
-#include <global.hxx>
 #include <globstr.hrc>
 #include <scresid.hxx>
 #include <scuitphfedit.hxx>
 #include <svx/svxids.hrc>
 #include <svx/pageitem.hxx>
-#include <vcl/menubtn.hxx>
 
 ScHFEditDlg::ScHFEditDlg( vcl::Window*           pParent,
                           const SfxItemSet& rCoreSet,
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx 
b/sc/source/ui/pagedlg/scuitphfedit.cxx
index aa3cc68a0205..0eeeeb0d748e 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -23,16 +23,11 @@
 #include <editeng/eeitem.hxx>
 
 #include <editeng/editobj.hxx>
-#include <editeng/editstat.hxx>
-#include <editeng/editview.hxx>
 #include <editeng/flditem.hxx>
-#include <sfx2/basedlgs.hxx>
-#include <sfx2/objsh.hxx>
-#include <vcl/svapp.hxx>
+#include <sfx2/tabdlg.hxx>
 #include <vcl/settings.hxx>
 #include <vcl/lstbox.hxx>
 #include <vcl/fixed.hxx>
-#include <sal/log.hxx>
 
 #include <unotools/useroptions.hxx>
 
@@ -40,11 +35,6 @@
 #include <global.hxx>
 #include <attrib.hxx>
 #include <patattr.hxx>
-#include <sc.hrc>
-#include <tabvwsh.hxx>
-#include <prevwsh.hxx>
-#include <textdlgs.hxx>
-#include <AccessibleEditObject.hxx>
 
 #include <scuitphfedit.hxx>
 #include <memory>
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx
index d7ca87aec728..9e4067010aec 100644
--- a/sc/source/ui/pagedlg/tphf.cxx
+++ b/sc/source/ui/pagedlg/tphf.cxx
@@ -27,7 +27,6 @@
 
 #include <attrib.hxx>
 #include <tphf.hxx>
-#include <sc.hrc>
 #include <scres.hrc>
 #include <scabstdlg.hxx>
 #include <globstr.hrc>
@@ -35,7 +34,6 @@
 #include <tabvwsh.hxx>
 #include <viewdata.hxx>
 #include <document.hxx>
-#include <hfedtdlg.hxx>
 #include <styledlg.hxx>
 #include <scuitphfedit.hxx>
 #include <memory>
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx 
b/sc/source/ui/pagedlg/tphfedit.cxx
index d55e0d5fc359..80a7073609fb 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -23,23 +23,18 @@
 #include <editeng/editobj.hxx>
 #include <editeng/editstat.hxx>
 #include <editeng/editview.hxx>
-#include <editeng/flditem.hxx>
 #include <editeng/adjustitem.hxx>
 #include <editeng/fhgtitem.hxx>
-#include <sfx2/basedlgs.hxx>
 #include <sfx2/objsh.hxx>
 #include <sfx2/sfxdlg.hxx>
 #include <vcl/svapp.hxx>
 #include <vcl/settings.hxx>
-#include <vcl/builderfactory.hxx>
 
 #include <tphfedit.hxx>
 #include <editutil.hxx>
 #include <global.hxx>
-#include <attrib.hxx>
 #include <patattr.hxx>
 #include <scresid.hxx>
-#include <sc.hrc>
 #include <globstr.hrc>
 #include <strings.hrc>
 #include <tabvwsh.hxx>
diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx
index cead94e82fd9..b537908adc09 100644
--- a/sc/source/ui/pagedlg/tptable.cxx
+++ b/sc/source/ui/pagedlg/tptable.cxx
@@ -27,7 +27,6 @@
 #include <tptable.hxx>
 #include <global.hxx>
 #include <attrib.hxx>
-#include <sc.hrc>
 #include <bitmaps.hlst>
 
 // Static Data
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx 
b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index e622626f69f9..d721c32b0ff4 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -24,11 +24,8 @@
 #include <sfx2/bindings.hxx>
 #include <sfx2/dispatch.hxx>
 #include <svl/intitem.hxx>
-#include <svx/algitem.hxx>
 #include <svx/rotmodit.hxx>
-#include <svx/dlgutil.hxx>
-#include <vcl/toolbox.hxx>
-#include <svx/sidebar/SidebarDialControl.hxx>
+#include <svtools/unitconv.hxx>
 #include <unotools/localedatawrapper.hxx>
 
 using namespace css;
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx 
b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
index 47c50734f5f2..e870d1d495c4 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx
@@ -25,9 +25,7 @@
 #include <vcl/fixed.hxx>
 #include <vcl/button.hxx>
 #include <vcl/layout.hxx>
-
-class MetricField;
-class MetricBox;
+#include <vcl/field.hxx>
 
 namespace sc { namespace sidebar {
 
diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx 
b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
index e5b905a81890..e9e5f1284c94 100644
--- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
+++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
@@ -17,15 +17,10 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <sfx2/sidebar/Theme.hxx>
-#include <sfx2/sidebar/ControlFactory.hxx>
 #include "CellAppearancePropertyPanel.hxx"
 #include <sc.hrc>
 #include <bitmaps.hlst>
 #include <sfx2/bindings.hxx>
-#include <sfx2/dispatch.hxx>
-#include <vcl/fixed.hxx>
-#include <svl/eitem.hxx>
 #include <editeng/borderline.hxx>
 #include <editeng/boxitem.hxx>
 #include <editeng/lineitem.hxx>
diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx 
b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
index 296ec9d25a3c..ea2f3c334583 100644
--- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
+++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
@@ -23,14 +23,12 @@
 #include <sfx2/sidebar/IContextChangeReceiver.hxx>
 #include <svx/sidebar/PanelLayout.hxx>
 #include <vcl/image.hxx>
-
-class ToolBox;
+#include <vcl/toolbox.hxx>
+#include "CellBorderStyleControl.hxx"
+#include "CellLineStyleControl.hxx"
 
 namespace sc { namespace sidebar {
 
-class CellBorderStylePopup;
-class CellLineStylePopup;
-
 class CellAppearancePropertyPanel
 :   public PanelLayout,
     public ::sfx2::sidebar::IContextChangeReceiver,
diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.cxx 
b/sc/source/ui/sidebar/CellBorderStyleControl.cxx
index 353880a9fb3f..a9270df1b205 100644
--- a/sc/source/ui/sidebar/CellBorderStyleControl.cxx
+++ b/sc/source/ui/sidebar/CellBorderStyleControl.cxx
@@ -18,13 +18,11 @@
  */
 
 #include "CellBorderStyleControl.hxx"
-#include <sc.hrc>
 #include <editeng/boxitem.hxx>
 #include <editeng/borderline.hxx>
-#include "CellAppearancePropertyPanel.hxx"
 #include <sfx2/bindings.hxx>
 #include <sfx2/dispatch.hxx>
-#include <vcl/svapp.hxx>
+#include <svx/svxids.hrc>
 #include <vcl/settings.hxx>
 #include <editeng/lineitem.hxx>
 #include <memory>
diff --git a/sc/source/ui/sidebar/CellLineStyleControl.cxx 
b/sc/source/ui/sidebar/CellLineStyleControl.cxx
index 5bd685cf821e..975ef95aeb85 100644
--- a/sc/source/ui/sidebar/CellLineStyleControl.cxx
+++ b/sc/source/ui/sidebar/CellLineStyleControl.cxx
@@ -18,16 +18,14 @@
  */
 
 #include "CellLineStyleControl.hxx"
-#include <sc.hrc>
 #include "CellLineStyleValueSet.hxx"
 #include <vcl/i18nhelp.hxx>
 #include <vcl/settings.hxx>
-#include <editeng/boxitem.hxx>
 #include <editeng/borderline.hxx>
 #include <editeng/lineitem.hxx>
-#include "CellAppearancePropertyPanel.hxx"
 #include <sfx2/bindings.hxx>
 #include <sfx2/dispatch.hxx>
+#include <svx/svxids.hrc>
 
 namespace sc { namespace sidebar {
 
diff --git a/sc/source/ui/sidebar/NumberFormatControl.cxx 
b/sc/source/ui/sidebar/NumberFormatControl.cxx
index d5cec76da326..ef951c4eab75 100644
--- a/sc/source/ui/sidebar/NumberFormatControl.cxx
+++ b/sc/source/ui/sidebar/NumberFormatControl.cxx
@@ -20,7 +20,6 @@
 #include <NumberFormatControl.hxx>
 #include <cbnumberformat.hxx>
 #include <svl/intitem.hxx>
-#include <svl/stritem.hxx>
 #include <vcl/toolbox.hxx>
 
 using namespace sc;
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx 
b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index 28eb0ab05ffc..349bca1e2ff7 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
@@ -17,7 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <sfx2/sidebar/ControlFactory.hxx>
 #include "NumberFormatPropertyPanel.hxx"
 #include <sc.hrc>
 #include <sfx2/bindings.hxx>
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx 
b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
index b3a9453b5b58..80ba080e8435 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
@@ -22,10 +22,12 @@
 #include <sfx2/sidebar/ControllerItem.hxx>
 #include <sfx2/sidebar/IContextChangeReceiver.hxx>
 #include <svx/sidebar/PanelLayout.hxx>
+#include <vcl/fixed.hxx>
+#include <vcl/lstbox.hxx>
+#include <vcl/field.hxx>
+#include <vcl/button.hxx>
+#include <vcl/toolbox.hxx>
 
-class FixedText;
-class ListBox;
-class NumericField;
 class Edit;
 
 namespace sc { namespace sidebar {
diff --git a/sc/source/ui/sidebar/ScPanelFactory.cxx 
b/sc/source/ui/sidebar/ScPanelFactory.cxx
index ad5ed4234e99..cda3275e19a9 100644
--- a/sc/source/ui/sidebar/ScPanelFactory.cxx
+++ b/sc/source/ui/sidebar/ScPanelFactory.cxx
@@ -24,14 +24,10 @@
 #include "NumberFormatPropertyPanel.hxx"
 #include <navipi.hxx>
 #include <dwfunctr.hxx>
-#include <sc.hrc>
 
 #include <sfx2/sidebar/SidebarPanelBase.hxx>
-#include <sfx2/sfxbasecontroller.hxx>
 #include <toolkit/helper/vclunohelper.hxx>
 #include <vcl/window.hxx>
-#include <rtl/ref.hxx>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
 #include <comphelper/namedvaluecollection.hxx>
 #include <cppuhelper/exc_hlp.hxx>
diff --git a/sc/source/ui/styleui/styledlg.cxx 
b/sc/source/ui/styleui/styledlg.cxx
index 0389a408c6a9..1002cf2e18e6 100644
--- a/sc/source/ui/styleui/styledlg.cxx
+++ b/sc/source/ui/styleui/styledlg.cxx
@@ -19,9 +19,9 @@
 
 #undef SC_DLLIMPLEMENTATION
 
-#include <scitems.hxx>
 #include <svx/numinf.hxx>
 #include <sfx2/objsh.hxx>
+#include <sfx2/sfxdlg.hxx>
 #include <svl/style.hxx>
 #include <svl/cjkoptions.hxx>
 
@@ -29,8 +29,6 @@
 #include <tabpages.hxx>
 #include <tphf.hxx>
 #include <tptable.hxx>
-#include <scres.hrc>
-#include <svx/svxdlg.hxx>
 #include <svx/svxids.hrc>
 #include <svx/dialogs.hrc>
 #include <svl/intitem.hxx>
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx
index 3bbb587ce659..8dabece8053e 100644
--- a/sc/source/ui/uitest/uiobject.cxx
+++ b/sc/source/ui/uitest/uiobject.cxx
@@ -20,7 +20,6 @@
 
 #include <svx/svditer.hxx>
 #include <svx/svdobj.hxx>
-#include <svx/svdpage.hxx>
 #include <svx/svdoole2.hxx>
 #include <sal/log.hxx>
 
diff --git a/sc/source/ui/undo/refundo.cxx b/sc/source/ui/undo/refundo.cxx
index 499b20389671..d87098720fd8 100644
--- a/sc/source/ui/undo/refundo.cxx
+++ b/sc/source/ui/undo/refundo.cxx
@@ -18,13 +18,9 @@
  */
 
 #include <refundo.hxx>
-#include <undobase.hxx>
 #include <document.hxx>
 #include <dbdata.hxx>
 #include <rangenam.hxx>
-#include <pivot.hxx>
-#include <chartarr.hxx>
-#include <stlpool.hxx>
 #include <detdata.hxx>
 #include <prnsave.hxx>
 #include <chartlis.hxx>
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx
index a6ff4f184a40..e00147bf408d 100644
--- a/sc/source/ui/undo/undobase.cxx
+++ b/sc/source/ui/undo/undobase.cxx
@@ -30,7 +30,6 @@
 #include <attrib.hxx>
 #include <queryparam.hxx>
 #include <subtotalparam.hxx>
-#include <bcaslot.hxx>
 #include <rowheightcontext.hxx>
 #include <column.hxx>
 #include <sortparam.hxx>
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
index 1404d6e66ad3..1393a8bff013 100644
--- a/sc/source/ui/undo/undoblk.cxx
+++ b/sc/source/ui/undo/undoblk.cxx
@@ -21,10 +21,8 @@
 #include <vcl/virdev.hxx>
 #include <vcl/waitobj.hxx>
 #include <editeng/boxitem.hxx>
-#include <editeng/justifyitem.hxx>
 #include <sfx2/app.hxx>
 #include <comphelper/lok.hxx>
-#include <sfx2/lokhelper.hxx>
 
 #include <undoblk.hxx>
 #include <undoutil.hxx>
@@ -34,7 +32,6 @@
 #include <tabvwsh.hxx>
 #include <rangenam.hxx>
 #include <rangeutl.hxx>
-#include <dbdata.hxx>
 #include <stlpool.hxx>
 #include <stlsheet.hxx>
 #include <globstr.hrc>
@@ -50,7 +47,6 @@
 #include <undoolk.hxx>
 #include <clipparam.hxx>
 #include <brdcst.hxx>
-#include <sc.hrc>
 #include <rowheightcontext.hxx>
 #include <refhint.hxx>
 #include <refupdatecontext.hxx>
diff --git a/sc/source/ui/undo/undoblk2.cxx b/sc/source/ui/undo/undoblk2.cxx
index 163429522244..5f835fcc1324 100644
--- a/sc/source/ui/undo/undoblk2.cxx
+++ b/sc/source/ui/undo/undoblk2.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <scitems.hxx>
-
 #include <undoblk.hxx>
 #include <document.hxx>
 #include <docsh.hxx>
@@ -32,7 +30,6 @@
 
 #include <undoolk.hxx>
 
-#include <sfx2/lokhelper.hxx>
 #include <svx/svdundo.hxx>
 
 /** Change column widths or row heights */
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index b83c7f144e35..3c1a95e8ed5d 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -20,41 +20,32 @@
 #include <sal/config.h>
 
 #include <memory>
-#include <utility>
 
 #include <scitems.hxx>
-#include <svx/algitem.hxx>
 #include <editeng/boxitem.hxx>
 #include <editeng/justifyitem.hxx>
 #include <svl/srchitem.hxx>
 #include <sfx2/linkmgr.hxx>
-#include <sfx2/bindings.hxx>
 #include <vcl/virdev.hxx>
 #include <sfx2/app.hxx>
 #include <svx/svdundo.hxx>
 
 #include <undoblk.hxx>
-#include <sc.hrc>
 #include <globstr.hrc>
 #include <scresid.hxx>
 #include <global.hxx>
-#include <rangenam.hxx>
 #include <arealink.hxx>
 #include <patattr.hxx>
 #include <target.hxx>
 #include <document.hxx>
 #include <docpool.hxx>
-#include <table.hxx>
 #include <docsh.hxx>
 #include <tabvwsh.hxx>
 #include <undoolk.hxx>
 #include <undoutil.hxx>
 #include <chgtrack.hxx>
-#include <dociter.hxx>
-#include <formulacell.hxx>
 #include <paramisc.hxx>
 #include <postit.hxx>
-#include <docuno.hxx>
 #include <progress.hxx>
 #include <editutil.hxx>
 #include <editdataarray.hxx>
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index a343081d64be..2e41dbb40dc1 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -20,14 +20,9 @@
 #include <undocell.hxx>
 
 #include <scitems.hxx>
-#include <editeng/eeitem.hxx>
 #include <editeng/editobj.hxx>
-#include <editeng/justifyitem.hxx>
-#include <svl/zforlist.hxx>
-#include <svl/sharedstringpool.hxx>
 #include <sfx2/app.hxx>
 
-#include <attrib.hxx>
 #include <document.hxx>
 #include <docpool.hxx>
 #include <patattr.hxx>
@@ -44,8 +39,6 @@
 #include <printfun.hxx>
 #include <rangenam.hxx>
 #include <chgtrack.hxx>
-#include <sc.hrc>
-#include <docuno.hxx>
 #include <stringutil.hxx>
 
 using std::shared_ptr;
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx
index 624268888fa6..16698857144d 100644
--- a/sc/source/ui/undo/undodat.cxx
+++ b/sc/source/ui/undo/undodat.cxx
@@ -30,25 +30,20 @@
 #include <olinetab.hxx>
 #include <dbdata.hxx>
 #include <rangenam.hxx>
-#include <pivot.hxx>
 #include <globstr.hrc>
 #include <scresid.hxx>
 #include <global.hxx>
 #include <globalnames.hxx>
 #include <target.hxx>
-#include <chartarr.hxx>
 #include <dbdocfun.hxx>
 #include <olinefun.hxx>
 #include <dpobject.hxx>
 #include <attrib.hxx>
 #include <hints.hxx>
-#include <sc.hrc>
 #include <chgtrack.hxx>
 #include <refundo.hxx>
 #include <markdata.hxx>
 
-#include <sfx2/lokhelper.hxx>
-
 // Show or hide outline groups
 
 ScUndoDoOutline::ScUndoDoOutline( ScDocShell* pNewDocShell,
diff --git a/sc/source/ui/undo/undodraw.cxx b/sc/source/ui/undo/undodraw.cxx
index ce00e84c811e..7204f16437df 100644
--- a/sc/source/ui/undo/undodraw.cxx
+++ b/sc/source/ui/undo/undodraw.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <svx/svdundo.hxx>
-
 #include <undodraw.hxx>
 #include <docsh.hxx>
 #include <tabvwsh.hxx>
diff --git a/sc/source/ui/undo/undorangename.cxx 
b/sc/source/ui/undo/undorangename.cxx
index eddaa74a19ab..1b9efafaeeef 100644
--- a/sc/source/ui/undo/undorangename.cxx
+++ b/sc/source/ui/undo/undorangename.cxx
@@ -10,9 +10,6 @@
 #include <undorangename.hxx>
 #include <globstr.hrc>
 #include <scresid.hxx>
-#include <global.hxx>
-#include <docfunc.hxx>
-#include <sc.hrc>
 
 #include <sfx2/app.hxx>
 
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index 8514920bcaa8..b6613439c3ee 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -45,7 +45,6 @@
 // for ScUndoRenameObject - might me moved to another file later
 #include <svx/svditer.hxx>
 #include <svx/svdoole2.hxx>
-#include <svx/svdpage.hxx>
 #include <drwlayer.hxx>
 #include <scresid.hxx>
 #include <sheetevents.hxx>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to