2007-03-01 23:24:38 +03:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* File Name (AccessibleRole.idl)
|
|
|
|
*
|
2018-07-27 03:27:44 +03:00
|
|
|
* IAccessible2 IDL Specification
|
|
|
|
*
|
|
|
|
* Copyright (c) 2007-2018 Linux Foundation
|
|
|
|
* Copyright (c) 2006 IBM Corporation
|
|
|
|
* Copyright (c) 2000, 2006 Sun Microsystems, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
*
|
|
|
|
* 2. Redistributions in binary form must reproduce the above
|
|
|
|
* copyright notice, this list of conditions and the following
|
|
|
|
* disclaimer in the documentation and/or other materials
|
|
|
|
* provided with the distribution.
|
|
|
|
*
|
|
|
|
* 3. Neither the name of the Linux Foundation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written
|
|
|
|
* permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
|
|
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
|
|
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* This BSD License conforms to the Open Source Initiative "Simplified
|
|
|
|
* BSD License" as published at:
|
|
|
|
* http://www.opensource.org/licenses/bsd-license.php
|
|
|
|
*
|
|
|
|
* IAccessible2 is a trademark of the Linux Foundation. The IAccessible2
|
|
|
|
* mark may be used in accordance with the Linux Foundation Trademark
|
|
|
|
* Policy to indicate compliance with the IAccessible2 specification.
|
|
|
|
*
|
|
|
|
************************************************************************/
|
2007-03-01 23:24:38 +03:00
|
|
|
|
|
|
|
import "objidl.idl";
|
|
|
|
|
2009-09-11 05:07:56 +04:00
|
|
|
/** Collection of roles
|
2007-03-01 23:24:38 +03:00
|
|
|
|
2009-09-11 05:07:56 +04:00
|
|
|
This enumerator defines an extended set of accessible roles of objects implementing
|
|
|
|
the %IAccessible2 interface. These roles are in addition to the MSAA roles obtained
|
2018-07-27 03:27:44 +03:00
|
|
|
through the MSAA get_accRole method. Examples are 'footnote', 'heading', and
|
2009-09-11 05:07:56 +04:00
|
|
|
'label'. You obtain an object's %IAccessible2 roles by calling IAccessible2::role.
|
2007-03-01 23:24:38 +03:00
|
|
|
*/
|
|
|
|
enum IA2Role {
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** Unknown role. The object contains some Accessible information, but its
|
2007-03-01 23:24:38 +03:00
|
|
|
role is not known.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_UNKNOWN = 0,
|
|
|
|
|
2007-04-08 07:58:08 +04:00
|
|
|
/** An object that can be drawn into and to manage events from the objects
|
|
|
|
drawn into it. Also refer to ::IA2_ROLE_FRAME,
|
2018-07-27 03:27:44 +03:00
|
|
|
::IA2_ROLE_GLASS_PANE, and ::IA2_ROLE_LAYERED_PANE.
|
2007-04-08 07:58:08 +04:00
|
|
|
*/
|
|
|
|
IA2_ROLE_CANVAS = 0x401,
|
|
|
|
|
2007-03-01 23:24:38 +03:00
|
|
|
/// A caption describing another object.
|
2007-04-08 07:58:08 +04:00
|
|
|
IA2_ROLE_CAPTION,
|
2007-03-01 23:24:38 +03:00
|
|
|
|
|
|
|
/// Used for check buttons that are menu items.
|
|
|
|
IA2_ROLE_CHECK_MENU_ITEM,
|
|
|
|
|
|
|
|
/// A specialized dialog that lets the user choose a color.
|
|
|
|
IA2_ROLE_COLOR_CHOOSER,
|
|
|
|
|
|
|
|
/// A date editor.
|
|
|
|
IA2_ROLE_DATE_EDITOR,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** An iconified internal frame in an ::IA2_ROLE_DESKTOP_PANE.
|
2007-03-01 23:24:38 +03:00
|
|
|
Also refer to ::IA2_ROLE_INTERNAL_FRAME.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_DESKTOP_ICON,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A desktop pane. A pane that supports internal frames and iconified
|
2007-04-08 07:58:08 +04:00
|
|
|
versions of those internal frames. Also refer to ::IA2_ROLE_INTERNAL_FRAME.
|
2007-03-01 23:24:38 +03:00
|
|
|
*/
|
|
|
|
IA2_ROLE_DESKTOP_PANE,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A directory pane. A pane that allows the user to navigate through
|
|
|
|
and select the contents of a directory. May be used by a file chooser.
|
2007-03-01 23:24:38 +03:00
|
|
|
Also refer to ::IA2_ROLE_FILE_CHOOSER.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_DIRECTORY_PANE,
|
|
|
|
|
2013-05-19 05:21:42 +04:00
|
|
|
/** An editable text object in a toolbar. <b>Deprecated.</b>
|
|
|
|
The edit bar role was meant for a text area in a tool bar. However, to detect
|
|
|
|
a text area in a tool bar the AT can query the parent.
|
2009-09-11 05:07:56 +04:00
|
|
|
*/
|
2007-03-01 23:24:38 +03:00
|
|
|
IA2_ROLE_EDITBAR,
|
|
|
|
|
2009-09-11 05:07:56 +04:00
|
|
|
/// Embedded (OLE) object.
|
2007-03-01 23:24:38 +03:00
|
|
|
IA2_ROLE_EMBEDDED_OBJECT,
|
|
|
|
|
|
|
|
/// Text that is used as an endnote (footnote at the end of a chapter or section).
|
|
|
|
IA2_ROLE_ENDNOTE,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A file chooser. A specialized dialog that displays the files in the
|
|
|
|
directory and lets the user select a file, browse a different directory,
|
|
|
|
or specify a filename. May use the directory pane to show the contents of
|
|
|
|
a directory.
|
2007-03-01 23:24:38 +03:00
|
|
|
Also refer to ::IA2_ROLE_DIRECTORY_PANE.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_FILE_CHOOSER,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A font chooser. A font chooser is a component that lets the user pick
|
2007-03-01 23:24:38 +03:00
|
|
|
various attributes for fonts.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_FONT_CHOOSER,
|
|
|
|
|
|
|
|
/** Footer of a document page.
|
|
|
|
Also refer to ::IA2_ROLE_HEADER.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_FOOTER,
|
|
|
|
|
|
|
|
/// Text that is used as a footnote. Also refer to ::IA2_ROLE_ENDNOTE.
|
|
|
|
IA2_ROLE_FOOTNOTE,
|
|
|
|
|
|
|
|
/** A container of form controls. An example of the use of this role is to
|
|
|
|
represent an HTML FORM tag.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_FORM,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** Frame role. A top level window with a title bar, border, menu bar, etc.
|
2007-04-08 07:58:08 +04:00
|
|
|
It is often used as the primary window for an application. Also refer to
|
|
|
|
::IA2_ROLE_CANVAS and the MSAA roles of dialog and window.
|
2007-03-01 23:24:38 +03:00
|
|
|
*/
|
|
|
|
IA2_ROLE_FRAME,
|
|
|
|
|
2007-04-08 07:58:08 +04:00
|
|
|
/** A glass pane. A pane that is guaranteed to be painted on top of all panes
|
|
|
|
beneath it. Also refer to ::IA2_ROLE_CANVAS, ::IA2_ROLE_INTERNAL_FRAME, and
|
|
|
|
::IA2_ROLE_ROOT_PANE.
|
2007-03-01 23:24:38 +03:00
|
|
|
*/
|
|
|
|
IA2_ROLE_GLASS_PANE,
|
|
|
|
|
|
|
|
/** Header of a document page.
|
|
|
|
Also refer to ::IA2_ROLE_FOOTER.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_HEADER,
|
|
|
|
|
2013-05-19 05:21:42 +04:00
|
|
|
/// Heading. Use the IAccessible2::attributes level attribute to determine the heading level.
|
2007-03-01 23:24:38 +03:00
|
|
|
IA2_ROLE_HEADING,
|
|
|
|
|
|
|
|
/// A small fixed size picture, typically used to decorate components.
|
|
|
|
IA2_ROLE_ICON,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** An image map object. Usually a graphic with multiple hotspots, where
|
2007-03-01 23:24:38 +03:00
|
|
|
each hotspot can be activated resulting in the loading of another document
|
|
|
|
or section of a document.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_IMAGE_MAP,
|
|
|
|
|
|
|
|
/** An object which is used to allow input of characters not found on a keyboard,
|
|
|
|
such as the input of Chinese characters on a Western keyboard.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_INPUT_METHOD_WINDOW,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** An internal frame. A frame-like object that is clipped by a desktop pane.
|
|
|
|
The desktop pane, internal frame, and desktop icon objects are often used to
|
2007-03-01 23:24:38 +03:00
|
|
|
create multiple document interfaces within an application.
|
2007-04-08 07:58:08 +04:00
|
|
|
Also refer to ::IA2_ROLE_DESKTOP_ICON, ::IA2_ROLE_DESKTOP_PANE, and ::IA2_ROLE_FRAME.
|
2007-03-01 23:24:38 +03:00
|
|
|
*/
|
|
|
|
IA2_ROLE_INTERNAL_FRAME,
|
|
|
|
|
|
|
|
/// An object used to present an icon or short string in an interface.
|
|
|
|
IA2_ROLE_LABEL,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A layered pane. A specialized pane that allows its children to be drawn
|
|
|
|
in layers, providing a form of stacking order. This is usually the pane that
|
|
|
|
holds the menu bar as well as the pane that contains most of the visual
|
2007-03-01 23:24:38 +03:00
|
|
|
components in a window.
|
2007-04-08 07:58:08 +04:00
|
|
|
Also refer to ::IA2_ROLE_CANVAS, ::IA2_ROLE_GLASS_PANE, and ::IA2_ROLE_ROOT_PANE.
|
2007-03-01 23:24:38 +03:00
|
|
|
*/
|
|
|
|
IA2_ROLE_LAYERED_PANE,
|
|
|
|
|
2013-05-19 05:21:42 +04:00
|
|
|
/** A section whose content is parenthetic or ancillary to the main content
|
|
|
|
of the resource.
|
|
|
|
*/
|
2007-03-01 23:24:38 +03:00
|
|
|
IA2_ROLE_NOTE,
|
|
|
|
|
2007-04-08 07:58:08 +04:00
|
|
|
/** A specialized pane whose primary use is inside a dialog.
|
2007-03-01 23:24:38 +03:00
|
|
|
Also refer to MSAA's dialog role.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_OPTION_PANE,
|
|
|
|
|
|
|
|
/** An object representing a page of document content. It is used in documents
|
|
|
|
which are accessed by the user on a page by page basis.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_PAGE,
|
|
|
|
|
|
|
|
/// A paragraph of text.
|
|
|
|
IA2_ROLE_PARAGRAPH,
|
|
|
|
|
|
|
|
/** A radio button that is a menu item.
|
|
|
|
Also refer to MSAA's button and menu item roles.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_RADIO_MENU_ITEM,
|
|
|
|
|
|
|
|
/** An object which is redundant with another object in the accessible hierarchy.
|
|
|
|
ATs typically ignore objects with this role.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_REDUNDANT_OBJECT,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A root pane. A specialized pane that has a glass pane and a layered pane
|
2007-03-01 23:24:38 +03:00
|
|
|
as its children.
|
|
|
|
Also refer to ::IA2_ROLE_GLASS_PANE and ::IA2_ROLE_LAYERED_PANE
|
|
|
|
*/
|
|
|
|
IA2_ROLE_ROOT_PANE,
|
|
|
|
|
|
|
|
/** A ruler such as those used in word processors.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_RULER,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A scroll pane. An object that allows a user to incrementally view a large
|
2007-03-01 23:24:38 +03:00
|
|
|
amount of information. Its children can include scroll bars and a viewport.
|
|
|
|
Also refer to ::IA2_ROLE_VIEW_PORT and MSAA's scroll bar role.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_SCROLL_PANE,
|
|
|
|
|
|
|
|
/** A container of document content. An example of the use of this role is to
|
2018-07-27 03:27:44 +03:00
|
|
|
represent an HTML DIV tag. A section may be used as a region. A region is a
|
|
|
|
group of elements that together form a perceivable unit. A region does not
|
|
|
|
necessarily follow the logical structure of the content, but follows the
|
|
|
|
perceivable structure of the page. A region may have an attribute in the set
|
|
|
|
of IAccessible2::attributes which indicates that it is "live". A live region
|
|
|
|
is content that is likely to change in response to a timed change, a user
|
2007-03-01 23:24:38 +03:00
|
|
|
event, or some other programmed logic or event.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_SECTION,
|
|
|
|
|
|
|
|
/// Object with graphical representation used to represent content on draw pages.
|
|
|
|
IA2_ROLE_SHAPE,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A split pane. A specialized panel that presents two other panels at the
|
|
|
|
same time. Between the two panels is a divider the user can manipulate to make
|
2007-03-01 23:24:38 +03:00
|
|
|
one panel larger and the other panel smaller.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_SPLIT_PANE,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** An object that forms part of a menu system but which can be "undocked"
|
2007-04-08 07:58:08 +04:00
|
|
|
from or "torn off" the menu system to exist as a separate window.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_TEAR_OFF_MENU,
|
|
|
|
|
|
|
|
/// An object used as a terminal emulator.
|
|
|
|
IA2_ROLE_TERMINAL,
|
|
|
|
|
2007-03-01 23:24:38 +03:00
|
|
|
/// Collection of objects that constitute a logical text entity.
|
|
|
|
IA2_ROLE_TEXT_FRAME,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A toggle button. A specialized push button that can be checked or unchecked,
|
2007-03-01 23:24:38 +03:00
|
|
|
but does not provide a separate indicator for the current state.
|
|
|
|
Also refer to MSAA's roles of push button, check box, and radio button.
|
2018-07-27 03:27:44 +03:00
|
|
|
<BR><B>Note:</B> IA2_ROLE_TOGGLE_BUTTON should not be used. Instead, use MSAA's
|
2007-03-01 23:24:38 +03:00
|
|
|
ROLE_SYSTEM_PUSHBUTTON and STATE_SYSTEM_PRESSED.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_TOGGLE_BUTTON,
|
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/** A viewport. An object usually used in a scroll pane. It represents the
|
|
|
|
portion of the entire data that the user can see. As the user manipulates
|
2007-03-01 23:24:38 +03:00
|
|
|
the scroll bars, the contents of the viewport can change.
|
|
|
|
Also refer to ::IA2_ROLE_SCROLL_PANE.
|
|
|
|
*/
|
2013-05-19 05:21:42 +04:00
|
|
|
IA2_ROLE_VIEW_PORT,
|
|
|
|
|
|
|
|
/** An object containing content which is complementary to the main content of
|
|
|
|
a document, but remains meaningful when separated from the main content. There
|
|
|
|
are various types of content that would appropriately have this role. For example,
|
|
|
|
in the case where content is delivered via a web portal to a web browser, this may
|
|
|
|
include but not be limited to show times, current weather, related articles, or
|
|
|
|
stocks to watch. The complementary role indicates that contained content is relevant
|
|
|
|
to the main content. If the complementary content is completely separable main
|
|
|
|
content, it may be appropriate to use a more general role.
|
|
|
|
*/
|
2017-06-13 22:06:08 +03:00
|
|
|
IA2_ROLE_COMPLEMENTARY_CONTENT,
|
2018-07-27 03:27:44 +03:00
|
|
|
|
2017-06-13 22:06:08 +03:00
|
|
|
/** An object representing a navigational landmark, a region on a page to
|
2018-07-27 03:27:44 +03:00
|
|
|
which the user may want quick access, such as a navigation area, a search
|
|
|
|
facility or the main content of a page.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_LANDMARK,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A bar that serves as a level indicator to, for instance, show
|
|
|
|
* the strength of a password or the charge of a battery.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_LEVEL_BAR,
|
|
|
|
|
|
|
|
/** Content previously deleted or proposed for deletion, e.g. in revision
|
|
|
|
history or a content view providing suggestions from reviewers.
|
|
|
|
*/
|
|
|
|
IA2_ROLE_CONTENT_DELETION,
|
|
|
|
|
|
|
|
/** Content previously inserted or proposed for insertion, e.g. in revision
|
|
|
|
history or a content view providing suggestions from reviewers.
|
2017-06-13 22:06:08 +03:00
|
|
|
*/
|
2018-07-27 03:27:44 +03:00
|
|
|
IA2_ROLE_CONTENT_INSERTION,
|
2017-06-13 22:06:08 +03:00
|
|
|
|
2018-07-27 03:27:44 +03:00
|
|
|
/// A section of content that is quoted from another source.
|
|
|
|
IA2_ROLE_BLOCK_QUOTE
|
2007-03-01 23:24:38 +03:00
|
|
|
};
|