merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / accessibility / XAccessibleAction.idl
blob4d25f9a71ea2c798b381ff712206af814524f976
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_accessibility_XAccessibleAction_idl__
29 #define __com_sun_star_accessibility_XAccessibleAction_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include <com/sun/star/uno/XInterface.idl>
33 #endif
34 #ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
35 #include <com/sun/star/lang/IndexOutOfBoundsException.idl>
36 #endif
38 module com { module sun { module star { module accessibility {
40 published interface XAccessibleKeyBinding;
42 /** Implement this interface to give access to actions that can be executed
43 for accessible objects.
45 <p>Every accessible object that can be manipulated beyond its methods
46 exported over the accessibility API should support this interface to
47 expose all actions that it can perform. Each action can be performed or
48 be queried for a description or associated key bindings.</p>
50 @since OOo 1.1.2
52 published interface XAccessibleAction : ::com::sun::star::uno::XInterface
54 /** Returns the number of accessible actions available in this object.
56 <p>If there are more than one, the first one is considered the
57 "default" action of the object.</p>
59 @return
60 The returned value of the number of actions is zero if there are
61 no actions.
63 long getAccessibleActionCount ();
65 /** Perform the specified Action on the object.
67 @param nIndex
68 This index specifies the action to perform. If it lies outside
69 the valid range <FALSE/> is returned and no action is performed.
70 @return
71 Returns <TRUE/> if the action was successfully performed. If
72 the action could not be performed successfully <FALSE/> is
73 returned.
75 @throws IndexOutOfBoundsException
76 If no action with the given index exists then an
77 <type scope="::com::sun::star::lang">IndexOutOfBoundsException</type>
78 exception is thrown.
80 boolean doAccessibleAction ([in] long nIndex)
81 raises (::com::sun::star::lang::IndexOutOfBoundsException);
83 /** Returns a description of the specified action of the object.
85 @param nIndex
86 This index specifies the action of which to return a
87 description. If it lies outside the valid range an empty string
88 is returned.
90 @return
91 The returned value is a localized string of the specified action.
93 @throws IndexOutOfBoundsException
94 If the given index lies not in the valid range then an
95 <type scope="::com::sun::star::lang">IndexOutOfBoundsException</type>
96 exception is thrown.
98 string getAccessibleActionDescription ([in] long nIndex)
99 raises (::com::sun::star::lang::IndexOutOfBoundsException);
101 /** Returns a key binding object, if there is one, associated with the
102 specified action. Note that there can be several alternative key
103 bindings for an action. See <type>XAccessibleKeyBinding</type> for
104 more information about how key bindings are represented.
106 @param nIndex
107 This index specifies the action of which to return the key
108 binding.
110 @return
111 The returned object describes a set of key bindings associated
112 with the specified action.
114 @throws IndexOutOfBoundsException
115 if the given index is not valid.
117 XAccessibleKeyBinding getAccessibleActionKeyBinding ([in] long nIndex)
118 raises (::com::sun::star::lang::IndexOutOfBoundsException);
121 }; }; }; };
123 #endif