summaryrefslogtreecommitdiff
path: root/include/avmedia
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-04-11 07:08:33 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-04-12 14:22:34 +0200
commitc4e04d6f7915dcb30817a5216b641fbffe24111e (patch)
tree29681d2675b54387f9aa15874b443477c0a522ea /include/avmedia
parent812f0a83d223cddf00b121db40ca7ff91c22ccfa (diff)
tdf#42949 Fix IWYU warnings in include/avmedia/
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ia418fdf7077d1c0c169671770237381c4da7b7b0 Reviewed-on: https://gerrit.libreoffice.org/70582 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include/avmedia')
-rw-r--r--include/avmedia/MediaControlBase.hxx7
-rw-r--r--include/avmedia/mediaitem.hxx7
-rw-r--r--include/avmedia/mediaplayer.hxx1
-rw-r--r--include/avmedia/mediatoolbox.hxx1
-rw-r--r--include/avmedia/mediawindow.hxx12
5 files changed, 13 insertions, 15 deletions
diff --git a/include/avmedia/MediaControlBase.hxx b/include/avmedia/MediaControlBase.hxx
index 29e1ab7b4fc4..73febe30fd76 100644
--- a/include/avmedia/MediaControlBase.hxx
+++ b/include/avmedia/MediaControlBase.hxx
@@ -19,13 +19,14 @@
#ifndef INCLUDED_AVMEDIA_MEDIACONTROLBASE_HXX
#define INCLUDED_AVMEDIA_MEDIACONTROLBASE_HXX
-#include <svx/svxdllapi.h>
#include <vcl/edit.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/slider.hxx>
-#include <avmedia/mediaitem.hxx>
-#include <avmedia/mediawindow.hxx>
+
+#include <avmedia/avmediadllapi.h>
+
+namespace avmedia { class MediaItem; }
#define AVMEDIA_TIME_RANGE 2048
#define AVMEDIA_DB_RANGE -40
diff --git a/include/avmedia/mediaitem.hxx b/include/avmedia/mediaitem.hxx
index 1b7b235b7b6e..575d8f7be239 100644
--- a/include/avmedia/mediaitem.hxx
+++ b/include/avmedia/mediaitem.hxx
@@ -22,13 +22,14 @@
#include <svl/poolitem.hxx>
#include <com/sun/star/media/ZoomLevel.hpp>
-#include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/embed/XStorage.hpp>
#include <avmedia/avmediadllapi.h>
#include <memory>
#include <o3tl/typed_flags_set.hxx>
-class SvStream;
+namespace com::sun::star::embed { class XStorage; }
+namespace com::sun::star::frame { class XModel; }
+namespace com::sun::star::io { class XInputStream; }
+namespace com::sun::star::io { class XStream; }
enum class AVMediaSetMask
{
diff --git a/include/avmedia/mediaplayer.hxx b/include/avmedia/mediaplayer.hxx
index 12164cdc9308..396b94f7a660 100644
--- a/include/avmedia/mediaplayer.hxx
+++ b/include/avmedia/mediaplayer.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_AVMEDIA_MEDIAPLAYER_HXX
#define INCLUDED_AVMEDIA_MEDIAPLAYER_HXX
-#include <sfx2/ctrlitem.hxx>
#include <sfx2/dockwin.hxx>
#include <sfx2/viewfrm.hxx>
#include <avmedia/avmediadllapi.h>
diff --git a/include/avmedia/mediatoolbox.hxx b/include/avmedia/mediatoolbox.hxx
index 887db1a0b697..5f39eab95ac1 100644
--- a/include/avmedia/mediatoolbox.hxx
+++ b/include/avmedia/mediatoolbox.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_AVMEDIA_MEDIATOOLBOX_HXX
#define INCLUDED_AVMEDIA_MEDIATOOLBOX_HXX
-#include <svl/lstner.hxx>
#include <sfx2/tbxctrl.hxx>
#include <avmedia/avmediadllapi.h>
diff --git a/include/avmedia/mediawindow.hxx b/include/avmedia/mediawindow.hxx
index 83a69ecf7378..1a84a810576d 100644
--- a/include/avmedia/mediawindow.hxx
+++ b/include/avmedia/mediawindow.hxx
@@ -20,24 +20,22 @@
#ifndef INCLUDED_AVMEDIA_MEDIAWINDOW_HXX
#define INCLUDED_AVMEDIA_MEDIAWINDOW_HXX
-#include <memory>
#include <vector>
#include <tools/gen.hxx>
-#include <com/sun/star/media/ZoomLevel.hpp>
-#include <com/sun/star/media/XPlayer.hpp>
-#include <com/sun/star/graphic/XGraphic.hpp>
-#include <com/sun/star/uno/XInterface.hpp>
-#include <vcl/bitmapex.hxx>
+#include <com/sun/star/uno/Reference.hxx>
#include <vcl/vclptr.hxx>
#include <avmedia/avmediadllapi.h>
#define AVMEDIA_FRAMEGRABBER_DEFAULTFRAME -1.0
+namespace com::sun::star::graphic { class XGraphic; }
+namespace com::sun::star::media { class XPlayer; }
+
+namespace vcl { class Window; }
namespace weld { class Window; }
class KeyEvent;
class MouseEvent;
class CommandEvent;
-class PopupMenu;
struct AcceptDropEvent;
struct ExecuteDropEvent;
enum class PointerStyle;