From 681b1e5db9ea1c75ec2a16f88ab3ee4c4ae5057b Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Thu, 10 Apr 2025 15:58:38 +0200 Subject: [PATCH] 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 Tested-by: Jenkins --- UnoControls/inc/basecontrol.hxx | 4 ---- UnoControls/source/inc/OConnectionPointContainerHelper.hxx | 2 -- UnoControls/source/inc/progressmonitor.hxx | 1 - UnoControls/source/inc/statusindicator.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 ----- 13 files changed, 36 deletions(-) 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 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 #include -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 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 #include -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 -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 -namespace vcl -{ -class OpenLockedQueryBox; -} - namespace vcl { class OpenLockedQueryBox final : public weld::GenericDialogController