diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-10 23:00:18 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-16 21:22:40 -0400 |
commit | 98dc4bb8a1d029ba8b01504b74ed5397e1e7164b (patch) | |
tree | 2ca7ef6a45076e9b4b67ceff9dbe814abda5d4e9 /udkapi | |
parent | acd31343d1a346f045a8145894c7e4451910cbf8 (diff) |
Extended UNO's script API to allow adding of multiple listeners at once.
Diffstat (limited to 'udkapi')
-rw-r--r-- | udkapi/UnoApi_udkapi.mk | 2 | ||||
-rw-r--r-- | udkapi/com/sun/star/script/EventListener.idl | 20 | ||||
-rw-r--r-- | udkapi/com/sun/star/script/XEventAttacher2.idl | 24 | ||||
-rw-r--r-- | udkapi/com/sun/star/script/makefile.mk | 2 |
4 files changed, 48 insertions, 0 deletions
diff --git a/udkapi/UnoApi_udkapi.mk b/udkapi/UnoApi_udkapi.mk index 966bfe58b2f7..733e20c32faf 100644 --- a/udkapi/UnoApi_udkapi.mk +++ b/udkapi/UnoApi_udkapi.mk @@ -380,6 +380,7 @@ $(eval $(call gb_UnoApiTarget_add_idlfiles,udkapi,\ udkapi/com/sun/star/script/CannotConvertException \ udkapi/com/sun/star/script/CannotCreateAdapterException \ udkapi/com/sun/star/script/ContextInformation \ + udkapi/com/sun/star/script/EventListener \ udkapi/com/sun/star/script/FailReason \ udkapi/com/sun/star/script/FinishEngineEvent \ udkapi/com/sun/star/script/FinishReason \ @@ -400,6 +401,7 @@ $(eval $(call gb_UnoApiTarget_add_idlfiles,udkapi,\ udkapi/com/sun/star/script/XEngineListener \ udkapi/com/sun/star/script/XErrorQuery \ udkapi/com/sun/star/script/XEventAttacher \ + udkapi/com/sun/star/script/XEventAttacher2 \ udkapi/com/sun/star/script/XEventAttacherManager \ udkapi/com/sun/star/script/XInvocation \ udkapi/com/sun/star/script/XInvocation2 \ diff --git a/udkapi/com/sun/star/script/EventListener.idl b/udkapi/com/sun/star/script/EventListener.idl new file mode 100644 index 000000000000..5fd0b3d50d9c --- /dev/null +++ b/udkapi/com/sun/star/script/EventListener.idl @@ -0,0 +1,20 @@ + +#ifndef __com_sun_star_script_EventListener_idl__ +#define __com_sun_star_script_EventListener_idl__ + +#include <com/sun/star/script/XAllListener.idl> + +module com { module sun { module star { module script { + +struct EventListener +{ + com::sun::star::script::XAllListener AllListener; + any Helper; + string ListenerType; + string AddListenerParam; + string EventMethod; +}; + +}; }; }; }; + +#endif diff --git a/udkapi/com/sun/star/script/XEventAttacher2.idl b/udkapi/com/sun/star/script/XEventAttacher2.idl new file mode 100644 index 000000000000..541ce006a1a8 --- /dev/null +++ b/udkapi/com/sun/star/script/XEventAttacher2.idl @@ -0,0 +1,24 @@ +#ifndef __com_sun_star_script_XEventAttacher2_idl__ +#define __com_sun_star_script_XEventAttacher2_idl__ + +#include <com/sun/star/script/XEventAttacher.idl> +#include <com/sun/star/lang/XEventListener.idl> +#include <com/sun/star/script/EventListener.idl> + +module com { module sun { module star { module script { + +interface XEventAttacher2: com::sun::star::script::XEventAttacher +{ + sequence<com::sun::star::lang::XEventListener> + attachMultipleEventListeners( + [in] com::sun::star::uno::XInterface xTarget, + [in] sequence<com::sun::star::script::EventListener> aListeners ) + raises( com::sun::star::lang::IllegalArgumentException, + com::sun::star::beans::IntrospectionException, + com::sun::star::script::CannotCreateAdapterException, + com::sun::star::lang::ServiceNotRegisteredException ); +}; + +}; }; }; }; + +#endif diff --git a/udkapi/com/sun/star/script/makefile.mk b/udkapi/com/sun/star/script/makefile.mk index 0a16872f1107..812222d49014 100644 --- a/udkapi/com/sun/star/script/makefile.mk +++ b/udkapi/com/sun/star/script/makefile.mk @@ -46,6 +46,7 @@ IDLFILES=\ ContextInformation.idl\ Converter.idl\ Engine.idl\ + EventListener.idl\ FailReason.idl\ FinishEngineEvent.idl\ FinishReason.idl\ @@ -64,6 +65,7 @@ IDLFILES=\ XEngine.idl\ XEngineListener.idl\ XEventAttacher.idl\ + XEventAttacher2.idl\ XEventAttacherManager.idl\ XInvocationAdapterFactory.idl\ XInvocationAdapterFactory2.idl\ |