sc/qa/extras/accessibility/basics.cxx                                |    2 --
 sc/qa/extras/htmlexporttest.cxx                                      |    7 
-------
 sc/qa/extras/macros-test.cxx                                         |    4 
----
 sc/qa/extras/scannotationobj.cxx                                     |    1 -
 sc/qa/extras/scannotationshapeobj.cxx                                |    1 -
 sc/qa/extras/scannotationsobj.cxx                                    |    1 -
 sc/qa/extras/scarealinkobj.cxx                                       |    1 -
 sc/qa/extras/scarealinksobj.cxx                                      |    1 -
 sc/qa/extras/scautoformatobj.cxx                                     |    1 -
 sc/qa/extras/scautoformatsobj.cxx                                    |    1 -
 sc/qa/extras/sccellfieldsobj.cxx                                     |    1 -
 sc/qa/extras/sccellformatsenumeration.cxx                            |    1 -
 sc/qa/extras/sccellformatsobj.cxx                                    |    1 -
 sc/qa/extras/sccellobj.cxx                                           |    1 -
 sc/qa/extras/sccellsearchobj.cxx                                     |    1 -
 sc/qa/extras/sccellsenumeration.cxx                                  |    1 -
 sc/qa/extras/sccellsobj.cxx                                          |    1 -
 sc/qa/extras/scchartobj.cxx                                          |    1 -
 sc/qa/extras/scchartsobj.cxx                                         |    1 -
 sc/qa/extras/scconsolidationdescriptorobj.cxx                        |    1 -
 sc/qa/extras/scdatabaserangesobj.cxx                                 |    1 -
 sc/qa/extras/scdatapilotfieldgroupitemobj.cxx                        |    1 -
 sc/qa/extras/scdatapilotfieldgroupobj.cxx                            |    1 -
 sc/qa/extras/scdatapilotfieldgroupsobj.cxx                           |    1 -
 sc/qa/extras/scdatapilotfieldobj.cxx                                 |    1 -
 sc/qa/extras/scdatapilotfieldsobj.cxx                                |    1 -
 sc/qa/extras/scdatapilotitemsobj.cxx                                 |    1 -
 sc/qa/extras/scdatapilottableobj.cxx                                 |    1 -
 sc/qa/extras/scdatapilottablesobj.cxx                                |    1 -
 sc/qa/extras/scddelinkobj.cxx                                        |    1 -
 sc/qa/extras/scddelinksobj.cxx                                       |    1 -
 sc/qa/extras/scdocumentconfigurationobj.cxx                          |    1 -
 sc/qa/extras/scdrawpageobj.cxx                                       |    1 -
 sc/qa/extras/scdrawpagesobj.cxx                                      |    1 -
 sc/qa/extras/scfilterdescriptorbase.cxx                              |    1 -
 sc/qa/extras/scfunctiondescriptionobj.cxx                            |    1 -
 sc/qa/extras/scfunctionlistobj.cxx                                   |    1 -
 sc/qa/extras/scheaderfieldsobj.cxx                                   |    1 -
 sc/qa/extras/scheaderfootercontentobj.cxx                            |    1 -
 sc/qa/extras/scimportdescriptorbaseobj.cxx                           |    1 -
 sc/qa/extras/scindexenumeration_cellannotationsenumeration.cxx       |    1 -
 sc/qa/extras/scindexenumeration_cellarealinksenumeration.cxx         |    1 -
 sc/qa/extras/scindexenumeration_databaserangesenumeration.cxx        |    1 -
 sc/qa/extras/scindexenumeration_datapilotfieldsenumeration.cxx       |    1 -
 sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx        |    1 -
 sc/qa/extras/scindexenumeration_datapilottablesenumeration.cxx       |    1 -
 sc/qa/extras/scindexenumeration_ddelinksenumeration.cxx              |    1 -
 sc/qa/extras/scindexenumeration_functiondescriptionenumeration.cxx   |    1 -
 sc/qa/extras/scindexenumeration_labelrangesenumeration.cxx           |    1 -
 sc/qa/extras/scindexenumeration_namedrangesenumeration.cxx           |    1 -
 sc/qa/extras/scindexenumeration_scenariosenumeration.cxx             |    1 -
 sc/qa/extras/scindexenumeration_sheetcellrangesenumeration.cxx       |    1 -
 sc/qa/extras/scindexenumeration_sheetlinksenumeration.cxx            |    1 -
 sc/qa/extras/scindexenumeration_spreadsheetsenumeration.cxx          |    1 -
 sc/qa/extras/scindexenumeration_spreadsheetviewpanesenumeration.cxx  |    1 -
 sc/qa/extras/scindexenumeration_subtotalfieldsenumeration.cxx        |    1 -
 sc/qa/extras/scindexenumeration_tableautoformatenumeration.cxx       |    1 -
 sc/qa/extras/scindexenumeration_tablechartsenumeration.cxx           |    1 -
 sc/qa/extras/scindexenumeration_tablecolumnsenumeration.cxx          |    1 -
 sc/qa/extras/scindexenumeration_tableconditionalentryenumeration.cxx |    1 -
 sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx             |    1 -
 sc/qa/extras/scindexenumeration_textfieldenumeration.cxx             |    1 -
 sc/qa/extras/sclabelrangeobj.cxx                                     |    1 -
 sc/qa/extras/sclabelrangesobj.cxx                                    |    1 -
 sc/qa/extras/scmodelobj.cxx                                          |    1 -
 sc/qa/extras/scoutlineobj.cxx                                        |    1 -
 sc/qa/extras/scpdfexport.cxx                                         |    4 
----
 sc/qa/extras/screcentfunctionsobj.cxx                                |    1 -
 sc/qa/extras/scscenariosobj.cxx                                      |    1 -
 sc/qa/extras/scshapeobj.cxx                                          |    1 -
 sc/qa/extras/scsheetlinkobj.cxx                                      |    1 -
 sc/qa/extras/scsheetlinksobj.cxx                                     |    1 -
 sc/qa/extras/scsortdescriptorbaseobj.cxx                             |    1 -
 sc/qa/extras/scspreadsheetsettings.cxx                               |    1 -
 sc/qa/extras/scspreadsheetsettingsobj.cxx                            |    1 -
 sc/qa/extras/scstylefamilyobj.cxx                                    |    1 -
 sc/qa/extras/scstyleobj.cxx                                          |    1 -
 sc/qa/extras/scsubtotaldescriptorbase.cxx                            |    1 -
 sc/qa/extras/scsubtotalfieldobj.cxx                                  |    1 -
 sc/qa/extras/sctablecolumnobj.cxx                                    |    1 -
 sc/qa/extras/sctablecolumnsobj.cxx                                   |    1 -
 sc/qa/extras/sctableconditionalentryobj.cxx                          |    1 -
 sc/qa/extras/sctableconditionalformat.cxx                            |    1 -
 sc/qa/extras/sctablerowobj.cxx                                       |    1 -
 sc/qa/extras/sctablerowsobj.cxx                                      |    1 -
 sc/qa/extras/sctablevalidationobj.cxx                                |    1 -
 sc/qa/extras/sctabviewobj.cxx                                        |    1 -
 sc/qa/extras/scuniquecellformatsenumeration.cxx                      |    1 -
 sc/qa/extras/scuniquecellformatsobj.cxx                              |    1 -
 sc/qa/extras/scviewpaneobj.cxx                                       |    1 -
 sc/qa/extras/vba-macro-test.cxx                                      |    2 --
 sc/qa/filter/html/html.cxx                                           |    1 -
 sc/qa/unit/SparklineImportExportTest.cxx                             |    5 
++---
 sc/qa/unit/ThemeImportExportTest.cxx                                 |    1 -
 sc/qa/unit/copy_paste_test.cxx                                       |    4 
----
 sc/qa/unit/jumbosheets-test.cxx                                      |    4 
----
 sc/qa/unit/opencl-test-1.cxx                                         |    5 
-----
 sc/qa/unit/opencl-test-2.cxx                                         |    5 
-----
 sc/qa/unit/pivottable_filters_test.cxx                               |    2 --
 sc/qa/unit/scshapetest.cxx                                           |    4 
----
 sc/qa/unit/subsequent_export_test3.cxx                               |    4 
----
 sc/qa/unit/subsequent_export_test4.cxx                               |    1 -
 sc/qa/unit/subsequent_filters_test2.cxx                              |    5 
-----
 sc/qa/unit/subsequent_filters_test3.cxx                              |    1 -
 sc/qa/unit/subsequent_filters_test4.cxx                              |    1 -
 sc/qa/unit/tiledrendering/tiledrendering.cxx                         |    9 
---------
 sc/qa/unit/ucalc.cxx                                                 |    1 -
 sc/qa/unit/ucalc_DocumentThemes.cxx                                  |    4 
----
 sc/qa/unit/ucalc_copypaste.cxx                                       |    1 -
 sc/qa/unit/ucalc_formula2.cxx                                        |    1 -
 sc/qa/unit/ucalc_parallelism.cxx                                     |    5 
-----
 111 files changed, 2 insertions(+), 167 deletions(-)

New commits:
commit 4ec72f3935125d3994effd6fa863bbd357e0c246
Author:     Rafał Dobrakowski <[email protected]>
AuthorDate: Wed Mar 13 21:38:33 2024 +0100
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Thu Mar 14 10:52:18 2024 +0100

    tdf#146619 Remove unused #includes from C/C++ files
    
    'sc' module was cleaned.
    
    Change-Id: I072dcc0bfb8395b88cba18f212aa23f8edf0d32a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164793
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <[email protected]>

diff --git a/sc/qa/extras/accessibility/basics.cxx 
b/sc/qa/extras/accessibility/basics.cxx
index 06b6134ce10b..30c857571fdb 100644
--- a/sc/qa/extras/accessibility/basics.cxx
+++ b/sc/qa/extras/accessibility/basics.cxx
@@ -15,13 +15,11 @@
 
 #include <com/sun/star/awt/Key.hpp>
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
-#include <vcl/scheduler.hxx>
 
 #include <tools/date.hxx>
 #include <tools/time.hxx>
 
 #include <test/a11y/accessibletestbase.hxx>
-#include <test/a11y/AccessibilityTools.hxx>
 
 using namespace css;
 
diff --git a/sc/qa/extras/htmlexporttest.cxx b/sc/qa/extras/htmlexporttest.cxx
index 4e83e51139b2..75d7d9e758ce 100644
--- a/sc/qa/extras/htmlexporttest.cxx
+++ b/sc/qa/extras/htmlexporttest.cxx
@@ -9,15 +9,8 @@
 
 #include <sal/config.h>
 
-#include <string_view>
-
-#include <com/sun/star/frame/Desktop.hpp>
-#include <com/sun/star/frame/XStorable.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
-
 #include <test/htmltesttools.hxx>
 #include <test/unoapixml_test.hxx>
-#include <comphelper/processfactory.hxx>
 
 using namespace css::uno;
 using namespace css::lang;
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx
index 765c2f1cb715..965c3423885f 100644
--- a/sc/qa/extras/macros-test.cxx
+++ b/sc/qa/extras/macros-test.cxx
@@ -10,14 +10,10 @@
 #include <sal/config.h>
 #include <helper/qahelper.hxx>
 #include <sal/log.hxx>
-#include <unotools/tempfile.hxx>
 #include <svx/svdpage.hxx>
-#include <unotools/mediadescriptor.hxx>
 #include <comphelper/processfactory.hxx>
-#include <comphelper/propertyvalue.hxx>
 
 #include <conditio.hxx>
-#include <docsh.hxx>
 #include <document.hxx>
 #include <scitems.hxx>
 
diff --git a/sc/qa/extras/scannotationobj.cxx b/sc/qa/extras/scannotationobj.cxx
index fe092e019892..6de209fd6784 100644
--- a/sc/qa/extras/scannotationobj.cxx
+++ b/sc/qa/extras/scannotationobj.cxx
@@ -15,7 +15,6 @@
 #include <test/text/xsimpletext.hxx>
 #include <test/text/xtextrange.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetAnnotationAnchor.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scannotationshapeobj.cxx 
b/sc/qa/extras/scannotationshapeobj.cxx
index ceb37e89a445..eee5d78a351c 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -18,7 +18,6 @@
 
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/drawing/XShape.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetAnnotation.hpp>
 #include <com/sun/star/sheet/XSheetAnnotationAnchor.hpp>
 #include <com/sun/star/sheet/XSheetAnnotationShapeSupplier.hpp>
diff --git a/sc/qa/extras/scannotationsobj.cxx 
b/sc/qa/extras/scannotationsobj.cxx
index b81107e0571a..e99a1f96ce71 100644
--- a/sc/qa/extras/scannotationsobj.cxx
+++ b/sc/qa/extras/scannotationsobj.cxx
@@ -14,7 +14,6 @@
 #include <test/sheet/xsheetannotations.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetAnnotation.hpp>
 #include <com/sun/star/sheet/XSheetAnnotations.hpp>
 #include <com/sun/star/sheet/XSheetAnnotationsSupplier.hpp>
diff --git a/sc/qa/extras/scarealinkobj.cxx b/sc/qa/extras/scarealinkobj.cxx
index 05d5b92f81d8..c58fe9bdec04 100644
--- a/sc/qa/extras/scarealinkobj.cxx
+++ b/sc/qa/extras/scarealinkobj.cxx
@@ -14,7 +14,6 @@
 #include <test/util/xrefreshable.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XAreaLink.hpp>
 #include <com/sun/star/sheet/XAreaLinks.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scarealinksobj.cxx b/sc/qa/extras/scarealinksobj.cxx
index 86859da2dde5..94819adc40d1 100644
--- a/sc/qa/extras/scarealinksobj.cxx
+++ b/sc/qa/extras/scarealinksobj.cxx
@@ -14,7 +14,6 @@
 #include <test/sheet/xarealinks.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XAreaLink.hpp>
 #include <com/sun/star/sheet/XAreaLinks.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx
index ba28fdf6c217..fbe1fe1d85fa 100644
--- a/sc/qa/extras/scautoformatobj.cxx
+++ b/sc/qa/extras/scautoformatobj.cxx
@@ -19,7 +19,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scautoformatsobj.cxx 
b/sc/qa/extras/scautoformatsobj.cxx
index 90da32ea3400..e55c40cb38d0 100644
--- a/sc/qa/extras/scautoformatsobj.cxx
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -19,7 +19,6 @@
 
 #include <com/sun/star/container/XNameContainer.hpp>
 #include <com/sun/star/container/XNamed.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
 
diff --git a/sc/qa/extras/sccellfieldsobj.cxx b/sc/qa/extras/sccellfieldsobj.cxx
index 17db9339f168..e1e08a25931e 100644
--- a/sc/qa/extras/sccellfieldsobj.cxx
+++ b/sc/qa/extras/sccellfieldsobj.cxx
@@ -13,7 +13,6 @@
 #include <test/util/xrefreshable.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/sccellformatsenumeration.cxx 
b/sc/qa/extras/sccellformatsenumeration.cxx
index 85128937e2ca..b8210975a848 100644
--- a/sc/qa/extras/sccellformatsenumeration.cxx
+++ b/sc/qa/extras/sccellformatsenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellFormatRangesSupplier.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/sccellformatsobj.cxx 
b/sc/qa/extras/sccellformatsobj.cxx
index 0add386b4328..62e23b319e69 100644
--- a/sc/qa/extras/sccellformatsobj.cxx
+++ b/sc/qa/extras/sccellformatsobj.cxx
@@ -13,7 +13,6 @@
 #include <test/container/xindexaccess.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellFormatRangesSupplier.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/sccellobj.cxx b/sc/qa/extras/sccellobj.cxx
index 2a7f6d5cdfba..5a97bce97b1f 100644
--- a/sc/qa/extras/sccellobj.cxx
+++ b/sc/qa/extras/sccellobj.cxx
@@ -18,7 +18,6 @@
 #include <test/text/xsimpletext.hxx>
 #include <test/util/xindent.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetAnnotationsSupplier.hpp>
 #include <com/sun/star/sheet/XSheetAnnotations.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/sccellsearchobj.cxx b/sc/qa/extras/sccellsearchobj.cxx
index 97283fa35693..936f4b413176 100644
--- a/sc/qa/extras/sccellsearchobj.cxx
+++ b/sc/qa/extras/sccellsearchobj.cxx
@@ -15,7 +15,6 @@
 #include <test/util/xsearchdescriptor.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/sccellsenumeration.cxx 
b/sc/qa/extras/sccellsenumeration.cxx
index 21263b1e88d5..d13ce302eac1 100644
--- a/sc/qa/extras/sccellsenumeration.cxx
+++ b/sc/qa/extras/sccellsenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellRangesQuery.hpp>
 #include <com/sun/star/sheet/XSheetCellRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/sccellsobj.cxx b/sc/qa/extras/sccellsobj.cxx
index 32c7a88d17e3..0e1d891730b8 100644
--- a/sc/qa/extras/sccellsobj.cxx
+++ b/sc/qa/extras/sccellsobj.cxx
@@ -12,7 +12,6 @@
 #include <test/container/xenumerationaccess.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellRangesQuery.hpp>
 #include <com/sun/star/sheet/XSheetCellRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scchartobj.cxx b/sc/qa/extras/scchartobj.cxx
index aac4ee1171f8..9b94ddc2d46b 100644
--- a/sc/qa/extras/scchartobj.cxx
+++ b/sc/qa/extras/scchartobj.cxx
@@ -17,7 +17,6 @@
 #include <com/sun/star/awt/Rectangle.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellRangeAddressable.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx
index 0f5167de5fcc..93a4c20aca08 100644
--- a/sc/qa/extras/scchartsobj.cxx
+++ b/sc/qa/extras/scchartsobj.cxx
@@ -18,7 +18,6 @@
 
 #include <com/sun/star/awt/Rectangle.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellRangeAddressable.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scconsolidationdescriptorobj.cxx 
b/sc/qa/extras/scconsolidationdescriptorobj.cxx
index eb0392d8780d..f80adb431d76 100644
--- a/sc/qa/extras/scconsolidationdescriptorobj.cxx
+++ b/sc/qa/extras/scconsolidationdescriptorobj.cxx
@@ -10,7 +10,6 @@
 #include <test/unoapi_test.hxx>
 #include <test/sheet/xconsolidationdescriptor.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XConsolidatable.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scdatabaserangesobj.cxx 
b/sc/qa/extras/scdatabaserangesobj.cxx
index 7926cb6ecf0b..16074375cce5 100644
--- a/sc/qa/extras/scdatabaserangesobj.cxx
+++ b/sc/qa/extras/scdatabaserangesobj.cxx
@@ -16,7 +16,6 @@
 #include <test/sheet/xdatabaseranges.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDatabaseRange.hpp>
 #include <com/sun/star/sheet/XDatabaseRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx
index 09df41061bec..4f109fd9c6b1 100644
--- a/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx
@@ -14,7 +14,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/DataPilotFieldGroupInfo.hpp>
 #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 2e54f1c236bf..8057725d7f4f 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -19,7 +19,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNamed.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/DataPilotFieldGroupInfo.hpp>
 #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
index 485fc7d28a20..ae27b5751bb5 100644
--- a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
@@ -20,7 +20,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/DataPilotFieldGroupInfo.hpp>
 #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
diff --git a/sc/qa/extras/scdatapilotfieldobj.cxx 
b/sc/qa/extras/scdatapilotfieldobj.cxx
index 789bc5a5baab..e1ec31eb97ea 100644
--- a/sc/qa/extras/scdatapilotfieldobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldobj.cxx
@@ -15,7 +15,6 @@
 #include <test/sheet/xdatapilotfield.hxx>
 #include <test/sheet/xdatapilotfieldgrouping.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx 
b/sc/qa/extras/scdatapilotfieldsobj.cxx
index 4320dbd311ec..45702f4aa516 100644
--- a/sc/qa/extras/scdatapilotfieldsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldsobj.cxx
@@ -18,7 +18,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
 #include <com/sun/star/sheet/XDataPilotTables.hpp>
 #include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
diff --git a/sc/qa/extras/scdatapilotitemsobj.cxx 
b/sc/qa/extras/scdatapilotitemsobj.cxx
index 550a0fcf0eee..c3cf68c0288b 100644
--- a/sc/qa/extras/scdatapilotitemsobj.cxx
+++ b/sc/qa/extras/scdatapilotitemsobj.cxx
@@ -16,7 +16,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
 #include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
diff --git a/sc/qa/extras/scdatapilottableobj.cxx 
b/sc/qa/extras/scdatapilottableobj.cxx
index e0c66269f5f5..99e0b65f89cf 100644
--- a/sc/qa/extras/scdatapilottableobj.cxx
+++ b/sc/qa/extras/scdatapilottableobj.cxx
@@ -13,7 +13,6 @@
 #include <test/sheet/xdatapilottable.hxx>
 #include <test/sheet/xdatapilottable2.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
diff --git a/sc/qa/extras/scdatapilottablesobj.cxx 
b/sc/qa/extras/scdatapilottablesobj.cxx
index faa9c5f0f504..00771681c4d7 100644
--- a/sc/qa/extras/scdatapilottablesobj.cxx
+++ b/sc/qa/extras/scdatapilottablesobj.cxx
@@ -16,7 +16,6 @@
 #include <test/sheet/xdatapilottables.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
 #include <com/sun/star/sheet/XDataPilotTable2.hpp>
 #include <com/sun/star/sheet/XDataPilotTables.hpp>
diff --git a/sc/qa/extras/scddelinkobj.cxx b/sc/qa/extras/scddelinkobj.cxx
index 8f798beedd98..a42828639164 100644
--- a/sc/qa/extras/scddelinkobj.cxx
+++ b/sc/qa/extras/scddelinkobj.cxx
@@ -18,7 +18,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDDELink.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
index 6a3a843ca9a1..fed2b6d16cbd 100644
--- a/sc/qa/extras/scddelinksobj.cxx
+++ b/sc/qa/extras/scddelinksobj.cxx
@@ -20,7 +20,6 @@
 #include <vcl/svapp.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDDELink.hpp>
 #include <com/sun/star/sheet/XDDELinks.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scdocumentconfigurationobj.cxx 
b/sc/qa/extras/scdocumentconfigurationobj.cxx
index d5dbd0bf466d..e1b45e3c20dc 100644
--- a/sc/qa/extras/scdocumentconfigurationobj.cxx
+++ b/sc/qa/extras/scdocumentconfigurationobj.cxx
@@ -10,7 +10,6 @@
 #include <test/unoapi_test.hxx>
 #include <test/sheet/documentsettings.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx
index 1899650d3eb2..ce4c481dc471 100644
--- a/sc/qa/extras/scdrawpageobj.cxx
+++ b/sc/qa/extras/scdrawpageobj.cxx
@@ -21,7 +21,6 @@
 #include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
 #include <com/sun/star/drawing/XShape.hpp>
 #include <com/sun/star/drawing/XShapes.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
 
diff --git a/sc/qa/extras/scdrawpagesobj.cxx b/sc/qa/extras/scdrawpagesobj.cxx
index b63d4d1d5710..f24fde7c7a31 100644
--- a/sc/qa/extras/scdrawpagesobj.cxx
+++ b/sc/qa/extras/scdrawpagesobj.cxx
@@ -16,7 +16,6 @@
 #include <com/sun/star/drawing/XDrawPage.hpp>
 #include <com/sun/star/drawing/XDrawPages.hpp>
 #include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
 
diff --git a/sc/qa/extras/scfilterdescriptorbase.cxx 
b/sc/qa/extras/scfilterdescriptorbase.cxx
index fead15e96dd2..6e501a95f828 100644
--- a/sc/qa/extras/scfilterdescriptorbase.cxx
+++ b/sc/qa/extras/scfilterdescriptorbase.cxx
@@ -16,7 +16,6 @@
 #include <test/sheet/xsheetfilterdescriptor3.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetFilterable.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scfunctiondescriptionobj.cxx 
b/sc/qa/extras/scfunctiondescriptionobj.cxx
index 01b8d365721f..5cd66c6d906f 100644
--- a/sc/qa/extras/scfunctiondescriptionobj.cxx
+++ b/sc/qa/extras/scfunctiondescriptionobj.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/beans/PropertyValue.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XFunctionDescriptions.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scfunctionlistobj.cxx 
b/sc/qa/extras/scfunctionlistobj.cxx
index e61d5abae740..69c7f10e6c20 100644
--- a/sc/qa/extras/scfunctionlistobj.cxx
+++ b/sc/qa/extras/scfunctionlistobj.cxx
@@ -16,7 +16,6 @@
 #include <test/sheet/xfunctiondescriptions.hxx>
 
 #include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scheaderfieldsobj.cxx 
b/sc/qa/extras/scheaderfieldsobj.cxx
index 93b1629587d8..bde89eb974d3 100644
--- a/sc/qa/extras/scheaderfieldsobj.cxx
+++ b/sc/qa/extras/scheaderfieldsobj.cxx
@@ -14,7 +14,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XHeaderFooterContent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scheaderfootercontentobj.cxx 
b/sc/qa/extras/scheaderfootercontentobj.cxx
index 24efb2c56b06..0af7465a8af8 100644
--- a/sc/qa/extras/scheaderfootercontentobj.cxx
+++ b/sc/qa/extras/scheaderfootercontentobj.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XHeaderFooterContent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
diff --git a/sc/qa/extras/scimportdescriptorbaseobj.cxx 
b/sc/qa/extras/scimportdescriptorbaseobj.cxx
index 764432ce3ac3..5749933a30f0 100644
--- a/sc/qa/extras/scimportdescriptorbaseobj.cxx
+++ b/sc/qa/extras/scimportdescriptorbaseobj.cxx
@@ -11,7 +11,6 @@
 #include <test/sheet/databaseimportdescriptor.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/scindexenumeration_cellannotationsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_cellannotationsenumeration.cxx
index e9e359513a89..d8c4d0f09230 100644
--- a/sc/qa/extras/scindexenumeration_cellannotationsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_cellannotationsenumeration.cxx
@@ -13,7 +13,6 @@
 #include <com/sun/star/container/XEnumeration.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetAnnotations.hpp>
 #include <com/sun/star/sheet/XSheetAnnotationsSupplier.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scindexenumeration_cellarealinksenumeration.cxx 
b/sc/qa/extras/scindexenumeration_cellarealinksenumeration.cxx
index 241f4b947c90..6c9f23ef7581 100644
--- a/sc/qa/extras/scindexenumeration_cellarealinksenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_cellarealinksenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XAreaLinks.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/table/CellAddress.hpp>
diff --git a/sc/qa/extras/scindexenumeration_databaserangesenumeration.cxx 
b/sc/qa/extras/scindexenumeration_databaserangesenumeration.cxx
index 3a2b66d5699e..53cc2579d27d 100644
--- a/sc/qa/extras/scindexenumeration_databaserangesenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_databaserangesenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDatabaseRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/table/CellRangeAddress.hpp>
diff --git a/sc/qa/extras/scindexenumeration_datapilotfieldsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_datapilotfieldsenumeration.cxx
index def3a7f7b1db..81c313b02695 100644
--- a/sc/qa/extras/scindexenumeration_datapilotfieldsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_datapilotfieldsenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
 #include <com/sun/star/sheet/XDataPilotTables.hpp>
 #include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
diff --git a/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx
index 628b916a7081..aee938189da8 100644
--- a/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_datapilotitemsenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
 #include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
diff --git a/sc/qa/extras/scindexenumeration_datapilottablesenumeration.cxx 
b/sc/qa/extras/scindexenumeration_datapilottablesenumeration.cxx
index 09731dd89405..49be4b4233d4 100644
--- a/sc/qa/extras/scindexenumeration_datapilottablesenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_datapilottablesenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
 #include <com/sun/star/sheet/XDataPilotTables.hpp>
 #include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
diff --git a/sc/qa/extras/scindexenumeration_ddelinksenumeration.cxx 
b/sc/qa/extras/scindexenumeration_ddelinksenumeration.cxx
index 74ae90b94e7c..ff84308128ac 100644
--- a/sc/qa/extras/scindexenumeration_ddelinksenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_ddelinksenumeration.cxx
@@ -13,7 +13,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/scindexenumeration_functiondescriptionenumeration.cxx 
b/sc/qa/extras/scindexenumeration_functiondescriptionenumeration.cxx
index 2fd052107828..98e9b6a68ac8 100644
--- a/sc/qa/extras/scindexenumeration_functiondescriptionenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_functiondescriptionenumeration.cxx
@@ -11,7 +11,6 @@
 #include <test/container/xenumeration.hxx>
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scindexenumeration_labelrangesenumeration.cxx 
b/sc/qa/extras/scindexenumeration_labelrangesenumeration.cxx
index ff05feaaf30d..c31944b4a159 100644
--- a/sc/qa/extras/scindexenumeration_labelrangesenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_labelrangesenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XLabelRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/table/CellRangeAddress.hpp>
diff --git a/sc/qa/extras/scindexenumeration_namedrangesenumeration.cxx 
b/sc/qa/extras/scindexenumeration_namedrangesenumeration.cxx
index 3fc9fe878c2d..feda43f32c5d 100644
--- a/sc/qa/extras/scindexenumeration_namedrangesenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_namedrangesenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XNamedRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/table/CellAddress.hpp>
diff --git a/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx 
b/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx
index 0b99c2a1fe1f..97b5d2cc64e3 100644
--- a/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellRangeAddressable.hpp>
 #include <com/sun/star/sheet/XScenariosSupplier.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scindexenumeration_sheetcellrangesenumeration.cxx 
b/sc/qa/extras/scindexenumeration_sheetcellrangesenumeration.cxx
index b90c7f794e0d..55996cb4254e 100644
--- a/sc/qa/extras/scindexenumeration_sheetcellrangesenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_sheetcellrangesenumeration.cxx
@@ -13,7 +13,6 @@
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSheetCellRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scindexenumeration_sheetlinksenumeration.cxx 
b/sc/qa/extras/scindexenumeration_sheetlinksenumeration.cxx
index 3308d49cdb79..56cc9304531a 100644
--- a/sc/qa/extras/scindexenumeration_sheetlinksenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_sheetlinksenumeration.cxx
@@ -14,7 +14,6 @@
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/SheetLinkMode.hpp>
 #include <com/sun/star/sheet/XSheetLinkable.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scindexenumeration_spreadsheetsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_spreadsheetsenumeration.cxx
index f0eb5c84e43b..83f257ff7fe1 100644
--- a/sc/qa/extras/scindexenumeration_spreadsheetsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_spreadsheetsenumeration.cxx
@@ -11,7 +11,6 @@
 #include <test/container/xenumeration.hxx>
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git 
a/sc/qa/extras/scindexenumeration_spreadsheetviewpanesenumeration.cxx 
b/sc/qa/extras/scindexenumeration_spreadsheetviewpanesenumeration.cxx
index c78af36e2a91..89202ec1823f 100644
--- a/sc/qa/extras/scindexenumeration_spreadsheetviewpanesenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_spreadsheetviewpanesenumeration.cxx
@@ -14,7 +14,6 @@
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/frame/XController.hpp>
 #include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
 
diff --git a/sc/qa/extras/scindexenumeration_subtotalfieldsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_subtotalfieldsenumeration.cxx
index db8e08e3c92c..fef92e66f44d 100644
--- a/sc/qa/extras/scindexenumeration_subtotalfieldsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_subtotalfieldsenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scindexenumeration_tableautoformatenumeration.cxx 
b/sc/qa/extras/scindexenumeration_tableautoformatenumeration.cxx
index dcfb22e62689..3679fa1a2fb6 100644
--- a/sc/qa/extras/scindexenumeration_tableautoformatenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_tableautoformatenumeration.cxx
@@ -11,7 +11,6 @@
 #include <test/container/xenumeration.hxx>
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scindexenumeration_tablechartsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_tablechartsenumeration.cxx
index 725aa2f98283..02928238dcfd 100644
--- a/sc/qa/extras/scindexenumeration_tablechartsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_tablechartsenumeration.cxx
@@ -13,7 +13,6 @@
 #include <com/sun/star/awt/Rectangle.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellRangeAddressable.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scindexenumeration_tablecolumnsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_tablecolumnsenumeration.cxx
index 7af615f1daff..8f6a70f1bffa 100644
--- a/sc/qa/extras/scindexenumeration_tablecolumnsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_tablecolumnsenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git 
a/sc/qa/extras/scindexenumeration_tableconditionalentryenumeration.cxx 
b/sc/qa/extras/scindexenumeration_tableconditionalentryenumeration.cxx
index e310b1a4f8b2..dc43a410395d 100644
--- a/sc/qa/extras/scindexenumeration_tableconditionalentryenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_tableconditionalentryenumeration.cxx
@@ -14,7 +14,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/ConditionOperator.hpp>
 #include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx 
b/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx
index 76801b4bed47..b29d5f7ef051 100644
--- a/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/scindexenumeration_textfieldenumeration.cxx 
b/sc/qa/extras/scindexenumeration_textfieldenumeration.cxx
index 2e7b76d246df..69d0ba1459f4 100644
--- a/sc/qa/extras/scindexenumeration_textfieldenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_textfieldenumeration.cxx
@@ -12,7 +12,6 @@
 
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/sclabelrangeobj.cxx b/sc/qa/extras/sclabelrangeobj.cxx
index bd1492c606a0..2efd9cbe2a8d 100644
--- a/sc/qa/extras/sclabelrangeobj.cxx
+++ b/sc/qa/extras/sclabelrangeobj.cxx
@@ -11,7 +11,6 @@
 #include <test/sheet/xlabelrange.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XLabelRange.hpp>
 #include <com/sun/star/sheet/XLabelRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/sclabelrangesobj.cxx 
b/sc/qa/extras/sclabelrangesobj.cxx
index 4204cab69466..1857432aaa21 100644
--- a/sc/qa/extras/sclabelrangesobj.cxx
+++ b/sc/qa/extras/sclabelrangesobj.cxx
@@ -14,7 +14,6 @@
 #include <test/sheet/xlabelranges.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XLabelRange.hpp>
 #include <com/sun/star/sheet/XLabelRanges.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scmodelobj.cxx b/sc/qa/extras/scmodelobj.cxx
index 1c57effa3a2d..e4f621c6bdba 100644
--- a/sc/qa/extras/scmodelobj.cxx
+++ b/sc/qa/extras/scmodelobj.cxx
@@ -17,7 +17,6 @@
 
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/scoutlineobj.cxx b/sc/qa/extras/scoutlineobj.cxx
index fd442599850b..e482f7cfb09f 100644
--- a/sc/qa/extras/scoutlineobj.cxx
+++ b/sc/qa/extras/scoutlineobj.cxx
@@ -10,7 +10,6 @@
 #include <test/unoapi_test.hxx>
 #include <test/sheet/xsheetoutline.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 
diff --git a/sc/qa/extras/scpdfexport.cxx b/sc/qa/extras/scpdfexport.cxx
index b26c61bdfddd..d0b8f198cb9d 100644
--- a/sc/qa/extras/scpdfexport.cxx
+++ b/sc/qa/extras/scpdfexport.cxx
@@ -12,7 +12,6 @@
 
 #include <test/unoapi_test.hxx>
 
-#include <com/sun/star/frame/Desktop.hpp>
 #include <com/sun/star/frame/XStorable.hpp>
 #include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
@@ -24,12 +23,9 @@
 #include <editutil.hxx>
 #include <editeng/eeitem.hxx>
 #include <editeng/fontitem.hxx>
-#include <osl/file.hxx>
-#include <comphelper/processfactory.hxx>
 #include <comphelper/propertyvalue.hxx>
 
 #include <vcl/filter/PDFiumLibrary.hxx>
-#include <vcl/scheduler.hxx>
 
 #if USE_TLS_NSS
 #include <nss.h>
diff --git a/sc/qa/extras/screcentfunctionsobj.cxx 
b/sc/qa/extras/screcentfunctionsobj.cxx
index 77aa095bc896..99d3ce6f53b3 100644
--- a/sc/qa/extras/screcentfunctionsobj.cxx
+++ b/sc/qa/extras/screcentfunctionsobj.cxx
@@ -10,7 +10,6 @@
 #include <test/unoapi_test.hxx>
 #include <test/sheet/xrecentfunctions.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scscenariosobj.cxx b/sc/qa/extras/scscenariosobj.cxx
index 744954aec285..77749a5b00f6 100644
--- a/sc/qa/extras/scscenariosobj.cxx
+++ b/sc/qa/extras/scscenariosobj.cxx
@@ -16,7 +16,6 @@
 #include <test/sheet/xscenarios.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XCellRangeAddressable.hpp>
 #include <com/sun/star/sheet/XScenario.hpp>
 #include <com/sun/star/sheet/XScenariosSupplier.hpp>
diff --git a/sc/qa/extras/scshapeobj.cxx b/sc/qa/extras/scshapeobj.cxx
index 6500ff87a2e5..5db743af467f 100644
--- a/sc/qa/extras/scshapeobj.cxx
+++ b/sc/qa/extras/scshapeobj.cxx
@@ -21,7 +21,6 @@
 #include <com/sun/star/drawing/XDrawPages.hpp>
 #include <com/sun/star/drawing/XShape.hpp>
 #include <com/sun/star/drawing/XShapes.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scsheetlinkobj.cxx b/sc/qa/extras/scsheetlinkobj.cxx
index ca0482bc6c77..a435b05b1007 100644
--- a/sc/qa/extras/scsheetlinkobj.cxx
+++ b/sc/qa/extras/scsheetlinkobj.cxx
@@ -15,7 +15,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/SheetLinkMode.hpp>
 #include <com/sun/star/sheet/XSheetLinkable.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 7504eaaa99e4..3d302afda230 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -18,7 +18,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/SheetLinkMode.hpp>
 #include <com/sun/star/sheet/XSheetLinkable.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/scsortdescriptorbaseobj.cxx 
b/sc/qa/extras/scsortdescriptorbaseobj.cxx
index ed845aaa269c..cbe7a82dd457 100644
--- a/sc/qa/extras/scsortdescriptorbaseobj.cxx
+++ b/sc/qa/extras/scsortdescriptorbaseobj.cxx
@@ -11,7 +11,6 @@
 #include <test/sheet/sheetsortdescriptor2.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/scspreadsheetsettings.cxx 
b/sc/qa/extras/scspreadsheetsettings.cxx
index 14d6843098db..82fd6482da7a 100644
--- a/sc/qa/extras/scspreadsheetsettings.cxx
+++ b/sc/qa/extras/scspreadsheetsettings.cxx
@@ -12,7 +12,6 @@
 #include <test/lang/xserviceinfo.hxx>
 #include <test/sheet/globalsheetsettings.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/scspreadsheetsettingsobj.cxx 
b/sc/qa/extras/scspreadsheetsettingsobj.cxx
index 9173a80ba178..227985ee83cd 100644
--- a/sc/qa/extras/scspreadsheetsettingsobj.cxx
+++ b/sc/qa/extras/scspreadsheetsettingsobj.cxx
@@ -11,7 +11,6 @@
 #include <test/beans/xpropertyset.hxx>
 #include <test/sheet/spreadsheetdocumentsettings.hxx>
 
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
 
diff --git a/sc/qa/extras/scstylefamilyobj.cxx 
b/sc/qa/extras/scstylefamilyobj.cxx
index 627e755cada4..b33ba297714f 100644
--- a/sc/qa/extras/scstylefamilyobj.cxx
+++ b/sc/qa/extras/scstylefamilyobj.cxx
@@ -19,7 +19,6 @@
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
 #include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/style/XStyle.hpp>
diff --git a/sc/qa/extras/scstyleobj.cxx b/sc/qa/extras/scstyleobj.cxx
index 12b3b0ebde8d..f29efe44e533 100644
--- a/sc/qa/extras/scstyleobj.cxx
+++ b/sc/qa/extras/scstyleobj.cxx
@@ -15,7 +15,6 @@
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
 #include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scsubtotaldescriptorbase.cxx 
b/sc/qa/extras/scsubtotaldescriptorbase.cxx
index 90f656060e85..3df28df519d9 100644
--- a/sc/qa/extras/scsubtotaldescriptorbase.cxx
+++ b/sc/qa/extras/scsubtotaldescriptorbase.cxx
@@ -18,7 +18,6 @@
 #include <cppu/unotype.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
 #include <com/sun/star/sheet/SubTotalColumn.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scsubtotalfieldobj.cxx 
b/sc/qa/extras/scsubtotalfieldobj.cxx
index bb40eb0e9e6c..7de7d815ef66 100644
--- a/sc/qa/extras/scsubtotalfieldobj.cxx
+++ b/sc/qa/extras/scsubtotalfieldobj.cxx
@@ -11,7 +11,6 @@
 #include <test/sheet/xsubtotalfield.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/GeneralFunction.hpp>
 #include <com/sun/star/sheet/SubTotalColumn.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/sctablecolumnobj.cxx 
b/sc/qa/extras/sctablecolumnobj.cxx
index fffc29518daf..0033cc94af82 100644
--- a/sc/qa/extras/sctablecolumnobj.cxx
+++ b/sc/qa/extras/sctablecolumnobj.cxx
@@ -15,7 +15,6 @@
 #include <test/table/xcellrange.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/sctablecolumnsobj.cxx 
b/sc/qa/extras/sctablecolumnsobj.cxx
index d7140480db69..1515136c7f26 100644
--- a/sc/qa/extras/sctablecolumnsobj.cxx
+++ b/sc/qa/extras/sctablecolumnsobj.cxx
@@ -17,7 +17,6 @@
 #include <cppu/unotype.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/sctableconditionalentryobj.cxx 
b/sc/qa/extras/sctableconditionalentryobj.cxx
index 895493793415..9d3cea60c6b3 100644
--- a/sc/qa/extras/sctableconditionalentryobj.cxx
+++ b/sc/qa/extras/sctableconditionalentryobj.cxx
@@ -14,7 +14,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/ConditionOperator.hpp>
 #include <com/sun/star/sheet/XSheetConditionalEntry.hpp>
 #include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
diff --git a/sc/qa/extras/sctableconditionalformat.cxx 
b/sc/qa/extras/sctableconditionalformat.cxx
index 7d752c3acb71..be26962ed73f 100644
--- a/sc/qa/extras/sctableconditionalformat.cxx
+++ b/sc/qa/extras/sctableconditionalformat.cxx
@@ -18,7 +18,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/ConditionOperator.hpp>
 #include <com/sun/star/sheet/XSheetConditionalEntry.hpp>
 #include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
diff --git a/sc/qa/extras/sctablerowobj.cxx b/sc/qa/extras/sctablerowobj.cxx
index 4f03cde4ddf6..5d1a061a3cff 100644
--- a/sc/qa/extras/sctablerowobj.cxx
+++ b/sc/qa/extras/sctablerowobj.cxx
@@ -14,7 +14,6 @@
 #include <test/table/xcellrange.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/sctablerowsobj.cxx b/sc/qa/extras/sctablerowsobj.cxx
index 6b491d8235b6..9137ff0ec60f 100644
--- a/sc/qa/extras/sctablerowsobj.cxx
+++ b/sc/qa/extras/sctablerowsobj.cxx
@@ -15,7 +15,6 @@
 #include <test/table/xtablerows.hxx>
 
 #include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/sctablevalidationobj.cxx 
b/sc/qa/extras/sctablevalidationobj.cxx
index 72b493098320..f7c989fcfd1c 100644
--- a/sc/qa/extras/sctablevalidationobj.cxx
+++ b/sc/qa/extras/sctablevalidationobj.cxx
@@ -16,7 +16,6 @@
 
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetCondition.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx
index 7e10f46da7e8..85732228cf1d 100644
--- a/sc/qa/extras/sctabviewobj.cxx
+++ b/sc/qa/extras/sctabviewobj.cxx
@@ -20,7 +20,6 @@
 
 #include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XViewPane.hpp>
diff --git a/sc/qa/extras/scuniquecellformatsenumeration.cxx 
b/sc/qa/extras/scuniquecellformatsenumeration.cxx
index b295b244b860..9eebc5cda413 100644
--- a/sc/qa/extras/scuniquecellformatsenumeration.cxx
+++ b/sc/qa/extras/scuniquecellformatsenumeration.cxx
@@ -13,7 +13,6 @@
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XEnumerationAccess.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheets.hpp>
diff --git a/sc/qa/extras/scuniquecellformatsobj.cxx 
b/sc/qa/extras/scuniquecellformatsobj.cxx
index f3470d16e58e..d0b66590ad02 100644
--- a/sc/qa/extras/scuniquecellformatsobj.cxx
+++ b/sc/qa/extras/scuniquecellformatsobj.cxx
@@ -13,7 +13,6 @@
 #include <test/container/xindexaccess.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSheetCellRangeContainer.hpp>
 #include <com/sun/star/sheet/XSpreadsheet.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
diff --git a/sc/qa/extras/scviewpaneobj.cxx b/sc/qa/extras/scviewpaneobj.cxx
index 5f2da19260b9..d6427d74d02e 100644
--- a/sc/qa/extras/scviewpaneobj.cxx
+++ b/sc/qa/extras/scviewpaneobj.cxx
@@ -24,7 +24,6 @@
 #include <com/sun/star/form/XFormsSupplier.hpp>
 #include <com/sun/star/frame/XController.hpp>
 #include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/sheet/XViewPane.hpp>
 #include <com/sun/star/uno/XInterface.hpp>
diff --git a/sc/qa/extras/vba-macro-test.cxx b/sc/qa/extras/vba-macro-test.cxx
index 5dc6157b4304..7cfc8fde1f35 100644
--- a/sc/qa/extras/vba-macro-test.cxx
+++ b/sc/qa/extras/vba-macro-test.cxx
@@ -12,9 +12,7 @@
 #include <osl/file.hxx>
 #include <sal/log.hxx>
 #include <vcl/filter/pdfdocument.hxx>
-#include <vcl/filter/PDFiumLibrary.hxx>
 #include <vcl/scheduler.hxx>
-#include <vcl/svapp.hxx>
 #include <viewdata.hxx>
 #include <tabvwsh.hxx>
 
diff --git a/sc/qa/filter/html/html.cxx b/sc/qa/filter/html/html.cxx
index 391806be0333..57a5043d165d 100644
--- a/sc/qa/filter/html/html.cxx
+++ b/sc/qa/filter/html/html.cxx
@@ -7,7 +7,6 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#include <test/unoapixml_test.hxx>
 #include <test/htmltesttools.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
diff --git a/sc/qa/unit/SparklineImportExportTest.cxx 
b/sc/qa/unit/SparklineImportExportTest.cxx
index d10245949218..91575002771b 100644
--- a/sc/qa/unit/SparklineImportExportTest.cxx
+++ b/sc/qa/unit/SparklineImportExportTest.cxx
@@ -8,12 +8,11 @@
  */
 
 #include <test/unoapixml_test.hxx>
-
-#include <com/sun/star/lang/XComponent.hpp>
+#include <document.hxx>
 #include <comphelper/servicehelper.hxx>
-#include <docsh.hxx>
 #include <Sparkline.hxx>
 #include <SparklineGroup.hxx>
+#include <docuno.hxx>
 
 using namespace css;
 
diff --git a/sc/qa/unit/ThemeImportExportTest.cxx 
b/sc/qa/unit/ThemeImportExportTest.cxx
index 9beb19ce2ee7..2531a60c2825 100644
--- a/sc/qa/unit/ThemeImportExportTest.cxx
+++ b/sc/qa/unit/ThemeImportExportTest.cxx
@@ -9,7 +9,6 @@
 
 #include "helper/qahelper.hxx"
 
-#include <docsh.hxx>
 #include <scitems.hxx>
 #include <editeng/brushitem.hxx>
 #include <editeng/colritem.hxx>
diff --git a/sc/qa/unit/copy_paste_test.cxx b/sc/qa/unit/copy_paste_test.cxx
index 7ee2b1a72cc8..35ed48b6e02e 100644
--- a/sc/qa/unit/copy_paste_test.cxx
+++ b/sc/qa/unit/copy_paste_test.cxx
@@ -9,11 +9,7 @@
 
 #include <sal/config.h>
 
-#include <string_view>
-
 #include <test/unoapi_test.hxx>
-#include <comphelper/processfactory.hxx>
-#include <comphelper/propertyvalue.hxx>
 #include <comphelper/servicehelper.hxx>
 
 #include <docsh.hxx>
diff --git a/sc/qa/unit/jumbosheets-test.cxx b/sc/qa/unit/jumbosheets-test.cxx
index d4cdb18678b1..ae213c801393 100644
--- a/sc/qa/unit/jumbosheets-test.cxx
+++ b/sc/qa/unit/jumbosheets-test.cxx
@@ -12,10 +12,7 @@
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
 #include <vcl/scheduler.hxx>
 #include <vcl/keycodes.hxx>
-#include <comphelper/processfactory.hxx>
-#include <comphelper/propertyvalue.hxx>
 #include <comphelper/servicehelper.hxx>
-#include <svx/svdoole2.hxx>
 #include <svx/svdpage.hxx>
 
 #include <docsh.hxx>
@@ -23,7 +20,6 @@
 #include <scmod.hxx>
 #include <viewdata.hxx>
 #include <tabvwsh.hxx>
-#include <com/sun/star/frame/Desktop.hpp>
 #include <scdll.hxx>
 
 using namespace ::com::sun::star;
diff --git a/sc/qa/unit/opencl-test-1.cxx b/sc/qa/unit/opencl-test-1.cxx
index 2cb392b3fe4b..03b4b27230e8 100644
--- a/sc/qa/unit/opencl-test-1.cxx
+++ b/sc/qa/unit/opencl-test-1.cxx
@@ -2,16 +2,11 @@
 
 #include <sal/config.h>
 
-#include <string_view>
-
 #include "helper/qahelper.hxx"
 
 #include <docsh.hxx>
 #include <document.hxx>
 
-#include <comphelper/sequence.hxx>
-#include <comphelper/servicehelper.hxx>
-
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 
diff --git a/sc/qa/unit/opencl-test-2.cxx b/sc/qa/unit/opencl-test-2.cxx
index 910e09b87ec3..402e598079a9 100644
--- a/sc/qa/unit/opencl-test-2.cxx
+++ b/sc/qa/unit/opencl-test-2.cxx
@@ -2,16 +2,11 @@
 
 #include <sal/config.h>
 
-#include <string_view>
-
 #include "helper/qahelper.hxx"
 
 #include <docsh.hxx>
 #include <document.hxx>
 
-#include <comphelper/sequence.hxx>
-#include <comphelper/servicehelper.hxx>
-
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 
diff --git a/sc/qa/unit/pivottable_filters_test.cxx 
b/sc/qa/unit/pivottable_filters_test.cxx
index e7363ca41550..580d96318e93 100644
--- a/sc/qa/unit/pivottable_filters_test.cxx
+++ b/sc/qa/unit/pivottable_filters_test.cxx
@@ -10,7 +10,6 @@
 #include <sal/config.h>
 
 #include "helper/qahelper.hxx"
-#include "helper/debughelper.hxx"
 
 #include <patattr.hxx>
 #include <scitems.hxx>
@@ -28,7 +27,6 @@
 #include <queryparam.hxx>
 #include <rtl/string.hxx>
 
-#include <test/xmltesttools.hxx>
 #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
 #include <com/sun/star/sheet/DataPilotFieldGroupBy.hpp>
 
diff --git a/sc/qa/unit/scshapetest.cxx b/sc/qa/unit/scshapetest.cxx
index 5e4827005388..98e98aee54f7 100644
--- a/sc/qa/unit/scshapetest.cxx
+++ b/sc/qa/unit/scshapetest.cxx
@@ -9,8 +9,6 @@
 
 #include <sal/config.h>
 
-#include <string_view>
-
 #include "helper/qahelper.hxx"
 
 #include <comphelper/propertyvalue.hxx>
@@ -22,10 +20,8 @@
 #include <svx/svdorect.hxx>
 #include <svx/svdouno.hxx>
 #include <svx/svdpage.hxx>
-#include <unotools/tempfile.hxx>
 #include <vcl/keycodes.hxx>
 
-#include <docsh.hxx>
 #include <drwlayer.hxx>
 #include <fuconcustomshape.hxx>
 #include <fuconuno.hxx>
diff --git a/sc/qa/unit/subsequent_export_test3.cxx 
b/sc/qa/unit/subsequent_export_test3.cxx
index 1c4f5760bf06..3ad4782440f8 100644
--- a/sc/qa/unit/subsequent_export_test3.cxx
+++ b/sc/qa/unit/subsequent_export_test3.cxx
@@ -7,10 +7,6 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#include <officecfg/Office/Common.hxx>
-
-#include "helper/debughelper.hxx"
-
 #include "helper/qahelper.hxx"
 #include "helper/shared_test_impl.hxx"
 
diff --git a/sc/qa/unit/subsequent_export_test4.cxx 
b/sc/qa/unit/subsequent_export_test4.cxx
index ff453d2ca7ed..1f212499714b 100644
--- a/sc/qa/unit/subsequent_export_test4.cxx
+++ b/sc/qa/unit/subsequent_export_test4.cxx
@@ -12,7 +12,6 @@
 #include "helper/qahelper.hxx"
 
 #include <docsh.hxx>
-#include <docpool.hxx>
 #include <scitems.hxx>
 #include <attrib.hxx>
 #include <stlpool.hxx>
diff --git a/sc/qa/unit/subsequent_filters_test2.cxx 
b/sc/qa/unit/subsequent_filters_test2.cxx
index f66a297d39a5..2a09166847e9 100644
--- a/sc/qa/unit/subsequent_filters_test2.cxx
+++ b/sc/qa/unit/subsequent_filters_test2.cxx
@@ -9,8 +9,6 @@
 
 #include <sal/config.h>
 
-#include <memory>
-
 #include <osl/thread.h>
 #include <svl/numformat.hxx>
 #include <svl/zformat.hxx>
@@ -28,7 +26,6 @@
 #include <editeng/lineitem.hxx>
 #include <editeng/colritem.hxx>
 #include <cellvalue.hxx>
-#include <docpool.hxx>
 #include <dbdata.hxx>
 #include <validat.hxx>
 #include <formulacell.hxx>
@@ -47,10 +44,8 @@
 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
 #include <com/sun/star/container/XIndexAccess.hpp>
 
-#include <comphelper/propertysequence.hxx>
 #include <comphelper/scopeguard.hxx>
 #include <tools/UnitConversion.hxx>
-#include <vcl/scheduler.hxx>
 #include "helper/qahelper.hxx"
 
 using namespace ::com::sun::star;
diff --git a/sc/qa/unit/subsequent_filters_test3.cxx 
b/sc/qa/unit/subsequent_filters_test3.cxx
index fdf1602b5512..ed2718342f5d 100644
--- a/sc/qa/unit/subsequent_filters_test3.cxx
+++ b/sc/qa/unit/subsequent_filters_test3.cxx
@@ -19,7 +19,6 @@
 #include <svx/xflclit.hxx>
 #include <svx/xflgrit.hxx>
 #include <svx/xflhtit.hxx>
-#include <vcl/scheduler.hxx>
 #include <editeng/borderline.hxx>
 #include <editeng/lineitem.hxx>
 #include <dbdata.hxx>
diff --git a/sc/qa/unit/subsequent_filters_test4.cxx 
b/sc/qa/unit/subsequent_filters_test4.cxx
index d9019a04c8fa..e7bced8a313f 100644
--- a/sc/qa/unit/subsequent_filters_test4.cxx
+++ b/sc/qa/unit/subsequent_filters_test4.cxx
@@ -7,7 +7,6 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#include <osl/file.hxx>
 #include <config_fonts.h>
 
 #include <svx/svdpage.hxx>
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx 
b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index 0d87dc012d1f..6a5eb4a18e4a 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -7,17 +7,12 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#include <test/cppunitasserthelper.hxx>
 #include <test/unoapixml_test.hxx>
 #include <test/helper/transferable.hxx>
-#include <cppunit/tools/StringHelper.h>
 #include <boost/property_tree/json_parser.hpp>
 
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
-#include <com/sun/star/frame/Desktop.hpp>
-#include <com/sun/star/frame/DispatchHelper.hpp>
 #include <com/sun/star/datatransfer/clipboard/LokClipboard.hpp>
-#include <com/sun/star/datatransfer/UnsupportedFlavorException.hpp>
 #include <com/sun/star/util/URLTransformer.hpp>
 #include <comphelper/processfactory.hxx>
 #include <comphelper/propertysequence.hxx>
@@ -40,13 +35,9 @@
 #include <sc.hrc>
 #include <comphelper/string.hxx>
 #include <tools/json_writer.hxx>
-#include <docoptio.hxx>
 #include <postit.hxx>
 #include <test/lokcallback.hxx>
-#include <osl/file.hxx>
-#include <unotools/tempfile.hxx>
 
-#include <chrono>
 #include <cstddef>
 
 #include <attrib.hxx>
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 03afa33fdb61..e9576e24fb90 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -38,7 +38,6 @@
 #include <editutil.hxx>
 #include <asciiopt.hxx>
 #include <impex.hxx>
-#include <docpool.hxx>
 #include <globalnames.hxx>
 #include <columnspanset.hxx>
 
diff --git a/sc/qa/unit/ucalc_DocumentThemes.cxx 
b/sc/qa/unit/ucalc_DocumentThemes.cxx
index 2a05badedc65..0c3296cbb637 100644
--- a/sc/qa/unit/ucalc_DocumentThemes.cxx
+++ b/sc/qa/unit/ucalc_DocumentThemes.cxx
@@ -10,14 +10,10 @@
 #include "helper/qahelper.hxx"
 
 #include <docmodel/theme/Theme.hxx>
-#include <svx/svdpage.hxx>
 #include <editeng/brushitem.hxx>
 #include <editeng/colritem.hxx>
 
-#include <docsh.hxx>
 #include <patattr.hxx>
-#include <attrib.hxx>
-#include <docpool.hxx>
 #include <scitems.hxx>
 #include <undomanager.hxx>
 #include <ThemeColorChanger.hxx>
diff --git a/sc/qa/unit/ucalc_copypaste.cxx b/sc/qa/unit/ucalc_copypaste.cxx
index b673ad7de3a1..5cd1d9409b8b 100644
--- a/sc/qa/unit/ucalc_copypaste.cxx
+++ b/sc/qa/unit/ucalc_copypaste.cxx
@@ -15,7 +15,6 @@
 #include <clipparam.hxx>
 #include <dbdata.hxx>
 #include <docfunc.hxx>
-#include <docpool.hxx>
 #include <editeng/borderline.hxx>
 #include <editeng/brushitem.hxx>
 #include <editutil.hxx>
diff --git a/sc/qa/unit/ucalc_formula2.cxx b/sc/qa/unit/ucalc_formula2.cxx
index e6606f126d8e..180f283323ca 100644
--- a/sc/qa/unit/ucalc_formula2.cxx
+++ b/sc/qa/unit/ucalc_formula2.cxx
@@ -7,7 +7,6 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#include "helper/debughelper.hxx"
 #include "helper/qahelper.hxx"
 #include <clipparam.hxx>
 #include <scopetools.hxx>
diff --git a/sc/qa/unit/ucalc_parallelism.cxx b/sc/qa/unit/ucalc_parallelism.cxx
index 2ee55708db32..56b849b8e058 100644
--- a/sc/qa/unit/ucalc_parallelism.cxx
+++ b/sc/qa/unit/ucalc_parallelism.cxx
@@ -1,17 +1,12 @@
 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
 
 #include <sal/config.h>
-#include <test/bootstrapfixture.hxx>
-
-#include <sfx2/sfxmodelfactory.hxx>
 
 #include "helper/qahelper.hxx"
 
 #include <docsh.hxx>
 #include <document.hxx>
-#include <clipparam.hxx>
 #include <markdata.hxx>
-#include <undoblk.hxx>
 #include <formulacell.hxx>
 #include <formulagroup.hxx>
 #include <scopetools.hxx>

Reply via email to