blob: e85594bcc34518e0de05238230cde477aed2ab9c [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef __com_sun_star_accessibility_XAccessibleKeyBinding_idl__
#define __com_sun_star_accessibility_XAccessibleKeyBinding_idl__
#ifndef __com_sun_star_uno_XInterface_idl__
#include <com/sun/star/uno/XInterface.idl>
#endif
#ifndef __com_sun_star_awt_KeyStroke_idl__
#include <com/sun/star/awt/KeyStroke.idl>
#endif
#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
#include <com/sun/star/lang/IndexOutOfBoundsException.idl>
#endif
module com { module sun { module star { module accessibility {
/** This interface can be used to represent any number of key bindings which
then can be associated to a certain action.
<p>There can be zero, one, or more key bindings. Each key binding consists
of a sequence of <type scope="::com::sun::star::awt">KeyStroke</type>
objects. The association of an action with a key binding is established
by the <type>XAccessibleAction</type> interface returning an
<type>XAccessibleKeyBinding</type> object.</p>
<p>A key binding describes alternative ways how to invoke an action with
pressing one or more keys after each other. Each individual sequence of
key strokes </p>
@since OpenOffice 1.1.2
*/
published interface XAccessibleKeyBinding : ::com::sun::star::uno::XInterface
{
/** Return the number of available key bindings.
@return
The returned value may be 0 to indicate that there are no key
bindings or the positive number of the available key bindings.
*/
long getAccessibleKeyBindingCount ();
/** The returned sequence of key strokes describes one method to invoke
the associated action (the one from which you obtained the object at
which you called this method) by pressing keys. The keys specified
by each of the returned key strokes have to be pressed at the same
time (the Control-key and the A-key for example). The keys of
one key stroke have to be released before pressing those of the
next. The order of the key strokes in the sequence define the order
in which to press them.
@param nIndex
The index selects one of alternative key bindings. It has to
non-negative and smaller then the number of key bindings as
returned by the <member>geetAccessibleKeyBindingCount()</member>
method.
@return
The returned sequence of key strokes specifies one way to invoke
the associated action. The sequence may be empty (but should
not be; better not to return such a key binding at all).
@throws ::com::sun::star::lang::IndexOutOfBoundsException
if the index is not valid.
*/
sequence<::com::sun::star::awt::KeyStroke> getAccessibleKeyBinding ([in] long nIndex)
raises (::com::sun::star::lang::IndexOutOfBoundsException);
};
}; }; }; };
#endif