Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SCRIPT_XEVENTATTACHERMANAGER_HDL
2 : #define INCLUDED_COM_SUN_STAR_SCRIPT_XEVENTATTACHERMANAGER_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
7 : #include "com/sun/star/lang/ServiceNotRegisteredException.hdl"
8 : #include "com/sun/star/script/ScriptEventDescriptor.hdl"
9 : namespace com { namespace sun { namespace star { namespace script { class XScriptListener; } } } }
10 : #include "com/sun/star/uno/RuntimeException.hdl"
11 : #include "com/sun/star/uno/XInterface.hdl"
12 : #include "com/sun/star/uno/Any.h"
13 : #include "com/sun/star/uno/Reference.h"
14 : #include "com/sun/star/uno/Sequence.h"
15 : #include "cppu/macros.hxx"
16 : #include "rtl/ustring.hxx"
17 : #include "sal/types.h"
18 :
19 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
20 :
21 : namespace com { namespace sun { namespace star { namespace script {
22 :
23 999 : class SAL_NO_VTABLE XEventAttacherManager : public css::uno::XInterface
24 : {
25 : public:
26 :
27 : // Methods
28 : virtual void SAL_CALL registerScriptEvent( ::sal_Int32 nIndex, const css::script::ScriptEventDescriptor& aScriptEvent ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual void SAL_CALL registerScriptEvents( ::sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< css::script::ScriptEventDescriptor >& aScriptEvents ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual void SAL_CALL revokeScriptEvent( ::sal_Int32 nIndex, const ::rtl::OUString& aListenerType, const ::rtl::OUString& aEventMethod, const ::rtl::OUString& aRemoveListenerParam ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL revokeScriptEvents( ::sal_Int32 nIndex ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL insertEntry( ::sal_Int32 nIndex ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL removeEntry( ::sal_Int32 nIndex ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::com::sun::star::uno::Sequence< css::script::ScriptEventDescriptor > SAL_CALL getScriptEvents( ::sal_Int32 Index ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL attach( ::sal_Int32 nIndex, const ::com::sun::star::uno::Reference< css::uno::XInterface >& xObject, const ::com::sun::star::uno::Any& aHelper ) /* throw (css::lang::IllegalArgumentException, css::lang::ServiceNotRegisteredException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL detach( ::sal_Int32 nIndex, const ::com::sun::star::uno::Reference< css::uno::XInterface >& xObject ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual void SAL_CALL addScriptListener( const ::com::sun::star::uno::Reference< css::script::XScriptListener >& xListener ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL removeScriptListener( const ::com::sun::star::uno::Reference< css::script::XScriptListener >& Listener ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 :
40 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
41 :
42 : protected:
43 986 : ~XEventAttacherManager() throw () {} // avoid warnings about virtual members and non-virtual dtor
44 : };
45 :
46 :
47 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::script::XEventAttacherManager const *);
48 : } } } }
49 :
50 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::script::XEventAttacherManager > *) SAL_THROW(());
51 :
52 : #endif
|