mediaplayer.hxx (80f267b3) mediaplayer.hxx (deb7b1c2)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24#ifndef _AVMEDIA_MEDIACHILD_HXX
25#define _AVMEDIA_MEDIACHILD_HXX
26
27#include <sfx2/ctrlitem.hxx>
28#include <sfx2/dockwin.hxx>
29#include <tools/urlobj.hxx>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24#ifndef _AVMEDIA_MEDIACHILD_HXX
25#define _AVMEDIA_MEDIACHILD_HXX
26
27#include <sfx2/ctrlitem.hxx>
28#include <sfx2/dockwin.hxx>
29#include <tools/urlobj.hxx>
30#include <avmedia/avmediadllapi.h>
30
31// -----------
32// - Defines -
33// -----------
34
35#define AVMEDIA_MEDIAWINDOW() \
36(static_cast< ::avmedia::MediaFloater* >( ( \
37SfxViewFrame::Current() && SfxViewFrame::Current()->GetChildWindow(::avmedia::MediaPlayer::GetChildWindowId())) ? \
38SfxViewFrame::Current()->GetChildWindow(::avmedia::MediaPlayer::GetChildWindowId())->GetWindow() : \
39NULL))
40
41namespace avmedia
42{
43
44// ---------------
45// - MediaPlayer -
46// ---------------
47
31
32// -----------
33// - Defines -
34// -----------
35
36#define AVMEDIA_MEDIAWINDOW() \
37(static_cast< ::avmedia::MediaFloater* >( ( \
38SfxViewFrame::Current() && SfxViewFrame::Current()->GetChildWindow(::avmedia::MediaPlayer::GetChildWindowId())) ? \
39SfxViewFrame::Current()->GetChildWindow(::avmedia::MediaPlayer::GetChildWindowId())->GetWindow() : \
40NULL))
41
42namespace avmedia
43{
44
45// ---------------
46// - MediaPlayer -
47// ---------------
48
48class MediaPlayer : public SfxChildWindow
49class AVMEDIA_DLLPUBLIC MediaPlayer : public SfxChildWindow
49{
50public:
51 MediaPlayer( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
52 ~MediaPlayer();
53
54 SFX_DECL_CHILDWINDOW( MediaPlayer );
55};
56
57// ----------------
58// - MediaFloater -
59// ----------------
60
61class MediaWindow;
62
50{
51public:
52 MediaPlayer( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
53 ~MediaPlayer();
54
55 SFX_DECL_CHILDWINDOW( MediaPlayer );
56};
57
58// ----------------
59// - MediaFloater -
60// ----------------
61
62class MediaWindow;
63
63class MediaFloater : public SfxDockingWindow
64class AVMEDIA_DLLPUBLIC MediaFloater : public SfxDockingWindow
64{
65public:
66
67 MediaFloater( SfxBindings* pBindings, SfxChildWindow* pCW, Window* pParent );
68 ~MediaFloater();
69
70 void setURL( const ::rtl::OUString& rURL, bool bPlayImmediately );
71 const ::rtl::OUString& getURL() const;

--- 21 unchanged lines hidden ---
65{
66public:
67
68 MediaFloater( SfxBindings* pBindings, SfxChildWindow* pCW, Window* pParent );
69 ~MediaFloater();
70
71 void setURL( const ::rtl::OUString& rURL, bool bPlayImmediately );
72 const ::rtl::OUString& getURL() const;

--- 21 unchanged lines hidden ---