1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef __com_sun_star_awt_AccessibleMenu_idl__
29*cdf0e10cSrcweir#define __com_sun_star_awt_AccessibleMenu_idl__
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
32*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleContext.idl>
33*cdf0e10cSrcweir#endif
34*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
35*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__
38*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleComponent.idl>
39*cdf0e10cSrcweir#endif
40*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__
41*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl>
42*cdf0e10cSrcweir#endif
43*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleText_idl__
44*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleText.idl>
45*cdf0e10cSrcweir#endif
46*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__
47*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleAction.idl>
48*cdf0e10cSrcweir#endif
49*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleValue_idl__
50*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleValue.idl>
51*cdf0e10cSrcweir#endif
52*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__
53*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleSelection.idl>
54*cdf0e10cSrcweir#endif
55*cdf0e10cSrcweir
56*cdf0e10cSrcweirmodule com { module sun { module star { module awt {
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir/** specifies accessibility support for a menu.
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir    @since OOo 1.1.2
61*cdf0e10cSrcweir */
62*cdf0e10cSrcweirpublished service AccessibleMenu
63*cdf0e10cSrcweir{
64*cdf0e10cSrcweir    /** This interface gives access to the structural information of a menu:
65*cdf0e10cSrcweir
66*cdf0e10cSrcweir        <ul>
67*cdf0e10cSrcweir        <li>Role: The role of a menu is <const
68*cdf0e10cSrcweir            scope="com::sun::star::accessibility"
69*cdf0e10cSrcweir            >AccessibleRole::MENU</const>.</li>
70*cdf0e10cSrcweir        <li>Name: The name of a menu is the localized item text.</li>
71*cdf0e10cSrcweir        <li>Description: The description of a menu is its localized
72*cdf0e10cSrcweir            help text.</li>
73*cdf0e10cSrcweir        <li>Children: The children of a menu are menus, menu items or
74*cdf0e10cSrcweir            menu separators, whose accessible context supports the services
75*cdf0e10cSrcweir            <type>AccessibleMenu</type>, <type>AccessibleMenuItem</type> or
76*cdf0e10cSrcweir            <type>AccessibleMenuSeparator</type>.</li>
77*cdf0e10cSrcweir        <li>Parent: The parent of a menu is a menu bar, a popup menu or
78*cdf0e10cSrcweir            a menu, whose accessible context supports the services
79*cdf0e10cSrcweir            <type>AccessibleMenuBar</type>, <type>AccessiblePopupMenu</type>
80*cdf0e10cSrcweir            or <type>AccessibleMenu</type>.</li>
81*cdf0e10cSrcweir        <li>Relations: There are no relations.</li>
82*cdf0e10cSrcweir        <li>States: The states supported by this service are
83*cdf0e10cSrcweir            <ul>
84*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
85*cdf0e10cSrcweir                >AccessibleStateType::ARMED</const> is set
86*cdf0e10cSrcweir                if the object is highlighted.</li>
87*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
88*cdf0e10cSrcweir                >AccessibleStateType::CHECKED</const> is set
89*cdf0e10cSrcweir                if the object is currently checked.</li>
90*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
91*cdf0e10cSrcweir                >AccessibleStateType::DEFUNC</const>
92*cdf0e10cSrcweir                is set if the object has already been disposed
93*cdf0e10cSrcweir                and subsequent calls to this object result in
94*cdf0e10cSrcweir                <type scope="com::sun::star::lang">DisposedException</type>
95*cdf0e10cSrcweir                exceptions.</li>
96*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
97*cdf0e10cSrcweir                >AccessibleStateType::ENABLED</const> is set
98*cdf0e10cSrcweir                if the object is enabled.</li>
99*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
100*cdf0e10cSrcweir                >AccessibleStateType::OPAQUE</const> is always set.</li>
101*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
102*cdf0e10cSrcweir                >AccessibleStateType::SELECTABLE</const> is always set.</li>
103*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
104*cdf0e10cSrcweir                >AccessibleStateType::SELECTED</const> is set
105*cdf0e10cSrcweir                if the object is selected.</li>
106*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
107*cdf0e10cSrcweir                >AccessibleStateType::SHOWING</const> is set
108*cdf0e10cSrcweir                if the object is displayed on the screen.</li>
109*cdf0e10cSrcweir            <li><const scope="com::sun::star::accessibility"
110*cdf0e10cSrcweir                >AccessibleStateType::VISIBLE</const> is always set.</li>
111*cdf0e10cSrcweir            </ul>
112*cdf0e10cSrcweir            </li>
113*cdf0e10cSrcweir        </ul>
114*cdf0e10cSrcweir     */
115*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleContext;
116*cdf0e10cSrcweir
117*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
118*cdf0e10cSrcweir
119*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleComponent;
120*cdf0e10cSrcweir
121*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
122*cdf0e10cSrcweir
123*cdf0e10cSrcweir    /** This interface gives read-only access to the text representation
124*cdf0e10cSrcweir        of a menu.
125*cdf0e10cSrcweir     */
126*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleText;
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir    /** This interface gives access to the actions that can be executed for
129*cdf0e10cSrcweir        a menu. The supported actions for a menu are:
130*cdf0e10cSrcweir        <ul>
131*cdf0e10cSrcweir        <li>select</li>
132*cdf0e10cSrcweir        </ul>
133*cdf0e10cSrcweir     */
134*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleAction;
135*cdf0e10cSrcweir
136*cdf0e10cSrcweir    /** This interface gives access to the numerical value of a
137*cdf0e10cSrcweir        menu, which is related to the menu's
138*cdf0e10cSrcweir        <const scope="com::sun::star::accessibility"
139*cdf0e10cSrcweir        >AccessibleStateType::SELECTED</const> state.
140*cdf0e10cSrcweir     */
141*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleValue;
142*cdf0e10cSrcweir
143*cdf0e10cSrcweir    /** This interface gives access to the selectable children of a
144*cdf0e10cSrcweir        menu.
145*cdf0e10cSrcweir     */
146*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleSelection;
147*cdf0e10cSrcweir
148*cdf0e10cSrcweir};
149*cdf0e10cSrcweir
150*cdf0e10cSrcweir}; }; }; };
151*cdf0e10cSrcweir
152*cdf0e10cSrcweir#endif
153