|
Syntax
- com::sun::star::lang::XEventListener attachListener
(
- com::sun::star::uno::XInterface xTarget,
- com::sun::star::script::XAllListener xAllListener,
- any aHelper,
- string aListenerType,
- string aAddListenerParam )
- raises ( com::sun::star::lang::IllegalArgumentException , com::sun::star::beans::IntrospectionException , com::sun::star::script::CannotCreateAdapterException , com::sun::star::lang::ServiceNotRegisteredException );
Description
registers the given "AllListener" object as a listener at the
given interface by creating a suitable listener adapter and
calling the "addListener" method corresponding to the
"ListenerType".
Syntax
- com::sun::star::lang::XEventListener attachSingleEventListener
(
- com::sun::star::uno::XInterface xTarget,
- com::sun::star::script::XAllListener xAllListener,
- any aHelper,
- string aListenerType,
- string aAddListenerParam,
- string aEventMethod )
- raises ( com::sun::star::lang::IllegalArgumentException , com::sun::star::beans::IntrospectionException , com::sun::star::script::CannotCreateAdapterException , com::sun::star::lang::ServiceNotRegisteredException );
Description
registers an object as a listener at the given interface by
creating a suitable listener adapter and calling the method
which corresponds to the
listener type.
Only the event corresponding to the given event method
will be delegated to xAllListener .
Syntax
- void removeListener
(
- com::sun::star::uno::XInterface xTarget,
- string aListenerType,
- string aRemoveListenerParam,
- com::sun::star::lang::XEventListener xToRemoveListener )
- raises ( com::sun::star::lang::IllegalArgumentException , com::sun::star::beans::IntrospectionException );
Description
removes a listener object as a listener from the given interface.
This method can and should be used as a contrary method
to the two attach methods.
|