Kaydet (Commit) da02b574 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

tdf#42949 Fix IWYU warnings in sd/source/ui/inc/{framework,tools,view}/*

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Also a typo fix :)

Change-Id: I7c96e8459f6fb75b07f6447715e8165800ecba53
Reviewed-on: https://gerrit.libreoffice.org/62259
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst f3a40a66
......@@ -134,4 +134,55 @@ blacklist:
- com/sun/star/drawing/framework/XTabBar.hpp
- com/sun/star/drawing/framework/XToolBar.hpp
- com/sun/star/lang/XUnoTunnel.hpp
sd/source/ui/inc/framework/Configuration.hxx:
# base class has to be a complete type
- com/sun/star/container/XNamed.hpp
- com/sun/star/drawing/framework/XConfiguration.hpp
- com/sun/star/lang/XServiceInfo.hpp
sd/source/ui/inc/framework/ConfigurationController.hxx:
# base class has to be a complete type
- com/sun/star/drawing/framework/XConfigurationController.hpp
- com/sun/star/lang/XInitialization.hpp
sd/source/ui/inc/framework/DrawModule.hxx:
# Needed for css shortcut
- sal/types.h
sd/source/ui/inc/framework/ImpressModule.hxx:
# Needed for css shortcut
- sal/types.h
sd/source/ui/inc/framework/ModuleController.hxx:
# base class has to be a complete type
- com/sun/star/drawing/framework/XModuleController.hpp
- com/sun/star/lang/XInitialization.hpp
sd/source/ui/inc/framework/Pane.hxx:
# base class has to be a complete type
- com/sun/star/drawing/framework/XPane.hpp
- com/sun/star/drawing/framework/XPane2.hpp
- com/sun/star/lang/XUnoTunnel.hpp
sd/source/ui/inc/framework/PresentationModule.hxx:
# Needed for css shortcut
- sal/types.h
sd/source/ui/inc/framework/PresentationFactory.hxx:
# base class has to be a complete type
- com/sun/star/drawing/framework/XResourceFactory.hpp
- com/sun/star/drawing/framework/XConfigurationChangeListener.hpp
sd/source/ui/inc/framework/ResourceId.hxx:
# base class has to be a complete type
- com/sun/star/drawing/framework/XResourceId.hpp
- com/sun/star/lang/XInitialization.hpp
- com/sun/star/lang/XServiceInfo.hpp
sd/source/ui/inc/framework/ViewShellWrapper.hxx:
# base class has to be a complete type
- com/sun/star/awt/XWindowListener.hpp
- com/sun/star/drawing/framework/XRelocatableResource.hpp
- com/sun/star/drawing/framework/XView.hpp
- com/sun/star/lang/XUnoTunnel.hpp
- com/sun/star/view/XSelectionSupplier.hpp
sd/source/ui/inc/tools/IdleDetection.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx
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
......@@ -21,6 +21,8 @@
#include <framework/FrameworkHelper.hxx>
#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.hpp>
#include <com/sun/star/drawing/framework/XConfigurationControllerBroadcaster.hpp>
#include <comphelper/sequence.hxx>
#include <facreg.hxx>
#include <sal/log.hxx>
......
......@@ -18,6 +18,9 @@
*/
#include <framework/ModuleController.hxx>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <tools/ConfigurationAccess.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -21,6 +21,7 @@
#define INCLUDED_SD_SOURCE_UI_INC_MASTERPAGEOBSERVER_HXX
#include <rtl/ustring.hxx>
#include <tools/link.hxx>
#include "tools/SdGlobalResourceContainer.hxx"
#include <memory>
#include <set>
......
......@@ -22,14 +22,15 @@
#include <MutexOwner.hxx>
#include <com/sun/star/drawing/framework/XConfiguration.hpp>
#include <com/sun/star/drawing/framework/XConfigurationControllerBroadcaster.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <cppuhelper/compbase.hxx>
#include <memory>
namespace com { namespace sun { namespace star { namespace util { class XCloneable; } } } }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XConfigurationControllerBroadcaster; } } } } }
namespace sd { namespace framework {
typedef ::cppu::WeakComponentImplHelper <
......
......@@ -23,21 +23,17 @@
#include <MutexOwner.hxx>
#include <com/sun/star/drawing/framework/XConfigurationController.hpp>
#include <com/sun/star/drawing/framework/XConfigurationChangeRequest.hpp>
#include <com/sun/star/drawing/framework/XConfiguration.hpp>
#include <com/sun/star/drawing/framework/XControllerManager.hpp>
#include <com/sun/star/drawing/framework/XResourceFactoryManager.hpp>
#include <com/sun/star/drawing/framework/XResourceId.hpp>
#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/compbase.hxx>
#include <rtl/ref.hxx>
#include <memory>
namespace sd { class ViewShellBase; }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XConfiguration; } } } } }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XConfigurationChangeRequest; } } } } }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XResourceId; } } } } }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { struct ConfigurationChangeEvent; } } } } }
namespace sd { namespace framework {
......
......@@ -20,7 +20,10 @@
#ifndef INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_DRAWMODULE_HXX
#define INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_DRAWMODULE_HXX
#include <com/sun/star/frame/XController.hpp>
#include <sal/types.h>
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } }
namespace sd { namespace framework {
......
......@@ -24,16 +24,16 @@
#include <tools/SdGlobalResourceContainer.hxx>
#include <com/sun/star/drawing/framework/XConfigurationController.hpp>
#include <com/sun/star/drawing/framework/XView.hpp>
#include <com/sun/star/lang/XEventListener.hpp>
#include <functional>
#include <map>
#include <memory>
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XConfigurationController; } } } } }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XResourceId; } } } } }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XView; } } } } }
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { struct ConfigurationChangeEvent; } } } } }
namespace sd {
class ViewShell;
class ViewShellBase;
}
......
......@@ -20,7 +20,10 @@
#ifndef INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_IMPRESSMODULE_HXX
#define INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_IMPRESSMODULE_HXX
#include <com/sun/star/frame/XController.hpp>
#include <sal/types.h>
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } }
namespace sd { namespace framework {
......
......@@ -23,13 +23,13 @@
#include <MutexOwner.hxx>
#include <com/sun/star/drawing/framework/XModuleController.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/frame/XController.hpp>
#include <cppuhelper/compbase.hxx>
#include <memory>
#include <set>
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
namespace sd { namespace framework {
......@@ -38,7 +38,7 @@ typedef ::cppu::WeakComponentImplHelper <
css::lang::XInitialization
> ModuleControllerInterfaceBase;
/** The ModuleController has to tasks:
/** The ModuleController has two tasks:
1. It reads the
org.openoffice.Office.Impress/MultiPaneGUI/Framework/ResourceFactories
......
......@@ -24,11 +24,9 @@
#include <com/sun/star/drawing/framework/XPane.hpp>
#include <com/sun/star/drawing/framework/XPane2.hpp>
#include <com/sun/star/drawing/framework/TabBarButton.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <cppuhelper/compbase.hxx>
#include <vcl/vclptr.hxx>
#include <memory>
namespace vcl { class Window; }
......
......@@ -24,13 +24,10 @@
#include <com/sun/star/drawing/framework/XResourceFactory.hpp>
#include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
#include <com/sun/star/drawing/framework/XConfigurationController.hpp>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/compbase.hxx>
#include <memory>
namespace com { namespace sun { namespace star { namespace drawing { namespace framework { class XConfigurationController; } } } } }
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
namespace sd { namespace framework {
......
......@@ -20,7 +20,10 @@
#ifndef INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_PRESENTATIONMODULE_HXX
#define INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_PRESENTATIONMODULE_HXX
#include <com/sun/star/frame/XController.hpp>
#include <sal/types.h>
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } }
namespace sd { namespace framework {
......
......@@ -27,12 +27,13 @@
#include <com/sun/star/drawing/framework/XResourceId.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <memory>
namespace com { namespace sun { namespace star { namespace util { class XURLTransformer; } } } }
namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class WeakReference; } } } }
namespace sd { namespace framework {
typedef ::cppu::WeakImplHelper <
......
......@@ -24,15 +24,15 @@
#include <com/sun/star/drawing/framework/XView.hpp>
#include <com/sun/star/drawing/framework/XRelocatableResource.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/awt/XWindowListener.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/implbase.hxx>
#include <memory>
namespace sd { class ViewShell; }
namespace sd { namespace slidesorter { class SlideSorterViewShell; } }
namespace com { namespace sun { namespace star { namespace awt { class XWindow; } } } }
namespace sd { namespace framework {
......
......@@ -21,14 +21,16 @@
#define INCLUDED_SD_SOURCE_UI_INC_TOOLS_CONFIGURATIONACCESS_HXX
#include <rtl/ustring.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <vector>
#include <functional>
namespace com { namespace sun { namespace star { namespace container { class XHierarchicalNameAccess; } } } }
namespace com { namespace sun { namespace star { namespace container { class XNameAccess; } } } }
namespace com { namespace sun { namespace star { namespace lang { class XMultiServiceFactory; } } } }
namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
namespace sd { namespace tools {
/** This class gives access to the configuration. Create an object of this
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SD_SOURCE_UI_INC_TOOLS_IDLEDETECTION_HXX
#define INCLUDED_SD_SOURCE_UI_INC_TOOLS_IDLEDETECTION_HXX
#include <sal/types.h>
#include <o3tl/typed_flags_set.hxx>
namespace vcl { class Window; }
......
......@@ -20,10 +20,12 @@
#ifndef INCLUDED_SD_SOURCE_UI_INC_TOOLS_SDGLOBALRESOURCECONTAINER_HXX
#define INCLUDED_SD_SOURCE_UI_INC_TOOLS_SDGLOBALRESOURCECONTAINER_HXX
#include <sdmod.hxx>
#include <memory>
#include <o3tl/deleter.hxx>
#include <com/sun/star/uno/XInterface.hpp>
#include <sal/types.h>
namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } }
namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
namespace o3tl { template <typename T> struct default_delete; }
namespace sd {
......
......@@ -22,13 +22,14 @@
#include <MutexOwner.hxx>
#include <com/sun/star/frame/XStatusListener.hpp>
#include <com/sun/star/frame/FeatureStateEvent.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <cppuhelper/compbase.hxx>
#include <tools/link.hxx>
namespace com { namespace sun { namespace star { namespace frame { class XDispatch; } } } }
namespace com { namespace sun { namespace star { namespace frame { class XDispatchProvider; } } } }
namespace com { namespace sun { namespace star { namespace frame { class XStatusListener; } } } }
namespace com { namespace sun { namespace star { namespace frame { struct FeatureStateEvent; } } } }
namespace sd { namespace tools {
typedef cppu::WeakComponentImplHelper<
......
......@@ -20,12 +20,16 @@
#ifndef INCLUDED_SD_SOURCE_UI_INC_VIEW_VIEWOVERLAYMANAGER_HXX
#define INCLUDED_SD_SOURCE_UI_INC_VIEW_VIEWOVERLAYMANAGER_HXX
#include <vcl/image.hxx>
#include <rtl/ref.hxx>
#include <tools/link.hxx>
#include <svl/lstner.hxx>
#include <EventMultiplexer.hxx>
#include <ViewShellBase.hxx>
#include <vector>
namespace sd { class SmartTag; }
namespace sd { namespace tools { class EventMultiplexerEvent; } }
namespace sd { class ViewShellBase; }
struct ImplSVEvent;
namespace sd
{
......
......@@ -26,6 +26,7 @@
#include <glob.hxx>
#include <helpids.h>
#include <pres.hxx>
#include <sdmod.hxx>
#include <sdpage.hxx>
#include <sdresid.hxx>
......
......@@ -62,6 +62,7 @@
#include <svx/svdpagv.hxx>
#include <svx/svxids.hrc>
#include <boost/optional.hpp>
#include <sdmod.hxx>
namespace {
static const sal_uInt32 SINGLE_CLICK (0x00000001);
......
......@@ -65,6 +65,7 @@
#include <unmodpg.hxx>
#include <DrawViewShell.hxx>
#include <sdabstdlg.hxx>
#include <sdmod.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
......
......@@ -61,6 +61,7 @@
#include <Window.hxx>
#include <drawview.hxx>
#include <undo/undoobjects.hxx>
#include <sdmod.hxx>
#include <memory>
......
......@@ -22,6 +22,7 @@
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/util/XChangesBatch.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
......
......@@ -31,6 +31,7 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
#include <com/sun/star/drawing/framework/XView.hpp>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/viewfrm.hxx>
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/frame/Desktop.hpp>
#include <o3tl/deleter.hxx>
#include <rtl/instance.hxx>
#include <sal/log.hxx>
......
......@@ -52,6 +52,7 @@
#include <DocumentRenderer.hxx>
#include <sdattr.hxx>
#include <optsitem.hxx>
#include <sdmod.hxx>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/document/XViewDataSupplier.hpp>
......
......@@ -36,6 +36,7 @@
#include <com/sun/star/drawing/framework/ResourceId.hpp>
#include <com/sun/star/drawing/framework/XControllerManager.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/drawing/framework/XView.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/servicehelper.hxx>
#include <tools/diagnose_ex.h>
......
......@@ -182,6 +182,7 @@
#include <unmodpg.hxx>
#include <sfx2/sidebar/Sidebar.hxx>
#include <sfx2/classificationhelper.hxx>
#include <sdmod.hxx>
#include <ViewShellBase.hxx>
#include <memory>
......
......@@ -96,6 +96,7 @@
#include <Window.hxx>
#include <fuformatpaintbrush.hxx>
#include <fuzoom.hxx>
#include <sdmod.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
......
......@@ -22,6 +22,7 @@
#include <svx/svxids.hrc>
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/drawing/framework/ResourceId.hpp>
#include <com/sun/star/drawing/framework/XView.hpp>
#include <rtl/ustrbuf.hxx>
#include <unokywds.hxx>
#include <vcl/settings.hxx>
......
......@@ -46,6 +46,7 @@
#include <bitmaps.hlst>
#include <sdresid.hxx>
#include <EventMultiplexer.hxx>
#include <ViewShellBase.hxx>
#include <ViewShellManager.hxx>
#include <sdpage.hxx>
#include <drawdoc.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment