LibreOffice
LibreOffice 24.2 SDK API Reference
|
Interface to add handlers for key and mouse events. More...
import"XUserInputInterception.idl";
Public Member Functions | |
void | addKeyHandler ([in] ::com::sun::star::awt::XKeyHandler xHandler) |
Add a new listener that is called on com::sun::star::awt::KeyEvent. More... | |
void | removeKeyHandler ([in] ::com::sun::star::awt::XKeyHandler xHandler) |
Remove the specified listener from the list of listeners. More... | |
void | addMouseClickHandler ([in] ::com::sun::star::awt::XMouseClickHandler xHandler) |
Add a new listener that is called on com::sun::star::awt::MouseEvent. More... | |
void | removeMouseClickHandler ([in] ::com::sun::star::awt::XMouseClickHandler xHandler) |
Remove the specified listener from the list of listeners. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Interface to add handlers for key and mouse events.
A handler is not a passive listener, it can even consume the event.
void addKeyHandler | ( | [in] ::com::sun::star::awt::XKeyHandler | xHandler | ) |
Add a new listener that is called on com::sun::star::awt::KeyEvent.
Every listener is given the opportunity to consume the event, i.e. prevent the not yet called listeners from being called.
xHandler | If this is a valid reference it is inserted into the list of handlers. It is the task of the caller to not register the same handler twice (otherwise that listener will be called twice.) |
void addMouseClickHandler | ( | [in] ::com::sun::star::awt::XMouseClickHandler | xHandler | ) |
Add a new listener that is called on com::sun::star::awt::MouseEvent.
Every listener is given the opportunity to consume the event, i.e. prevent the not yet called listeners from being called.
xHandler | If this is a valid reference it is inserted into the list of handlers. It is the task of the caller to not register the same handler twice (otherwise that listener will be called twice.) |
void removeKeyHandler | ( | [in] ::com::sun::star::awt::XKeyHandler | xHandler | ) |
Remove the specified listener from the list of listeners.
xHandler | If the reference is empty then nothing will be changed. If the handler has been registered twice (or more) then all references will be removed. |
void removeMouseClickHandler | ( | [in] ::com::sun::star::awt::XMouseClickHandler | xHandler | ) |
Remove the specified listener from the list of listeners.
xHandler | If the reference is empty then nothing will be changed. If the handler has been registered twice (or more) then all references will be removed. |