tdf#42949 Fix IWYU warnings in include/test

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

New IWYU and recent developments in f-u-i helped to identify
some non self contained files, those were fixed too.

Change-Id: I527f7c2cf2660a758b13eabb4c444ff79ae35f8c
Reviewed-on: https://gerrit.libreoffice.org/75186
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
diff --git a/include/test/container/xnameaccess.hxx b/include/test/container/xnameaccess.hxx
index 6ff5259..960cf67 100644
--- a/include/test/container/xnameaccess.hxx
+++ b/include/test/container/xnameaccess.hxx
@@ -14,7 +14,6 @@

#include <com/sun/star/uno/Reference.hxx>

#include <rtl/string.hxx>
#include <test/testdllapi.hxx>

namespace apitest
diff --git a/include/test/drawing/xshapedescriptor.hxx b/include/test/drawing/xshapedescriptor.hxx
index cb7c37e..2c99e7e 100644
--- a/include/test/drawing/xshapedescriptor.hxx
+++ b/include/test/drawing/xshapedescriptor.hxx
@@ -14,7 +14,6 @@
#include <com/sun/star/uno/Reference.hxx>

#include <test/testdllapi.hxx>
#include <rtl/string.hxx>

namespace apitest
{
diff --git a/include/test/helper/form.hxx b/include/test/helper/form.hxx
index d84794c..0fbcd2c 100644
--- a/include/test/helper/form.hxx
+++ b/include/test/helper/form.hxx
@@ -15,7 +15,6 @@

#include <com/sun/star/uno/Reference.hxx>

#include <rtl/string.hxx>
#include <sal/config.h>
#include <sal/types.h>
#include <test/testdllapi.hxx>
diff --git a/include/test/helper/shape.hxx b/include/test/helper/shape.hxx
index e4322be..341a9fa 100644
--- a/include/test/helper/shape.hxx
+++ b/include/test/helper/shape.hxx
@@ -10,7 +10,6 @@
#ifndef INCLUDED_TEST_HELPER_SHAPE_HXX
#define INCLUDED_TEST_HELPER_SHAPE_HXX

#include <rtl/string.hxx>
#include <sal/config.h>
#include <sal/types.h>
#include <test/testdllapi.hxx>
diff --git a/include/test/helper/transferable.hxx b/include/test/helper/transferable.hxx
index 280b28a..d0454bc 100644
--- a/include/test/helper/transferable.hxx
+++ b/include/test/helper/transferable.hxx
@@ -9,7 +9,6 @@

#pragma once

#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/datatransfer/XTransferable.hpp>
#include <rtl/string.hxx>
diff --git a/include/test/lang/xcomponent.hxx b/include/test/lang/xcomponent.hxx
index fdbeccc..9314749 100644
--- a/include/test/lang/xcomponent.hxx
+++ b/include/test/lang/xcomponent.hxx
@@ -10,7 +10,6 @@
#ifndef INCLUDED_TEST_LANG_XCOMPONENT_HXX
#define INCLUDED_TEST_LANG_XCOMPONENT_HXX

#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/XInterface.hpp>

diff --git a/include/test/lang/xserviceinfo.hxx b/include/test/lang/xserviceinfo.hxx
index 86a9248..14ce4ea 100644
--- a/include/test/lang/xserviceinfo.hxx
+++ b/include/test/lang/xserviceinfo.hxx
@@ -16,7 +16,6 @@

#include <com/sun/star/uno/Reference.hxx>

#include <rtl/string.hxx>
#include <test/testdllapi.hxx>

namespace apitest
diff --git a/include/test/sheet/cellarealink.hxx b/include/test/sheet/cellarealink.hxx
index 6eff944a..eb3a135 100644
--- a/include/test/sheet/cellarealink.hxx
+++ b/include/test/sheet/cellarealink.hxx
@@ -15,7 +15,6 @@
#include <com/sun/star/uno/Reference.hxx>

#include <test/testdllapi.hxx>
#include <rtl/string.hxx>

namespace apitest
{
diff --git a/include/test/sheet/functiondescription.hxx b/include/test/sheet/functiondescription.hxx
index 4e3128b..bfe719b 100644
--- a/include/test/sheet/functiondescription.hxx
+++ b/include/test/sheet/functiondescription.hxx
@@ -11,7 +11,6 @@
#define INCLUDED_TEST_SHEET_FUNCTIONDESCRIPTION_HXX

#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Sequence.hxx>

#include <test/testdllapi.hxx>
diff --git a/include/test/sheet/xprintareas.hxx b/include/test/sheet/xprintareas.hxx
index fa9a987..b3edbeb 100644
--- a/include/test/sheet/xprintareas.hxx
+++ b/include/test/sheet/xprintareas.hxx
@@ -10,7 +10,7 @@
#ifndef INCLUDED_TEST_SHEET_XPRINTAREAS_HXX
#define INCLUDED_TEST_SHEET_XPRINTAREAS_HXX

#include <com/sun/star/sheet/XPrintAreas.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>

namespace apitest {
diff --git a/include/test/sheet/xsheetannotation.hxx b/include/test/sheet/xsheetannotation.hxx
index 326e1b5..c121062 100644
--- a/include/test/sheet/xsheetannotation.hxx
+++ b/include/test/sheet/xsheetannotation.hxx
@@ -10,7 +10,6 @@
#ifndef INCLUDED_TEST_SHEET_XSHEETANNOTATION_HXX
#define INCLUDED_TEST_SHEET_XSHEETANNOTATION_HXX

#include <rtl/ustring.hxx>
#include <com/sun/star/sheet/XSheetAnnotation.hpp>
#include <test/testdllapi.hxx>

diff --git a/include/test/sheet/xsheetoutline.hxx b/include/test/sheet/xsheetoutline.hxx
index 2a7771a..f477b18 100644
--- a/include/test/sheet/xsheetoutline.hxx
+++ b/include/test/sheet/xsheetoutline.hxx
@@ -10,8 +10,7 @@
#ifndef INCLUDED_TEST_SHEET_XSHEETOUTLINE_HXX
#define INCLUDED_TEST_SHEET_XSHEETOUTLINE_HXX

#include <rtl/ustring.hxx>
#include <com/sun/star/sheet/XSheetOutline.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>

namespace apitest {
diff --git a/include/test/sheet/xsheetpagebreak.hxx b/include/test/sheet/xsheetpagebreak.hxx
index 3ae64b6..be8b2ff 100644
--- a/include/test/sheet/xsheetpagebreak.hxx
+++ b/include/test/sheet/xsheetpagebreak.hxx
@@ -10,8 +10,7 @@
#ifndef INCLUDED_TEST_SHEET_XSHEETPAGEBREAK_HXX
#define INCLUDED_TEST_SHEET_XSHEETPAGEBREAK_HXX

#include <rtl/ustring.hxx>
#include <com/sun/star/sheet/XSheetPageBreak.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>

namespace apitest {
diff --git a/include/test/sheet/xspreadsheetdocument.hxx b/include/test/sheet/xspreadsheetdocument.hxx
index 76dd7ba..ff60815 100644
--- a/include/test/sheet/xspreadsheetdocument.hxx
+++ b/include/test/sheet/xspreadsheetdocument.hxx
@@ -11,7 +11,6 @@
#define INCLUDED_TEST_SHEET_XSPREADSHEETDOCUMENT_HXX

#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>

namespace apitest {

diff --git a/include/test/sheet/xsubtotalcalculatable.hxx b/include/test/sheet/xsubtotalcalculatable.hxx
index 4c5202b..11f822b 100644
--- a/include/test/sheet/xsubtotalcalculatable.hxx
+++ b/include/test/sheet/xsubtotalcalculatable.hxx
@@ -11,7 +11,6 @@
#define INCLUDED_TEST_SHEET_XSUBTOTALCALCULATABLE_HXX

#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/sheet/XSpreadsheet.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <test/testdllapi.hxx>

diff --git a/include/test/table/xcellrange.hxx b/include/test/table/xcellrange.hxx
index eec00c8..78f965e 100644
--- a/include/test/table/xcellrange.hxx
+++ b/include/test/table/xcellrange.hxx
@@ -11,7 +11,6 @@
#define INCLUDED_TEST_TABLE_XCELLRANGE_HXX

#include <test/testdllapi.hxx>
#include <rtl/ustring.h>

#include <com/sun/star/uno/XInterface.hpp>

diff --git a/include/test/table/xtablecolumns.hxx b/include/test/table/xtablecolumns.hxx
index b4cc23f..204fb28 100644
--- a/include/test/table/xtablecolumns.hxx
+++ b/include/test/table/xtablecolumns.hxx
@@ -10,8 +10,6 @@
#ifndef INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX
#define INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX

#include <rtl/string.hxx>

#include <com/sun/star/sheet/XSpreadsheet.hpp>
#include <com/sun/star/table/XCell.hpp>
#include <com/sun/star/uno/XInterface.hpp>
diff --git a/include/test/testinteractionhandler.hxx b/include/test/testinteractionhandler.hxx
index e4acac3..49c3f04 100644
--- a/include/test/testinteractionhandler.hxx
+++ b/include/test/testinteractionhandler.hxx
@@ -14,7 +14,7 @@

#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/task/XInteractionHandler2.hpp>
#include <com/sun/star/task/XInteractionAbort.hpp>
#include <com/sun/star/task/XInteractionApprove.hpp>
#include <com/sun/star/task/XInteractionPassword2.hpp>
diff --git a/include/test/text/baseindex.hxx b/include/test/text/baseindex.hxx
index 2c8d273..7a523ed 100644
--- a/include/test/text/baseindex.hxx
+++ b/include/test/text/baseindex.hxx
@@ -12,6 +12,8 @@

#include <test/testdllapi.hxx>

#include <com/sun/star/uno/Reference.hxx>

namespace apitest
{
class OOO_DLLPUBLIC_TEST BaseIndex
diff --git a/include/test/text/textdocumentindex.hxx b/include/test/text/textdocumentindex.hxx
index d045954..92e827c 100644
--- a/include/test/text/textdocumentindex.hxx
+++ b/include/test/text/textdocumentindex.hxx
@@ -10,9 +10,8 @@
#ifndef INCLUDED_TEST_TEXT_DOCUMENTINDEXTEST_HXX
#define INCLUDED_TEST_TEXT_DOCUMENTINDEXTEST_HXX

#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/Reference.hxx>

#include <test/unoapi_property_testers.hxx>
#include <test/testdllapi.hxx>

namespace apitest
diff --git a/include/test/text/textprintersettings.hxx b/include/test/text/textprintersettings.hxx
index a0508aa..2ceac34 100644
--- a/include/test/text/textprintersettings.hxx
+++ b/include/test/text/textprintersettings.hxx
@@ -10,10 +10,9 @@
#ifndef INCLUDED_TEST_TEXT_TEXTPRINTERSETTINGS_HXX
#define INCLUDED_TEST_TEXT_TEXTPRINTERSETTINGS_HXX

#include <test/unoapi_property_testers.hxx>
#include <test/testdllapi.hxx>

#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/Reference.hxx>

namespace apitest
{
diff --git a/include/test/text/textsettings.hxx b/include/test/text/textsettings.hxx
index 9606920..9566f21 100644
--- a/include/test/text/textsettings.hxx
+++ b/include/test/text/textsettings.hxx
@@ -10,6 +10,10 @@
#ifndef INCLUDED_TEST_TEXT_TEXTSETTINGS_HXX
#define INCLUDED_TEST_TEXT_TEXTSETTINGS_HXX

#include <test/testdllapi.hxx>

#include <com/sun/star/uno/Reference.hxx>

namespace apitest
{
class OOO_DLLPUBLIC_TEST TextSettings
diff --git a/include/test/text/xsimpletext.hxx b/include/test/text/xsimpletext.hxx
index fca6d24..ec371ea 100644
--- a/include/test/text/xsimpletext.hxx
+++ b/include/test/text/xsimpletext.hxx
@@ -12,7 +12,7 @@

#include <test/testdllapi.hxx>

#include <com/sun/star/text/XSimpleText.hpp>
#include <com/sun/star/uno/Reference.hxx>

namespace apitest
{
diff --git a/include/test/text/xtext.hxx b/include/test/text/xtext.hxx
index ea1a1cb..d5c0801 100644
--- a/include/test/text/xtext.hxx
+++ b/include/test/text/xtext.hxx
@@ -12,7 +12,7 @@

#include <test/testdllapi.hxx>

#include <com/sun/star/text/XText.hpp>
#include <com/sun/star/text/XTextContent.hpp>

namespace apitest {

diff --git a/include/test/util/xsearchable.hxx b/include/test/util/xsearchable.hxx
index cb61282..9fcbb5d 100644
--- a/include/test/util/xsearchable.hxx
+++ b/include/test/util/xsearchable.hxx
@@ -12,6 +12,8 @@

#include <test/testdllapi.hxx>

#include <com/sun/star/uno/Reference.hxx>

namespace apitest {

class OOO_DLLPUBLIC_TEST XSearchable
diff --git a/test/source/sheet/xsheetoutline.cxx b/test/source/sheet/xsheetoutline.cxx
index 323560b..5467995 100644
--- a/test/source/sheet/xsheetoutline.cxx
+++ b/test/source/sheet/xsheetoutline.cxx
@@ -17,6 +17,7 @@
#include <com/sun/star/table/TableOrientation.hpp>

#include <com/sun/star/sheet/XSheetCellRanges.hpp>
#include <com/sun/star/sheet/XSheetOutline.hpp>
#include <com/sun/star/sheet/XCellRangesQuery.hpp>

#include <cppunit/extensions/HelperMacros.h>