LibreOffice
LibreOffice 24.2 SDK API Reference
|
Implement this interface to give access to actions that can be executed for accessible objects. More...
import"XAccessibleAction.idl";
Public Member Functions | |
long | getAccessibleActionCount () |
Returns the number of accessible actions available in this object. More... | |
boolean | doAccessibleAction ([in] long nIndex) raises (::com::sun::star::lang::IndexOutOfBoundsException) |
Perform the specified Action on the object. More... | |
string | getAccessibleActionDescription ([in] long nIndex) raises (::com::sun::star::lang::IndexOutOfBoundsException) |
Returns a description of the specified action of the object. More... | |
XAccessibleKeyBinding | getAccessibleActionKeyBinding ([in] long nIndex) raises (::com::sun::star::lang::IndexOutOfBoundsException) |
Returns a key binding object, if there is one, associated with the specified action. 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... | |
Implement this interface to give access to actions that can be executed for accessible objects.
Every accessible object that can be manipulated beyond its methods exported over the accessibility API should support this interface to expose all actions that it can perform. Each action can be performed or be queried for a description or associated key bindings.
boolean doAccessibleAction | ( | [in] long | nIndex | ) | |
raises | ( | ::com::sun::star::lang::IndexOutOfBoundsException | |||
) |
Perform the specified Action on the object.
nIndex | This index specifies the action to perform. If it lies outside the valid range FALSE is returned and no action is performed. |
TRUE
if the action was successfully performed. If the action could not be performed successfully FALSE
is returned.IndexOutOfBoundsException | If no action with the given index exists then an com::sun::star::lang::IndexOutOfBoundsException exception is thrown. |
long getAccessibleActionCount | ( | ) |
Returns the number of accessible actions available in this object.
If there are more than one, the first one is considered the "default" action of the object.
string getAccessibleActionDescription | ( | [in] long | nIndex | ) | |
raises | ( | ::com::sun::star::lang::IndexOutOfBoundsException | |||
) |
Returns a description of the specified action of the object.
nIndex | This index specifies the action of which to return a description. If it lies outside the valid range an empty string is returned. |
IndexOutOfBoundsException | If the given index lies not in the valid range then an com::sun::star::lang::IndexOutOfBoundsException exception is thrown. |
XAccessibleKeyBinding getAccessibleActionKeyBinding | ( | [in] long | nIndex | ) | |
raises | ( | ::com::sun::star::lang::IndexOutOfBoundsException | |||
) |
Returns a key binding object, if there is one, associated with the specified action.
Note that there can be several alternative key bindings for an action. See XAccessibleKeyBinding for more information about how key bindings are represented.
nIndex | This index specifies the action of which to return the key binding. |
IndexOutOfBoundsException | if the given index is not valid. |