tdf#42949 Fix IWYU warnings in sd/source/ui/slidesorter/inc/*

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

Change-Id: I48e3c5a62314baa11d6c53ce41311a9a0f1c661b
Reviewed-on: https://gerrit.libreoffice.org/62678
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
Gabor Kelemen
2018-10-31 01:07:00 +01:00
committed by Miklos Vajna
parent 5d43a4d941
commit 2b39827a0e
40 changed files with 83 additions and 97 deletions

View File

@@ -186,3 +186,6 @@ blacklist:
sd/source/ui/inc/tools/SlotStateListener.hxx:
# base class has to be a complete type
- com/sun/star/frame/XStatusListener.hpp
sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx:
# Needed for template
- o3tl/deleter.hxx

View File

@@ -21,6 +21,7 @@
#include <controller/SlsProperties.hxx>
#include <view/SlideSorterView.hxx>
#include <view/SlsLayouter.hxx>
#include <view/SlsInsertAnimator.hxx>
#include <view/SlsInsertionIndicatorOverlay.hxx>
#include <model/SlideSorterModel.hxx>
#include <model/SlsPageEnumerationProvider.hxx>

View File

@@ -21,6 +21,7 @@
#include <SlideSorter.hxx>
#include <SlideSorterViewShell.hxx>
#include <ViewShell.hxx>
#include <ViewShellHint.hxx>
#include <controller/SlideSorterController.hxx>
#include <controller/SlsPageSelector.hxx>
@@ -35,6 +36,7 @@
#include <drawdoc.hxx>
#include <sdpage.hxx>
#include <DrawDocShell.hxx>
#include <svx/svdpage.hxx>
#include <ViewShellBase.hxx>
#include <ViewShellManager.hxx>

View File

@@ -34,6 +34,8 @@
#include <tools/link.hxx>
#include <memory>
class SdrPage;
namespace sd {
class ViewShellBase;
}

View File

@@ -20,6 +20,7 @@
#include <controller/SlsScrollBarManager.hxx>
#include <SlideSorter.hxx>
#include <ViewShell.hxx>
#include <controller/SlideSorterController.hxx>
#include <controller/SlsVisibleAreaManager.hxx>
#include <model/SlideSorterModel.hxx>

View File

@@ -28,6 +28,8 @@
#include <controller/SlsScrollBarManager.hxx>
#include <controller/SlsCurrentSlideManager.hxx>
#include <Window.hxx>
#include <SlideSorter.hxx>
#include <view/SlideSorterView.hxx>
namespace sd { namespace slidesorter { namespace controller {

View File

@@ -21,12 +21,13 @@
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CACHE_SLSCACHECONTEXT_HXX
#include <sal/types.h>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <memory>
#include <vector>
namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
class SdrPage;
class BitmapEx;
namespace sd { namespace slidesorter { namespace cache {

View File

@@ -21,7 +21,6 @@
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CACHE_SLSPAGECACHE_HXX
#include <cache/SlsCacheContext.hxx>
#include <sal/types.h>
#include <vcl/bitmapex.hxx>
#include <memory>

View File

@@ -21,18 +21,23 @@
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLIDESORTERCONTROLLER_HXX
#include <model/SlsSharedPageDescriptor.hxx>
#include <ViewShell.hxx>
#include <pres.hxx>
#include <com/sun/star/drawing/XDrawPages.hpp>
#include <sfx2/shell.hxx>
#include <sfx2/viewfac.hxx>
#include <tools/link.hxx>
#include <tools/gen.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustring.hxx>
#include <sddllapi.h>
#include <memory>
#include <vector>
namespace com { namespace sun { namespace star { namespace container { class XIndexAccess; } } } }
namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } }
namespace sd { class FuPoor; }
namespace sd { class Window; }
namespace vcl { class Window; }
namespace sd { namespace slidesorter {
class SlideSorter;
@@ -46,6 +51,13 @@ namespace sd { namespace slidesorter { namespace model {
class SlideSorterModel;
} } }
class CommandEvent;
class SdPage;
class SfxItemSet;
class SfxRequest;
class VclSimpleEvent;
class VclWindowEvent;
namespace sd { namespace slidesorter { namespace controller {
class Animator;

View File

@@ -20,15 +20,11 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSANIMATIONFUNCTION_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSANIMATIONFUNCTION_HXX
#include <model/SlsSharedPageDescriptor.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <functional>
#include <vector>
namespace sd { namespace slidesorter { namespace view {
class SlideSorterView;
} } }
namespace sd { namespace slidesorter { namespace controller {

View File

@@ -20,11 +20,8 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSANIMATOR_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSANIMATOR_HXX
#include <SlideSorter.hxx>
#include <view/SlideSorterView.hxx>
#include <canvas/elapsedtime.hxx>
#include <o3tl/deleter.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <sal/types.h>
@@ -32,6 +29,9 @@
#include <memory>
#include <vector>
namespace sd { namespace slidesorter { class SlideSorter; } }
namespace o3tl { template <typename T> struct default_delete; }
namespace sd { namespace slidesorter { namespace controller {
/** Experimental class for simple eye candy animations.

View File

@@ -27,13 +27,10 @@
#include <sal/types.h>
#include <o3tl/deleter.hxx>
#include <tools/solar.h>
#include <svx/svdpage.hxx>
#include <svx/svdtypes.hxx>
#include <sddllapi.h>
#include <set>
class SfxRequest;
struct AcceptDropEvent;
class DropTargetHelper;
@@ -51,10 +48,6 @@ namespace sd { namespace slidesorter {
class SlideSorter;
} }
namespace sd { namespace slidesorter { namespace model {
class PageDescriptor;
} } }
namespace sd { namespace slidesorter { namespace controller {
class SlideSorterController;

View File

@@ -23,7 +23,6 @@
#include <model/SlsSharedPageDescriptor.hxx>
#include <vcl/timer.hxx>
#include <tools/link.hxx>
#include <com/sun/star/drawing/XDrawPage.hpp>
class SdPage;

View File

@@ -20,10 +20,9 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSINSERTIONINDICATORHANDLER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSINSERTIONINDICATORHANDLER_HXX
#include <view/SlsInsertAnimator.hxx>
#include <controller/SlsAnimator.hxx>
#include <view/SlsLayouter.hxx>
#include <sdxfer.hxx>
namespace sd { namespace slidesorter { class SlideSorter; } }
namespace sd { namespace slidesorter { namespace view {
@@ -31,9 +30,9 @@ class InsertAnimator;
class InsertionIndicatorOverlay;
} } }
namespace sd { namespace slidesorter { namespace controller {
class SdTransferable;
class Transferable;
namespace sd { namespace slidesorter { namespace controller {
/** Manage the visibility and location of the insertion indicator. Its
actual display is controlled by the InsertionIndicatorOverlay.

View File

@@ -22,7 +22,6 @@
#include <model/SlsSharedPageDescriptor.hxx>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <vector>
#include <memory>

View File

@@ -20,16 +20,15 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSSCROLLBARMANAGER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSSCROLLBARMANAGER_HXX
#include <SlideSorter.hxx>
#include <tools/link.hxx>
#include <tools/gen.hxx>
#include <vcl/timer.hxx>
#include <vcl/scrbar.hxx>
#include <vcl/vclptr.hxx>
#include <functional>
class ScrollBar;
class ScrollBarBox;
namespace sd { class Window; }
namespace sd { namespace slidesorter { class SlideSorter; } }

View File

@@ -20,17 +20,16 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSSELECTIONFUNCTION_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSSELECTIONFUNCTION_HXX
#include <model/SlsSharedPageDescriptor.hxx>
#include <controller/SlsFocusManager.hxx>
#include <controller/SlsInsertionIndicatorHandler.hxx>
#include <fupoor.hxx>
#include <vcl/transfer.hxx>
#include <memory>
namespace sd { namespace slidesorter {
class SlideSorter;
} }
struct AcceptDropEvent;
namespace sd { namespace slidesorter { namespace controller {
class SlideSorterController;

View File

@@ -20,13 +20,10 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSSELECTIONMANAGER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSSELECTIONMANAGER_HXX
#include <model/SlsSharedPageDescriptor.hxx>
#include <controller/SlsAnimator.hxx>
#include <sal/types.h>
#include <tools/gen.hxx>
#include <tools/link.hxx>
#include <basegfx/range/b2irectangle.hxx>
#include <vector>
#include <memory>
class SdPage;

View File

@@ -28,8 +28,8 @@ namespace sd { namespace slidesorter {
class SlideSorter;
} }
class SdDrawDocument;
class SdrPage;
class SdPage;
namespace sd { namespace slidesorter { namespace controller {

View File

@@ -21,7 +21,7 @@
#include <model/SlsSharedPageDescriptor.hxx>
#include <tools/link.hxx>
#include <queue>
#include <rtl/ustring.hxx>
class AbstractSvxNameDialog;
class SfxItemSet;
@@ -33,8 +33,6 @@ class SlideSorter;
namespace sd { namespace slidesorter { namespace controller {
class Command;
/** This manager takes over the work of handling slot calls from the
controller of the slide sorter.
*/

View File

@@ -23,7 +23,6 @@
#include <sdxfer.hxx>
#include <vector>
#include <functional>
class SdDrawDocument;
namespace sd { namespace slidesorter {

View File

@@ -20,9 +20,12 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSVISIBLEAREAMANAGER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSVISIBLEAREAMANAGER_HXX
#include <controller/SlsAnimator.hxx>
#include <model/SlsSharedPageDescriptor.hxx>
#include <boost/optional.hpp>
#include <tools/gen.hxx>
#include <vector>
namespace sd { namespace slidesorter { class SlideSorter; } }
namespace sd { namespace slidesorter { namespace controller {

View File

@@ -22,16 +22,14 @@
class SdDrawDocument;
#include <model/SlsPageEnumeration.hxx>
#include <model/SlsSharedPageDescriptor.hxx>
#include <pres.hxx>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <osl/mutex.hxx>
#include <vcl/region.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <vector>
#include <functional>
class SdrPage;
class SdPage;
@@ -40,6 +38,9 @@ namespace sd { namespace slidesorter {
class SlideSorter;
} }
namespace com { namespace sun { namespace star { namespace container { class XIndexAccess; } } } }
namespace com { namespace sun { namespace star { namespace drawing { class XDrawPage; } } } }
namespace sd { namespace slidesorter { namespace model {
inline sal_Int32 FromCoreIndex (const sal_uInt16 nCoreIndex) { return (nCoreIndex-1)/2; }

View File

@@ -21,13 +21,13 @@
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_MODEL_SLSPAGEDESCRIPTOR_HXX
#include <model/SlsVisualState.hxx>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <tools/gen.hxx>
#include <vcl/bitmap.hxx>
#include <sfx2/viewfrm.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <memory>
namespace com { namespace sun { namespace star { namespace drawing { class XDrawPage; } } } }
class SdPage;
class SdrPage;

View File

@@ -20,10 +20,6 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_MODEL_SLSPAGEENUMERATION_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_MODEL_SLSPAGEENUMERATION_HXX
#include <sal/types.h>
#include <pres.hxx>
#include <model/SlsEnumeration.hxx>
#include <model/SlsSharedPageDescriptor.hxx>

View File

@@ -25,8 +25,6 @@
namespace sd { namespace slidesorter { namespace model {
class PageDescriptor;
/** This class gives access to values related to the visualization of page
objects. This includes animation state when blending from one state to
another.

View File

@@ -20,29 +20,16 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLIDESORTERVIEW_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLIDESORTERVIEW_HXX
#include <SlideSorter.hxx>
#include <model/SlsPageDescriptor.hxx>
#include <model/SlsSharedPageDescriptor.hxx>
#include <view/SlsLayouter.hxx>
#include <view/SlsILayerPainter.hxx>
#include <View.hxx>
#include <sfx2/viewfrm.hxx>
#include <pres.hxx>
#include <o3tl/deleter.hxx>
#include <tools/gen.hxx>
#include <svx/svdmodel.hxx>
#include <vcl/region.hxx>
#include <vcl/outdev.hxx>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
#include <memory>
class Point;
namespace sd { namespace slidesorter { namespace controller {
class Properties;
} } }
namespace sd { namespace slidesorter { namespace cache {
class PageCache;
} } }
@@ -51,10 +38,13 @@ namespace sd { namespace slidesorter { namespace model {
class SlideSorterModel;
} } }
namespace o3tl { template <typename T> struct default_delete; }
namespace sd { class Window; }
namespace sd { namespace slidesorter { class SlideSorter; } }
namespace sd { namespace slidesorter { namespace view {
class LayeredDevice;
class Layouter;
class PageObjectPainter;
class ToolTip;

View File

@@ -23,7 +23,6 @@
#include <tools/SdGlobalResourceContainer.hxx>
#include <memory>
#include <vcl/mapmod.hxx>
namespace vcl { class Font; }

View File

@@ -20,7 +20,6 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSILAYERPAINTER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSILAYERPAINTER_HXX
#include <sal/types.h>
#include <memory>
class OutputDevice;

View File

@@ -20,10 +20,8 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSINSERTIONINDICATOROVERLAY_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSINSERTIONINDICATOROVERLAY_HXX
#include <model/SlsSharedPageDescriptor.hxx>
#include <view/SlsILayerPainter.hxx>
#include <controller/SlsTransferableData.hxx>
#include <sdxfer.hxx>
#include <tools/gen.hxx>
#include <vcl/bitmapex.hxx>
@@ -31,15 +29,12 @@
#include <vector>
class OutputDevice;
class SdTransferable;
namespace sd { namespace slidesorter {
class SlideSorter;
} }
namespace sd { namespace slidesorter { namespace controller {
class Transferable;
} } }
namespace sd { namespace slidesorter { namespace view {
class FramePainter;

View File

@@ -20,17 +20,15 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSLAYOUTER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSLAYOUTER_HXX
#include <SlideSorter.hxx>
#include <view/SlsPageObjectLayouter.hxx>
#include <view/SlsTheme.hxx>
#include <vcl/vclptr.hxx>
#include <tools/gen.hxx>
#include <sal/types.h>
#include <tools/fract.hxx>
#include <vcl/mapmod.hxx>
#include <memory>
#include <vector>
#include <utility>
class Size;
namespace sd { class Window; }
namespace sd { namespace slidesorter { namespace model { class SlideSorterModel; } } }
namespace sd { namespace slidesorter { namespace view { class PageObjectLayouter; } } }
namespace sd { namespace slidesorter { namespace view { class Theme; } } }
namespace sd { namespace slidesorter { namespace view {

View File

@@ -20,12 +20,12 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSPAGEOBJECTLAYOUTER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSPAGEOBJECTLAYOUTER_HXX
#include <SlideSorter.hxx>
#include <model/SlsSharedPageDescriptor.hxx>
#include <tools/gen.hxx>
#include <vcl/image.hxx>
namespace vcl { class Font; }
namespace sd { class Window; }
namespace sd { namespace slidesorter { namespace view {

View File

@@ -20,9 +20,7 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSPAGEOBJECTPAINTER_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSPAGEOBJECTPAINTER_HXX
#include <SlideSorter.hxx>
#include <model/SlsPageDescriptor.hxx>
#include <view/SlsLayouter.hxx>
#include <model/SlsSharedPageDescriptor.hxx>
#include <view/SlsTheme.hxx>
#include <memory>
@@ -30,6 +28,8 @@ namespace sd { namespace slidesorter { namespace cache {
class PageCache;
} } }
namespace sd { namespace slidesorter { class SlideSorter; } }
namespace sd { namespace slidesorter { namespace view {
class Layouter;

View File

@@ -20,15 +20,13 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSTHEME_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSTHEME_HXX
#include <model/SlsVisualState.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/font.hxx>
#include <vcl/gradient.hxx>
#include <tools/color.hxx>
#include <memory>
namespace vcl { class Font; }
namespace sd { namespace slidesorter { namespace controller {
class Properties;
} } }

View File

@@ -20,10 +20,11 @@
#ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSTOOLTIP_HXX
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSTOOLTIP_HXX
#include <SlideSorter.hxx>
#include <model/SlsSharedPageDescriptor.hxx>
#include <vcl/timer.hxx>
namespace sd { namespace slidesorter { class SlideSorter; } }
namespace sd { namespace slidesorter { namespace view {
/** Manage the display of tool tips. The tool tip text changes when the

View File

@@ -22,6 +22,7 @@
#include <utility>
#include <model/SlsPageEnumeration.hxx>
#include <model/SlideSorterModel.hxx>
#include <model/SlsPageDescriptor.hxx>

View File

@@ -24,6 +24,7 @@
#include <view/SlsLayouter.hxx>
#include <model/SlideSorterModel.hxx>
#include <model/SlsPageEnumerationProvider.hxx>
#include <SlideSorter.hxx>
#include <Window.hxx>
#include <memory>

View File

@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <view/SlsPageObjectLayouter.hxx>
#include <view/SlsTheme.hxx>
#include <view/SlsLayouter.hxx>
#include <model/SlideSorterModel.hxx>
#include <model/SlsPageDescriptor.hxx>

View File

@@ -24,6 +24,7 @@
#include <view/SlsPageObjectLayouter.hxx>
#include <view/SlsLayouter.hxx>
#include <view/SlsTheme.hxx>
#include <SlideSorter.hxx>
#include "SlsFramePainter.hxx"
#include <cache/SlsPageCache.hxx>
#include <controller/SlsProperties.hxx>

View File

@@ -17,10 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <view/SlsPageObjectLayouter.hxx>
#include <view/SlsToolTip.hxx>
#include <view/SlideSorterView.hxx>
#include <view/SlsLayouter.hxx>
#include <view/SlsTheme.hxx>
#include <SlideSorter.hxx>
#include <Window.hxx>
#include <sdpage.hxx>
#include <sdresid.hxx>