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_AccessibleParagraphView_idl__
28*cdf0e10cSrcweir#define __com_sun_star_text_AccessibleParagraphView_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_XAccessibleEditableText_idl__
39*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEditableText.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#ifndef __com_sun_star_accessibility_XAccessibleTextAttributes_idl__
47*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleTextAttributes.idl>
48*cdf0e10cSrcweir#endif
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir//=============================================================================
51*cdf0e10cSrcweir
52*cdf0e10cSrcweirmodule com {  module sun {  module star {  module text {
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir//=============================================================================
55*cdf0e10cSrcweir
56*cdf0e10cSrcweir/** The accessible view of a paragraph fragment.
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir
59*cdf0e10cSrcweir	 @since OOo 1.1.2
60*cdf0e10cSrcweir */
61*cdf0e10cSrcweirpublished service AccessibleParagraphView
62*cdf0e10cSrcweir{
63*cdf0e10cSrcweir	/** This interface gives access to a paragraph fragment that is at least
64*cdf0e10cSrcweir	  	partially visible on the screen. A paragraph fragment is the portion
65*cdf0e10cSrcweir		of a paragraph that is displayed on a single page or a in a single
66*cdf0e10cSrcweir		column.
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir		<ul>
69*cdf0e10cSrcweir			<li>The parent returned by
70*cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
71*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleParent</method> is the
72*cdf0e10cSrcweir                accessible view of a text document (in this case the
73*cdf0e10cSrcweir                paragraph is contained in a page body) or the accessible
74*cdf0e10cSrcweir                view of a header, footer, footnote, endnote, table cell,
75*cdf0e10cSrcweir                text frame, page or shape.</li>
76*cdf0e10cSrcweir            <li>The children returned by
77*cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
78*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleChild</method> are the
79*cdf0e10cSrcweir                graphics, text boxes and OLE objects that are bound
80*cdf0e10cSrcweir                <em>as</em> character within the paragraph. Graphics, text
81*cdf0e10cSrcweir                boxes and OLE objects that are bound to the paragraph or
82*cdf0e10cSrcweir                <em>to</em> a character within the paragraph are not
83*cdf0e10cSrcweir                children of the paragraph fragment but of the document view
84*cdf0e10cSrcweir                itself.</li>
85*cdf0e10cSrcweir			<li>The role is either
86*cdf0e10cSrcweir                <const scope="::com::sun::star::accessibility"
87*cdf0e10cSrcweir                >AccessibleRole::PARAGRAPH</const> or
88*cdf0e10cSrcweir                <const scope="::com::sun::star::accessibility"
89*cdf0e10cSrcweir                >AccessibleRole::HEADING</const>. The later one is returned
90*cdf0e10cSrcweir                if the paragraph's style is contained in the chapter
91*cdf0e10cSrcweir                numbering of a text document.
92*cdf0e10cSrcweir			<li>The name is "paragraph" or "heading" (or the equivalent term
93*cdf0e10cSrcweir				in application's language) with a number appended.
94*cdf0e10cSrcweir			<li>The description contains the term "paragraph" (or the equivalent
95*cdf0e10cSrcweir				term in application's language) and the first sentence of
96*cdf0e10cSrcweir				the paragraph.
97*cdf0e10cSrcweir			<li>There are no relations.
98*cdf0e10cSrcweir			<li>The following states are supported by the
99*cdf0e10cSrcweir				<type scope="::com::sun::star::accessibility"
100*cdf0e10cSrcweir                >XAccessibleStateSet</type> returned by
101*cdf0e10cSrcweir				<method scope="::com::sun::star::accessibility"
102*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleStateSet</method>.
103*cdf0e10cSrcweir				<ul>
104*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
105*cdf0e10cSrcweir                        >AccessibleStateType::DEFUNC</const> (indicates that
106*cdf0e10cSrcweir                        the document window has been closed or the paragraph
107*cdf0e10cSrcweir                        fragment is not existing any longer).
108*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
109*cdf0e10cSrcweir                        >AccessibleStateType::EDITABLE</const>
110*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
111*cdf0e10cSrcweir                        >AccessibleStateType::ENABLED</const> (always
112*cdf0e10cSrcweir                        contained)
113*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
114*cdf0e10cSrcweir                        >AccessibleStateType::MULTILINE</const> (always
115*cdf0e10cSrcweir                        contained)
116*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
117*cdf0e10cSrcweir                        >AccessibleStateType::MULTISELECTABLE</const>
118*cdf0e10cSrcweir                        (always contained)
119*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
120*cdf0e10cSrcweir                        >AccessibleStateType::OPAQUE</const>
121*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
122*cdf0e10cSrcweir                        >AccessibleStateType::SHOWING</const>
123*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
124*cdf0e10cSrcweir                        >AccessibleStateType::VISIBLE</const>
125*cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
126*cdf0e10cSrcweir                        >AccessibleStateType::FOCUSED</const>
127*cdf0e10cSrcweir				</ul>
128*cdf0e10cSrcweir			<li>Depending of the application's region setting, the locale is
129*cdf0e10cSrcweir				the western, asian or complex language of the paragraph.
130*cdf0e10cSrcweir		</ul>
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir	 */
133*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleContext;
134*cdf0e10cSrcweir
135*cdf0e10cSrcweir	/** This interface describes the graphical representation of a paragraph
136*cdf0e10cSrcweir	  	fragment.
137*cdf0e10cSrcweir	 */
138*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleComponent;
139*cdf0e10cSrcweir
140*cdf0e10cSrcweir	/** This interface gives access to a paragraph fragment's text. The text
141*cdf0e10cSrcweir	  	contains the paragraph's editable text as well as generated text,
142*cdf0e10cSrcweir		like chapter numbers, hyphens or fields. Characters of generated
143*cdf0e10cSrcweir		text contribute to the text's character indexing. However, it is not
144*cdf0e10cSrcweir		possible to set the caret or start a selection within generated text.
145*cdf0e10cSrcweir		<p>For text frames, graphics, etc. that are bound as character some
146*cdf0e10cSrcweir		text is generated that contains the objects description.
147*cdf0e10cSrcweir		<p>The attributes (or properties) returned by
148*cdf0e10cSrcweir        <method scope="::com::sun::star::accessibility"
149*cdf0e10cSrcweir        >XAccessibleText::getCharacterAttributes</method>
150*cdf0e10cSrcweir		are a sub set of the properties described by the service
151*cdf0e10cSrcweir		<type scope="::com::sun::star::style">CharacterProperties</type>. For
152*cdf0e10cSrcweir		properties that have asian and complex counterparts, the value that
153*cdf0e10cSrcweir		is visible is returned. This can be in fact the western, asian or
154*cdf0e10cSrcweir		complex value.  Its not possible to change the value of any property
155*cdf0e10cSrcweir		by using
156*cdf0e10cSrcweir		<method scope="::com::sun::star::accessibility"
157*cdf0e10cSrcweir        >XAccessibleEditableText::setAttributes</method>.
158*cdf0e10cSrcweir		<p><em>TODO: If there is a demand, some attributes might be added that
159*cdf0e10cSrcweir		tells whether the character at a certain index is editable or generated.
160*cdf0e10cSrcweir		</em>
161*cdf0e10cSrcweir
162*cdf0e10cSrcweir	 */
163*cdf0e10cSrcweir	[optional] interface ::com::sun::star::accessibility::XAccessibleEditableText;
164*cdf0e10cSrcweir
165*cdf0e10cSrcweir	/** This interface is a subset of
166*cdf0e10cSrcweir		<type scope="::com::sun::star::accessibility"
167*cdf0e10cSrcweir        >XAccessibleEditableText</type> and gives access to a paragraph
168*cdf0e10cSrcweir        fragment's text in a read-only mode.  The text contains the
169*cdf0e10cSrcweir        paragraph's text (changeable as well as generated text, like chapter
170*cdf0e10cSrcweir        numbers, hyphens or fields). Characters of generated text contribute
171*cdf0e10cSrcweir        to the text's character indexing.
172*cdf0e10cSrcweir		<p>For text frames, graphics, etc. that are bound as character
173*cdf0e10cSrcweir		some text is generated that contains the objects description.
174*cdf0e10cSrcweir		<p>The attributes (or properties) returned by
175*cdf0e10cSrcweir		<method scope="::com::sun::star::accessibility"
176*cdf0e10cSrcweir        >XAccessibleText::getCharacterAttributes</method> are a sub set of the properties
177*cdf0e10cSrcweir		described by the service
178*cdf0e10cSrcweir		<type scope="::com::sun::star::style">CharacterProperties</type>. For
179*cdf0e10cSrcweir		properties that have asian and complex counterparts, the value that
180*cdf0e10cSrcweir		is visible is returned. This can be in fact the western, asian or
181*cdf0e10cSrcweir		complex value.
182*cdf0e10cSrcweir        <p><em>TODO: If there is a demand, some attributes might be added
183*cdf0e10cSrcweir        that tells whether the character at a certain index is changeable or
184*cdf0e10cSrcweir        generated.
185*cdf0e10cSrcweir		</em>
186*cdf0e10cSrcweir	 */
187*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleText;
188*cdf0e10cSrcweir
189*cdf0e10cSrcweir	/** This interface is for selecting the paragraph's children. Multi
190*cdf0e10cSrcweir	    selection is supported only for children that are multi selectable
191*cdf0e10cSrcweir		in the GUI, too.
192*cdf0e10cSrcweir    */
193*cdf0e10cSrcweir	[optional] interface ::com::sun::star::accessibility::XAccessibleSelection;
194*cdf0e10cSrcweir
195*cdf0e10cSrcweir	/** This is the interface for listeners.
196*cdf0e10cSrcweir    */
197*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
198*cdf0e10cSrcweir
199*cdf0e10cSrcweir        /** This interface gives access to the default attributes of a paragraph
200*cdf0e10cSrcweir            and to the run attributes of a certain character in a paragraph
201*cdf0e10cSrcweir
202*cdf0e10cSrcweir            @since OOo 2.0.4
203*cdf0e10cSrcweir        */
204*cdf0e10cSrcweir        [optional] interface ::com::sun::star::accessibility::XAccessibleTextAttributes;
205*cdf0e10cSrcweir
206*cdf0e10cSrcweir};
207*cdf0e10cSrcweir
208*cdf0e10cSrcweir//=============================================================================
209*cdf0e10cSrcweir
210*cdf0e10cSrcweir}; }; }; };
211*cdf0e10cSrcweir
212*cdf0e10cSrcweir#endif
213