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#ifndef __com_sun_star_text_AccessibleTextDocumentView_idl__
28*cdf0e10cSrcweir#define __com_sun_star_text_AccessibleTextDocumentView_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
31*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleContext.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__
35*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleComponent.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__
39*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleSelection.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
43*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir
47*cdf0e10cSrcweir//=============================================================================
48*cdf0e10cSrcweir
49*cdf0e10cSrcweirmodule com {  module sun {  module star {  module text {
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir//=============================================================================
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir/** The accessible view of a text document.
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir	 @since OOo 1.1.2
56*cdf0e10cSrcweir */
57*cdf0e10cSrcweirpublished service AccessibleTextDocumentView
58*cdf0e10cSrcweir{
59*cdf0e10cSrcweir	/** This interface gives access to any text, table, graphic, embedded
60*cdf0e10cSrcweir	  	object and drawing that is at least partially visible on the screen.
61*cdf0e10cSrcweir		The tree that arises from the children of this object reflects the
62*cdf0e10cSrcweir		structure of the document as it is displayed.
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir		<ul>
65*cdf0e10cSrcweir			<li>The children returned by
66*cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
67*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleChild</method> all support
68*cdf0e10cSrcweir                the interface XAccessible. Calling
69*cdf0e10cSrcweir				<method scope="::com::sun::star::accessibility"
70*cdf0e10cSrcweir                >XAccessible::getAccessibleContext</method> for these children
71*cdf0e10cSrcweir                returns an object that supports one of the following
72*cdf0e10cSrcweir                services.
73*cdf0e10cSrcweir				<ul>
74*cdf0e10cSrcweir					<li><type scope="::com::sun::star::text"
75*cdf0e10cSrcweir                        >AccessibleHeaderFooterView</type>:
76*cdf0e10cSrcweir						A child of this kind is returned for every header
77*cdf0e10cSrcweir						and footer that is at least partially visible.
78*cdf0e10cSrcweir					<li><type scope="::com::sun::star::text"
79*cdf0e10cSrcweir                        >AccessibleFootnoteView</type>:
80*cdf0e10cSrcweir						A child of this kind is returned for every footnote
81*cdf0e10cSrcweir						that is at least partially visible.
82*cdf0e10cSrcweir					<li><type scoep="::com::sun::star::text"
83*cdf0e10cSrcweir                        >AccessibleEndnoteView</type>:
84*cdf0e10cSrcweir						A child of this kind is returned for every endnote
85*cdf0e10cSrcweir						that is at least partially visible.
86*cdf0e10cSrcweir					<li><type scope="::com::sun::star::text"
87*cdf0e10cSrcweir                        >AccessibleParagraphView</type>:
88*cdf0e10cSrcweir						A child of this kind is returned for every paragraph
89*cdf0e10cSrcweir						fragment that is contained in the document body and
90*cdf0e10cSrcweir						is at least partially visible. A paragraph fragment is
91*cdf0e10cSrcweir						the part of a paragraph that is displayed on a
92*cdf0e10cSrcweir						certain page.
93*cdf0e10cSrcweir					<li><type scope="::com::sun::star::table"
94*cdf0e10cSrcweir                        >AccessibleTableView</type>:
95*cdf0e10cSrcweir						A child of this kind is returned for every table
96*cdf0e10cSrcweir						fragment that is contained in the document body
97*cdf0e10cSrcweir						and is at least partially visible. A table fragment is
98*cdf0e10cSrcweir						the part of a table that is displayed on a certain page.
99*cdf0e10cSrcweir					<li><type scope="::com::sun::star::text"
100*cdf0e10cSrcweir                        >AccessibleTextFrameView</type>: A child of this
101*cdf0e10cSrcweir                        kind is returned for every text frame that is at
102*cdf0e10cSrcweir                        least partially visible. These objects are children
103*cdf0e10cSrcweir                        of the
104*cdf0e10cSrcweir						<type>AccessibleTextDocumentView</type> regardless
105*cdf0e10cSrcweir						whether they are bound to a page, a paragarph, a
106*cdf0e10cSrcweir						frame, or a character. The only exception are text
107*cdf0e10cSrcweir						frames that are bound as character. They are childen
108*cdf0e10cSrcweir						of the paragraph they are contained in.
109*cdf0e10cSrcweir					<li><type scope="::com::sun::star::text"
110*cdf0e10cSrcweir                        >AccessibleTextGraphicObject</type>:
111*cdf0e10cSrcweir						A child of this kind is returned for every graphic that
112*cdf0e10cSrcweir						is at least partially visible. These objects are
113*cdf0e10cSrcweir						children of the <type>AccessibleTextDocumentView</type>
114*cdf0e10cSrcweir						regardless whether they are bound to a page, paragraph,
115*cdf0e10cSrcweir						a frame or a character. The only exception
116*cdf0e10cSrcweir						are text frames that are bound as character. They are
117*cdf0e10cSrcweir						childen of the paragraph they are contained in.
118*cdf0e10cSrcweir					<li><type scope="::com::sun::star::text"
119*cdf0e10cSrcweir                        >AccessibleTextEmbeddedObject</type>:
120*cdf0e10cSrcweir						A child of this kind is returned for every embedded
121*cdf0e10cSrcweir						object that is at least partially visible.
122*cdf0e10cSrcweir						These objects are children of the
123*cdf0e10cSrcweir						<type>AccessibleTextDocumentView</type> regardless
124*cdf0e10cSrcweir						whether they are bound to a page, a paragarph, a frame,
125*cdf0e10cSrcweir						or a character.  They are childen of the paragraph they
126*cdf0e10cSrcweir						are contained in.
127*cdf0e10cSrcweir					<li><type scope="::com::sun::star::drawing"
128*cdf0e10cSrcweir                        >AccessibleShape</type>: A child of this kind (or a
129*cdf0e10cSrcweir                        derived interface) is returned for every shape that
130*cdf0e10cSrcweir                        is at least partially visible. These objects are
131*cdf0e10cSrcweir                        children of the
132*cdf0e10cSrcweir                        <type>AccessibleTextDocumentView</type> regardless
133*cdf0e10cSrcweir                        whether they are bound to a page, a paragraph, a
134*cdf0e10cSrcweir                        frame or a character.
135*cdf0e10cSrcweir				</ul>
136*cdf0e10cSrcweir				<p>The following rules apply to the children order:
137*cdf0e10cSrcweir				<ul>
138*cdf0e10cSrcweir					<li>The logical order of paragraph and table fragments is
139*cdf0e10cSrcweir						never changed.
140*cdf0e10cSrcweir					<li>Headers appear immediately before the first paragraph or
141*cdf0e10cSrcweir						table fragment of the header's page.
142*cdf0e10cSrcweir					<li>Footnotes appear immediately after the last paragraph or
143*cdf0e10cSrcweir						table fragment of the footnote's page. The logical order
144*cdf0e10cSrcweir						of footnotes isn't changed.
145*cdf0e10cSrcweir					<li>Endnotes appear immediately after the last footnote of
146*cdf0e10cSrcweir						the endnote's page or after the last paragraph or
147*cdf0e10cSrcweir						table fragment of this page if there are no footnotes.
148*cdf0e10cSrcweir						The logical order of endnotes isn't changed.
149*cdf0e10cSrcweir					<li>Footers appear immediately after the last endnote,
150*cdf0e10cSrcweir						footnote, paragraph or table fragment of the footer's
151*cdf0e10cSrcweir						page.
152*cdf0e10cSrcweir					<li>Text frames, graphics, embedded objects and shapes that
153*cdf0e10cSrcweir						are painted in the background appear before any other
154*cdf0e10cSrcweir						children. Their order reflects the z order.
155*cdf0e10cSrcweir					<li>Text frames, graphics, embedded objects and shapes
156*cdf0e10cSrcweir						that are painted in the foreground appear behind any
157*cdf0e10cSrcweir					   	other children. Their order reflects the z order,
158*cdf0e10cSrcweir						with the exception of controls that appear really last,
159*cdf0e10cSrcweir						but also keep the z order.
160*cdf0e10cSrcweir				</ul>
161*cdf0e10cSrcweir			<li>The role is <const scope="::com::sun::star::accessibility"
162*cdf0e10cSrcweir                >AccessibleRole::DOCUMENT</const>.
163*cdf0e10cSrcweir			<li>The name is "document view" (or the equivalent term
164*cdf0e10cSrcweir				in application's language).
165*cdf0e10cSrcweir			<li>The description also is "document view" (or the equivalent term
166*cdf0e10cSrcweir				in application's language).
167*cdf0e10cSrcweir			<li>There are no relation sets.
168*cdf0e10cSrcweir			<li>The following states might be contained in the state set
169*cdf0e10cSrcweir				returned by <method scope="::com::sun::star::accessibility"
170*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleStateSet</method>:
171*cdf0e10cSrcweir				<ul>
172*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
173*cdf0e10cSrcweir                        >AccessibleStateType::DEFUNC</const> (indicates that
174*cdf0e10cSrcweir                        the document window has been closed)
175*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
176*cdf0e10cSrcweir                        >AccessibleStateType::EDITABLE</const>
177*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
178*cdf0e10cSrcweir                        >AccessibleStateType::ENABLED</const> (always
179*cdf0e10cSrcweir                        contained)
180*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
181*cdf0e10cSrcweir                        >AccessibleStateType::MULTI_SELECTABLE</const>
182*cdf0e10cSrcweir                        (always contained)
183*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
184*cdf0e10cSrcweir                        >AccessibleStateType::OPAQUE</const> (always
185*cdf0e10cSrcweir                        contained)
186*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
187*cdf0e10cSrcweir                        >AccessibleStateType::SHOWING</const>
188*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
189*cdf0e10cSrcweir                        >AccessibleStateType::VISIBLE</const>
190*cdf0e10cSrcweir				</ul>
191*cdf0e10cSrcweir			<li>Depending of the application's region setting, the locale is
192*cdf0e10cSrcweir				the western, asian or complex default language of the document.
193*cdf0e10cSrcweir		</ul>
194*cdf0e10cSrcweir
195*cdf0e10cSrcweir    */
196*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleContext;
197*cdf0e10cSrcweir
198*cdf0e10cSrcweir	/** This interface describes the graphical representation of a text
199*cdf0e10cSrcweir	  	document view.
200*cdf0e10cSrcweir    */
201*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleComponent;
202*cdf0e10cSrcweir
203*cdf0e10cSrcweir	/** This interface is for selecting the document's children. Selectable
204*cdf0e10cSrcweir	  	are any children with the exception of headers, footers, footnotes
205*cdf0e10cSrcweir		and endnotes, where only the grandchildren might be selectable.
206*cdf0e10cSrcweir    */
207*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleSelection;
208*cdf0e10cSrcweir
209*cdf0e10cSrcweir	/** This is the interface for listeners
210*cdf0e10cSrcweir    */
211*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
212*cdf0e10cSrcweir};
213*cdf0e10cSrcweir
214*cdf0e10cSrcweir//=============================================================================
215*cdf0e10cSrcweir
216*cdf0e10cSrcweir}; }; }; };
217*cdf0e10cSrcweir
218*cdf0e10cSrcweir#endif
219