1#ifndef INCLUDED_COM_SUN_STAR_LANG_XEVENTLISTENER_HDL
2#define INCLUDED_COM_SUN_STAR_LANG_XEVENTLISTENER_HDL
3
4#include "sal/config.h"
5
6#include <exception>
7
8#include "com/sun/star/lang/EventObject.hdl"
9#include "com/sun/star/uno/RuntimeException.hdl"
10#include "com/sun/star/uno/XInterface.hdl"
11#include "com/sun/star/uno/Reference.h"
12#include "cppu/macros.hxx"
13
14namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
15
16namespace com { namespace sun { namespace star { namespace lang {
17
18class SAL_NO_VTABLE XEventListener : public ::css::uno::XInterface
19{
20public:
21
22 // Methods
23 virtual void SAL_CALL disposing( const ::css::lang::EventObject& Source ) /* throw (::css::uno::RuntimeException, ::std::exception) */ = 0;
24
25 static inline ::css::uno::Type const & SAL_CALL static_type(void * = 0);
26
27protected:
28 ~XEventListener() throw () {} // avoid warnings about virtual members and non-virtual dtor
29};
30
31
32inline ::css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::css::lang::XEventListener const *);
33} } } }
34
35inline ::css::uno::Type const & SAL_CALL getCppuType(const ::css::uno::Reference< ::css::lang::XEventListener > *) SAL_THROW(());
36
37#endif
38