ooodev.adapter.awt.enhanced_mouse_click_handler module
- class ooodev.adapter.awt.enhanced_mouse_click_handler.EnhancedMouseClickHandler(trigger_args=None, subscriber=None)[source]
Bases:
AdapterBase,XEnhancedMouseClickHandlerMakes it possible to receive enhanced events from the mouse.
since
OOo 2.0
See also
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
Any
- __init__(trigger_args=None, subscriber=None)[source]
Constructor:
- Parameters:
trigger_args (GenericArgs, optional) – Args that are passed to events when they are triggered.
subscriber (XEnhancedMouseClickBroadcaster, optional) – An UNO object that implements the
XEnhancedMouseClickBroadcasterinterface. If passed in then this listener instance is automatically added to it.
- Return type:
None
- disposing(Source)[source]
Gets called when the broadcaster is about to be disposed.
All listeners and all other objects, which reference the broadcaster should release the reference to the source. No method should be invoked anymore on this object ( including
XComponent.removeEventListener()).This method is called for every listener registration of derived listener interfaced, not only for registrations at
XComponent.- Return type:
None- Parameters:
Source (com.sun.star.lang.EventObject) –
- mousePressed(e)[source]
Event is invoked when a mouse button has been pressed on a window.
Note
When
mousePressedevent is invoked it will contain aCancelEventArgsinstance as the trigger event. When the event is triggered theCancelEventArgs.cancelcan be set toTrueto cancel the action. Also if canceled theCancelEventArgs.handledcan be set toTrueto indicate that the action should be performed. TheCancelEventArgs.event_datawill contain the originalcom.sun.star.awt.EnhancedMouseEventthat triggered the update.- Return type:
bool- Parameters:
e (com.sun.star.awt.EnhancedMouseEvent) –
- mouseReleased(e)[source]
Event is invoked when a mouse button has been released on a window.
Note
When
mouseReleasedevent is invoked it will contain aCancelEventArgsinstance as the trigger event. When the event is triggered theCancelEventArgs.cancelcan be set toTrueto cancel the action. Also if canceled theCancelEventArgs.handledcan be set toTrueto indicate that the action should be performed. TheCancelEventArgs.event_datawill contain the originalcom.sun.star.awt.EnhancedMouseEventthat triggered the update.- Return type:
bool- Parameters:
e (com.sun.star.awt.EnhancedMouseEvent) –