Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / awt / AccessibleMenuItem.idl
blob4c5229e6cf04df89c239f563932e2ec877d83841
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef __com_sun_star_awt_AccessibleMenuItem_idl__
30 #define __com_sun_star_awt_AccessibleMenuItem_idl__
32 #include <com/sun/star/accessibility/XAccessibleContext.idl>
33 #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
34 #include <com/sun/star/accessibility/XAccessibleComponent.idl>
35 #include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl>
36 #include <com/sun/star/accessibility/XAccessibleText.idl>
37 #include <com/sun/star/accessibility/XAccessibleAction.idl>
38 #include <com/sun/star/accessibility/XAccessibleValue.idl>
40 module com { module sun { module star { module awt {
42 /** specifies accessibility support for a menu item.
44 @since OOo 1.1.2
46 published service AccessibleMenuItem
48 /** This interface gives access to the structural information of a
49 menu item:
51 <ul>
52 <li>Role: The role of a menu item is <const
53 scope="com::sun::star::accessibility"
54 >AccessibleRole::MENU_ITEM</const>.</li>
55 <li>Name: The name of a menu item is the localized item text.</li>
56 <li>Description: The description of a menu item is its localized
57 help text.</li>
58 <li>Children: There are no children.</li>
59 <li>Parent: The parent of a menu item is a menu bar, a pop-up menu or
60 a menu, whose accessible context supports the services
61 <type>AccessibleMenuBar</type>, <type>AccessiblePopupMenu</type>
62 or <type>AccessibleMenu</type>.</li>
63 <li>Relations: There are no relations.</li>
64 <li>States: The states supported by this service are
65 <ul>
66 <li><const scope="com::sun::star::accessibility"
67 >AccessibleStateType::ARMED</const> is set
68 if the object is highlighted.</li>
69 <li><const scope="com::sun::star::accessibility"
70 >AccessibleStateType::CHECKED</const> is set
71 if the object is currently checked.</li>
72 <li><const scope="com::sun::star::accessibility"
73 >AccessibleStateType::DEFUNC</const>
74 is set if the object has already been disposed
75 and subsequent calls to this object result in
76 <type scope="com::sun::star::lang">DisposedException</type>
77 exceptions.</li>
78 <li><const scope="com::sun::star::accessibility"
79 >AccessibleStateType::ENABLED</const> is set
80 if the object is enabled.</li>
81 <li><const scope="com::sun::star::accessibility"
82 >AccessibleStateType::OPAQUE</const> is always set.</li>
83 <li><const scope="com::sun::star::accessibility"
84 >AccessibleStateType::SELECTABLE</const> is always set.</li>
85 <li><const scope="com::sun::star::accessibility"
86 >AccessibleStateType::SELECTED</const> is set
87 if the object is selected.</li>
88 <li><const scope="com::sun::star::accessibility"
89 >AccessibleStateType::SHOWING</const> is set
90 if the object is displayed on the screen.</li>
91 <li><const scope="com::sun::star::accessibility"
92 >AccessibleStateType::VISIBLE</const> is always set.</li>
93 </ul>
94 </li>
95 </ul>
97 interface ::com::sun::star::accessibility::XAccessibleContext;
99 interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
101 interface ::com::sun::star::accessibility::XAccessibleComponent;
103 interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
105 /** This interface gives read-only access to the text representation
106 of a menu item.
108 interface ::com::sun::star::accessibility::XAccessibleText;
110 /** This interface gives access to the actions that can be executed for
111 a menu item. The supported actions for a menu item are:
112 <ul>
113 <li>select</li>
114 </ul>
116 interface ::com::sun::star::accessibility::XAccessibleAction;
118 /** This interface gives access to the numerical value of a
119 menu item, which is related to the menu item's
120 <const scope="com::sun::star::accessibility"
121 >AccessibleStateType::SELECTED</const> state.
123 interface ::com::sun::star::accessibility::XAccessibleValue;
126 }; }; }; };
128 #endif
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */