diff options
author | Dirk Völzke <dv@openoffice.org> | 2001-02-21 08:53:27 +0000 |
---|---|---|
committer | Dirk Völzke <dv@openoffice.org> | 2001-02-21 08:53:27 +0000 |
commit | e58ccd44a6c8f4e04a22f8fb727558e66f9a2a13 (patch) | |
tree | b2034010b7a15fab4070b0cf958f658bdcdb6320 /sfx2 | |
parent | 98ed5b4141d9cae44f5f9aed688712f42779e512 (diff) |
Use WeakImplHelper instead of SFX_DECL_XINTERFACE_XTYPEPROVIDER
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/inc/eventsupplier.hxx | 16 |
1 files changed, 7 insertions, 9 deletions
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 <cppuhelper/weak.hxx> #endif +#ifndef _CPPUHELPER_IMPLBASE2_HXX_ +#include <cppuhelper/implbase2.hxx> +#endif #ifndef _SFX_SFXUNO_HXX #include <sfxuno.hxx> @@ -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, |