sd/IwyuFilter_sd.yaml | 29 ++-------- sd/inc/Annotation.hxx | 4 - sd/inc/drawdoc.hxx | 3 - sd/inc/sdpage.hxx | 1 sd/source/console/PresenterController.hxx | 2 sd/source/console/PresenterPaintManager.hxx | 2 sd/source/console/PresenterPaneBorderPainter.hxx | 1 sd/source/console/PresenterPaneContainer.hxx | 3 - sd/source/filter/eppt/eppt.hxx | 1 sd/source/filter/eppt/text.hxx | 1 sd/source/filter/html/htmlex.hxx | 7 -- sd/source/ui/annotations/AnnotationPopup.hxx | 5 - sd/source/ui/annotations/annotationwindow.hxx | 1 sd/source/ui/framework/configuration/ConfigurationUpdater.hxx | 4 - sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.hxx | 1 sd/source/ui/framework/configuration/ResourceFactoryManager.hxx | 1 sd/source/ui/framework/configuration/UpdateRequest.hxx | 2 sd/source/ui/framework/factories/ChildWindowPane.hxx | 1 sd/source/ui/framework/module/CenterViewFocusModule.hxx | 4 - sd/source/ui/framework/module/NotesPaneModule.hxx | 4 - sd/source/ui/framework/module/ShellStackGuard.hxx | 4 - sd/source/ui/framework/module/SlideSorterModule.hxx | 2 sd/source/ui/framework/module/ToolBarModule.hxx | 4 - sd/source/ui/framework/module/ViewTabBarModule.hxx | 1 sd/source/ui/inc/BulletAndPositionDlg.hxx | 4 - sd/source/ui/inc/CustomAnimationPane.hxx | 1 sd/source/ui/inc/DrawController.hxx | 2 sd/source/ui/inc/MasterPageObserver.hxx | 5 - sd/source/ui/inc/NotesPanelViewShell.hxx | 2 sd/source/ui/inc/OutlineView.hxx | 1 sd/source/ui/inc/SdUnoSlideView.hxx | 1 sd/source/ui/inc/SlideTransitionPane.hxx | 1 sd/source/ui/inc/SlideshowLayerRenderer.hxx | 6 -- sd/source/ui/inc/TableDesignPane.hxx | 1 sd/source/ui/inc/View.hxx | 1 sd/source/ui/inc/ViewTabBar.hxx | 2 sd/source/ui/inc/dlgpage.hxx | 1 sd/source/ui/inc/framework/Configuration.hxx | 1 sd/source/ui/inc/framework/ConfigurationController.hxx | 6 -- sd/source/ui/inc/framework/DrawModule.hxx | 8 -- sd/source/ui/inc/framework/ImpressModule.hxx | 8 -- sd/source/ui/inc/framework/ModuleController.hxx | 2 sd/source/ui/inc/framework/PresentationFactory.hxx | 1 sd/source/ui/inc/framework/PresentationModule.hxx | 8 -- sd/source/ui/inc/framework/factories/BasicPaneFactory.hxx | 1 sd/source/ui/inc/framework/factories/BasicToolBarFactory.hxx | 2 sd/source/ui/inc/fuolbull.hxx | 1 sd/source/ui/inc/fusel.hxx | 2 sd/source/ui/inc/navigatr.hxx | 2 sd/source/ui/inc/tools/ConfigurationAccess.hxx | 2 sd/source/ui/inc/tools/SlotStateListener.hxx | 1 sd/source/ui/inc/unchss.hxx | 1 sd/source/ui/inc/undoback.hxx | 2 sd/source/ui/inc/unomodel.hxx | 2 sd/source/ui/inc/unosrch.hxx | 1 sd/source/ui/remotecontrol/DiscoveryService.cxx | 2 sd/source/ui/remotecontrol/ZeroconfService.hxx | 2 sd/source/ui/sidebar/LayoutMenu.hxx | 4 - sd/source/ui/slideshow/slideshowimpl.hxx | 1 sd/source/ui/slideshow/slideshowviewimpl.hxx | 2 sd/source/ui/slidesorter/inc/cache/SlsCacheContext.hxx | 5 - sd/source/ui/unoidl/sddetect.hxx | 2 sd/source/ui/unoidl/unomodule.hxx | 3 - sd/source/ui/unoidl/unopback.hxx | 1 64 files changed, 8 insertions(+), 181 deletions(-)
New commits: commit 1c99fa63726caa3e59e76dfb8943f6e81bcdb097 Author: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> AuthorDate: Tue Apr 8 16:18:22 2025 +0200 Commit: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> CommitDate: Thu May 8 11:39:08 2025 +0200 Remove obsolete fw declarations from sd/ found with bin/find-unneeded-includes --fwdecl Change-Id: Icca48a80a17fad6765d0e871ec2a6f12e0317d60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183901 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> diff --git a/sd/IwyuFilter_sd.yaml b/sd/IwyuFilter_sd.yaml index 4d4b6081ba4b..b725b89ce25a 100644 --- a/sd/IwyuFilter_sd.yaml +++ b/sd/IwyuFilter_sd.yaml @@ -72,9 +72,6 @@ excludelist: - com/sun/star/lang/XServiceInfo.hpp - com/sun/star/style/XStyle.hpp - com/sun/star/util/XModifyBroadcaster.hpp - sd/inc/textapi.hxx: - # base class has to be a complete type - - editeng/outliner.hxx sd/inc/TransitionPreset.hxx: # base class has to be a complete type - com/sun/star/lang/XMultiServiceFactory.hpp @@ -91,6 +88,9 @@ excludelist: sd/source/filter/eppt/eppt.hxx: # base class has to be a complete type - escherex.hxx + sd/source/filter/html/htmlex.hxx: + # Needed in --fwdecl mode, to silence "externally available entity 'HtmlState' is not previously declared in an included file" + - class HtmlState sd/source/ui/annotations/annotationmanagerimpl.hxx: # base class has to be a complete type - annotationtag.hxx @@ -122,16 +122,16 @@ excludelist: # base class has to be a complete type - com/sun/star/container/XNamed.hpp - com/sun/star/drawing/framework/XConfigurationChangeRequest.hpp - sd/source/ui/framework/factories/BasicToolBarFactory.hxx: + sd/source/ui/inc/framework/factories/BasicToolBarFactory.hxx: # base class has to be a complete type - com/sun/star/drawing/framework/XResourceFactory.hpp - com/sun/star/lang/XInitialization.hpp - sd/source/ui/framework/factories/BasicPaneFactory.hxx: + sd/source/ui/inc/framework/factories/BasicPaneFactory.hxx: # base class has to be a complete type - com/sun/star/drawing/framework/XConfigurationChangeListener.hpp - com/sun/star/drawing/framework/XResourceFactory.hpp - com/sun/star/lang/XInitialization.hpp - sd/source/ui/framework/factories/BasicViewFactory.hxx: + sd/source/ui/inc/framework/factories/BasicViewFactory.hxx: # base class has to be a complete type - com/sun/star/drawing/framework/XResourceFactory.hpp - com/sun/star/lang/XInitialization.hpp @@ -259,9 +259,6 @@ excludelist: - com/sun/star/drawing/framework/XView.hpp - com/sun/star/lang/XUnoTunnel.hpp - com/sun/star/view/XSelectionSupplier.hpp - sd/source/ui/inc/tools/PropertySet.hxx: - # base class has to be a complete type - - com/sun/star/beans/XPropertySet.hpp sd/source/ui/inc/tools/SlotStateListener.hxx: # base class has to be a complete type - com/sun/star/frame/XStatusListener.hpp @@ -308,11 +305,6 @@ excludelist: - com/sun/star/beans/XPropertyChangeListener.hpp - com/sun/star/accessibility/XAccessibleEventListener.hpp - com/sun/star/frame/XFrameActionListener.hpp - sd/source/ui/slidesorter/shell/SlideSorterService.hxx: - # base class has to be a complete type - - com/sun/star/awt/XWindowListener.hpp - - com/sun/star/drawing/XSlideSorterBase.hpp - - com/sun/star/lang/XInitialization.hpp sd/source/ui/unoidl/sddetect.hxx: # base class has to be a complete type - com/sun/star/document/XExtendedFilterDetection.hpp @@ -332,9 +324,6 @@ excludelist: - com/sun/star/beans/XPropertyState.hpp - com/sun/star/lang/XServiceInfo.hpp - com/sun/star/lang/XUnoTunnel.hpp - sd/source/core/annotations/AnnotationEnumeration.cxx: - # Avoid loplugin:unreffun error - - AnnotationEnumeration.hxx sd/source/core/CustomAnimationCloner.cxx: # Avoid loplugin:unreffun error - CustomAnimationCloner.hxx @@ -423,9 +412,6 @@ excludelist: sd/source/core/drawdoc.cxx: # Needed for template - com/sun/star/frame/XModel.hpp - sd/source/core/text/textapi.cxx: - # Needed for macro defines - - editeng/unoprnms.hxx sd/source/filter/eppt/epptso.cxx: # Needed for direct member access - com/sun/star/table/XTable.hpp @@ -457,9 +443,6 @@ excludelist: sd/source/filter/xml/sdtransform.cxx: # Needed for implicit dtor - editeng/outlobj.hxx - sd/source/ui/annotations/annotationtag.cxx: - # Needed for template - - com/sun/star/office/XAnnotation.hpp sd/source/ui/animations/CustomAnimationList.cxx: # Actually used - comphelper/scopeguard.hxx diff --git a/sd/inc/Annotation.hxx b/sd/inc/Annotation.hxx index 64380ba7f033..8d8582b4ae5e 100644 --- a/sd/inc/Annotation.hxx +++ b/sd/inc/Annotation.hxx @@ -36,12 +36,8 @@ class SdrUndoAction; -namespace com::sun::star::office { class XAnnotation; } - namespace com::sun::star::uno { template <typename > class Reference; } -class SfxViewShell; - namespace sd { diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index 61f374e46769..37bd5aa91a8a 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -38,7 +38,6 @@ #include "stlpool.hxx" namespace com::sun::star::xml::dom { class XNode; } -namespace com::sun::star::uno { class XInterface; } namespace editeng { class SvxFieldItemUpdater; } namespace vcl { class Font; } namespace com::sun::star::presentation { class XPresentation2; } @@ -58,9 +57,7 @@ class SdCustomShowList; class SdUndoGroup; class SdrObject; class Idle; -class ImageMap; class Outliner; -class SdrModel; class SdrOutliner; class SdrPage; class SdrTextObj; diff --git a/sd/inc/sdpage.hxx b/sd/inc/sdpage.hxx index a1121b68b18b..37d85812a0c4 100644 --- a/sd/inc/sdpage.hxx +++ b/sd/inc/sdpage.hxx @@ -56,7 +56,6 @@ class Graphic; namespace sd { class MainSequence; - class Annotation; } namespace sd { diff --git a/sd/source/console/PresenterController.hxx b/sd/source/console/PresenterController.hxx index 523d900a3867..6a407f7d296e 100644 --- a/sd/source/console/PresenterController.hxx +++ b/sd/source/console/PresenterController.hxx @@ -48,11 +48,9 @@ namespace sdext::presenter { class PresenterCanvasHelper; class PresenterPaintManager; -class PresenterPaneAnimator; class PresenterPaneContainer; class PresenterPaneBorderPainter; class PresenterScreen; -class PresenterTheme; class PresenterWindowManager; typedef ::cppu::WeakComponentImplHelper < diff --git a/sd/source/console/PresenterPaintManager.hxx b/sd/source/console/PresenterPaintManager.hxx index 2b5efb881989..0575f407a427 100644 --- a/sd/source/console/PresenterPaintManager.hxx +++ b/sd/source/console/PresenterPaintManager.hxx @@ -32,8 +32,6 @@ namespace sdext::presenter { -class PresenterPaneContainer; - /** Synchronize painting of windows and canvases. At the moment there is just some processing of invalidate calls. This could be extended to process incoming windowPaint() calls. diff --git a/sd/source/console/PresenterPaneBorderPainter.hxx b/sd/source/console/PresenterPaneBorderPainter.hxx index b7b9c0de1e06..b03d4a120a5d 100644 --- a/sd/source/console/PresenterPaneBorderPainter.hxx +++ b/sd/source/console/PresenterPaneBorderPainter.hxx @@ -30,7 +30,6 @@ namespace sdext::presenter { -class PresenterPane; class PresenterTheme; typedef ::cppu::WeakComponentImplHelper< diff --git a/sd/source/console/PresenterPaneContainer.hxx b/sd/source/console/PresenterPaneContainer.hxx index 58d449837de4..e999b4b74e4d 100644 --- a/sd/source/console/PresenterPaneContainer.hxx +++ b/sd/source/console/PresenterPaneContainer.hxx @@ -36,9 +36,6 @@ namespace sdext::presenter { -class PresenterPaneBase; -class PresenterSprite; - typedef ::cppu::WeakComponentImplHelper < css::lang::XEventListener > PresenterPaneContainerInterfaceBase; diff --git a/sd/source/filter/eppt/eppt.hxx b/sd/source/filter/eppt/eppt.hxx index 3d95b4380229..90a25eabae18 100644 --- a/sd/source/filter/eppt/eppt.hxx +++ b/sd/source/filter/eppt/eppt.hxx @@ -36,7 +36,6 @@ namespace com::sun::star::awt { class XControlModel; } namespace com::sun::star::beans { class XPropertySet; } -namespace com::sun::star::beans { struct PropertyValue; } namespace com::sun::star::drawing { class XShape; } namespace com::sun::star::frame { class XModel; } namespace com::sun::star::task { class XStatusIndicator; } diff --git a/sd/source/filter/eppt/text.hxx b/sd/source/filter/eppt/text.hxx index ee2fc537cd35..cc9a37759ab7 100644 --- a/sd/source/filter/eppt/text.hxx +++ b/sd/source/filter/eppt/text.hxx @@ -28,7 +28,6 @@ #include <memory> namespace com::sun::star { - namespace awt { struct FontDescriptor; } namespace beans { class XPropertyState; } namespace text { class XTextRange; class XTextContent; class XSimpleText; } namespace style { struct TabStop; } diff --git a/sd/source/filter/html/htmlex.hxx b/sd/source/filter/html/htmlex.hxx index 2aa40700b8ab..56737e86de66 100644 --- a/sd/source/filter/html/htmlex.hxx +++ b/sd/source/filter/html/htmlex.hxx @@ -32,16 +32,9 @@ namespace sd { class DrawDocShell; } -class OutlinerParaObject; -class SfxItemSet; class SfxProgress; -class SdrOutliner; class SdPage; class HtmlState; -class SdrTextObj; -class SdrObjGroup; -namespace sdr::table { class SdrTableObj; } -class SdrPage; class SdDrawDocument; /// this class exports an Impress Document as a HTML Presentation. diff --git a/sd/source/ui/annotations/AnnotationPopup.hxx b/sd/source/ui/annotations/AnnotationPopup.hxx index f7305ad9eecc..4524886220a4 100644 --- a/sd/source/ui/annotations/AnnotationPopup.hxx +++ b/sd/source/ui/annotations/AnnotationPopup.hxx @@ -12,10 +12,6 @@ #include <svx/annotation/IAnnotationPopup.hxx> #include <vcl/weld.hxx> -namespace com::sun::star::office -{ -class XAnnotation; -} namespace sdr::annotation { class Annotation; @@ -23,7 +19,6 @@ class Annotation; namespace sd { -class View; class AnnotationWindow; class AnnotationPopup final : public sdr::annotation::IAnnotationPopup diff --git a/sd/source/ui/annotations/annotationwindow.hxx b/sd/source/ui/annotations/annotationwindow.hxx index d7f3d98e10b0..404df9f39d51 100644 --- a/sd/source/ui/annotations/annotationwindow.hxx +++ b/sd/source/ui/annotations/annotationwindow.hxx @@ -35,7 +35,6 @@ namespace sdr::annotation { class TextApiObject; } namespace sd { -class AnnotationManagerImpl; class DrawDocShell; class AnnotationWindow; diff --git a/sd/source/ui/framework/configuration/ConfigurationUpdater.hxx b/sd/source/ui/framework/configuration/ConfigurationUpdater.hxx index 0e65505fa9ef..7dc619c4bb3c 100644 --- a/sd/source/ui/framework/configuration/ConfigurationUpdater.hxx +++ b/sd/source/ui/framework/configuration/ConfigurationUpdater.hxx @@ -31,10 +31,6 @@ class XConfiguration; } namespace com::sun::star::drawing::framework { -class XControllerManager; -} -namespace com::sun::star::drawing::framework -{ class XResourceId; } namespace sd diff --git a/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.hxx b/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.hxx index 3caa7a8cacfb..03f2bfa3cf85 100644 --- a/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.hxx +++ b/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.hxx @@ -23,7 +23,6 @@ #include <com/sun/star/container/XNamed.hpp> #include <comphelper/compbase.hxx> -namespace com::sun::star::drawing::framework { class XConfiguration; } namespace com::sun::star::drawing::framework { class XResourceId; } namespace sd::framework { diff --git a/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx b/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx index f28c301e5563..15bf883e4d03 100644 --- a/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx +++ b/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx @@ -30,7 +30,6 @@ #include <rtl/ref.hxx> #include <rtl/ustring.hxx> -namespace com::sun::star::drawing::framework { class XControllerManager; } namespace com::sun::star::drawing::framework { class XResourceFactory; } namespace com::sun::star::util { class XURLTransformer; } namespace sd { class DrawController; } diff --git a/sd/source/ui/framework/configuration/UpdateRequest.hxx b/sd/source/ui/framework/configuration/UpdateRequest.hxx index 712167154b3c..4f46a3233773 100644 --- a/sd/source/ui/framework/configuration/UpdateRequest.hxx +++ b/sd/source/ui/framework/configuration/UpdateRequest.hxx @@ -23,8 +23,6 @@ #include <com/sun/star/container/XNamed.hpp> #include <comphelper/compbase.hxx> -namespace com::sun::star::drawing::framework { class XConfiguration; } - namespace sd::framework { typedef comphelper::WeakComponentImplHelper < diff --git a/sd/source/ui/framework/factories/ChildWindowPane.hxx b/sd/source/ui/framework/factories/ChildWindowPane.hxx index 08217775780e..f528ef3dff2b 100644 --- a/sd/source/ui/framework/factories/ChildWindowPane.hxx +++ b/sd/source/ui/framework/factories/ChildWindowPane.hxx @@ -29,7 +29,6 @@ class SfxShell; namespace sd { class ViewShellBase; } -namespace com::sun::star::awt { class XWindow; } namespace com::sun::star::drawing::framework { class XResourceId; } namespace sd::framework { diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.hxx b/sd/source/ui/framework/module/CenterViewFocusModule.hxx index e721562db029..ac24ca5a129c 100644 --- a/sd/source/ui/framework/module/CenterViewFocusModule.hxx +++ b/sd/source/ui/framework/module/CenterViewFocusModule.hxx @@ -27,10 +27,6 @@ namespace com::sun::star::drawing::framework { class XConfigurationController; } -namespace com::sun::star::frame -{ -class XController; -} namespace sd { diff --git a/sd/source/ui/framework/module/NotesPaneModule.hxx b/sd/source/ui/framework/module/NotesPaneModule.hxx index 229b61e71a89..f4c41e53db6b 100644 --- a/sd/source/ui/framework/module/NotesPaneModule.hxx +++ b/sd/source/ui/framework/module/NotesPaneModule.hxx @@ -19,10 +19,6 @@ namespace com::sun::star::drawing::framework class XConfigurationController; class XView; } -namespace com::sun::star::frame -{ -class XController; -} namespace sd { class DrawController; diff --git a/sd/source/ui/framework/module/ShellStackGuard.hxx b/sd/source/ui/framework/module/ShellStackGuard.hxx index fe94037816f9..d5980198a3ec 100644 --- a/sd/source/ui/framework/module/ShellStackGuard.hxx +++ b/sd/source/ui/framework/module/ShellStackGuard.hxx @@ -32,10 +32,6 @@ namespace com::sun::star::drawing::framework { class XConfigurationController; } -namespace com::sun::star::frame -{ -class XController; -} namespace sd { diff --git a/sd/source/ui/framework/module/SlideSorterModule.hxx b/sd/source/ui/framework/module/SlideSorterModule.hxx index f56d2c8c7526..218b63139fb9 100644 --- a/sd/source/ui/framework/module/SlideSorterModule.hxx +++ b/sd/source/ui/framework/module/SlideSorterModule.hxx @@ -26,9 +26,7 @@ #include <set> namespace com::sun::star::drawing::framework { class XConfigurationController; } -namespace com::sun::star::drawing::framework { class XControllerManager; } namespace com::sun::star::drawing::framework { class XTabBar; } -namespace com::sun::star::frame { class XController; } namespace sd { class DrawController; } namespace sd::framework { diff --git a/sd/source/ui/framework/module/ToolBarModule.hxx b/sd/source/ui/framework/module/ToolBarModule.hxx index cccdfdd6a74a..e68c5d9fe47f 100644 --- a/sd/source/ui/framework/module/ToolBarModule.hxx +++ b/sd/source/ui/framework/module/ToolBarModule.hxx @@ -33,10 +33,6 @@ namespace com::sun::star::drawing::framework class XConfigurationController; class XResourceId; } -namespace com::sun::star::frame -{ -class XController; -} namespace sd { class DrawController; diff --git a/sd/source/ui/framework/module/ViewTabBarModule.hxx b/sd/source/ui/framework/module/ViewTabBarModule.hxx index 5a492dc324a0..0bf4fd903439 100644 --- a/sd/source/ui/framework/module/ViewTabBarModule.hxx +++ b/sd/source/ui/framework/module/ViewTabBarModule.hxx @@ -25,7 +25,6 @@ namespace com::sun::star::drawing::framework { class XConfigurationController; } namespace com::sun::star::drawing::framework { class XTabBar; } -namespace com::sun::star::frame { class XController; } namespace sd { class DrawController; } namespace sd::framework { diff --git a/sd/source/ui/inc/BulletAndPositionDlg.hxx b/sd/source/ui/inc/BulletAndPositionDlg.hxx index bb736f6d14db..169484ec3845 100644 --- a/sd/source/ui/inc/BulletAndPositionDlg.hxx +++ b/sd/source/ui/inc/BulletAndPositionDlg.hxx @@ -32,11 +32,7 @@ #define MN_GALLERY_ENTRY 100 class ColorListBox; -class SvxNumValueSet; class SvxNumRule; -class SvxBmpNumValueSet; -class SvxBrushItem; -class SdDrawDocument; namespace sd { diff --git a/sd/source/ui/inc/CustomAnimationPane.hxx b/sd/source/ui/inc/CustomAnimationPane.hxx index 47f8b580c515..07c451c84634 100644 --- a/sd/source/ui/inc/CustomAnimationPane.hxx +++ b/sd/source/ui/inc/CustomAnimationPane.hxx @@ -28,7 +28,6 @@ #include <vector> namespace com::sun::star::drawing { class XDrawPage; } -namespace com::sun::star::drawing { class XDrawView; } namespace weld { class ComboBox; } namespace com::sun::star::animations { class XAnimationNode; } namespace sd::tools { class EventMultiplexerEvent; } diff --git a/sd/source/ui/inc/DrawController.hxx b/sd/source/ui/inc/DrawController.hxx index 147ff0c1a1c1..75e2a0d1e3d8 100644 --- a/sd/source/ui/inc/DrawController.hxx +++ b/sd/source/ui/inc/DrawController.hxx @@ -36,8 +36,6 @@ #include <vector> namespace com::sun::star::drawing { class XDrawSubController; } -namespace com::sun::star::drawing::framework { class XConfigurationController; } -namespace com::sun::star::drawing::framework { class XModuleController; } namespace com::sun::star::drawing { class XLayer; } namespace osl { class Mutex; } namespace sd::framework { class ConfigurationController; } diff --git a/sd/source/ui/inc/MasterPageObserver.hxx b/sd/source/ui/inc/MasterPageObserver.hxx index 9ece9f9a98e4..75e64d68a8d8 100644 --- a/sd/source/ui/inc/MasterPageObserver.hxx +++ b/sd/source/ui/inc/MasterPageObserver.hxx @@ -25,11 +25,6 @@ #include <memory> #include <set> -namespace osl -{ -class Mutex; -} - class SdDrawDocument; namespace sd diff --git a/sd/source/ui/inc/NotesPanelViewShell.hxx b/sd/source/ui/inc/NotesPanelViewShell.hxx index 377ad68d550d..83afd67ec482 100644 --- a/sd/source/ui/inc/NotesPanelViewShell.hxx +++ b/sd/source/ui/inc/NotesPanelViewShell.hxx @@ -13,8 +13,6 @@ #include "fuoltext.hxx" #include <glob.hxx> -class SdPage; - namespace sd { class NotesPanelView; diff --git a/sd/source/ui/inc/OutlineView.hxx b/sd/source/ui/inc/OutlineView.hxx index 75550bfe5f9f..fc4ef20f3440 100644 --- a/sd/source/ui/inc/OutlineView.hxx +++ b/sd/source/ui/inc/OutlineView.hxx @@ -30,7 +30,6 @@ class SdPage; class SdrPage; class SdrTextObj; class SfxProgress; -struct PasteOrDropInfos; class EditView; namespace sd::tools { diff --git a/sd/source/ui/inc/SdUnoSlideView.hxx b/sd/source/ui/inc/SdUnoSlideView.hxx index f9f4655adca1..66ea81728a7b 100644 --- a/sd/source/ui/inc/SdUnoSlideView.hxx +++ b/sd/source/ui/inc/SdUnoSlideView.hxx @@ -22,7 +22,6 @@ #include "DrawSubController.hxx" namespace sd::slidesorter { class SlideSorter; } -namespace com::sun::star::drawing { class XDrawPage; } namespace sd { diff --git a/sd/source/ui/inc/SlideTransitionPane.hxx b/sd/source/ui/inc/SlideTransitionPane.hxx index d7fc32a67686..98a39b3f29fd 100644 --- a/sd/source/ui/inc/SlideTransitionPane.hxx +++ b/sd/source/ui/inc/SlideTransitionPane.hxx @@ -31,7 +31,6 @@ class SdDrawDocument; class SdXImpressDocument; namespace com::sun::star::drawing { class XDrawView; } -namespace com::sun::star::frame { class XModel; } namespace sd::tools { class EventMultiplexerEvent; } namespace sd diff --git a/sd/source/ui/inc/SlideshowLayerRenderer.hxx b/sd/source/ui/inc/SlideshowLayerRenderer.hxx index 33a5fdcae7c9..88e04db1b5e8 100644 --- a/sd/source/ui/inc/SlideshowLayerRenderer.hxx +++ b/sd/source/ui/inc/SlideshowLayerRenderer.hxx @@ -33,12 +33,6 @@ class SdrPage; class SdrModel; class SdrObject; -class Size; - -namespace com::sun::star::animations -{ -class XAnimate; -} namespace sdr::contact { diff --git a/sd/source/ui/inc/TableDesignPane.hxx b/sd/source/ui/inc/TableDesignPane.hxx index e3cbfdd08406..6a8fe50eee2c 100644 --- a/sd/source/ui/inc/TableDesignPane.hxx +++ b/sd/source/ui/inc/TableDesignPane.hxx @@ -26,7 +26,6 @@ namespace com::sun::star::beans { class XPropertySet; } namespace com::sun::star::container { class XIndexAccess; class XNameContainer; } -namespace com::sun::star::drawing { class XDrawView; } namespace sd { diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx index c9f3333d4842..95feac17807d 100644 --- a/sd/source/ui/inc/View.hxx +++ b/sd/source/ui/inc/View.hxx @@ -32,7 +32,6 @@ class SdDrawDocument; class SdPage; -class SdrOle2Obj; class SdrGrafObj; class SdrMediaObj; class OutputDevice; diff --git a/sd/source/ui/inc/ViewTabBar.hxx b/sd/source/ui/inc/ViewTabBar.hxx index c9e11994af7c..3428597f563e 100644 --- a/sd/source/ui/inc/ViewTabBar.hxx +++ b/sd/source/ui/inc/ViewTabBar.hxx @@ -30,8 +30,6 @@ namespace com::sun::star::drawing::framework { class XConfigurationController; } namespace com::sun::star::drawing::framework { class XResourceId; } -namespace com::sun::star::drawing::framework { struct ConfigurationChangeEvent; } -namespace com::sun::star::frame { class XController; } namespace vcl { class Window; } namespace sd { diff --git a/sd/source/ui/inc/dlgpage.hxx b/sd/source/ui/inc/dlgpage.hxx index aadb5f28e104..54c04537e11a 100644 --- a/sd/source/ui/inc/dlgpage.hxx +++ b/sd/source/ui/inc/dlgpage.hxx @@ -23,7 +23,6 @@ #include <svx/xtable.hxx> class SfxObjectShell; -enum class ChangeType; /** * Page configuration-tab-dialog diff --git a/sd/source/ui/inc/framework/Configuration.hxx b/sd/source/ui/inc/framework/Configuration.hxx index 1b245e47afea..f97d1a3bf8ee 100644 --- a/sd/source/ui/inc/framework/Configuration.hxx +++ b/sd/source/ui/inc/framework/Configuration.hxx @@ -26,7 +26,6 @@ #include <memory> -namespace com::sun::star::util { class XCloneable; } namespace com::sun::star::drawing::framework { class XConfigurationControllerBroadcaster; } namespace sd::framework { diff --git a/sd/source/ui/inc/framework/ConfigurationController.hxx b/sd/source/ui/inc/framework/ConfigurationController.hxx index 1975b5fa2257..f0f69cbf23e6 100644 --- a/sd/source/ui/inc/framework/ConfigurationController.hxx +++ b/sd/source/ui/inc/framework/ConfigurationController.hxx @@ -29,12 +29,6 @@ #include <memory> - -namespace com::sun::star::drawing::framework { class XConfiguration; } -namespace com::sun::star::drawing::framework { class XConfigurationChangeRequest; } -namespace com::sun::star::drawing::framework { class XResourceId; } -namespace com::sun::star::drawing::framework { struct ConfigurationChangeEvent; } -namespace com::sun::star::frame { class XController; } namespace sd { class DrawController; } namespace sd::framework { diff --git a/sd/source/ui/inc/framework/DrawModule.hxx b/sd/source/ui/inc/framework/DrawModule.hxx index 819091998687..7c0d72fcb638 100644 --- a/sd/source/ui/inc/framework/DrawModule.hxx +++ b/sd/source/ui/inc/framework/DrawModule.hxx @@ -22,14 +22,6 @@ #include <sal/types.h> #include <rtl/ref.hxx> -namespace com::sun::star::frame -{ -class XController; -} -namespace com::sun::star::uno -{ -template <typename> class Reference; -} namespace sd { class DrawController; diff --git a/sd/source/ui/inc/framework/ImpressModule.hxx b/sd/source/ui/inc/framework/ImpressModule.hxx index fc4e2b83978d..9a0312b40934 100644 --- a/sd/source/ui/inc/framework/ImpressModule.hxx +++ b/sd/source/ui/inc/framework/ImpressModule.hxx @@ -22,14 +22,6 @@ #include <sal/types.h> #include <rtl/ref.hxx> -namespace com::sun::star::frame -{ -class XController; -} -namespace com::sun::star::uno -{ -template <class interface_type> class Reference; -} namespace sd { class DrawController; diff --git a/sd/source/ui/inc/framework/ModuleController.hxx b/sd/source/ui/inc/framework/ModuleController.hxx index ea1de664cc9f..0dc0aded37b9 100644 --- a/sd/source/ui/inc/framework/ModuleController.hxx +++ b/sd/source/ui/inc/framework/ModuleController.hxx @@ -27,8 +27,6 @@ #include <unordered_map> -namespace com::sun::star::frame { class XController; } -namespace com::sun::star::uno { class XComponentContext; } namespace sd { class DrawController; } namespace sd::framework { diff --git a/sd/source/ui/inc/framework/PresentationFactory.hxx b/sd/source/ui/inc/framework/PresentationFactory.hxx index fe984c401f04..ca0ecdf926a8 100644 --- a/sd/source/ui/inc/framework/PresentationFactory.hxx +++ b/sd/source/ui/inc/framework/PresentationFactory.hxx @@ -24,7 +24,6 @@ #include <comphelper/compbase.hxx> #include <rtl/ref.hxx> -namespace com::sun::star::frame { class XController; } namespace sd { class DrawController; } namespace sd::framework { diff --git a/sd/source/ui/inc/framework/PresentationModule.hxx b/sd/source/ui/inc/framework/PresentationModule.hxx index 437534f707f9..a5b1e5a7da3e 100644 --- a/sd/source/ui/inc/framework/PresentationModule.hxx +++ b/sd/source/ui/inc/framework/PresentationModule.hxx @@ -22,14 +22,6 @@ #include <sal/types.h> #include <rtl/ref.hxx> -namespace com::sun::star::frame -{ -class XController; -} -namespace com::sun::star::uno -{ -template <class interface_type> class Reference; -} namespace sd { class DrawController; diff --git a/sd/source/ui/inc/framework/factories/BasicPaneFactory.hxx b/sd/source/ui/inc/framework/factories/BasicPaneFactory.hxx index ef97cff00984..f12cfcefdbb1 100644 --- a/sd/source/ui/inc/framework/factories/BasicPaneFactory.hxx +++ b/sd/source/ui/inc/framework/factories/BasicPaneFactory.hxx @@ -28,7 +28,6 @@ #include <memory> -namespace com::sun::star::drawing::framework { class XConfigurationController; } namespace com::sun::star::uno { class XComponentContext; } namespace sd { diff --git a/sd/source/ui/inc/framework/factories/BasicToolBarFactory.hxx b/sd/source/ui/inc/framework/factories/BasicToolBarFactory.hxx index 804d8711d50e..fc8b54c8e596 100644 --- a/sd/source/ui/inc/framework/factories/BasicToolBarFactory.hxx +++ b/sd/source/ui/inc/framework/factories/BasicToolBarFactory.hxx @@ -24,8 +24,6 @@ #include <comphelper/compbase.hxx> #include <rtl/ref.hxx> -namespace com::sun::star::frame { class XController; } -namespace com::sun::star::drawing::framework { class XResourceId; } namespace com::sun::star::drawing::framework { class XConfigurationController; } namespace sd { class DrawController; } diff --git a/sd/source/ui/inc/fuolbull.hxx b/sd/source/ui/inc/fuolbull.hxx index e10ab6b237d4..65bc9a4b6969 100644 --- a/sd/source/ui/inc/fuolbull.hxx +++ b/sd/source/ui/inc/fuolbull.hxx @@ -24,7 +24,6 @@ class SdDrawDocument; class SfxRequest; class SfxItemSet; -class SfxPoolItem; class SvxNumBulletItem; namespace sd { diff --git a/sd/source/ui/inc/fusel.hxx b/sd/source/ui/inc/fusel.hxx index 3896a6d42f82..118cdcc130e5 100644 --- a/sd/source/ui/inc/fusel.hxx +++ b/sd/source/ui/inc/fusel.hxx @@ -21,8 +21,6 @@ #include "fudraw.hxx" -namespace com::sun::star::media { class XPlayer; } - class SdrHdl; class SdrObject; diff --git a/sd/source/ui/inc/navigatr.hxx b/sd/source/ui/inc/navigatr.hxx index 1e3657616167..d6497f189f3b 100644 --- a/sd/source/ui/inc/navigatr.hxx +++ b/sd/source/ui/inc/navigatr.hxx @@ -33,9 +33,7 @@ namespace vcl { class Window; } namespace sd { class DrawDocShell; -class SdNavigatorFloat; } -class Menu; class SdNavigatorControllerItem; class SdPageNameControllerItem; diff --git a/sd/source/ui/inc/tools/ConfigurationAccess.hxx b/sd/source/ui/inc/tools/ConfigurationAccess.hxx index 97b5e92dc041..de88b8db3a65 100644 --- a/sd/source/ui/inc/tools/ConfigurationAccess.hxx +++ b/sd/source/ui/inc/tools/ConfigurationAccess.hxx @@ -26,9 +26,7 @@ #include <functional> namespace com::sun::star::container { class XHierarchicalNameAccess; } -namespace com::sun::star::container { class XNameAccess; } namespace com::sun::star::lang { class XMultiServiceFactory; } -namespace com::sun::star::uno { class XComponentContext; } namespace sd::tools { diff --git a/sd/source/ui/inc/tools/SlotStateListener.hxx b/sd/source/ui/inc/tools/SlotStateListener.hxx index 54a2e463d30e..529cd0def3a8 100644 --- a/sd/source/ui/inc/tools/SlotStateListener.hxx +++ b/sd/source/ui/inc/tools/SlotStateListener.hxx @@ -27,7 +27,6 @@ namespace com::sun::star::frame { class XDispatch; } namespace com::sun::star::frame { class XDispatchProvider; } namespace com::sun::star::frame { class XStatusListener; } -namespace com::sun::star::frame { struct FeatureStateEvent; } namespace sd::tools { diff --git a/sd/source/ui/inc/unchss.hxx b/sd/source/ui/inc/unchss.hxx index 7ada8b7457a1..cdf4fa47fc01 100644 --- a/sd/source/ui/inc/unchss.hxx +++ b/sd/source/ui/inc/unchss.hxx @@ -25,7 +25,6 @@ #include <sdundo.hxx> -class SfxItemSet; class SfxStyleSheet; class SdDrawDocument; diff --git a/sd/source/ui/inc/undoback.hxx b/sd/source/ui/inc/undoback.hxx index afbb13eca461..bbb349888fd5 100644 --- a/sd/source/ui/inc/undoback.hxx +++ b/sd/source/ui/inc/undoback.hxx @@ -27,8 +27,6 @@ class SdDrawDocument; class SdPage; -class SfxItemSet; -class SfxPoolItem; class SdBackgroundObjUndoAction final : public SdUndoAction { diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index c4bb88802821..28f6f9644604 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -47,9 +47,7 @@ #include <cppuhelper/weakref.hxx> #include <sddllapi.h> -namespace com::sun::star::container { class XNameContainer; } namespace com::sun::star::i18n { class XForbiddenCharacters; } -namespace com::sun::star::presentation { class XPresentation; } class SdDrawDocument; class SdPage; diff --git a/sd/source/ui/inc/unosrch.hxx b/sd/source/ui/inc/unosrch.hxx index 104fd27474a1..c611e78d3f3d 100644 --- a/sd/source/ui/inc/unosrch.hxx +++ b/sd/source/ui/inc/unosrch.hxx @@ -30,7 +30,6 @@ namespace com::sun::star::drawing { class XDrawPage; } namespace com::sun::star::drawing { class XShape; } namespace com::sun::star::text { class XTextRange; } -namespace com::sun::star::util { class XSearchDescriptor; } class SvxItemPropertySet; class SdUnoSearchReplaceDescriptor; diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx index bdd0b51c8002..89cb9f68f36d 100644 --- a/sd/source/ui/remotecontrol/DiscoveryService.cxx +++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx @@ -18,6 +18,8 @@ #include "DiscoveryService.hxx" #include "ZeroconfService.hxx" +struct sockaddr_in; + #ifdef _WIN32 // LO vs WinAPI conflict #undef WB_LEFT diff --git a/sd/source/ui/remotecontrol/ZeroconfService.hxx b/sd/source/ui/remotecontrol/ZeroconfService.hxx index 98abe410853e..45d5b065b2e4 100644 --- a/sd/source/ui/remotecontrol/ZeroconfService.hxx +++ b/sd/source/ui/remotecontrol/ZeroconfService.hxx @@ -20,8 +20,6 @@ #define kREG_TYPE "_impressremote._tcp" -struct sockaddr_in; - typedef unsigned int uint; namespace sd{ diff --git a/sd/source/ui/sidebar/LayoutMenu.hxx b/sd/source/ui/sidebar/LayoutMenu.hxx index 26dd966a485e..8f0f2ab54d3d 100644 --- a/sd/source/ui/sidebar/LayoutMenu.hxx +++ b/sd/source/ui/sidebar/LayoutMenu.hxx @@ -26,10 +26,6 @@ #include <sfx2/request.hxx> #include <xmloff/autolayout.hxx> -namespace com::sun::star::frame -{ -class XStatusListener; -} namespace com::sun::star::ui { class XSidebar; diff --git a/sd/source/ui/slideshow/slideshowimpl.hxx b/sd/source/ui/slideshow/slideshowimpl.hxx index c86c6e9b192f..ef59951f0305 100644 --- a/sd/source/ui/slideshow/slideshowimpl.hxx +++ b/sd/source/ui/slideshow/slideshowimpl.hxx @@ -35,7 +35,6 @@ #include <slideshow.hxx> -namespace com::sun::star::frame { class XModel; } namespace com::sun::star::media { class XPlayer; } namespace sd { class DrawDocShell; } namespace sd { class ViewShell; } diff --git a/sd/source/ui/slideshow/slideshowviewimpl.hxx b/sd/source/ui/slideshow/slideshowviewimpl.hxx index 91b825906c46..bc64b58846b7 100644 --- a/sd/source/ui/slideshow/slideshowviewimpl.hxx +++ b/sd/source/ui/slideshow/slideshowviewimpl.hxx @@ -33,8 +33,6 @@ namespace com::sun::star::awt { class XPointer; } namespace com::sun::star::awt { class XWindow; } namespace com::sun::star::awt { class XWindowPeer; } -namespace com::sun::star::awt { struct WindowEvent; } -namespace com::sun::star::rendering { class XSpriteCanvas; } class SdDrawDocument; namespace sd diff --git a/sd/source/ui/slidesorter/inc/cache/SlsCacheContext.hxx b/sd/source/ui/slidesorter/inc/cache/SlsCacheContext.hxx index 3f77ca2befc8..15bd3469a8cc 100644 --- a/sd/source/ui/slidesorter/inc/cache/SlsCacheContext.hxx +++ b/sd/source/ui/slidesorter/inc/cache/SlsCacheContext.hxx @@ -24,11 +24,6 @@ #include <memory> #include <vector> -namespace com::sun::star::uno -{ -class XInterface; -} - class SdrPage; class SdXImpressDocument; diff --git a/sd/source/ui/unoidl/sddetect.hxx b/sd/source/ui/unoidl/sddetect.hxx index 3d22cc12c832..587a9f7d34c9 100644 --- a/sd/source/ui/unoidl/sddetect.hxx +++ b/sd/source/ui/unoidl/sddetect.hxx @@ -26,8 +26,6 @@ #include <com/sun/star/lang/XServiceInfo.hpp> -namespace com::sun::star::beans { struct PropertyValue; } - class SdFilterDetect : public ::cppu::WeakImplHelper< css::document::XExtendedFilterDetection, css::lang::XServiceInfo > { public: diff --git a/sd/source/ui/unoidl/unomodule.hxx b/sd/source/ui/unoidl/unomodule.hxx index bc78c6b197e1..0e000c1e69f9 100644 --- a/sd/source/ui/unoidl/unomodule.hxx +++ b/sd/source/ui/unoidl/unomodule.hxx @@ -27,9 +27,6 @@ #include <com/sun/star/lang/XServiceInfo.hpp> -namespace com::sun::star::beans { struct PropertyValue; } -namespace com::sun::star::frame { struct DispatchDescriptor; } - class SdUnoModule : public ::cppu::WeakImplHelper< css::frame::XDispatchProvider, css::frame::XNotifyingDispatch, css::lang::XServiceInfo > { public: diff --git a/sd/source/ui/unoidl/unopback.hxx b/sd/source/ui/unoidl/unopback.hxx index c2834d9298ee..69546c4154fd 100644 --- a/sd/source/ui/unoidl/unopback.hxx +++ b/sd/source/ui/unoidl/unopback.hxx @@ -35,7 +35,6 @@ class SdDrawDocument; class SdrModel; class SfxItemSet; -class SvxItemPropertySet; struct SfxItemPropertyMapEntry; const SvxItemPropertySet* ImplGetPageBackgroundPropertySet();