UnoControls/inc/basecontrol.hxx                            |    4 ----
 UnoControls/source/inc/OConnectionPointContainerHelper.hxx |    2 --
 UnoControls/source/inc/progressmonitor.hxx                 |    1 -
 UnoControls/source/inc/statusindicator.hxx                 |    4 ----
 toolkit/inc/awt/animatedimagespeer.hxx                     |    1 -
 toolkit/inc/awt/vclxgraphics.hxx                           |    1 -
 toolkit/inc/awt/vclxtopwindow.hxx                          |    2 --
 toolkit/inc/controls/dialogcontrol.hxx                     |    2 --
 toolkit/inc/controls/table/AccessibleGridControlBase.hxx   |    3 ---
 toolkit/inc/controls/table/defaultinputhandler.hxx         |    1 -
 toolkit/inc/controls/tabpagecontainer.hxx                  |    2 --
 toolkit/inc/controls/treecontrolpeer.hxx                   |    1 -
 toolkit/source/controls/table/tabledatawindow.hxx          |    1 -
 ucb/source/ucp/cmis/cmis_datasupplier.hxx                  |    2 --
 ucb/source/ucp/ext/ucpext_datasupplier.hxx                 |    3 ---
 ucb/source/ucp/ext/ucpext_resultset.hxx                    |    3 ---
 ucb/source/ucp/file/filid.hxx                              |    2 --
 ucb/source/ucp/file/filinpstr.hxx                          |    2 --
 ucb/source/ucp/file/filstr.hxx                             |    3 ---
 ucb/source/ucp/file/filtask.hxx                            |    3 ---
 ucb/source/ucp/file/prov.hxx                               |    1 -
 ucb/source/ucp/hierarchy/hierarchycontent.hxx              |    2 --
 ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx         |    1 -
 ucb/source/ucp/tdoc/tdoc_datasupplier.hxx                  |    1 -
 ucb/source/ucp/tdoc/tdoc_provider.hxx                      |    2 --
 ucb/source/ucp/tdoc/tdoc_resultset.hxx                     |    2 --
 ucb/source/ucp/webdav-curl/DAVResourceAccess.hxx           |    2 --
 ucb/source/ucp/webdav-curl/DAVSession.hxx                  |    2 --
 ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx           |    5 -----
 ucb/source/ucp/webdav-curl/DateTimeHelper.hxx              |    4 ----
 ucb/source/ucp/webdav-curl/webdavdatasupplier.hxx          |    2 --
 ucb/source/ucp/webdav-curl/webdavprovider.hxx              |    4 ----
 unotools/source/ucbhelper/XTempFile.hxx                    |    1 -
 unoxml/source/dom/attributesmap.hxx                        |    2 --
 unoxml/source/dom/childlist.hxx                            |    2 --
 unoxml/source/dom/entitiesmap.hxx                          |    2 --
 unoxml/source/dom/notationsmap.hxx                         |    2 --
 unoxml/source/xpath/nodelist.hxx                           |    4 ----
 unoxml/source/xpath/xpathobject.hxx                        |    4 ----
 uui/source/iahndl.hxx                                      |    3 ---
 uui/source/openlocked.hxx                                  |    5 -----
 41 files changed, 96 deletions(-)

New commits:
commit 681b1e5db9ea1c75ec2a16f88ab3ee4c4ae5057b
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Thu Apr 10 15:58:38 2025 +0200
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Tue May 20 08:10:27 2025 +0200

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

diff --git a/UnoControls/inc/basecontrol.hxx b/UnoControls/inc/basecontrol.hxx
index 90cdf51f7c7a..5e4581c818ca 100644
--- a/UnoControls/inc/basecontrol.hxx
+++ b/UnoControls/inc/basecontrol.hxx
@@ -30,10 +30,6 @@
 #include <rtl/ref.hxx>
 
 namespace com::sun::star::uno { class XComponentContext; }
-namespace com::sun::star::awt { class XFocusListener; }
-namespace com::sun::star::awt { class XMouseListener; }
-namespace com::sun::star::awt { class XMouseMotionListener; }
-namespace com::sun::star::awt { struct PaintEvent; }
 namespace com::sun::star::awt { struct WindowEvent; }
 namespace unocontrols { class OMRCListenerMultiplexerHelper; }
 
diff --git a/UnoControls/source/inc/OConnectionPointContainerHelper.hxx 
b/UnoControls/source/inc/OConnectionPointContainerHelper.hxx
index c1e46b457f79..c21f3c5a9e27 100644
--- a/UnoControls/source/inc/OConnectionPointContainerHelper.hxx
+++ b/UnoControls/source/inc/OConnectionPointContainerHelper.hxx
@@ -23,8 +23,6 @@
 #include <cppuhelper/weak.hxx>
 #include <comphelper/multicontainer2.hxx>
 
-namespace com::sun::star::lang { class XConnectionPoint; }
-
 namespace unocontrols {
 
 class OConnectionPointContainerHelper final :   public  
css::lang::XConnectionPointContainer
diff --git a/UnoControls/source/inc/progressmonitor.hxx 
b/UnoControls/source/inc/progressmonitor.hxx
index cd7786a2d69b..b00f0a318ff1 100644
--- a/UnoControls/source/inc/progressmonitor.hxx
+++ b/UnoControls/source/inc/progressmonitor.hxx
@@ -29,7 +29,6 @@
 #include <basecontainercontrol.hxx>
 
 namespace com::sun::star::awt { class XFixedText; }
-namespace com::sun::star::awt { class XControlModel; }
 
 namespace unocontrols {
 
diff --git a/UnoControls/source/inc/statusindicator.hxx 
b/UnoControls/source/inc/statusindicator.hxx
index 8d3f024d03cf..144a892ad862 100644
--- a/UnoControls/source/inc/statusindicator.hxx
+++ b/UnoControls/source/inc/statusindicator.hxx
@@ -25,11 +25,7 @@
 #include <tools/color.hxx>
 #include <basecontainercontrol.hxx>
 
-namespace com::sun::star::awt { class XControlModel; }
 namespace com::sun::star::awt { class XFixedText; }
-namespace com::sun::star::awt { class XGraphics; }
-namespace com::sun::star::awt { class XToolkit; }
-namespace com::sun::star::awt { class XWindowPeer; }
 
 namespace unocontrols {
 
diff --git a/unotools/source/ucbhelper/XTempFile.hxx 
b/unotools/source/ucbhelper/XTempFile.hxx
index 456dd7da186e..1ad65c009938 100644
--- a/unotools/source/ucbhelper/XTempFile.hxx
+++ b/unotools/source/ucbhelper/XTempFile.hxx
@@ -34,7 +34,6 @@
 namespace com::sun::star::uno { class XComponentContext; }
 
 class SvStream;
-namespace utl { class TempFile; }
 
 
 typedef ::cppu::WeakImplHelper< css::io::XTempFile
diff --git a/unoxml/source/dom/attributesmap.hxx 
b/unoxml/source/dom/attributesmap.hxx
index 994cd72b0a1e..02cab9f23581 100644
--- a/unoxml/source/dom/attributesmap.hxx
+++ b/unoxml/source/dom/attributesmap.hxx
@@ -32,8 +32,6 @@
 
 namespace DOM
 {
-    class CElement;
-
     class CAttributesMap
         : public cppu::WeakImplHelper< css::xml::dom::XNamedNodeMap >
     {
diff --git a/unoxml/source/dom/childlist.hxx b/unoxml/source/dom/childlist.hxx
index 89fd0ea9bbda..93fcc238b188 100644
--- a/unoxml/source/dom/childlist.hxx
+++ b/unoxml/source/dom/childlist.hxx
@@ -32,8 +32,6 @@
 
 namespace DOM
 {
-    class CNode;
-
     class CChildList
         : public cppu::WeakImplHelper< css::xml::dom::XNodeList >
     {
diff --git a/unoxml/source/dom/entitiesmap.hxx 
b/unoxml/source/dom/entitiesmap.hxx
index 7349851ddb46..9fe4d04effb0 100644
--- a/unoxml/source/dom/entitiesmap.hxx
+++ b/unoxml/source/dom/entitiesmap.hxx
@@ -29,8 +29,6 @@
 
 namespace DOM
 {
-    class CDocumentType;
-
     class CEntitiesMap
         : public cppu::WeakImplHelper< css::xml::dom::XNamedNodeMap >
     {
diff --git a/unoxml/source/dom/notationsmap.hxx 
b/unoxml/source/dom/notationsmap.hxx
index 9dac7d968ce6..a2d0e305f54c 100644
--- a/unoxml/source/dom/notationsmap.hxx
+++ b/unoxml/source/dom/notationsmap.hxx
@@ -29,8 +29,6 @@
 
 namespace DOM
 {
-    class CDocumentType;
-
     class CNotationsMap
         : public cppu::WeakImplHelper< css::xml::dom::XNamedNodeMap >
     {
diff --git a/unoxml/source/xpath/nodelist.hxx b/unoxml/source/xpath/nodelist.hxx
index 2a8f70a6d82f..a1cf92d20e08 100644
--- a/unoxml/source/xpath/nodelist.hxx
+++ b/unoxml/source/xpath/nodelist.hxx
@@ -34,10 +34,6 @@
 
 #include <memory>
 
-namespace DOM {
-    class CDocument;
-}
-
 namespace XPath
 {
 
diff --git a/unoxml/source/xpath/xpathobject.hxx 
b/unoxml/source/xpath/xpathobject.hxx
index 76cb5459cfbe..3726161ce105 100644
--- a/unoxml/source/xpath/xpathobject.hxx
+++ b/unoxml/source/xpath/xpathobject.hxx
@@ -34,10 +34,6 @@
 
 #include "../dom/document.hxx"
 
-namespace DOM {
-    class CDocument;
-}
-
 namespace XPath
 {
     class CXPathObject : public cppu::WeakImplHelper< 
css::xml::xpath::XXPathObject >
diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx
index d9a31ec77723..e193b1be04c8 100644
--- a/uui/source/iahndl.hxx
+++ b/uui/source/iahndl.hxx
@@ -41,9 +41,6 @@ namespace com::sun::star {
     namespace embed {
         class XStorage;
     }
-    namespace lang {
-        class XMultiServiceFactory;
-    }
     namespace security {
         struct DocumentSignatureInformation;
     }
diff --git a/uui/source/openlocked.hxx b/uui/source/openlocked.hxx
index bd09f12d704f..58c61098d8c3 100644
--- a/uui/source/openlocked.hxx
+++ b/uui/source/openlocked.hxx
@@ -20,11 +20,6 @@
 
 #include <vcl/weld.hxx>
 
-namespace vcl
-{
-class OpenLockedQueryBox;
-}
-
 namespace vcl
 {
 class OpenLockedQueryBox final : public weld::GenericDialogController
commit 2d2ba477834895dcacff441df35d5a73974c3b45
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Wed Apr 9 16:01:16 2025 +0200
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Tue May 20 08:10:12 2025 +0200

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

diff --git a/ucb/source/ucp/cmis/cmis_datasupplier.hxx 
b/ucb/source/ucp/cmis/cmis_datasupplier.hxx
index fcb1b01cde65..c8e197a345d2 100644
--- a/ucb/source/ucp/cmis/cmis_datasupplier.hxx
+++ b/ucb/source/ucp/cmis/cmis_datasupplier.hxx
@@ -18,8 +18,6 @@
 namespace cmis
 {
 
-    class Content;
-
     struct ResultListEntry
     {
         css::uno::Reference< css::ucb::XContent > xContent;
diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.hxx 
b/ucb/source/ucp/ext/ucpext_datasupplier.hxx
index 806c55549550..1e5af1844919 100644
--- a/ucb/source/ucp/ext/ucpext_datasupplier.hxx
+++ b/ucb/source/ucp/ext/ucpext_datasupplier.hxx
@@ -32,9 +32,6 @@ namespace ucb::ucp::ext
 {
 
 
-    class Content;
-
-
     //= DataSupplier
 
     class DataSupplier : public ::ucbhelper::ResultSetDataSupplier
diff --git a/ucb/source/ucp/ext/ucpext_resultset.hxx 
b/ucb/source/ucp/ext/ucpext_resultset.hxx
index a9dcd60923d1..bea6fb2242b5 100644
--- a/ucb/source/ucp/ext/ucpext_resultset.hxx
+++ b/ucb/source/ucp/ext/ucpext_resultset.hxx
@@ -30,9 +30,6 @@ namespace ucb::ucp::ext
 {
 
 
-    class Content;
-
-
     //= ResultSet
 
     class ResultSet : public ::ucbhelper::ResultSetImplHelper
diff --git a/ucb/source/ucp/file/filid.hxx b/ucb/source/ucp/file/filid.hxx
index dcb5449b0e50..5293157d5e96 100644
--- a/ucb/source/ucp/file/filid.hxx
+++ b/ucb/source/ucp/file/filid.hxx
@@ -24,8 +24,6 @@
 
 namespace fileaccess {
 
-    class TaskManager;
-
     class FileContentIdentifier :
         public cppu::WeakImplHelper<css::ucb::XContentIdentifier>
     {
diff --git a/ucb/source/ucp/file/filinpstr.hxx 
b/ucb/source/ucp/file/filinpstr.hxx
index d43cd2871bd6..fd5c6e59e8f3 100644
--- a/ucb/source/ucp/file/filinpstr.hxx
+++ b/ucb/source/ucp/file/filinpstr.hxx
@@ -29,8 +29,6 @@ enum class TaskHandlerErr;
 
 namespace fileaccess {
 
-    class TaskManager;
-
     class XInputStream_impl final
         : public cppu::WeakImplHelper<css::io::XInputStream, 
css::io::XSeekable>,
           public comphelper::ByteReader
diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx
index 13ada6cdb957..af89928e69b2 100644
--- a/ucb/source/ucp/file/filstr.hxx
+++ b/ucb/source/ucp/file/filstr.hxx
@@ -36,9 +36,6 @@ enum class TaskHandlerErr;
 
 namespace fileaccess {
 
-    // forward:
-    class TaskManager;
-
 class XStream_impl :  public cppu::WeakImplHelper<
     css::io::XStream,
     css::io::XSeekable,
diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx
index f2ad9c0eaa70..f7c4f639bbdf 100644
--- a/ucb/source/ucp/file/filtask.hxx
+++ b/ucb/source/ucp/file/filtask.hxx
@@ -55,9 +55,6 @@ namespace fileaccess
 {
     class BaseContent;
     class FileProvider;
-    class XPropertySetInfo_impl;
-    class XCommandInfo_impl;
-    class XResultSet_impl;
 
     /*
      * The relevant methods in this class all have as first argument the 
CommandId,
diff --git a/ucb/source/ucp/file/prov.hxx b/ucb/source/ucp/file/prov.hxx
index 3d1f9d7f63a0..a4f57f7ba016 100644
--- a/ucb/source/ucp/file/prov.hxx
+++ b/ucb/source/ucp/file/prov.hxx
@@ -38,7 +38,6 @@ namespace fileaccess {
 
     // Forward declaration
 
-    class BaseContent;
     class TaskManager;
     class XPropertySetInfoImpl2;
 
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.hxx 
b/ucb/source/ucp/hierarchy/hierarchycontent.hxx
index c7b0d773ceb9..fa3b04ada959 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontent.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontent.hxx
@@ -90,8 +90,6 @@ private:
 };
 
 
-class HierarchyContentProvider;
-
 class HierarchyContent : public ::ucbhelper::ContentImplHelper,
                          public css::ucb::XContentCreator
 {
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx 
b/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx
index 8d624cb36def..2c2507a0e37b 100644
--- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx
@@ -28,7 +28,6 @@
 
 namespace hierarchy_ucp {
 
-class HierarchyEntryData;
 class HierarchyContent;
 
 class HierarchyResultSetDataSupplier :
diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx 
b/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx
index 8032e53a3a75..aa4d62bb92e1 100644
--- a/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx
@@ -29,7 +29,6 @@
 
 namespace tdoc_ucp {
 
-struct DataSupplier_Impl;
 class Content;
 
 class ResultSetDataSupplier final : public ::ucbhelper::ResultSetDataSupplier
diff --git a/ucb/source/ucp/tdoc/tdoc_provider.hxx 
b/ucb/source/ucp/tdoc/tdoc_provider.hxx
index 8a859ac65a40..c5e6aad87d4b 100644
--- a/ucb/source/ucp/tdoc/tdoc_provider.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_provider.hxx
@@ -56,8 +56,6 @@ inline constexpr OUString TDOC_STREAM_CONTENT_TYPE =
                 u"application/" TDOC_URL_SCHEME "-stream"_ustr;
 
 
-class StorageElementFactory;
-
 typedef cppu::ImplInheritanceHelper<
     ::ucbhelper::ContentProviderImplHelper,
     css::frame::XTransientDocumentsDocumentContentIdentifierFactory,
diff --git a/ucb/source/ucp/tdoc/tdoc_resultset.hxx 
b/ucb/source/ucp/tdoc/tdoc_resultset.hxx
index 5324dda5724c..21b891ea4fe3 100644
--- a/ucb/source/ucp/tdoc/tdoc_resultset.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_resultset.hxx
@@ -25,8 +25,6 @@
 
 namespace tdoc_ucp {
 
-class Content;
-
 class DynamicResultSet : public ::ucbhelper::ResultSetImplHelper
 {
     rtl::Reference< Content > m_xContent;
diff --git a/ucb/source/ucp/webdav-curl/DAVResourceAccess.hxx 
b/ucb/source/ucp/webdav-curl/DAVResourceAccess.hxx
index bf2e50b741c5..86341407f224 100644
--- a/ucb/source/ucp/webdav-curl/DAVResourceAccess.hxx
+++ b/ucb/source/ucp/webdav-curl/DAVResourceAccess.hxx
@@ -40,8 +40,6 @@
 namespace http_dav_ucp
 {
 
-class DAVSessionFactory;
-
 class DAVResourceAccess
 {
     osl::Mutex    m_aMutex;
diff --git a/ucb/source/ucp/webdav-curl/DAVSession.hxx 
b/ucb/source/ucp/webdav-curl/DAVSession.hxx
index 918ee72d60fd..f539c3e38c94 100644
--- a/ucb/source/ucp/webdav-curl/DAVSession.hxx
+++ b/ucb/source/ucp/webdav-curl/DAVSession.hxx
@@ -41,8 +41,6 @@ namespace com::sun::star::ucb {
 namespace http_dav_ucp
 {
 
-class DAVAuthListener;
-
 class DAVSession
 {
 public:
diff --git a/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx 
b/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx
index e8e1b8396538..ebabadbb9787 100644
--- a/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx
+++ b/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx
@@ -37,11 +37,6 @@ namespace com::sun::star::beans
 struct NamedValue;
 }
 
-namespace com::sun::star::lang
-{
-class XMultiServiceFactory;
-}
-
 namespace http_dav_ucp
 {
 class DAVSession;
diff --git a/ucb/source/ucp/webdav-curl/DateTimeHelper.hxx 
b/ucb/source/ucp/webdav-curl/DateTimeHelper.hxx
index 35784412742f..6608744d99f7 100644
--- a/ucb/source/ucp/webdav-curl/DateTimeHelper.hxx
+++ b/ucb/source/ucp/webdav-curl/DateTimeHelper.hxx
@@ -27,10 +27,6 @@ namespace com::sun::star::util {
     struct DateTime;
 }
 
-namespace rtl {
-    class OUString;
-}
-
 namespace http_dav_ucp
 {
 
diff --git a/ucb/source/ucp/webdav-curl/webdavdatasupplier.hxx 
b/ucb/source/ucp/webdav-curl/webdavdatasupplier.hxx
index 5af6bc1e5893..12f5d6959200 100644
--- a/ucb/source/ucp/webdav-curl/webdavdatasupplier.hxx
+++ b/ucb/source/ucp/webdav-curl/webdavdatasupplier.hxx
@@ -29,9 +29,7 @@
 
 namespace http_dav_ucp {
 
-struct DataSupplier_Impl;
 class Content;
-struct DAVResource;
 
 class DataSupplier : public ucbhelper::ResultSetDataSupplier
 {
diff --git a/ucb/source/ucp/webdav-curl/webdavprovider.hxx 
b/ucb/source/ucp/webdav-curl/webdavprovider.hxx
index 138f776eeef2..bffbd6e52347 100644
--- a/ucb/source/ucp/webdav-curl/webdavprovider.hxx
+++ b/ucb/source/ucp/webdav-curl/webdavprovider.hxx
@@ -30,10 +30,6 @@
 #include <ucbhelper/providerhelper.hxx>
 #include "PropertyMap.hxx"
 
-namespace com::sun::star::lang {
-class XSingleServiceFactory;
-}
-
 namespace http_dav_ucp {
 
 
commit c537e7171209c16b4c4b33b1e62e9961ebf35be6
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Wed Apr 9 16:00:57 2025 +0200
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Tue May 20 08:09:58 2025 +0200

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

diff --git a/toolkit/inc/awt/animatedimagespeer.hxx 
b/toolkit/inc/awt/animatedimagespeer.hxx
index 839e249b3ff8..2656ded39293 100644
--- a/toolkit/inc/awt/animatedimagespeer.hxx
+++ b/toolkit/inc/awt/animatedimagespeer.hxx
@@ -35,7 +35,6 @@ namespace toolkit
 
     //= AnimatedImagesPeer
 
-    struct AnimatedImagesPeer_Data;
     typedef cppu::ImplInheritanceHelper< VCLXWindow,
                                          css::awt::XAnimation,
                                          css::container::XContainerListener,
diff --git a/toolkit/inc/awt/vclxgraphics.hxx b/toolkit/inc/awt/vclxgraphics.hxx
index 93db3bc8e31b..8c39fa490543 100644
--- a/toolkit/inc/awt/vclxgraphics.hxx
+++ b/toolkit/inc/awt/vclxgraphics.hxx
@@ -34,7 +34,6 @@
 class OutputDevice;
 class VCLXDevice;
 namespace vcl { class Region; }
-namespace com::sun::star::graphic { class XGraphic; }
 
 
 enum class InitOutDevFlags
diff --git a/toolkit/inc/awt/vclxtopwindow.hxx 
b/toolkit/inc/awt/vclxtopwindow.hxx
index 9e77edcef43b..a4140f188d23 100644
--- a/toolkit/inc/awt/vclxtopwindow.hxx
+++ b/toolkit/inc/awt/vclxtopwindow.hxx
@@ -27,8 +27,6 @@
 
 #include <awt/vclxcontainer.hxx>
 
-namespace com::sun::star::awt { class XMenuBar; }
-
 
 class VCLXTopWindow: public cppu::ImplInheritanceHelper<
                         VCLXContainer, css::awt::XTopWindow3, 
css::awt::XSystemDependentWindowPeer >
diff --git a/toolkit/inc/controls/dialogcontrol.hxx 
b/toolkit/inc/controls/dialogcontrol.hxx
index 3aaf3e50b135..9642d3a8b257 100644
--- a/toolkit/inc/controls/dialogcontrol.hxx
+++ b/toolkit/inc/controls/dialogcontrol.hxx
@@ -25,8 +25,6 @@
 #include <toolkit/helper/macros.hxx>
 #include <cppuhelper/implbase2.hxx>
 
-namespace com::sun::star::awt { class XTopWindowListener; }
-
 typedef ::cppu::AggImplInheritanceHelper2   <   ControlContainerBase
                                             ,   css::awt::XUnoControlDialog
                                             ,   css::awt::XWindowListener
diff --git a/toolkit/inc/controls/table/AccessibleGridControlBase.hxx 
b/toolkit/inc/controls/table/AccessibleGridControlBase.hxx
index f2f7a2785f84..c70bdb2c8bc1 100644
--- a/toolkit/inc/controls/table/AccessibleGridControlBase.hxx
+++ b/toolkit/inc/controls/table/AccessibleGridControlBase.hxx
@@ -38,9 +38,6 @@
 #include <comphelper/uno3.hxx>
 
 
-namespace vcl { class Window; }
-
-
 namespace accessibility {
 
 /** The GridControl accessible objects inherit from this base class. It
diff --git a/toolkit/inc/controls/table/defaultinputhandler.hxx 
b/toolkit/inc/controls/table/defaultinputhandler.hxx
index 40acc4a7a809..d4ecf4335f3e 100644
--- a/toolkit/inc/controls/table/defaultinputhandler.hxx
+++ b/toolkit/inc/controls/table/defaultinputhandler.hxx
@@ -25,7 +25,6 @@
 #include <memory>
 #include <vector>
 
-class KeyEvent;
 class MouseEvent;
 
 namespace svt::table
diff --git a/toolkit/inc/controls/tabpagecontainer.hxx 
b/toolkit/inc/controls/tabpagecontainer.hxx
index f9fe2df02d50..00570114276b 100644
--- a/toolkit/inc/controls/tabpagecontainer.hxx
+++ b/toolkit/inc/controls/tabpagecontainer.hxx
@@ -28,8 +28,6 @@
 #include <toolkit/helper/listenermultiplexer.hxx>
 
 
-namespace com::sun::star::awt::tab { class XTabPage; }
-namespace com::sun::star::awt::tab { class XTabPageContainerListener; }
 namespace com::sun::star::awt::tab { class XTabPageModel; }
 
 
diff --git a/toolkit/inc/controls/treecontrolpeer.hxx 
b/toolkit/inc/controls/treecontrolpeer.hxx
index d5ecf23ae673..547fd047e0ce 100644
--- a/toolkit/inc/controls/treecontrolpeer.hxx
+++ b/toolkit/inc/controls/treecontrolpeer.hxx
@@ -35,7 +35,6 @@
 namespace com::sun::star::awt::tree { class XTreeNode; }
 
 class UnoTreeListEntry;
-class TreeControlPeer;
 class UnoTreeListBoxImpl;
 
 class TreeControlPeer final : public ::cppu::ImplInheritanceHelper< 
VCLXWindow, css::awt::tree::XTreeControl, 
css::awt::tree::XTreeDataModelListener >
diff --git a/toolkit/source/controls/table/tabledatawindow.hxx 
b/toolkit/source/controls/table/tabledatawindow.hxx
index b0a39ad95dad..a62d7292f2b0 100644
--- a/toolkit/source/controls/table/tabledatawindow.hxx
+++ b/toolkit/source/controls/table/tabledatawindow.hxx
@@ -25,7 +25,6 @@
 namespace svt::table
 {
     class TableControl_Impl;
-    class TableFunctionSet;
 
     /** the window containing the content area (including headers) of
         a table control

Reply via email to