diff options
author | Christian Lippka <cl@openoffice.org> | 2001-01-15 13:26:48 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-01-15 13:26:48 +0000 |
commit | efdc741906d93ee4f529b3cb17707c9b1c2d55ce (patch) | |
tree | c88b6431d2c9bc72c78f38922da525edd40fa89a /sd/source/ui/unoidl/unocpres.hxx | |
parent | 25ff9bd34e1575213bebfa052f6e8013f0f9bc74 (diff) |
#82097# SdXCustomPresentation is now an XComponent
Diffstat (limited to 'sd/source/ui/unoidl/unocpres.hxx')
-rw-r--r-- | sd/source/ui/unoidl/unocpres.hxx | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/sd/source/ui/unoidl/unocpres.hxx b/sd/source/ui/unoidl/unocpres.hxx index 0dc382a1638e..00b774ee6b2a 100644 --- a/sd/source/ui/unoidl/unocpres.hxx +++ b/sd/source/ui/unoidl/unocpres.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unocpres.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:48:42 $ + * last change: $Author: cl $ $Date: 2001-01-15 14:26:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,9 @@ #ifndef _SD_UNOCPRES_HXX #define _SD_UNOCPRES_HXX +#ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_ +#include <com/sun/star/lang/XComponent.hpp> +#endif #ifndef _COM_SUN_STAR_CONTAINER_XINDEXCONTAINER_HPP_ #include <com/sun/star/container/XIndexContainer.hpp> #endif @@ -73,8 +76,14 @@ #ifndef _COM_SUN_STAR_LANG_XUNOTUNNEL_HPP_ #include <com/sun/star/lang/XUnoTunnel.hpp> #endif +#ifndef _CPPUHELPER_INTERFACECONTAINER_H_ +#include <cppuhelper/interfacecontainer.h> +#endif +#ifndef _OSL_MUTEX_HXX_ +#include <osl/mutex.hxx> +#endif -#include <cppuhelper/implbase4.hxx> +#include <cppuhelper/implbase5.hxx> #include <unotools/servicehelper.hxx> /////////////////////////////////////////////////////////////////////////////// @@ -84,15 +93,21 @@ class SdView; class SdDrawViewShell; class SdCustomShow; -class SdXCustomPresentation : public ::cppu::WeakImplHelper4< ::com::sun::star::container::XIndexContainer, +class SdXCustomPresentation : public ::cppu::WeakImplHelper5< ::com::sun::star::container::XIndexContainer, ::com::sun::star::container::XNamed, ::com::sun::star::lang::XUnoTunnel, + ::com::sun::star::lang::XComponent, ::com::sun::star::lang::XServiceInfo > { private: SdCustomShow* mpSdCustomShow; SdXImpressDocument* mpModel; + // for xComponent + ::osl::Mutex aDisposeContainerMutex; + ::cppu::OInterfaceContainerHelper aDisposeListeners; + BOOL bDisposing; + public: SdXCustomPresentation() throw(); SdXCustomPresentation( SdCustomShow* mpSdCustomShow, SdXImpressDocument* pMyModel) throw(); @@ -130,6 +145,11 @@ public: // XNamed virtual ::rtl::OUString SAL_CALL getName( ) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException); + + // XComponent + virtual void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException); }; // -------------------------------------------------------------------------- |