summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorRafał Dobrakowski <dobrakowskirafal@gmail.com>2024-03-18 02:54:32 +0100
committerGabor Kelemen <gabor.kelemen.extern@allotropia.de>2024-04-02 19:32:44 +0200
commit0fb98963c46013209d39c03c3d61ef52ccc504e2 (patch)
treec92cc1621b8d18c98a85ec642b44a0311e83fb17 /sc/inc
parentc59a2c22e930d323b95f42089928baa1cad4224a (diff)
tdf#146619 Remove unused #includes from C/C++ files
'sc' module was cleaned. Change-Id: Ia491d741a4c1c5314f35ebb4baa82dd516948ae7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165699 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/ChartTools.hxx1
-rw-r--r--sc/inc/SolverSettings.hxx5
-rw-r--r--sc/inc/SparklineAttributes.hxx2
-rw-r--r--sc/inc/SparklineGroup.hxx2
-rw-r--r--sc/inc/afmtuno.hxx1
-rw-r--r--sc/inc/attarray.hxx1
-rw-r--r--sc/inc/cellsuno.hxx1
-rw-r--r--sc/inc/chartpos.hxx1
-rw-r--r--sc/inc/datauno.hxx1
-rw-r--r--sc/inc/fielduno.hxx2
-rw-r--r--sc/inc/fmtuno.hxx1
-rw-r--r--sc/inc/matrixoperators.hxx1
-rw-r--r--sc/inc/miscuno.hxx2
-rw-r--r--sc/inc/poolcach.hxx1
-rw-r--r--sc/inc/progress.hxx1
-rw-r--r--sc/inc/queryiter.hxx3
-rw-r--r--sc/inc/sheetdata.hxx2
-rw-r--r--sc/inc/sortparam.hxx2
-rw-r--r--sc/inc/srchuno.hxx1
-rw-r--r--sc/inc/styleuno.hxx1
-rw-r--r--sc/inc/table.hxx2
21 files changed, 6 insertions, 28 deletions
diff --git a/sc/inc/ChartTools.hxx b/sc/inc/ChartTools.hxx
index 4f1accb1bbf8..aaae1646c1bd 100644
--- a/sc/inc/ChartTools.hxx
+++ b/sc/inc/ChartTools.hxx
@@ -11,7 +11,6 @@
#pragma once
#include <string_view>
-#include <memory>
#include <vector>
#include <svx/svditer.hxx>
diff --git a/sc/inc/SolverSettings.hxx b/sc/inc/SolverSettings.hxx
index 0f01f1020356..9d9b96ef975f 100644
--- a/sc/inc/SolverSettings.hxx
+++ b/sc/inc/SolverSettings.hxx
@@ -10,14 +10,13 @@
#pragma once
-#include <memory>
#include <utility>
#include <variant>
#include <rtl/ustring.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
-class ScTable;
-class ScDocShell;
+#include "document.hxx"
+#include <docsh.hxx>
namespace sc
{
diff --git a/sc/inc/SparklineAttributes.hxx b/sc/inc/SparklineAttributes.hxx
index 04a6c0abb696..5fcc9ddeef02 100644
--- a/sc/inc/SparklineAttributes.hxx
+++ b/sc/inc/SparklineAttributes.hxx
@@ -11,8 +11,6 @@
#pragma once
#include "scdllapi.h"
-#include <sal/types.h>
-#include <tools/color.hxx>
#include <docmodel/color/ComplexColor.hxx>
#include <optional>
#include <o3tl/cow_wrapper.hxx>
diff --git a/sc/inc/SparklineGroup.hxx b/sc/inc/SparklineGroup.hxx
index c79067c1250c..217701733c80 100644
--- a/sc/inc/SparklineGroup.hxx
+++ b/sc/inc/SparklineGroup.hxx
@@ -12,9 +12,7 @@
#include "scdllapi.h"
#include "SparklineAttributes.hxx"
-#include <tools/color.hxx>
#include <tools/Guid.hxx>
-#include <optional>
namespace sc
{
diff --git a/sc/inc/afmtuno.hxx b/sc/inc/afmtuno.hxx
index 6434a5073c0e..f880d753438d 100644
--- a/sc/inc/afmtuno.hxx
+++ b/sc/inc/afmtuno.hxx
@@ -27,7 +27,6 @@
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <climits>
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx
index c1f9195e6445..6de20af590a2 100644
--- a/sc/inc/attarray.hxx
+++ b/sc/inc/attarray.hxx
@@ -25,7 +25,6 @@
#include "patattr.hxx"
#include <algorithm>
-#include <memory>
#include <optional>
#include <svl/itemset.hxx>
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 9764f3947f56..9f7709631778 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -85,7 +85,6 @@
#include <com/sun/star/beans/XTolerantMultiPropertySet.hpp>
#include <com/sun/star/sheet/XExternalSheetName.hpp>
#include <com/sun/star/document/XEventsSupplier.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <memory>
diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx
index 685a2d350cd6..9ab8ec500ece 100644
--- a/sc/inc/chartpos.hxx
+++ b/sc/inc/chartpos.hxx
@@ -20,7 +20,6 @@
#pragma once
#include "rangelst.hxx"
-#include <tools/solar.h>
#include <memory>
#include <map>
diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx
index f2ee6b674129..9159e0af1718 100644
--- a/sc/inc/datauno.hxx
+++ b/sc/inc/datauno.hxx
@@ -40,7 +40,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/util/XRefreshable.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx>
#include <svl/itemprop.hxx>
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx
index 82c9a04ebb87..23b313b96e7c 100644
--- a/sc/inc/fielduno.hxx
+++ b/sc/inc/fielduno.hxx
@@ -32,10 +32,8 @@
#include <com/sun/star/util/XRefreshable.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <comphelper/interfacecontainer4.hxx>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <comphelper/compbase.hxx>
-#include <osl/mutex.hxx>
#include <memory>
diff --git a/sc/inc/fmtuno.hxx b/sc/inc/fmtuno.hxx
index 548ca3ec93bc..3796e820c075 100644
--- a/sc/inc/fmtuno.hxx
+++ b/sc/inc/fmtuno.hxx
@@ -34,7 +34,6 @@
#include <com/sun/star/sheet/XMultiFormulaTokens.hpp>
#include <com/sun/star/sheet/FormulaToken.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include "address.hxx"
diff --git a/sc/inc/matrixoperators.hxx b/sc/inc/matrixoperators.hxx
index cd0295bb20df..92b7fa3caea3 100644
--- a/sc/inc/matrixoperators.hxx
+++ b/sc/inc/matrixoperators.hxx
@@ -11,7 +11,6 @@
#include <functional>
-#include <utility>
#include <vector>
#include "kahan.hxx"
diff --git a/sc/inc/miscuno.hxx b/sc/inc/miscuno.hxx
index c7e58d0cbbd2..6ac2a925090b 100644
--- a/sc/inc/miscuno.hxx
+++ b/sc/inc/miscuno.hxx
@@ -19,8 +19,6 @@
#pragma once
-#include <vector>
-
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
diff --git a/sc/inc/poolcach.hxx b/sc/inc/poolcach.hxx
index 5b9057b7faf3..f53d0e6532fb 100644
--- a/sc/inc/poolcach.hxx
+++ b/sc/inc/poolcach.hxx
@@ -18,7 +18,6 @@
*/
#pragma once
-#include "scdllapi.h"
#include "patattr.hxx"
#include <vector>
diff --git a/sc/inc/progress.hxx b/sc/inc/progress.hxx
index 80d01df3c894..cef9dafe9080 100644
--- a/sc/inc/progress.hxx
+++ b/sc/inc/progress.hxx
@@ -21,7 +21,6 @@
#include <rtl/ustring.hxx>
#include <sfx2/progress.hxx>
-#include <tools/solar.h>
#include "scdllapi.h"
class ScDocument;
diff --git a/sc/inc/queryiter.hxx b/sc/inc/queryiter.hxx
index f494b83d74a5..2d54b40c469c 100644
--- a/sc/inc/queryiter.hxx
+++ b/sc/inc/queryiter.hxx
@@ -19,9 +19,6 @@
#pragma once
-#include "address.hxx"
-#include "global.hxx"
-#include "scdllapi.h"
#include "queryparam.hxx"
#include "mtvelements.hxx"
#include "types.hxx"
diff --git a/sc/inc/sheetdata.hxx b/sc/inc/sheetdata.hxx
index 5d27c55f902d..42f68ae0ba61 100644
--- a/sc/inc/sheetdata.hxx
+++ b/sc/inc/sheetdata.hxx
@@ -19,11 +19,11 @@
#pragma once
-#include <editeng/editdata.hxx>
#include <map>
#include <unordered_set>
#include <utility>
#include <vector>
+#include <editeng/ESelection.hxx>
#include "address.hxx"
diff --git a/sc/inc/sortparam.hxx b/sc/inc/sortparam.hxx
index 58e633d0bcda..1dd105b6d9be 100644
--- a/sc/inc/sortparam.hxx
+++ b/sc/inc/sortparam.hxx
@@ -24,12 +24,12 @@
#include <vector>
#include "address.hxx"
-#include <editeng/colritem.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include "scdllapi.h"
#include "celltextattr.hxx"
#include "cellvalue.hxx"
#include "patattr.hxx"
+#include <tools/color.hxx>
struct ScSubTotalParam;
struct ScQueryParam;
diff --git a/sc/inc/srchuno.hxx b/sc/inc/srchuno.hxx
index 90381fa48579..e25fb30c120f 100644
--- a/sc/inc/srchuno.hxx
+++ b/sc/inc/srchuno.hxx
@@ -23,7 +23,6 @@
#include <com/sun/star/util/XReplaceDescriptor.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <svl/itemprop.hxx>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
class SvxSearchItem;
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx
index 07bf2cb7b12d..f524cf8bc615 100644
--- a/sc/inc/styleuno.hxx
+++ b/sc/inc/styleuno.hxx
@@ -30,7 +30,6 @@
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XMultiPropertyStates.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
namespace com::sun::star::container { class XIndexReplace; }
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index f04b1fa0df7a..b630c5c6896a 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -154,6 +154,8 @@ private:
const Iterator maEnd;
};
+#include "SolverSettings.hxx"
+
class ScTable
{
private: