xmloff/IwyuFilter_xmloff.yaml                                 |    1 
 xmloff/inc/DomBuilderContext.hxx                              |    4 ---
 xmloff/inc/RDFaImportHelper.hxx                               |    1 
 xmloff/inc/SchXMLExport.hxx                                   |    6 -----
 xmloff/inc/XMLBitmapLogicalSizePropertyHandler.hxx            |    2 -
 xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx           |    2 -
 xmloff/inc/XMLEventImportHelper.hxx                           |    2 -
 xmloff/inc/XMLFillBitmapSizePropertyHandler.hxx               |    2 -
 xmloff/inc/XMLFootnoteConfigurationImportContext.hxx          |    1 
 xmloff/inc/XMLImageMapContext.hxx                             |    1 
 xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx       |    5 ----
 xmloff/inc/XMLLineNumberingImportContext.hxx                  |    5 ----
 xmloff/inc/XMLRectangleMembersHandler.hxx                     |    3 --
 xmloff/inc/XMLScriptContextFactory.hxx                        |    6 -----
 xmloff/inc/XMLScriptExportHandler.hxx                         |    5 ----
 xmloff/inc/XMLStarBasicContextFactory.hxx                     |    7 ------
 xmloff/inc/XMLStarBasicExportHandler.hxx                      |    5 ----
 xmloff/inc/txtfldi.hxx                                        |    5 ----
 xmloff/inc/xexptran.hxx                                       |    2 -
 xmloff/source/chart/SchXMLChartContext.hxx                    |    7 ------
 xmloff/source/chart/SchXMLParagraphContext.hxx                |    4 ---
 xmloff/source/chart/SchXMLPlotAreaContext.hxx                 |    3 --
 xmloff/source/chart/SchXMLPropertyMappingContext.hxx          |    1 
 xmloff/source/chart/SchXMLSeries2Context.hxx                  |    3 --
 xmloff/source/chart/SchXMLTableContext.hxx                    |    9 --------
 xmloff/source/chart/SchXMLTextListContext.hxx                 |    4 ---
 xmloff/source/chart/SchXMLTools.hxx                           |    1 
 xmloff/source/chart/contexts.hxx                              |    4 ---
 xmloff/source/draw/ximpcustomshape.hxx                        |    6 -----
 xmloff/source/forms/elementexport.hxx                         |    1 
 xmloff/source/forms/layerimport.hxx                           |    3 --
 xmloff/source/forms/propertyimport.hxx                        |    5 ----
 xmloff/source/style/XMLFootnoteSeparatorImport.hxx            |    4 ---
 xmloff/source/text/XMLAutoMarkFileContext.hxx                 |    7 ------
 xmloff/source/text/XMLAutoTextContainerEventImport.hxx        |    1 
 xmloff/source/text/XMLAutoTextEventExport.hxx                 |    7 ------
 xmloff/source/text/XMLAutoTextEventImport.hxx                 |   11 ----------
 xmloff/source/text/XMLChangeElementImportContext.hxx          |    5 ----
 xmloff/source/text/XMLChangeImportContext.hxx                 |    7 ------
 xmloff/source/text/XMLChangeInfoContext.hxx                   |    3 --
 xmloff/source/text/XMLChangedRegionImportContext.hxx          |    3 --
 xmloff/source/text/XMLFootnoteBodyImportContext.hxx           |    7 ------
 xmloff/source/text/XMLFootnoteImportContext.hxx               |    3 --
 xmloff/source/text/XMLIndexAlphabeticalSourceContext.hxx      |    1 
 xmloff/source/text/XMLIndexBibliographyEntryContext.hxx       |    3 --
 xmloff/source/text/XMLIndexBibliographySourceContext.hxx      |    1 
 xmloff/source/text/XMLIndexBodyContext.hxx                    |    5 ----
 xmloff/source/text/XMLIndexChapterInfoEntryContext.hxx        |    3 --
 xmloff/source/text/XMLIndexIllustrationSourceContext.hxx      |    1 
 xmloff/source/text/XMLIndexObjectSourceContext.hxx            |    1 
 xmloff/source/text/XMLIndexSimpleEntryContext.hxx             |    3 --
 xmloff/source/text/XMLIndexSourceBaseContext.hxx              |    1 
 xmloff/source/text/XMLIndexSpanEntryContext.hxx               |    4 ---
 xmloff/source/text/XMLIndexTOCContext.hxx                     |    1 
 xmloff/source/text/XMLIndexTOCSourceContext.hxx               |    1 
 xmloff/source/text/XMLIndexTOCStylesContext.hxx               |    1 
 xmloff/source/text/XMLIndexTabStopEntryContext.hxx            |    3 --
 xmloff/source/text/XMLIndexTableSourceContext.hxx             |    1 
 xmloff/source/text/XMLIndexTemplateContext.hxx                |    1 
 xmloff/source/text/XMLIndexTitleTemplateContext.hxx           |    1 
 xmloff/source/text/XMLIndexUserSourceContext.hxx              |    1 
 xmloff/source/text/XMLLineNumberingSeparatorImportContext.hxx |    3 --
 xmloff/source/text/XMLSectionFootnoteConfigImport.hxx         |    4 ---
 xmloff/source/text/XMLSectionImportContext.hxx                |    2 -
 xmloff/source/text/XMLSectionSourceDDEImportContext.hxx       |    1 
 xmloff/source/text/XMLSectionSourceImportContext.hxx          |    1 
 xmloff/source/text/XMLTextFrameHyperlinkContext.hxx           |    5 ----
 xmloff/source/text/XMLTextMarkImportContext.hxx               |    3 --
 xmloff/source/text/XMLTrackedChangesImportContext.hxx         |    6 -----
 xmloff/source/transform/TransformerBase.hxx                   |    3 --
 xmloff/source/transform/TransformerContext.hxx                |    1 
 xmloff/source/xforms/SchemaContext.hxx                        |    3 --
 xmloff/source/xforms/SchemaRestrictionContext.hxx             |    2 -
 xmloff/source/xforms/SchemaSimpleTypeContext.hxx              |    3 --
 xmloff/source/xforms/XFormsBindContext.hxx                    |    2 -
 xmloff/source/xforms/XFormsInstanceContext.hxx                |    3 --
 xmloff/source/xforms/XFormsModelContext.hxx                   |    6 -----
 xmloff/source/xforms/XFormsSubmissionContext.hxx              |    2 -
 78 files changed, 2 insertions(+), 255 deletions(-)

New commits:
commit 0b71553e9a7b51cf84bfa7b1487a768e4ff64920
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Thu Apr 10 16:14:30 2025 +0200
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Fri May 23 19:36:14 2025 +0200

    Remove obsolete fw declarations from xmloff/
    
    found with bin/find-unneeded-includes --fwdecl
    
    Change-Id: Ic1d7679fc60fb41df351cc849c2e35517b3f0e36
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184010
    Reviewed-by: Gabor Kelemen <[email protected]>
    Tested-by: Jenkins

diff --git a/xmloff/IwyuFilter_xmloff.yaml b/xmloff/IwyuFilter_xmloff.yaml
index 5418a4bca412..95af3f97503e 100644
--- a/xmloff/IwyuFilter_xmloff.yaml
+++ b/xmloff/IwyuFilter_xmloff.yaml
@@ -14,6 +14,7 @@ excludelist:
     # Used after #ifdef TIMELOG
     - stack
     - sal/types.h
+    - namespace rtl { class Logfile; }
     xmloff/source/forms/propertyexport.hxx:
     # Used after #ifdef in non-DBG_UTIL builds
     - xmloff/xmlexp.hxx
diff --git a/xmloff/inc/DomBuilderContext.hxx b/xmloff/inc/DomBuilderContext.hxx
index 40435abbfc80..6474b7cd9b9c 100644
--- a/xmloff/inc/DomBuilderContext.hxx
+++ b/xmloff/inc/DomBuilderContext.hxx
@@ -30,12 +30,8 @@ namespace com::sun::star {
         class XNode;
         class XDocument;
     }
-    namespace xml::sax {
-        class XAttributeList;
-    }
 }
 class SvXMLImport;
-class SvXMLImportContext;
 
 /**
  * DomBuilderContext creates a DOM tree suitable for in-memory processing of
diff --git a/xmloff/inc/RDFaImportHelper.hxx b/xmloff/inc/RDFaImportHelper.hxx
index 31e00af93d06..6e7c94874f2a 100644
--- a/xmloff/inc/RDFaImportHelper.hxx
+++ b/xmloff/inc/RDFaImportHelper.hxx
@@ -26,7 +26,6 @@
 #include <rtl/ustring.hxx>
 
 namespace com::sun::star {
-    namespace uno { class XComponentContext; }
     namespace rdf { class XMetadatable; }
     namespace rdf { class XRepositorySupplier; }
 }
diff --git a/xmloff/inc/SchXMLExport.hxx b/xmloff/inc/SchXMLExport.hxx
index 55ac1125654d..64c1f568e06e 100644
--- a/xmloff/inc/SchXMLExport.hxx
+++ b/xmloff/inc/SchXMLExport.hxx
@@ -23,12 +23,6 @@
 #include <xmloff/xmlexp.hxx>
 #include <xmloff/xmlprmap.hxx>
 
-namespace com::sun::star {
-    namespace task {
-        class XStatusIndicator;
-    }
-}
-
 // export class for a complete chart document
 
 class SchXMLExport final : public SvXMLExport
diff --git a/xmloff/inc/XMLBitmapLogicalSizePropertyHandler.hxx 
b/xmloff/inc/XMLBitmapLogicalSizePropertyHandler.hxx
index a3be8f99cb2e..c67c57eb55b0 100644
--- a/xmloff/inc/XMLBitmapLogicalSizePropertyHandler.hxx
+++ b/xmloff/inc/XMLBitmapLogicalSizePropertyHandler.hxx
@@ -21,8 +21,6 @@
 
 #include <xmloff/xmlprhdl.hxx>
 
-template<typename EnumT> struct SvXMLEnumMapEntry;
-
 
 /** Abstract base-class for different XML-types. Derivations of this class
     knows how to compare, im/export a special XML-type
diff --git a/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx 
b/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx
index d008935acf58..f113c08eda09 100644
--- a/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx
+++ b/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx
@@ -21,8 +21,6 @@
 
 #include <xmloff/xmlprhdl.hxx>
 
-template<typename EnumT> struct SvXMLEnumMapEntry;
-
 /** Abstract base-class for different XML-types. Derivations of this class
     knows how to compare, im/export a special XML-type
 */
diff --git a/xmloff/inc/XMLEventImportHelper.hxx 
b/xmloff/inc/XMLEventImportHelper.hxx
index ccb475ac122d..29ca9962cfe3 100644
--- a/xmloff/inc/XMLEventImportHelper.hxx
+++ b/xmloff/inc/XMLEventImportHelper.hxx
@@ -30,9 +30,7 @@
 namespace com::sun::star {
     namespace xml::sax { class XFastAttributeList; }
 }
-class XMLEventContextFactory;
 class XMLEventsImportContext;
-struct XMLEventNameTranslation;
 
 typedef ::std::map< OUString, std::unique_ptr<XMLEventContextFactory> > 
FactoryMap;
 typedef ::std::map< XMLEventName, OUString > NameMap;
diff --git a/xmloff/inc/XMLFillBitmapSizePropertyHandler.hxx 
b/xmloff/inc/XMLFillBitmapSizePropertyHandler.hxx
index 4d5a21fae677..d0f0991a727b 100644
--- a/xmloff/inc/XMLFillBitmapSizePropertyHandler.hxx
+++ b/xmloff/inc/XMLFillBitmapSizePropertyHandler.hxx
@@ -21,8 +21,6 @@
 
 #include <xmloff/xmlprhdl.hxx>
 
-template<typename EnumT> struct SvXMLEnumMapEntry;
-
 
 /** Abstract base-class for different XML-types. Derivations of this class
     knows how to compare, im/export a special XML-type
diff --git a/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx 
b/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx
index 4b1b50fc45da..c86d8ef7e98e 100644
--- a/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx
+++ b/xmloff/inc/XMLFootnoteConfigurationImportContext.hxx
@@ -23,7 +23,6 @@
 
 namespace com::sun::star {
     namespace uno { template<class X> class Reference; }
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 class SvXMLImport;
diff --git a/xmloff/inc/XMLImageMapContext.hxx 
b/xmloff/inc/XMLImageMapContext.hxx
index 0579494b7213..dc261ecb7a14 100644
--- a/xmloff/inc/XMLImageMapContext.hxx
+++ b/xmloff/inc/XMLImageMapContext.hxx
@@ -25,7 +25,6 @@
 namespace com::sun::star {
     namespace container { class XIndexContainer; }
     namespace beans { class XPropertySet; }
-    namespace xml::sax { class XAttributeList; }
 }
 
 
diff --git a/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx 
b/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx
index fe0b24b9040e..03ddd0746c14 100644
--- a/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx
+++ b/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx
@@ -29,11 +29,6 @@
 
 #include <vector>
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
-
-
 /**
  * Import bibliography configuration.
  *
diff --git a/xmloff/inc/XMLLineNumberingImportContext.hxx 
b/xmloff/inc/XMLLineNumberingImportContext.hxx
index 9a2083b37451..76ef4849ac4d 100644
--- a/xmloff/inc/XMLLineNumberingImportContext.hxx
+++ b/xmloff/inc/XMLLineNumberingImportContext.hxx
@@ -23,11 +23,6 @@
 #include <rtl/ustring.hxx>
 #include <com/sun/star/uno/Reference.h>
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
-
-
 /** import <text:linenumbering-configuration> elements */
 class XMLLineNumberingImportContext final : public SvXMLStyleContext
 {
diff --git a/xmloff/inc/XMLRectangleMembersHandler.hxx 
b/xmloff/inc/XMLRectangleMembersHandler.hxx
index 5b97661498ca..849a95c7f06f 100644
--- a/xmloff/inc/XMLRectangleMembersHandler.hxx
+++ b/xmloff/inc/XMLRectangleMembersHandler.hxx
@@ -21,9 +21,6 @@
 
 #include <xmloff/xmlprhdl.hxx>
 
-template<typename EnumT> struct SvXMLEnumMapEntry;
-
-
 /** Abstract base-class for different XML-types. Derivations of this class
     knows how to compare, im/export a special XML-type
 */
diff --git a/xmloff/inc/XMLScriptContextFactory.hxx 
b/xmloff/inc/XMLScriptContextFactory.hxx
index cde5bb916eb8..2a1139f75b5e 100644
--- a/xmloff/inc/XMLScriptContextFactory.hxx
+++ b/xmloff/inc/XMLScriptContextFactory.hxx
@@ -23,12 +23,6 @@
 #include <xmloff/xmlevent.hxx>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
-class SvXMLImport;
-class XMLEventsImportContext;
-
 class XMLScriptContextFactory final : public XMLEventContextFactory
 {
 public:
diff --git a/xmloff/inc/XMLScriptExportHandler.hxx 
b/xmloff/inc/XMLScriptExportHandler.hxx
index 4197ba77eeb2..f29435cd62c1 100644
--- a/xmloff/inc/XMLScriptExportHandler.hxx
+++ b/xmloff/inc/XMLScriptExportHandler.hxx
@@ -23,11 +23,6 @@
 #include <rtl/ustring.hxx>
 #include <xmloff/xmlevent.hxx>
 
-class SvXMLExport;
-namespace com::sun::star {
-    namespace beans { struct PropertyValue; }
-}
-
 class XMLScriptExportHandler final : public XMLEventExportHandler
 {
 public:
diff --git a/xmloff/inc/XMLStarBasicContextFactory.hxx 
b/xmloff/inc/XMLStarBasicContextFactory.hxx
index ad0ac8939972..1eb77890f1bf 100644
--- a/xmloff/inc/XMLStarBasicContextFactory.hxx
+++ b/xmloff/inc/XMLStarBasicContextFactory.hxx
@@ -23,13 +23,6 @@
 #include <xmloff/xmlevent.hxx>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
-class SvXMLImport;
-class XMLEventsImportContext;
-
-
 class XMLStarBasicContextFactory final : public XMLEventContextFactory
 {
 public:
diff --git a/xmloff/inc/XMLStarBasicExportHandler.hxx 
b/xmloff/inc/XMLStarBasicExportHandler.hxx
index c1eb9f76a827..6c1bde2e17a5 100644
--- a/xmloff/inc/XMLStarBasicExportHandler.hxx
+++ b/xmloff/inc/XMLStarBasicExportHandler.hxx
@@ -23,11 +23,6 @@
 #include <rtl/ustring.hxx>
 #include <xmloff/xmlevent.hxx>
 
-class SvXMLExport;
-namespace com::sun::star {
-    namespace beans { struct PropertyValue; }
-}
-
 class XMLStarBasicExportHandler final : public XMLEventExportHandler
 {
 public:
diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx
index 7a9deab5a0d5..75e1d798ca25 100644
--- a/xmloff/inc/txtfldi.hxx
+++ b/xmloff/inc/txtfldi.hxx
@@ -36,14 +36,11 @@
 #include <vector>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-    namespace text { class XTextField; }
-    namespace beans { class XPropertySet; struct PropertyValue; }
+    namespace beans { class XPropertySet; }
 }
 
 class SvXMLImport;
 class XMLTextImportHelper;
-class SvXMLTokenMap;
 
 /// abstract class for text field import
 class XMLTextFieldImportContext : public SvXMLImportContext
diff --git a/xmloff/inc/xexptran.hxx b/xmloff/inc/xexptran.hxx
index 9136e620fa9d..d6a6ccc8667d 100644
--- a/xmloff/inc/xexptran.hxx
+++ b/xmloff/inc/xexptran.hxx
@@ -28,8 +28,6 @@
 struct ImpSdXMLExpTransObj2DBase;
 struct ImpSdXMLExpTransObj3DBase;
 class SvXMLUnitConverter;
-class SvXMLImport;
-class SvXMLExport;
 
 namespace basegfx
 {
diff --git a/xmloff/source/chart/SchXMLChartContext.hxx 
b/xmloff/source/chart/SchXMLChartContext.hxx
index 563ae2ebe8e1..ef1679a2381a 100644
--- a/xmloff/source/chart/SchXMLChartContext.hxx
+++ b/xmloff/source/chart/SchXMLChartContext.hxx
@@ -32,13 +32,6 @@
 class SchXMLImportHelper;
 
 namespace com::sun::star {
-    namespace chart {
-        class XChartDocument;
-        struct ChartSeriesAddress;
-    }
-    namespace xml::sax {
-        class XAttributeList;
-    }
     namespace drawing {
         class XShapes;
     }
diff --git a/xmloff/source/chart/SchXMLParagraphContext.hxx 
b/xmloff/source/chart/SchXMLParagraphContext.hxx
index f0e06893b8ce..a8468c6a555f 100644
--- a/xmloff/source/chart/SchXMLParagraphContext.hxx
+++ b/xmloff/source/chart/SchXMLParagraphContext.hxx
@@ -22,10 +22,6 @@
 #include <rtl/ustring.hxx>
 #include <rtl/ustrbuf.hxx>
 
-namespace com::sun::star::xml::sax {
-        class XAttributeList;
-}
-
 class SchXMLParagraphContext : public SvXMLImportContext
 {
 private:
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.hxx 
b/xmloff/source/chart/SchXMLPlotAreaContext.hxx
index c6b74f0e0389..5a8d85522943 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.hxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.hxx
@@ -39,9 +39,6 @@ namespace com::sun::star {
     namespace chart2 {
         class XChartDocument;
     }
-    namespace xml::sax {
-        class XAttributeList;
-    }
 }
 
 class SchXML3DSceneAttributesHelper : public SdXML3DSceneAttributesHelper
diff --git a/xmloff/source/chart/SchXMLPropertyMappingContext.hxx 
b/xmloff/source/chart/SchXMLPropertyMappingContext.hxx
index 3ac7cb7191a4..4059cf774b23 100644
--- a/xmloff/source/chart/SchXMLPropertyMappingContext.hxx
+++ b/xmloff/source/chart/SchXMLPropertyMappingContext.hxx
@@ -14,7 +14,6 @@
 
 namespace com::sun::star {
     namespace chart2 {
-        class XChartDocument;
         class XDataSeries;
     }
 }
diff --git a/xmloff/source/chart/SchXMLSeries2Context.hxx 
b/xmloff/source/chart/SchXMLSeries2Context.hxx
index 4996ecf8bc8e..634c4b62a176 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.hxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.hxx
@@ -31,9 +31,6 @@ namespace com::sun::star {
         class XChartDocument;
         class XDataSeries;
     }
-    namespace awt {
-        struct Size;
-    }
 }
 
 // class for child contexts: series, data point and statistics objects
diff --git a/xmloff/source/chart/SchXMLTableContext.hxx 
b/xmloff/source/chart/SchXMLTableContext.hxx
index cd8a6443b177..005b8a918a5c 100644
--- a/xmloff/source/chart/SchXMLTableContext.hxx
+++ b/xmloff/source/chart/SchXMLTableContext.hxx
@@ -26,15 +26,6 @@
 
 #include "transporttypes.hxx"
 
-namespace com::sun::star {
-    namespace xml::sax {
-        class XAttributeList;
-    }
-    namespace chart {
-        class XChartDocument;
-    }
-}
-
 class SchXMLTableContext : public SvXMLImportContext
 {
 private:
diff --git a/xmloff/source/chart/SchXMLTextListContext.hxx 
b/xmloff/source/chart/SchXMLTextListContext.hxx
index 32d9bd3e3786..d73479d2e47f 100644
--- a/xmloff/source/chart/SchXMLTextListContext.hxx
+++ b/xmloff/source/chart/SchXMLTextListContext.hxx
@@ -22,10 +22,6 @@
 #include <rtl/ustring.hxx>
 #include <vector>
 
-namespace com::sun::star::xml::sax {
-        class XAttributeList;
-}
-
 class SchXMLTextListContext : public SvXMLImportContext
 {
 public:
diff --git a/xmloff/source/chart/SchXMLTools.hxx 
b/xmloff/source/chart/SchXMLTools.hxx
index 364c894c5634..bb3485abe053 100644
--- a/xmloff/source/chart/SchXMLTools.hxx
+++ b/xmloff/source/chart/SchXMLTools.hxx
@@ -28,7 +28,6 @@
 namespace com::sun::star {
     namespace chart2 {
         class XChartDocument;
-        class XRegressionCurve;
         namespace data {
             class XDataProvider;
         }
diff --git a/xmloff/source/chart/contexts.hxx b/xmloff/source/chart/contexts.hxx
index 729103484d0f..1b07b9325300 100644
--- a/xmloff/source/chart/contexts.hxx
+++ b/xmloff/source/chart/contexts.hxx
@@ -23,10 +23,6 @@
 
 #include <xmloff/xmlmetai.hxx>
 
-namespace com::sun::star::xml::sax {
-        class XAttributeList;
-}
-
 /*
    These contexts are only needed by
    SchXMLImport not by the SchXMLImportHelper
diff --git a/xmloff/source/draw/ximpcustomshape.hxx 
b/xmloff/source/draw/ximpcustomshape.hxx
index f7e14765a1e2..b5c88baeda8a 100644
--- a/xmloff/source/draw/ximpcustomshape.hxx
+++ b/xmloff/source/draw/ximpcustomshape.hxx
@@ -28,12 +28,6 @@
 #include <com/sun/star/beans/PropertyValues.hpp>
 #include <com/sun/star/drawing/XShape.hpp>
 
-namespace com::sun::star {
-    namespace container { class XIndexContainer; }
-    namespace beans { class XPropertySet; }
-    namespace xml::sax { class XAttributeList; }
-}
-
 class XMLEnhancedCustomShapeContext : public SvXMLImportContext
 {
     SvXMLUnitConverter& mrUnitConverter;
diff --git a/xmloff/source/forms/elementexport.hxx 
b/xmloff/source/forms/elementexport.hxx
index 3cdcc880e2fa..5c350ec86676 100644
--- a/xmloff/source/forms/elementexport.hxx
+++ b/xmloff/source/forms/elementexport.hxx
@@ -32,7 +32,6 @@
 #include "controlelement.hxx"
 #include "valueproperties.hxx"
 
-class SvXMLElementExport;
 namespace xmloff
 {
 
diff --git a/xmloff/source/forms/layerimport.hxx 
b/xmloff/source/forms/layerimport.hxx
index 9cf17f00bb85..2990c474f293 100644
--- a/xmloff/source/forms/layerimport.hxx
+++ b/xmloff/source/forms/layerimport.hxx
@@ -41,9 +41,6 @@ class SvXMLStylesContext;
 
 namespace xmloff
 {
-
-    class OAttribute2Property;
-
     //= OFormLayerXMLImport_Impl
     class OFormLayerXMLImport_Impl
                 : public ODefaultEventAttacherManager
diff --git a/xmloff/source/forms/propertyimport.hxx 
b/xmloff/source/forms/propertyimport.hxx
index 07add577922d..9c2de5d45008 100644
--- a/xmloff/source/forms/propertyimport.hxx
+++ b/xmloff/source/forms/propertyimport.hxx
@@ -29,11 +29,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 #include "layerimport.hxx"
 
-namespace com::sun::star::util {
-    struct Time;
-    struct Date;
-}
-
 namespace xmloff
 {
 
diff --git a/xmloff/source/style/XMLFootnoteSeparatorImport.hxx 
b/xmloff/source/style/XMLFootnoteSeparatorImport.hxx
index da1449556346..a6a303ec87c3 100644
--- a/xmloff/source/style/XMLFootnoteSeparatorImport.hxx
+++ b/xmloff/source/style/XMLFootnoteSeparatorImport.hxx
@@ -27,10 +27,6 @@
 class SvXMLImport;
 struct XMLPropertyState;
 class XMLPropertySetMapper;
-namespace com::sun::star {
-    namespace uno { template<class X> class Reference; }
-    namespace xml::sax { class XAttributeList; }
-}
 
 
 /**
diff --git a/xmloff/source/text/XMLAutoMarkFileContext.hxx 
b/xmloff/source/text/XMLAutoMarkFileContext.hxx
index cf74dd596a5d..cfca7b65b258 100644
--- a/xmloff/source/text/XMLAutoMarkFileContext.hxx
+++ b/xmloff/source/text/XMLAutoMarkFileContext.hxx
@@ -22,13 +22,6 @@
 #include <xmloff/xmlictxt.hxx>
 
 
-namespace com::sun::star {
-    namespace uno { template<class X> class Reference; }
-    namespace beans { class XPropertySet; }
-    namespace xml::sax { class XAttributeList; }
-}
-
-
 class XMLAutoMarkFileContext : public SvXMLImportContext
 {
 public:
diff --git a/xmloff/source/text/XMLAutoTextContainerEventImport.hxx 
b/xmloff/source/text/XMLAutoTextContainerEventImport.hxx
index 2640f27edffa..ed23fc260a1c 100644
--- a/xmloff/source/text/XMLAutoTextContainerEventImport.hxx
+++ b/xmloff/source/text/XMLAutoTextContainerEventImport.hxx
@@ -25,7 +25,6 @@
 
 namespace com::sun::star {
     namespace container { class XNameReplace; }
-    namespace xml::sax { class XAttributeList; }
 }
 
 
diff --git a/xmloff/source/text/XMLAutoTextEventExport.hxx 
b/xmloff/source/text/XMLAutoTextEventExport.hxx
index 27e6de771c4e..c8c7761f8c11 100644
--- a/xmloff/source/text/XMLAutoTextEventExport.hxx
+++ b/xmloff/source/text/XMLAutoTextEventExport.hxx
@@ -24,13 +24,6 @@
 
 namespace com::sun::star {
     namespace container { class XNameAccess; }
-    namespace frame { class XModel; }
-    namespace lang { class XMultiServiceFactory; }
-    namespace uno { template<class X> class Reference; }
-    namespace uno { template<class X> class Sequence; }
-    namespace uno { class XInterface; }
-    namespace uno { class Exception; }
-    namespace xml::sax { class XDocumentHandler; }
 }
 
 
diff --git a/xmloff/source/text/XMLAutoTextEventImport.hxx 
b/xmloff/source/text/XMLAutoTextEventImport.hxx
index b79b231c5308..dfe3a1c0983a 100644
--- a/xmloff/source/text/XMLAutoTextEventImport.hxx
+++ b/xmloff/source/text/XMLAutoTextEventImport.hxx
@@ -24,17 +24,6 @@
 #include <com/sun/star/uno/Reference.hxx>
 
 
-namespace com::sun::star {
-    namespace frame { class XModel; }
-    namespace text { class XAutoTextContainer; }
-    namespace text { class XAutoTextGroup; }
-    namespace text { class XAutoTextEntry; }
-    namespace uno { template<class X> class Reference; }
-    namespace uno { template<class X> class Sequence; }
-    namespace xml::sax { class XDocumentHandler; }
-}
-
-
 class XMLAutoTextEventImport : public SvXMLImport
 {
     css::uno::Reference<css::container::XNameReplace> xEvents;
diff --git a/xmloff/source/text/XMLChangeElementImportContext.hxx 
b/xmloff/source/text/XMLChangeElementImportContext.hxx
index 7cd7c85975c6..ed276109e727 100644
--- a/xmloff/source/text/XMLChangeElementImportContext.hxx
+++ b/xmloff/source/text/XMLChangeElementImportContext.hxx
@@ -24,11 +24,6 @@
 #include <com/sun/star/uno/Reference.h>
 
 
-namespace com::sun::star {
-    namespace xml::sax {
-        class XAttributeList;
-    }
-}
 class XMLChangedRegionImportContext;
 
 
diff --git a/xmloff/source/text/XMLChangeImportContext.hxx 
b/xmloff/source/text/XMLChangeImportContext.hxx
index c2e128c55274..89854df03a4e 100644
--- a/xmloff/source/text/XMLChangeImportContext.hxx
+++ b/xmloff/source/text/XMLChangeImportContext.hxx
@@ -24,13 +24,6 @@
 #include <com/sun/star/uno/Reference.h>
 
 
-namespace com::sun::star {
-    namespace xml::sax {
-        class XAttributeList;
-    }
-}
-
-
 /**
  * import change tracking/redlining markers
  * <text:change>, <text:change-start>, <text:change-end>
diff --git a/xmloff/source/text/XMLChangeInfoContext.hxx 
b/xmloff/source/text/XMLChangeInfoContext.hxx
index 994e285d0463..2a3350d59014 100644
--- a/xmloff/source/text/XMLChangeInfoContext.hxx
+++ b/xmloff/source/text/XMLChangeInfoContext.hxx
@@ -25,9 +25,6 @@
 #include <rtl/ustring.hxx>
 #include <rtl/ustrbuf.hxx>
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
 class XMLChangedRegionImportContext;
 
 
diff --git a/xmloff/source/text/XMLChangedRegionImportContext.hxx 
b/xmloff/source/text/XMLChangedRegionImportContext.hxx
index e05e97c93227..6a4c924c095f 100644
--- a/xmloff/source/text/XMLChangedRegionImportContext.hxx
+++ b/xmloff/source/text/XMLChangedRegionImportContext.hxx
@@ -28,9 +28,6 @@ namespace com::sun::star {
     namespace text {
         class XTextCursor;
     }
-    namespace xml::sax {
-        class XAttributeList;
-    }
 }
 
 /**
diff --git a/xmloff/source/text/XMLFootnoteBodyImportContext.hxx 
b/xmloff/source/text/XMLFootnoteBodyImportContext.hxx
index d52557797eae..e9d07812a4af 100644
--- a/xmloff/source/text/XMLFootnoteBodyImportContext.hxx
+++ b/xmloff/source/text/XMLFootnoteBodyImportContext.hxx
@@ -23,13 +23,6 @@
 #include <com/sun/star/uno/Reference.h>
 
 
-namespace com::sun::star {
-    namespace xml::sax {
-        class XAttributeList;
-    }
-}
-
-
 /// import foot- and endnote body elements (<text:footnote-body>)
 class XMLFootnoteBodyImportContext : public SvXMLImportContext
 {
diff --git a/xmloff/source/text/XMLFootnoteImportContext.hxx 
b/xmloff/source/text/XMLFootnoteImportContext.hxx
index 8321639bbd1a..918030df627a 100644
--- a/xmloff/source/text/XMLFootnoteImportContext.hxx
+++ b/xmloff/source/text/XMLFootnoteImportContext.hxx
@@ -28,9 +28,6 @@ namespace com::sun::star {
         class XTextCursor;
         class XFootnote;
     }
-    namespace xml::sax {
-        class XAttributeList;
-    }
 }
 class XMLTextImportHelper;
 
diff --git a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.hxx 
b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.hxx
index 45fcea4ba0b4..13b7344b556f 100644
--- a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.hxx
+++ b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.hxx
@@ -25,7 +25,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexBibliographyEntryContext.hxx 
b/xmloff/source/text/XMLIndexBibliographyEntryContext.hxx
index 4c586a5a85e7..1beeb01eaaad 100644
--- a/xmloff/source/text/XMLIndexBibliographyEntryContext.hxx
+++ b/xmloff/source/text/XMLIndexBibliographyEntryContext.hxx
@@ -25,9 +25,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
 class XMLIndexTemplateContext;
 template<typename EnumT> struct SvXMLEnumMapEntry;
 
diff --git a/xmloff/source/text/XMLIndexBibliographySourceContext.hxx 
b/xmloff/source/text/XMLIndexBibliographySourceContext.hxx
index 497c33d1cf91..dfb8c773acea 100644
--- a/xmloff/source/text/XMLIndexBibliographySourceContext.hxx
+++ b/xmloff/source/text/XMLIndexBibliographySourceContext.hxx
@@ -24,7 +24,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexBodyContext.hxx 
b/xmloff/source/text/XMLIndexBodyContext.hxx
index 5962bacf3424..d0a30e66088d 100644
--- a/xmloff/source/text/XMLIndexBodyContext.hxx
+++ b/xmloff/source/text/XMLIndexBodyContext.hxx
@@ -23,11 +23,6 @@
 #include <com/sun/star/uno/Reference.h>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-    namespace beans { class XPropertySet; }
-}
-
 /**
  * Import index body.
  *
diff --git a/xmloff/source/text/XMLIndexChapterInfoEntryContext.hxx 
b/xmloff/source/text/XMLIndexChapterInfoEntryContext.hxx
index f1cc400e5e4a..0a99361bba26 100644
--- a/xmloff/source/text/XMLIndexChapterInfoEntryContext.hxx
+++ b/xmloff/source/text/XMLIndexChapterInfoEntryContext.hxx
@@ -25,9 +25,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
 class XMLIndexTemplateContext;
 
 /**
diff --git a/xmloff/source/text/XMLIndexIllustrationSourceContext.hxx 
b/xmloff/source/text/XMLIndexIllustrationSourceContext.hxx
index b482c63fff9b..cfa6cfed0c93 100644
--- a/xmloff/source/text/XMLIndexIllustrationSourceContext.hxx
+++ b/xmloff/source/text/XMLIndexIllustrationSourceContext.hxx
@@ -24,7 +24,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexObjectSourceContext.hxx 
b/xmloff/source/text/XMLIndexObjectSourceContext.hxx
index 6240a5c28a4d..faaae4fe80eb 100644
--- a/xmloff/source/text/XMLIndexObjectSourceContext.hxx
+++ b/xmloff/source/text/XMLIndexObjectSourceContext.hxx
@@ -24,7 +24,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexSimpleEntryContext.hxx 
b/xmloff/source/text/XMLIndexSimpleEntryContext.hxx
index 684245184ed2..4b05ac64c2ab 100644
--- a/xmloff/source/text/XMLIndexSimpleEntryContext.hxx
+++ b/xmloff/source/text/XMLIndexSimpleEntryContext.hxx
@@ -25,9 +25,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
 class XMLIndexTemplateContext;
 
 /**
diff --git a/xmloff/source/text/XMLIndexSourceBaseContext.hxx 
b/xmloff/source/text/XMLIndexSourceBaseContext.hxx
index b927954e5f83..2422820c2c86 100644
--- a/xmloff/source/text/XMLIndexSourceBaseContext.hxx
+++ b/xmloff/source/text/XMLIndexSourceBaseContext.hxx
@@ -26,7 +26,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexSpanEntryContext.hxx 
b/xmloff/source/text/XMLIndexSpanEntryContext.hxx
index 8b4711c1f84c..4aad35a91334 100644
--- a/xmloff/source/text/XMLIndexSpanEntryContext.hxx
+++ b/xmloff/source/text/XMLIndexSpanEntryContext.hxx
@@ -24,10 +24,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 #include <rtl/ustrbuf.hxx>
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
-
 /**
  * Import index entry templates
  */
diff --git a/xmloff/source/text/XMLIndexTOCContext.hxx 
b/xmloff/source/text/XMLIndexTOCContext.hxx
index 47cd8ad2c22a..b7e3cf498386 100644
--- a/xmloff/source/text/XMLIndexTOCContext.hxx
+++ b/xmloff/source/text/XMLIndexTOCContext.hxx
@@ -24,7 +24,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexTOCSourceContext.hxx 
b/xmloff/source/text/XMLIndexTOCSourceContext.hxx
index f8129fc149d9..fbe8f3ae726b 100644
--- a/xmloff/source/text/XMLIndexTOCSourceContext.hxx
+++ b/xmloff/source/text/XMLIndexTOCSourceContext.hxx
@@ -24,7 +24,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexTOCStylesContext.hxx 
b/xmloff/source/text/XMLIndexTOCStylesContext.hxx
index a34cf604f118..7d9864dbcc95 100644
--- a/xmloff/source/text/XMLIndexTOCStylesContext.hxx
+++ b/xmloff/source/text/XMLIndexTOCStylesContext.hxx
@@ -25,7 +25,6 @@
 #include <vector>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexTabStopEntryContext.hxx 
b/xmloff/source/text/XMLIndexTabStopEntryContext.hxx
index 5c208f638531..40bf44c96c04 100644
--- a/xmloff/source/text/XMLIndexTabStopEntryContext.hxx
+++ b/xmloff/source/text/XMLIndexTabStopEntryContext.hxx
@@ -26,9 +26,6 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
 class XMLIndexTemplateContext;
 
 /**
diff --git a/xmloff/source/text/XMLIndexTableSourceContext.hxx 
b/xmloff/source/text/XMLIndexTableSourceContext.hxx
index 1a0a7b0bfb77..3851719217a6 100644
--- a/xmloff/source/text/XMLIndexTableSourceContext.hxx
+++ b/xmloff/source/text/XMLIndexTableSourceContext.hxx
@@ -24,7 +24,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLIndexTemplateContext.hxx 
b/xmloff/source/text/XMLIndexTemplateContext.hxx
index 2dd7c0b7517a..7872443e63fb 100644
--- a/xmloff/source/text/XMLIndexTemplateContext.hxx
+++ b/xmloff/source/text/XMLIndexTemplateContext.hxx
@@ -29,7 +29,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 template<typename EnumT> struct SvXMLEnumMapEntry;
diff --git a/xmloff/source/text/XMLIndexTitleTemplateContext.hxx 
b/xmloff/source/text/XMLIndexTitleTemplateContext.hxx
index 2de1954997bc..7f4f4b43fe28 100644
--- a/xmloff/source/text/XMLIndexTitleTemplateContext.hxx
+++ b/xmloff/source/text/XMLIndexTitleTemplateContext.hxx
@@ -27,7 +27,6 @@
 
 namespace com::sun::star {
     namespace beans { class XPropertySet; }
-    namespace xml::sax { class XAttributeList; }
 }
 
 
diff --git a/xmloff/source/text/XMLIndexUserSourceContext.hxx 
b/xmloff/source/text/XMLIndexUserSourceContext.hxx
index c275f8a053c8..1a89c4dce101 100644
--- a/xmloff/source/text/XMLIndexUserSourceContext.hxx
+++ b/xmloff/source/text/XMLIndexUserSourceContext.hxx
@@ -24,7 +24,6 @@
 
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
 }
 
diff --git a/xmloff/source/text/XMLLineNumberingSeparatorImportContext.hxx 
b/xmloff/source/text/XMLLineNumberingSeparatorImportContext.hxx
index 110aae6dc988..08917ce76dbf 100644
--- a/xmloff/source/text/XMLLineNumberingSeparatorImportContext.hxx
+++ b/xmloff/source/text/XMLLineNumberingSeparatorImportContext.hxx
@@ -25,9 +25,6 @@
 #include <com/sun/star/uno/Reference.h>
 
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-}
 class XMLLineNumberingImportContext;
 
 
diff --git a/xmloff/source/text/XMLSectionFootnoteConfigImport.hxx 
b/xmloff/source/text/XMLSectionFootnoteConfigImport.hxx
index 7a25690334ef..b09600cb3525 100644
--- a/xmloff/source/text/XMLSectionFootnoteConfigImport.hxx
+++ b/xmloff/source/text/XMLSectionFootnoteConfigImport.hxx
@@ -28,10 +28,6 @@
 class SvXMLImport;
 struct XMLPropertyState;
 class XMLPropertySetMapper;
-namespace com::sun::star {
-    namespace uno { template<class X> class Reference; }
-    namespace xml::sax { class XAttributeList; }
-}
 
 
 /**
diff --git a/xmloff/source/text/XMLSectionImportContext.hxx 
b/xmloff/source/text/XMLSectionImportContext.hxx
index 83f40d05eb92..4ea0cf2efb50 100644
--- a/xmloff/source/text/XMLSectionImportContext.hxx
+++ b/xmloff/source/text/XMLSectionImportContext.hxx
@@ -24,9 +24,7 @@
 #include <com/sun/star/uno/Sequence.h>
 
 namespace com::sun::star {
-    namespace text { class XTextRange;  }
     namespace beans { class XPropertySet; }
-    namespace xml::sax { class XAttributeList; }
 }
 
 
diff --git a/xmloff/source/text/XMLSectionSourceDDEImportContext.hxx 
b/xmloff/source/text/XMLSectionSourceDDEImportContext.hxx
index 31726f0982ff..6c34019a2759 100644
--- a/xmloff/source/text/XMLSectionSourceDDEImportContext.hxx
+++ b/xmloff/source/text/XMLSectionSourceDDEImportContext.hxx
@@ -24,7 +24,6 @@
 
 namespace com::sun::star {
     namespace beans { class XPropertySet; }
-    namespace xml::sax { class XAttributeList; }
 }
 
 class XMLSectionSourceDDEImportContext : public SvXMLImportContext
diff --git a/xmloff/source/text/XMLSectionSourceImportContext.hxx 
b/xmloff/source/text/XMLSectionSourceImportContext.hxx
index f47dddcbb7f9..279c50a8aac5 100644
--- a/xmloff/source/text/XMLSectionSourceImportContext.hxx
+++ b/xmloff/source/text/XMLSectionSourceImportContext.hxx
@@ -24,7 +24,6 @@
 
 namespace com::sun::star {
     namespace beans { class XPropertySet; }
-    namespace xml::sax { class XAttributeList; }
 }
 
 class XMLSectionSourceImportContext final : public SvXMLImportContext
diff --git a/xmloff/source/text/XMLTextFrameHyperlinkContext.hxx 
b/xmloff/source/text/XMLTextFrameHyperlinkContext.hxx
index a76081632a9f..eedd09c0fb2f 100644
--- a/xmloff/source/text/XMLTextFrameHyperlinkContext.hxx
+++ b/xmloff/source/text/XMLTextFrameHyperlinkContext.hxx
@@ -24,11 +24,6 @@
 #include <com/sun/star/text/TextContentAnchorType.hpp>
 #include <xmloff/xmlictxt.hxx>
 
-namespace com::sun::star {
-    namespace text { class XTextCursor; class XTextFrame; }
-    namespace beans { class XPropertySet; }
-}
-
 /// Used for hyperlinks attached to objects (drawing objects, text boxes, 
Writer frames)
 class XMLTextFrameHyperlinkContext : public SvXMLImportContext
 {
diff --git a/xmloff/source/text/XMLTextMarkImportContext.hxx 
b/xmloff/source/text/XMLTextMarkImportContext.hxx
index da05f524083e..41b4594fe06a 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.hxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.hxx
@@ -29,9 +29,6 @@ namespace com::sun::star {
         class XTextRange;
         class XTextContent;
     }
-    namespace xml::sax {
-        class XAttributeList;
-    }
 }
 class XMLTextImportHelper;
 
diff --git a/xmloff/source/text/XMLTrackedChangesImportContext.hxx 
b/xmloff/source/text/XMLTrackedChangesImportContext.hxx
index 6ae3c4a55288..369bec65ba84 100644
--- a/xmloff/source/text/XMLTrackedChangesImportContext.hxx
+++ b/xmloff/source/text/XMLTrackedChangesImportContext.hxx
@@ -23,12 +23,6 @@
 #include <xmloff/xmlictxt.hxx>
 #include <com/sun/star/uno/Reference.h>
 
-namespace com::sun::star {
-    namespace xml::sax {
-        class XAttributeList;
-    }
-}
-
 class XMLTrackedChangesImportContext : public SvXMLImportContext
 {
 public:
diff --git a/xmloff/source/transform/TransformerBase.hxx 
b/xmloff/source/transform/TransformerBase.hxx
index a5e6261883f8..ad32b9a6ffc1 100644
--- a/xmloff/source/transform/TransformerBase.hxx
+++ b/xmloff/source/transform/TransformerBase.hxx
@@ -44,11 +44,8 @@ namespace com::sun::star {
     namespace i18n { class XCharacterClassification; }
 }
 
-class SvXMLNamespaceMap;
 class XMLTransformerContext;
-class XMLTransformerActions;
 struct XMLTransformerActionInit;
-struct TransformerAction_Impl;
 class XMLMutableAttributeList;
 
 const sal_uInt16 INVALID_ACTIONS = 0xffff;
diff --git a/xmloff/source/transform/TransformerContext.hxx 
b/xmloff/source/transform/TransformerContext.hxx
index d9c1d76aac78..186e4ce4e1e3 100644
--- a/xmloff/source/transform/TransformerContext.hxx
+++ b/xmloff/source/transform/TransformerContext.hxx
@@ -27,7 +27,6 @@
 #include <xmloff/xmltoken.hxx>
 #include <memory>
 
-class SvXMLNamespaceMap;
 class XMLTransformerBase;
 
 class XMLTransformerContext : public ::salhelper::SimpleReferenceObject
diff --git a/xmloff/source/xforms/SchemaContext.hxx 
b/xmloff/source/xforms/SchemaContext.hxx
index e6896e760cc1..25ad00a4ab0d 100644
--- a/xmloff/source/xforms/SchemaContext.hxx
+++ b/xmloff/source/xforms/SchemaContext.hxx
@@ -23,13 +23,10 @@
 #include <com/sun/star/uno/Reference.hxx>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-    namespace beans { class XPropertySet; }
     namespace xforms { class XDataTypeRepository; }
 }
 
 class SvXMLImport;
-class SvXMLImportContext;
 
 /** import the data type declarations from an xsd:schema element */
 class SchemaContext : public TokenContext
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.hxx 
b/xmloff/source/xforms/SchemaRestrictionContext.hxx
index 66a5eb5250fa..6020017b45f8 100644
--- a/xmloff/source/xforms/SchemaRestrictionContext.hxx
+++ b/xmloff/source/xforms/SchemaRestrictionContext.hxx
@@ -23,13 +23,11 @@
 #include <com/sun/star/uno/Reference.hxx>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
     namespace xforms { class XDataTypeRepository; }
 }
 
 class SvXMLImport;
-class SvXMLImportContext;
 
 /** import the xsd:restriction element */
 class SchemaRestrictionContext : public TokenContext
diff --git a/xmloff/source/xforms/SchemaSimpleTypeContext.hxx 
b/xmloff/source/xforms/SchemaSimpleTypeContext.hxx
index 3489e2a6c7a6..da5130175f70 100644
--- a/xmloff/source/xforms/SchemaSimpleTypeContext.hxx
+++ b/xmloff/source/xforms/SchemaSimpleTypeContext.hxx
@@ -23,13 +23,10 @@
 #include <com/sun/star/uno/Reference.hxx>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-    namespace beans { class XPropertySet; }
     namespace xforms { class XDataTypeRepository; }
 }
 
 class SvXMLImport;
-class SvXMLImportContext;
 
 /** import the xsd:simpleType element */
 class SchemaSimpleTypeContext : public TokenContext
diff --git a/xmloff/source/xforms/XFormsBindContext.hxx 
b/xmloff/source/xforms/XFormsBindContext.hxx
index 5aa78467401d..a0c8d2ae21f4 100644
--- a/xmloff/source/xforms/XFormsBindContext.hxx
+++ b/xmloff/source/xforms/XFormsBindContext.hxx
@@ -23,13 +23,11 @@
 #include <com/sun/star/uno/Reference.hxx>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
     namespace xforms { class XModel2; }
 }
 
 class SvXMLImport;
-class SvXMLImportContext;
 
 /** import the xforms:binding element */
 class XFormsBindContext : public TokenContext
diff --git a/xmloff/source/xforms/XFormsInstanceContext.hxx 
b/xmloff/source/xforms/XFormsInstanceContext.hxx
index 7583c2da3bcd..6f2a73e17d52 100644
--- a/xmloff/source/xforms/XFormsInstanceContext.hxx
+++ b/xmloff/source/xforms/XFormsInstanceContext.hxx
@@ -23,14 +23,11 @@
 #include <com/sun/star/uno/Reference.hxx>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace xml::dom { class XDocument; }
-    namespace beans { class XPropertySet; }
     namespace xforms { class XModel2; }
 }
 
 class SvXMLImport;
-class SvXMLImportContext;
 
 /** import the xforms:instance element */
 class XFormsInstanceContext : public TokenContext
diff --git a/xmloff/source/xforms/XFormsModelContext.hxx 
b/xmloff/source/xforms/XFormsModelContext.hxx
index 0579850dfca6..68af716fd149 100644
--- a/xmloff/source/xforms/XFormsModelContext.hxx
+++ b/xmloff/source/xforms/XFormsModelContext.hxx
@@ -23,13 +23,7 @@
 #include <com/sun/star/uno/Reference.hxx>
 #include <com/sun/star/xforms/XModel2.hpp>
 
-namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
-    namespace beans { class XPropertySet; }
-}
-
 class SvXMLImport;
-class SvXMLImportContext;
 
 /** import the xforms:model element */
 class XFormsModelContext : public TokenContext
diff --git a/xmloff/source/xforms/XFormsSubmissionContext.hxx 
b/xmloff/source/xforms/XFormsSubmissionContext.hxx
index b000db0eb993..a517aff3bf07 100644
--- a/xmloff/source/xforms/XFormsSubmissionContext.hxx
+++ b/xmloff/source/xforms/XFormsSubmissionContext.hxx
@@ -23,13 +23,11 @@
 #include <com/sun/star/uno/Reference.hxx>
 
 namespace com::sun::star {
-    namespace xml::sax { class XAttributeList; }
     namespace beans { class XPropertySet; }
     namespace xforms { class XModel2; }
 }
 
 class SvXMLImport;
-class SvXMLImportContext;
 
 /** import the xforms:submission element */
 class XFormsSubmissionContext : public TokenContext

Reply via email to