From e58ccd44a6c8f4e04a22f8fb727558e66f9a2a13 Mon Sep 17 00:00:00 2001 From: Dirk Völzke Date: Wed, 21 Feb 2001 08:53:27 +0000 Subject: Use WeakImplHelper instead of SFX_DECL_XINTERFACE_XTYPEPROVIDER --- sfx2/source/inc/eventsupplier.hxx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/inc/eventsupplier.hxx b/sfx2/source/inc/eventsupplier.hxx index 9da846da7791..392b5f363be5 100644 --- a/sfx2/source/inc/eventsupplier.hxx +++ b/sfx2/source/inc/eventsupplier.hxx @@ -2,9 +2,9 @@ * * $RCSfile: eventsupplier.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: dv $ $Date: 2001-02-09 11:28:12 $ + * last change: $Author: dv $ $Date: 2001-02-21 09:53:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,6 +88,9 @@ #ifndef _CPPUHELPER_WEAK_HXX_ #include #endif +#ifndef _CPPUHELPER_IMPLBASE2_HXX_ +#include +#endif #ifndef _SFX_SFXUNO_HXX #include @@ -119,10 +122,8 @@ class SfxBaseModel; //-------------------------------------------------------------------------------------------------------- -class SfxEvents_Impl : public ::com::sun::star::lang::XTypeProvider - , public ::com::sun::star::container::XNameReplace - , public ::com::sun::star::document::XEventListener - , public ::cppu::OWeakObject + +class SfxEvents_Impl : public ::cppu::WeakImplHelper2< ::com::sun::star::container::XNameReplace, ::com::sun::star::document::XEventListener > { SEQUENCE< OUSTRING > maEventNames; SEQUENCE< ANY > maEventData; @@ -138,9 +139,6 @@ public: REFERENCE< XEVENTBROADCASTER > xBroadcaster ); ~SfxEvents_Impl(); - // --- XInterface --- , --- XTypeProvider --- - SFX_DECL_XINTERFACE_XTYPEPROVIDER - // --- XNameReplace --- virtual void SAL_CALL replaceByName( const OUSTRING & aName, const ANY & aElement ) throw( ILLEGALARGUMENTEXCEPTION, NOSUCHELEMENTEXCEPTION, -- cgit