merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / text / AccessibleTextFrameView.idl
bloba11fef5a4f19e15084389653a18e3fc864153dd9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_text_AccessibleTextFrameView_idl__
28 #define __com_sun_star_text_AccessibleTextFrameView_idl__
30 #ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
31 #include <com/sun/star/accessibility/XAccessibleContext.idl>
32 #endif
34 #ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__
35 #include <com/sun/star/accessibility/XAccessibleComponent.idl>
36 #endif
39 #ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
40 #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
41 #endif
43 //=============================================================================
45 module com { module sun { module star { module text {
47 //=============================================================================
49 /** The accessible view of text frames.
51 @since OOo 1.1.2
53 published service AccessibleTextFrameView
55 /** This interface gives access to any paragraph fragment and table
56 fragment that is contained in a text frame and at least
57 partially visible on the screen.
59 <ul>
60 <li>The parent returned by
61 <method scope="::com::sun::star::accessibility"
62 >XAccessibleContext::getAccessibleParent</type> is the
63 accessible view of a paragraph if the text frame is bound as
64 character, and the accessible view (or of a page in the page
65 preview) of the document in any other case.
66 <li>The children returned by
67 <method scope="::com::sun::star::accessibility"
68 >XAccessibleContext::getAccessibleChild</type> all support the
69 interface XAccessible. Calling
70 <method scope="::com::sun::star::accessibility"
71 >XAccessible::getAccessibleContext</type> for these children
72 returns an object that supports one of the following
73 services.
74 <ul>
75 <li><type scope="::com::sun::star::text"
76 >AccessibleParagraphView</type>: A child of this
77 kind is returned for every paragraph fragment that
78 is contained in the document body and is at least
79 partially visible. A paragraph fragment is the part
80 of a paragraph that is displayed on a certain page
81 or a certain column.
82 <li><type scope="::com::sun::star::table"
83 >AccessibleTableView</type>: A child of this kind is
84 returned for every table fragment that is contained
85 in the document body and is at least partially
86 visible. A table fragment is the part of a table
87 that is displayed on a certain page or a certain
88 column.
89 </ul>
90 <p>The logical order of paragraph and table fragments is never
91 changed.
92 <li>The role is <const scope="::com::sun::star::accessibility"
93 >AccessibleRole::TEXT_FRAME</const>
94 <li>The name is the one assigned to the text frame in the text
95 document. This means that it is not internationalized.
96 <li>The description is the one assigned to the text frame in the
97 text document. This means that it is not internationalized. If
98 no description has been set, the description equals the name.
99 <li>There are no relations.
100 <li>The following states might be contained in the state set
101 returned by <method scope="::com::sun::star::accessibility"
102 >XAccessibleContext::getAccessibleStateSet</method>:
103 <ul>
104 <li><const scope="::com::sun::star::accessibility"
105 >AccessibleStateType::DEFUNC</const> (indicates that
106 the document window has been closed or the graphic
107 is not existing any longer)
108 <li><const scope="::com::sun::star::accessibility"
109 >AccessibleStateType::EDITABLE</const>
110 <li><const scope="::com::sun::star::accessibility"
111 >AccessibleStateType::ENABLED</const> (always
112 contained)
113 <li><const scope="::com::sun::star::accessibility"
114 >AccessibleStateType::OPAQUE</const>
115 <li><const scope="::com::sun::star::accessibility"
116 >AccessibleStateType::SELECTABLE</const>
117 <li><const scope="::com::sun::star::accessibility"
118 >AccessibleStateType::SELECTED</const>
119 <li><const scope="::com::sun::star::accessibility"
120 >AccessibleStateType::FOCUSABLE</const>
121 <li><const scope="::com::sun::star::accessibility"
122 >AccessibleStateType::FOCUSED</const>
123 <li><const scope="::com::sun::star::accessibility"
124 >AccessibleStateType::SHOWING</const>
125 <li><const scope="::com::sun::star::accessibility"
126 >AccessibleStateType::VISIBLE</const>
127 </ul>
128 <li>The locale is the one the text document itself.
129 <li>There are the two relations CONTENT_FLOWS_FROM and
130 CONTENT_FLOWS_TO supported.
131 </ul>
134 interface ::com::sun::star::accessibility::XAccessibleContext;
136 /** This interface describes the graphical representation of a
137 text frame.
139 interface ::com::sun::star::accessibility::XAccessibleComponent;
141 /** This is the interface for listeners */
142 interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
145 //=============================================================================
147 }; }; }; };
149 #endif