From f351faa3f71f3a1f6225b3d3c015b4d3a1373e38 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 24 Dec 2023 04:41:35 +0100 Subject: tdf#146619 Recheck xmloff/*hxx with IWYU Change-Id: I09676a038370ca76ad4d4ef54dae14fbd3bd287f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162319 Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- xmloff/inc/AutoStyleEntry.hxx | 1 - xmloff/inc/DomExport.hxx | 4 +--- xmloff/inc/StyleMap.hxx | 1 - xmloff/inc/XMLFootnoteConfigurationImportContext.hxx | 1 - xmloff/inc/XMLImageMapContext.hxx | 1 - xmloff/inc/XMLThemeContext.hxx | 4 +--- xmloff/inc/animimp.hxx | 2 -- xmloff/inc/fasttokenhandler.hxx | 3 --- xmloff/inc/forms/property_handler.hxx | 1 - xmloff/inc/txtflde.hxx | 4 ---- xmloff/inc/txtfldi.hxx | 3 +-- xmloff/inc/xmlprop.hxx | 2 ++ xmloff/inc/xmltabe.hxx | 1 - 13 files changed, 5 insertions(+), 23 deletions(-) (limited to 'xmloff/inc') diff --git a/xmloff/inc/AutoStyleEntry.hxx b/xmloff/inc/AutoStyleEntry.hxx index 15f99f1b113f..9e3aadbd32df 100644 --- a/xmloff/inc/AutoStyleEntry.hxx +++ b/xmloff/inc/AutoStyleEntry.hxx @@ -13,7 +13,6 @@ #include #include #include -#include #include #include diff --git a/xmloff/inc/DomExport.hxx b/xmloff/inc/DomExport.hxx index b6646214f7e8..ebf3779b0bff 100644 --- a/xmloff/inc/DomExport.hxx +++ b/xmloff/inc/DomExport.hxx @@ -18,14 +18,12 @@ */ #pragma once -// the Solaris compiler apparently needs the following include: -#include +#include class SvXMLExport; namespace com::sun::star { namespace uno { template class Reference; } namespace xml::dom { class XDocument; } - namespace xml::dom { class XNode; } } void exportDom( SvXMLExport&, const css::uno::Reference& ); diff --git a/xmloff/inc/StyleMap.hxx b/xmloff/inc/StyleMap.hxx index 796245f52fc7..0e7fe1b40b06 100644 --- a/xmloff/inc/StyleMap.hxx +++ b/xmloff/inc/StyleMap.hxx @@ -19,7 +19,6 @@ #pragma once -#include #include #include #include diff --git a/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx b/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx index 2bd8efc40364..4b1b50fc45da 100644 --- a/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx +++ b/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx @@ -19,7 +19,6 @@ #pragma once -#include #include namespace com::sun::star { diff --git a/xmloff/inc/XMLImageMapContext.hxx b/xmloff/inc/XMLImageMapContext.hxx index aec96fb29e9c..0579494b7213 100644 --- a/xmloff/inc/XMLImageMapContext.hxx +++ b/xmloff/inc/XMLImageMapContext.hxx @@ -20,7 +20,6 @@ #pragma once #include -#include #include namespace com::sun::star { diff --git a/xmloff/inc/XMLThemeContext.hxx b/xmloff/inc/XMLThemeContext.hxx index c3056fa74216..7b24671eb3ff 100644 --- a/xmloff/inc/XMLThemeContext.hxx +++ b/xmloff/inc/XMLThemeContext.hxx @@ -7,12 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include -#include +#include #include #include -#include #include diff --git a/xmloff/inc/animimp.hxx b/xmloff/inc/animimp.hxx index b26c138ab6a5..9653d810b32e 100644 --- a/xmloff/inc/animimp.hxx +++ b/xmloff/inc/animimp.hxx @@ -19,8 +19,6 @@ #pragma once -#include - #include #include diff --git a/xmloff/inc/fasttokenhandler.hxx b/xmloff/inc/fasttokenhandler.hxx index 528ecde17546..ed64c6938065 100644 --- a/xmloff/inc/fasttokenhandler.hxx +++ b/xmloff/inc/fasttokenhandler.hxx @@ -9,12 +9,9 @@ #pragma once -#include -#include #include #include #include -#include namespace xmloff::token { diff --git a/xmloff/inc/forms/property_handler.hxx b/xmloff/inc/forms/property_handler.hxx index 822baaf3c9e6..1eadd2d88444 100644 --- a/xmloff/inc/forms/property_handler.hxx +++ b/xmloff/inc/forms/property_handler.hxx @@ -27,7 +27,6 @@ #include #include -#include namespace xmloff { diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx index f21b85eb1b2a..06d5edcaa2b4 100644 --- a/xmloff/inc/txtflde.hxx +++ b/xmloff/inc/txtflde.hxx @@ -35,19 +35,15 @@ #include #include -#include "txtfld.hxx" - class SvXMLExport; struct XMLPropertyState; namespace com::sun::star { namespace util { struct DateTime; } - namespace util { struct Date; } namespace text { class XTextField; } namespace text { class XText; } namespace beans { class XPropertySet; } namespace beans { class XPropertySetInfo; } - namespace frame { class XModel; } namespace uno { template class Sequence; } } diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx index 3d56c547811e..4639ec43f38b 100644 --- a/xmloff/inc/txtfldi.hxx +++ b/xmloff/inc/txtfldi.hxx @@ -30,11 +30,10 @@ #include #include #include +#include #include -#include #include #include -#include "txtfld.hxx" namespace com::sun::star { namespace xml::sax { class XAttributeList; } diff --git a/xmloff/inc/xmlprop.hxx b/xmloff/inc/xmlprop.hxx index 89c53b72a8ea..50978ed0fa75 100644 --- a/xmloff/inc/xmlprop.hxx +++ b/xmloff/inc/xmlprop.hxx @@ -8,6 +8,8 @@ */ #pragma once +#include + inline constexpr OUString PROP_ = u""_ustr; inline constexpr OUString PROP_AdjustBlue = u"AdjustBlue"_ustr; inline constexpr OUString PROP_AdjustContrast = u"AdjustContrast"_ustr; diff --git a/xmloff/inc/xmltabe.hxx b/xmloff/inc/xmltabe.hxx index ad28e77147e3..5239648935cb 100644 --- a/xmloff/inc/xmltabe.hxx +++ b/xmloff/inc/xmltabe.hxx @@ -21,7 +21,6 @@ // prevent funny things like "#define sun 1" from the compiler #include -#include class SvXMLExport; namespace com::sun::star { -- cgit