LibreOffice
LibreOffice 24.2 SDK API Reference
Public Member Functions | List of all members
XAccessibleAction Interface Reference

Implement this interface to give access to actions that can be executed for accessible objects. More...

import"XAccessibleAction.idl";

Inheritance diagram for XAccessibleAction:
XInterface XAccessibleHyperlink AccessibleButton AccessibleCheckBox AccessibleDropDownComboBox AccessibleDropDownListBox AccessibleMenu AccessibleMenuItem AccessibleRadioButton AccessibleScrollBar AccessibleToolBoxItem AccessibleTreeListBoxEntry AccessibleOLEShape

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...
 

Detailed Description

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.

Since
OOo 1.1.2

Member Function Documentation

◆ doAccessibleAction()

boolean doAccessibleAction ( [in] long  nIndex)
raises (::com::sun::star::lang::IndexOutOfBoundsException
)

Perform the specified Action on the object.

Parameters
nIndexThis index specifies the action to perform. If it lies outside the valid range FALSE is returned and no action is performed.
Returns
Returns TRUE if the action was successfully performed. If the action could not be performed successfully FALSE is returned.
Exceptions
IndexOutOfBoundsExceptionIf no action with the given index exists then an com::sun::star::lang::IndexOutOfBoundsException exception is thrown.

◆ getAccessibleActionCount()

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.

Returns
The returned value of the number of actions is zero if there are no actions.

◆ getAccessibleActionDescription()

string getAccessibleActionDescription ( [in] long  nIndex)
raises (::com::sun::star::lang::IndexOutOfBoundsException
)

Returns a description of the specified action of the object.

Parameters
nIndexThis index specifies the action of which to return a description. If it lies outside the valid range an empty string is returned.
Returns
The returned value is a localized string of the specified action.
Exceptions
IndexOutOfBoundsExceptionIf the given index lies not in the valid range then an com::sun::star::lang::IndexOutOfBoundsException exception is thrown.

◆ getAccessibleActionKeyBinding()

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.

Parameters
nIndexThis index specifies the action of which to return the key binding.
Returns
The returned object describes a set of key bindings associated with the specified action.
Exceptions
IndexOutOfBoundsExceptionif the given index is not valid.

The documentation for this interface was generated from the following file: