summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/Module_avmedia.mk1
-rw-r--r--avmedia/Package_inc.mk37
-rw-r--r--avmedia/inc/avmedia/avmediadllapi.h34
-rw-r--r--avmedia/inc/avmedia/mediaitem.hxx132
-rw-r--r--avmedia/inc/avmedia/mediaplayer.hxx76
-rw-r--r--avmedia/inc/avmedia/mediatoolbox.hxx60
-rw-r--r--avmedia/inc/avmedia/mediawindow.hxx123
7 files changed, 0 insertions, 463 deletions
diff --git a/avmedia/Module_avmedia.mk b/avmedia/Module_avmedia.mk
index 2f03dd941017..4888d4adfc9a 100644
--- a/avmedia/Module_avmedia.mk
+++ b/avmedia/Module_avmedia.mk
@@ -31,7 +31,6 @@ $(eval $(call gb_Module_Module,avmedia))
$(eval $(call gb_Module_add_targets,avmedia,\
AllLangResTarget_avmedia \
Library_avmedia \
- Package_inc \
))
ifeq ($(ENABLE_GSTREAMER),TRUE)
diff --git a/avmedia/Package_inc.mk b/avmedia/Package_inc.mk
deleted file mode 100644
index c245ba32cb64..000000000000
--- a/avmedia/Package_inc.mk
+++ /dev/null
@@ -1,37 +0,0 @@
-# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
-# Version: MPL 1.1 / GPLv3+ / LGPLv3+
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License or as specified alternatively below. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Initial Developer of the Original Code is
-# Matúš Kukan <matus.kukan@gmail.com>
-# Portions created by the Initial Developer are Copyright (C) 2011 the
-# Initial Developer. All Rights Reserved.
-#
-# Major Contributor(s):
-#
-# For minor contributions see the git repository.
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
-# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
-# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
-# instead of those above.
-
-$(eval $(call gb_Package_Package,avmedia_inc,$(SRCDIR)/avmedia/inc))
-
-$(eval $(call gb_Package_add_file,avmedia_inc,inc/avmedia/avmediadllapi.h,avmedia/avmediadllapi.h))
-$(eval $(call gb_Package_add_file,avmedia_inc,inc/avmedia/mediaitem.hxx,avmedia/mediaitem.hxx))
-$(eval $(call gb_Package_add_file,avmedia_inc,inc/avmedia/mediaplayer.hxx,avmedia/mediaplayer.hxx))
-$(eval $(call gb_Package_add_file,avmedia_inc,inc/avmedia/mediatoolbox.hxx,avmedia/mediatoolbox.hxx))
-$(eval $(call gb_Package_add_file,avmedia_inc,inc/avmedia/mediawindow.hxx,avmedia/mediawindow.hxx))
-
-# vim: set noet sw=4 ts=4:
diff --git a/avmedia/inc/avmedia/avmediadllapi.h b/avmedia/inc/avmedia/avmediadllapi.h
deleted file mode 100644
index 351b82854a7f..000000000000
--- a/avmedia/inc/avmedia/avmediadllapi.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_AVMEDIADLLAPI_H
-#define INCLUDED_AVMEDIADLLAPI_H
-
-#include "sal/types.h"
-
-#if defined(AVMEDIA_DLLIMPLEMENTATION)
-#define AVMEDIA_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
-#else
-#define AVMEDIA_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
-#endif
-#define AVMEDIA_DLLPRIVATE SAL_DLLPRIVATE
-
-#endif /* INCLUDED_AVMEDIADLLAPI_H */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/avmedia/inc/avmedia/mediaitem.hxx b/avmedia/inc/avmedia/mediaitem.hxx
deleted file mode 100644
index f14281999307..000000000000
--- a/avmedia/inc/avmedia/mediaitem.hxx
+++ /dev/null
@@ -1,132 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef AVMEDIA_MEDIAITEM_HXX
-#define AVMEDIA_MEDIAITEM_HXX
-
-#include <boost/scoped_ptr.hpp>
-
-#include <tools/rtti.hxx>
-#include <svl/poolitem.hxx>
-#include <com/sun/star/media/ZoomLevel.hpp>
-#include <com/sun/star/frame/XModel.hpp>
-#include <avmedia/avmediadllapi.h>
-
-#define AVMEDIA_SETMASK_NONE ((sal_uInt32)(0x00000000))
-#define AVMEDIA_SETMASK_STATE ((sal_uInt32)(0x00000001))
-#define AVMEDIA_SETMASK_DURATION ((sal_uInt32)(0x00000002))
-#define AVMEDIA_SETMASK_TIME ((sal_uInt32)(0x00000004))
-#define AVMEDIA_SETMASK_LOOP ((sal_uInt32)(0x00000008))
-#define AVMEDIA_SETMASK_MUTE ((sal_uInt32)(0x00000010))
-#define AVMEDIA_SETMASK_VOLUMEDB ((sal_uInt32)(0x00000020))
-#define AVMEDIA_SETMASK_ZOOM ((sal_uInt32)(0x00000040))
-#define AVMEDIA_SETMASK_URL ((sal_uInt32)(0x00000080))
-#define AVMEDIA_SETMASK_ALL ((sal_uInt32)(0xffffffff))
-
-class SvStream;
-
-namespace avmedia
-{
-
-//---------------
-// - MediaState -
-// --------------
-
-enum MediaState
-{
- MEDIASTATE_STOP = 0,
- MEDIASTATE_PLAY = 1,
- MEDIASTATE_PLAYFFW = 2,
- MEDIASTATE_PAUSE = 3
-};
-
-// -------------
-// - MediaItem -
-// -------------
-
-class AVMEDIA_DLLPUBLIC MediaItem : public SfxPoolItem
-{
-public:
- TYPEINFO();
-
- explicit MediaItem( sal_uInt16 const i_nWhich = 0,
- sal_uInt32 const nMaskSet = AVMEDIA_SETMASK_NONE );
- MediaItem( const MediaItem& rMediaItem );
- virtual ~MediaItem();
-
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
- virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreUnit,
- SfxMapUnit ePresUnit,
- OUString& rText,
- const IntlWrapper *pIntl ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
-
- void merge( const MediaItem& rMediaItem );
-
- sal_uInt32 getMaskSet() const;
-
- void setState( MediaState eState );
- MediaState getState() const;
-
- void setDuration( double fDuration );
- double getDuration() const;
-
- void setTime( double fTime );
- double getTime() const;
-
- void setLoop( bool bLoop );
- bool isLoop() const;
-
- void setMute( bool bMute );
- bool isMute() const;
-
- void setVolumeDB( sal_Int16 nDB );
- sal_Int16 getVolumeDB() const;
-
- void setZoom( ::com::sun::star::media::ZoomLevel eZoom );
- ::com::sun::star::media::ZoomLevel getZoom() const;
-
- void setURL( const OUString& rURL,
- OUString const*const pTempURL);
- const OUString& getURL() const;
-
- const OUString& getTempURL() const;
-
-private:
-
- struct Impl;
- ::boost::scoped_ptr<Impl> m_pImpl;
-};
-
-typedef ::avmedia::MediaItem avmedia_MediaItem;
-
-bool AVMEDIA_DLLPUBLIC EmbedMedia(
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>
- const& xModel,
- OUString const& rSourceURL,
- OUString & o_rEmbeddedURL);
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/avmedia/inc/avmedia/mediaplayer.hxx b/avmedia/inc/avmedia/mediaplayer.hxx
deleted file mode 100644
index b823f7c63b67..000000000000
--- a/avmedia/inc/avmedia/mediaplayer.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _AVMEDIA_MEDIACHILD_HXX
-#define _AVMEDIA_MEDIACHILD_HXX
-
-#include <sfx2/ctrlitem.hxx>
-#include <sfx2/dockwin.hxx>
-#include <avmedia/avmediadllapi.h>
-
-#define AVMEDIA_MEDIAWINDOW() \
-(static_cast< ::avmedia::MediaFloater* >( ( \
-SfxViewFrame::Current() && SfxViewFrame::Current()->GetChildWindow(::avmedia::MediaPlayer::GetChildWindowId())) ? \
-SfxViewFrame::Current()->GetChildWindow(::avmedia::MediaPlayer::GetChildWindowId())->GetWindow() : \
-NULL))
-
-namespace avmedia
-{
-
-class AVMEDIA_DLLPUBLIC MediaPlayer : public SfxChildWindow
-{
-public:
- MediaPlayer( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
- ~MediaPlayer();
-
- SFX_DECL_CHILDWINDOW_WITHID( MediaPlayer );
-};
-
-class MediaWindow;
-
-class AVMEDIA_DLLPUBLIC MediaFloater : public SfxDockingWindow
-{
-public:
-
- MediaFloater( SfxBindings* pBindings, SfxChildWindow* pCW, Window* pParent );
- ~MediaFloater();
-
- void setURL( const OUString& rURL, bool bPlayImmediately );
- const OUString& getURL() const;
-
- void dispatchCurrentURL();
-
-protected:
-
- virtual void Resize();
- virtual void ToggleFloatingMode();
-
-private:
-
- MediaWindow* mpMediaWindow;
- Size maLastSize;
-
- AVMEDIA_DLLPRIVATE void implInit();
-};
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/avmedia/inc/avmedia/mediatoolbox.hxx b/avmedia/inc/avmedia/mediatoolbox.hxx
deleted file mode 100644
index 570167024aff..000000000000
--- a/avmedia/inc/avmedia/mediatoolbox.hxx
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _AVMEDIA_MEDIATOOLBOX_HXX
-#define _AVMEDIA_MEDIATOOLBOX_HXX
-
-#include <svl/lstner.hxx>
-#include <sfx2/tbxctrl.hxx>
-#include <avmedia/avmediadllapi.h>
-
-namespace avmedia
-{
-
-// -------------------------------
-// - SvxGrafFilterToolBoxControl -
-// -------------------------------
-
-class MediaItem;
-
-class AVMEDIA_DLLPUBLIC MediaToolBoxControl : public SfxToolBoxControl
-{
- friend class MediaToolBoxControl_Impl;
-
-public:
-
- SFX_DECL_TOOLBOX_CONTROL();
-
- MediaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbX );
- ~MediaToolBoxControl();
-
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
- virtual Window* CreateItemWindow( Window* pParent );
-
-private:
-
- AVMEDIA_DLLPRIVATE void implUpdateMediaControl();
- AVMEDIA_DLLPRIVATE void implExecuteMediaControl( const MediaItem& rItem );
-};
-
-}
-
-#endif // _AVMEDIA_MEDIATOOLBOX_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/avmedia/inc/avmedia/mediawindow.hxx b/avmedia/inc/avmedia/mediawindow.hxx
deleted file mode 100644
index a5cb5dc8e7a8..000000000000
--- a/avmedia/inc/avmedia/mediawindow.hxx
+++ /dev/null
@@ -1,123 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _AVMEDIA_MEDIAWINDOW_HXX
-#define _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 <avmedia/avmediadllapi.h>
-
-#define AVMEDIA_FRAMEGRABBER_DEFAULTFRAME -1.0
-
-class Window;
-class KeyEvent;
-class MouseEvent;
-class CommandEvent;
-class PopupMenu;
-class Pointer;
-struct AcceptDropEvent;
-struct ExecuteDropEvent;
-
-
-namespace avmedia
-{
- typedef ::std::vector< ::std::pair< OUString, OUString > > FilterNameVector;
-
- class MediaItem;
-
- namespace priv { class MediaWindowImpl; }
-
- class AVMEDIA_DLLPUBLIC MediaWindow
- {
- public:
- MediaWindow( Window* parent, bool bInternalMediaControl );
- virtual ~MediaWindow();
-
- void setURL( const OUString& rURL );
- const OUString& getURL() const;
-
- bool isValid() const;
- Size getPreferredSize() const;
-
- Window* getWindow() const;
-
- void setPosSize( const Rectangle& rNewRect );
-
- void setPointer( const Pointer& rPointer );
-
- bool start();
-
- void updateMediaItem( MediaItem& rItem ) const;
- void executeMediaItem( const MediaItem& rItem );
-
- void show();
- void hide();
-
- public:
-
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
-
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void KeyUp( const KeyEvent& rKEvt );
-
- virtual void Command( const CommandEvent& rCEvt );
-
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
- virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
-
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
-
- public:
-
- static void getMediaFilters( FilterNameVector& rFilterNameVector );
- /// @param o_pbLink if not 0, this is an "insert" dialog: display link
- /// checkbox and store its state in *o_pbLink
- static bool executeMediaURLDialog( Window* pParent,
- OUString& rURL, bool *const o_pbLink );
- static void executeFormatErrorBox( Window* pParent );
- static bool isMediaURL( const OUString& rURL, bool bDeep = false, Size* pPreferredSizePixel = NULL );
-
- static ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > createPlayer( const OUString& rURL );
-
- static ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > grabFrame( const OUString& rURL,
- bool bAllowToCreateReplacementGraphic = false,
- double fMediaTime = AVMEDIA_FRAMEGRABBER_DEFAULTFRAME );
-
- private:
-
- // default: disabled copy/assignment
- AVMEDIA_DLLPRIVATE MediaWindow(const MediaWindow&);
- AVMEDIA_DLLPRIVATE MediaWindow& operator =( const MediaWindow& );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxIFace;
- priv::MediaWindowImpl* mpImpl;
- };
-}
-
-#endif // _AVMEDIA_MEDIAWINDOW_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */