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_accessibility_AccessibleRole_idl__
30 #define __com_sun_star_accessibility_AccessibleRole_idl__
32 module com
{ module sun
{ module star
{ module accessibility
{
34 /** Collection of roles.
36 <p>This collection of constants defines the set of possible roles of
37 classes implementing the <type>XAccessible</type> interface according to
38 the Java class javax.accessibility.AccessibleRole. The role of an
39 object describes its generic function like "button", "menu", or "text".
40 You can obtain an object's role by calling the
41 <member>getAccessibleRole</member> method of the
42 <type>XAccessibleContext</type> interface.</p>
44 <p>We are using constants instead of a more typesafe enum. The reason
45 for this is that IDL enums may not be extended. Therefore, in order to
46 include future extensions to the set of roles we have to use constants
49 <p>For some roles there exist two labels with the same value. Please
50 use the one with the underscores. The other ones are somewhat
51 deprecated and will be removed in the future. </p>
53 @see XAccessibleContext
57 published constants AccessibleRole
62 <p>The object contains some Accessible information, but its role is
65 const short UNKNOWN
= 0;
67 /** Object is used to alert the user about something.
69 const short ALERT
= 1;
71 /** The header for a column of data.
73 const short COLUMN_HEADER
= 2;
75 /** Object that can be drawn into and is used to trap events.
77 <p>See also <const>FRAME</const>, <const>GLASS_PANE</const>, and
78 <const>LAYERED_PANE</const>.</p>
80 const short CANVAS
= 3;
84 <p>A choice that can be checked or unchecked and provides a separate
85 indicator for the current state.</p>
87 <p>See also <const>PUSH_BUTTON</const>, <const>TOGGLE_BUTTON</const>,
88 and <const>RADIO_BUTTON</const>.</p>
90 const short CHECK_BOX
= 4;
92 /** This role is used for check buttons that are menu items.
94 @see CHECK_BOX, MENU_ITEM
96 const short CHECK_MENU_ITEM
= 5;
98 /** A specialized dialog that lets the user choose a color.
100 const short COLOR_CHOOSER
= 6;
104 <p>A list of choices the user can select from. Also optionally
105 allows the user to enter a choice of their own.</p>
107 const short COMBO_BOX
= 7;
109 /** Date editor role.
111 <p>A <const>DATE_EDITOR</const> is a component that allows users to
112 edit java.util.Date and java.util.Time objects.</p>
114 const short DATE_EDITOR
= 8;
116 /** An iconified internal frame in a DESKTOP_PANE.
118 <p>See also <const>DESKTOP_PANE</const> and
119 <const>INTERNAL_FRAME</const>.</p>
121 const short DESKTOP_ICON
= 9;
123 /** Desktop pane role.
125 <p>A pane that supports internal frames and iconified versions of
126 those internal frames.</p>
128 const short DESKTOP_PANE
= 10;
130 /** Directory pane role.
132 <p>A pane that allows the user to navigate through and select the
133 contents of a directory. May be used by a file chooser.</p>
135 <p>See also <const>FILE_CHOOSER</const>.</p>
137 const short DIRECTORY_PANE
= 11;
141 <p>A top level window with title bar and a border. A dialog is
142 similar to a frame, but it has fewer properties and is often used as
143 a secondary window for an application.</p>
145 <p>See also <const>FRAME</const> and <const>WINDOW</const>.</p>
147 const short DIALOG
= 12;
149 /** View of a document.
151 <p>The view of an actual document. Its content depends on the
154 const short DOCUMENT
= 13;
156 /** Embedded (OLE) object.
158 const short EMBEDDED_OBJECT
= 14;
160 /** Text that is used as an endnote (footnote at the end of a chapter or
163 const short END_NOTE
= 15;
165 /** File chooser role.
167 <p>A specialized dialog that displays the files in the directory
168 and lets the user select a file, browse a different directory, or
169 specify a filename. May use the directory pane to show the contents
172 <p>See also <const>DIRECTORY_PANE</const>.</p>
174 const short FILE_CHOOSER
= 16;
178 <p>An object that fills up space in a user interface. It is often
179 used in interfaces to tweak the spacing between components, but
180 serves no other purpose.</p>
182 const short FILLER
= 17;
184 /** Font chooser role.
186 <p>A <const>FONT_CHOOSER</const> is a component that lets the user pick various
187 attributes for fonts.</p>
189 const short FONT_CHOOSER
= 18;
191 /** Footer of a document page.
194 const short FOOTER
= 19;
196 /** Text that is used as a footnote.
198 const short FOOTNOTE
= 20;
202 <p>A top level window with a title bar, border, menu bar, etc. It
203 is often used as the primary window for an application.</p>
205 <p>See also <const>DIALOG</const>, <const>CANVAS</const>, and
206 <const>WINDOW</const>.</p>
208 const short FRAME
= 21;
212 <p>A pane that is guaranteed to be painted on top of all panes
215 <p>See also <const>ROOT_PANE</const> and <const>CANVAS</const>.</p>
217 const short GLASS_PANE
= 22;
219 /** Graphical object.
221 const short GRAPHIC
= 23;
225 <p>A <const>GROUP_BOX</const> is a simple container that contains a
226 border around it and contains components inside it.</p>
228 const short GROUP_BOX
= 24;
230 /** Header of a document page.
233 const short HEADER
= 25;
235 /** Chapter or section heading.
237 const short HEADING
= 26;
239 /** A hypertext anchor.
241 const short HYPER_LINK
= 27;
243 /** A small fixed size picture, typically used to decorate components.
245 const short ICON
= 28;
247 /** Internal frame role.
249 <p>A frame-like object that is clipped by a desktop pane. The
250 desktop pane, internal frame, and desktop icon objects are often
251 used to create multiple document interfaces within an
254 <p>See also <const>DESKTOP_ICON</const>, <const>DESKTOP_PANE</const>,
255 and <const>FRAME</const>.</p>
257 const short INTERNAL_FRAME
= 29;
259 /** An object used to present an icon or short string in an interface.
261 const short LABEL
= 30;
263 /** layered pane role.
265 <p>A specialized pane that allows its children to be drawn in
266 layers, providing a form of stacking order. This is usually the pane
267 that holds the menu bar as well as the pane that contains most of
268 the visual components in a window.</p>
270 <p>See also <const>GLASS_PANE</const> and
271 <const>ROOT_PANE</const>.</p>
273 const short LAYERED_PANE
= 31;
277 <p>An object that presents a list of objects to the user and allows
278 the user to select one or more of them. A list is usually contained
279 within a scroll pane.</p>
281 <p>See also <const>SCROLL_PANE</const> and
282 <const>LIST_ITEM</const>.</p>
284 const short LIST
= 32;
288 <p>An object that presents an element in a list. A list is usually
289 contained within a scroll pane.</p>
291 <p>See also <const>SCROLL_PANE</const> and <const>LIST</const>.</p>
293 const short LIST_ITEM
= 33;
297 <p>An object usually found inside a menu bar that contains a list of
298 actions the user can choose from. A menu can have any object as its
299 children, but most often they are menu items, other menus, or
300 rudimentary objects such as radio buttons, check boxes, or
301 separators. For example, an application may have an "Edit" menu that
302 contains menu items for "Cut" and "Paste."</p>
304 <p>See also <const>MENU_BAR</const>, <const>MENU_ITEM</const>,
305 <const>SEPARATOR</const>, <const>RADIO_BUTTON</const>,
306 <const>CHECK_BOX</const>, and <const>POPUP_MENU</const>.</p>
308 const short MENU
= 34;
312 <p>An object usually drawn at the top of the primary dialog box of
313 an application that contains a list of menus the user can choose
314 from. For example, a menu bar might contain menus for "File,"
315 "Edit," and "Help."</p>
317 <p>See also <const>MENU</const>, <const>POPUP_MENU</const>, and
318 <const>LAYERED_PANE</const>.</p>
320 const short MENU_BAR
= 35;
324 <p>An object usually contained in a menu that presents an action the
325 user can choose. For example, the "Cut" menu item in an "Edit" menu
326 would be an action the user can select to cut the selected area of
327 text in a document.</p>
329 <p>See also <const>MENUBAR</const>, <const>SEPARATOR</const>, and
330 <const>POPUP_MENU</const>.</p>
332 const short MENU_ITEM
= 36;
334 /** A specialized pane whose primary use is inside a <const>DIALOG</const>.
336 <p>See also <const>DIALOG</const>.</p>
338 const short OPTION_PANE
= 37;
342 <p>An object that is a child of a page tab list. Its sole child is
343 the panel that is to be presented to the user when the user selects
344 the page tab from the list of tabs in the page tab list.</p>
346 <p>See also <const>PAGE_TAB_LIST</const>.</p>
348 const short PAGE_TAB
= 38;
350 /** Page tab list role.
352 <p>An object that presents a series of panels (or page tabs), one at
353 a time, through some mechanism provided by the object. The most
354 common mechanism is a list of tabs at the top of the panel. The
355 children of a page tab list are all page tabs.</p>
357 <p>See also <const>PAGE_TAB</const>.</p>
359 const short PAGE_TAB_LIST
= 39;
361 /** A generic container that is often used to group objects.
363 const short PANEL
= 40;
365 /** Paragraph of text.
367 const short PARAGRAPH
= 41;
369 /** Password text role.
371 <p>A text object used for passwords, or other places where the text
372 contents is not shown visibly to the user.</p>
374 const short PASSWORD_TEXT
= 42;
376 /** Pop-up menu role.
378 <p>A temporary window that is usually used to offer the user a list
379 of choices, and then hides when the user selects one of those
382 <p>See also <const>MENU</const> and <const>MENU_ITEM</const>.</p>
384 const short POPUP_MENU
= 43;
386 /** Push button role.
388 <p>An object the user can manipulate to tell the application to do
391 <p>See also <const>CHECK_BOX</const>, <const>TOGGLE_BUTTON</const>,
392 <const>RADIO_BUTTON</const>, <const>BUTTON_MENU</const> and
393 <const>BUTTON_DROPDOWN</const>.</p>
395 const short PUSH_BUTTON
= 44;
397 /** An object used to indicate how much of a task has been completed.
399 const short PROGRESS_BAR
= 45;
401 /** Radio button role.
403 <p>A specialized check box that will cause other radio buttons in
404 the same group to become unchecked when this one is checked.</p>
406 <p>See also <const>PUSH_BUTTON</const>, <const>TOGGLE_BUTTON</const>,
407 and <const>CHECK_BOX</const>.</p>
409 const short RADIO_BUTTON
= 46;
411 /** This role is used for radio buttons that are menu items.
413 @see RADIO_BUTTON, MENU_ITEM
415 const short RADIO_MENU_ITEM
= 47;
417 /** The header for a row of data.
419 const short ROW_HEADER
= 48;
423 <p>A specialized pane that has a glass pane and a layered pane as
426 <p>See also <const>GLASS_PANE</const> and <const>LAYERED_PANE</const>.</p>
428 const short ROOT_PANE
= 49;
432 <p>An object usually used to allow a user to incrementally view a
433 large amount of data. Usually used only by a scroll pane.</p>
435 <p>See also <const>SCROLL_PANE</const>.</p>
437 const short SCROLL_BAR
= 50;
439 /** Scroll pane role.
441 <p>An object that allows a user to incrementally view a large amount
442 of information. Its children can include scroll bars and a
445 <p>See also <const>SCROLL_BAR</const> and <const>VIEW_PORT</const>.</p>
447 const short SCROLL_PANE
= 51;
449 /** Object with graphical representation used to represent content on
452 @see com::sun::star::drawing::AccessibleShape
454 const short SHAPE
= 52;
458 <p>An object usually contained in a menu to provide a visual and
459 logical separation of the contents in a menu. For example, the
460 "File" menu of an application might contain menu items for "Open,"
461 "Close," and "Exit," and will place a separator between "Close" and
462 "Exit" menu items.</p>
464 <p>See also <const>MENU</const> and <const>MENU_ITEM</const>.</p>
466 const short SEPARATOR
= 53;
470 <p>An object that allows the user to select from a bounded
471 range. For example, a slider might be used to select a number
472 between 0 and 100.</p>
474 const short SLIDER
= 54;
478 <p>A <const>SPIN_BOX</const> is a simple spinner component and its
479 main use is for simple numbers.</p>
481 const short SPIN_BOX
= 55;
485 <p>A specialized panel that presents two other panels at the same
486 time. Between the two panels is a divider the user can manipulate to
487 make one panel larger and the other panel smaller.</p>
489 const short SPLIT_PANE
= 56;
493 <p>A <const>STATUS_BAR</const> is an simple component that can
494 contain multiple labels of status information to the user.</p>
496 const short STATUS_BAR
= 57;
500 <p>An object used to present information in terms of rows and
501 columns. An example might include a spreadsheet application.</p>
503 const short TABLE
= 58;
505 /** Single cell in a table.
507 const short TABLE_CELL
= 59;
511 <p>An object that presents text to the user. The text is usually
512 editable by the user as opposed to a label.</p>
514 <p>See also <const>LABEL</const>.</p>
516 const short TEXT
= 60;
518 /** Collection of objects that constitute a logical text entity.
520 const short TEXT_FRAME
= 61;
522 /** Toggle button role.
524 <p>A specialized push button that can be checked or unchecked, but
525 does not provide a separate indicator for the current state.</p>
527 <p>See also <const>PUSH_BUTTON</const>, <const>CHECK_BOX</const> and
528 <const>RADIO_BUTTON</const>.</p>
530 const short TOGGLE_BUTTON
= 62;
534 <p>A bar or palette usually composed of push buttons or toggle
535 buttons. It is often used to provide the most frequently used
536 functions for an application.</p>
538 const short TOOL_BAR
= 63;
542 <p>An object that provides information about another object. The
543 accessible Description property of the tool tip is often displayed to
544 the user in a small "help bubble" when the user causes the mouse to
545 hover over the object associated with the tool tip.</p>
547 const short TOOL_TIP
= 64;
551 <p>An object used to present hierarchical information to the
552 user. The individual nodes in the tree can be collapsed and expanded
553 to provide selective disclosure of the tree's contents.</p>
555 const short TREE
= 65;
559 <p>An object usually used in a scroll pane. It represents the
560 portion of the entire data that the user can see. As the user
561 manipulates the scroll bars, the contents of the viewport can
564 <p>See also <const>SCROLL_PANE</const>.</p>
566 const short VIEW_PORT
= 66;
568 /** A top level window with no title or border.
570 <p>See also <const>FRAME</const> and <const>DIALOG</const>.</p>
572 const short WINDOW
= 67;
574 /** Button dropdown role
576 <p>The object represents a button that drops down a list of items.</p>
578 <p>See also <const>PUSH_BUTTON</const> and <const>BUTTON_MENU</const>.</p>
582 const short BUTTON_DROPDOWN
= 68;
586 <p>The object represents a button that drops down a menu.</p>
588 <p>See also <const>PUSH_BUTTON</const> and <const>BUTTON_DROPDOWN</const>.</p>
592 const short BUTTON_MENU
= 69;
596 <p>The object contains descriptive information, usually textual, about
597 another user interface element such as a table, chart, or image.</p>.
601 const short CAPTION
= 70;
605 <p>The object is a graphical depiction of quantitative data. It may contain multiple
606 subelements whose attributes and/or description may be queried to obtain both
607 the quantitative data and information about how the data is being presented.</p>
611 const short CHART
= 71;
615 <p>A role indicating the object acts as a formula for calculating a value.</p>
619 const short EDIT_BAR
= 72;
623 <p>The object is a container for form controls, for instance as part of a web form
624 or user-input form within a document.</p>
628 const short FORM
= 73;
632 <p>Usually a graphic with multiple hotspots, where each hotspot can be activated
633 resulting in the loading of another document or section of a document.</p>
637 const short IMAGE_MAP
= 74;
641 <p>An embedded note which is not visible until activated.</p>
645 const short NOTE
= 75;
649 <p>An object representing a page of document content. It is used in documents
650 which are accessed by the user on a page by page basis.</p>
654 const short PAGE
= 76;
658 <p>An object which describes margins and tab stops, etc. for text objects which it controls.</p>
662 const short RULER
= 77;
666 <p>The object is a containing instance of document content which constitutes a particular
667 "logical" section of the document.</p>
671 const short SECTION
= 78;
675 <p>An object that presents an element in a tree</p>
677 </p>See also <const>TREE</const> and <const>TREE_TABLE</const>.</p>
681 const short TREE_ITEM
= 79;
685 <p>An object which represents both hierarchical and tabular information.</p>
689 const short TREE_TABLE
= 80;
693 <p>An object which represents a comment.</p>
695 <p>A comment is anchored at a certain content position in the document and
696 annotates this document content position or a certain text range of the document content.
697 In the OpenDocument file format a comment is known as an annotation.</p>
699 <p>See also <const>COMMENT_END</const>.</p>
703 const short COMMENT
= 81;
707 <p>An invisible object which represents the end position of a text range which
708 is annotated by a comment - see <const>COMMENT</const>.</p>
710 <p>This object and the corresponding object representing the comment shall be
711 in relation of type <const>MEMBER_OF</const>.</p>
715 const short COMMENT_END
= 82;
723 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */