1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10d1766043SAndrew Rist *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_text_AccessibleParagraphView_idl__
24cdf0e10cSrcweir#define __com_sun_star_text_AccessibleParagraphView_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
27cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleContext.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__
31cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleComponent.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleEditableText_idl__
35cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEditableText.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
39cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleTextAttributes_idl__
43cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleTextAttributes.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir//=============================================================================
47cdf0e10cSrcweir
48cdf0e10cSrcweirmodule com {  module sun {  module star {  module text {
49cdf0e10cSrcweir
50cdf0e10cSrcweir//=============================================================================
51cdf0e10cSrcweir
52cdf0e10cSrcweir/** The accessible view of a paragraph fragment.
53cdf0e10cSrcweir
54cdf0e10cSrcweir
55*2a413f17SJürgen Schmidt	 @since OpenOffice 1.1.2
56cdf0e10cSrcweir */
57cdf0e10cSrcweirpublished service AccessibleParagraphView
58cdf0e10cSrcweir{
59cdf0e10cSrcweir	/** This interface gives access to a paragraph fragment that is at least
60cdf0e10cSrcweir	  	partially visible on the screen. A paragraph fragment is the portion
61cdf0e10cSrcweir		of a paragraph that is displayed on a single page or a in a single
62cdf0e10cSrcweir		column.
63cdf0e10cSrcweir
64cdf0e10cSrcweir		<ul>
65cdf0e10cSrcweir			<li>The parent returned by
66cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
67cdf0e10cSrcweir                >XAccessibleContext::getAccessibleParent</method> is the
68cdf0e10cSrcweir                accessible view of a text document (in this case the
69cdf0e10cSrcweir                paragraph is contained in a page body) or the accessible
70cdf0e10cSrcweir                view of a header, footer, footnote, endnote, table cell,
71cdf0e10cSrcweir                text frame, page or shape.</li>
72cdf0e10cSrcweir            <li>The children returned by
73cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
74cdf0e10cSrcweir                >XAccessibleContext::getAccessibleChild</method> are the
75cdf0e10cSrcweir                graphics, text boxes and OLE objects that are bound
76cdf0e10cSrcweir                <em>as</em> character within the paragraph. Graphics, text
77cdf0e10cSrcweir                boxes and OLE objects that are bound to the paragraph or
78cdf0e10cSrcweir                <em>to</em> a character within the paragraph are not
79cdf0e10cSrcweir                children of the paragraph fragment but of the document view
80cdf0e10cSrcweir                itself.</li>
81cdf0e10cSrcweir			<li>The role is either
82cdf0e10cSrcweir                <const scope="::com::sun::star::accessibility"
83cdf0e10cSrcweir                >AccessibleRole::PARAGRAPH</const> or
84cdf0e10cSrcweir                <const scope="::com::sun::star::accessibility"
85cdf0e10cSrcweir                >AccessibleRole::HEADING</const>. The later one is returned
86cdf0e10cSrcweir                if the paragraph's style is contained in the chapter
87cdf0e10cSrcweir                numbering of a text document.
88cdf0e10cSrcweir			<li>The name is "paragraph" or "heading" (or the equivalent term
89cdf0e10cSrcweir				in application's language) with a number appended.
90cdf0e10cSrcweir			<li>The description contains the term "paragraph" (or the equivalent
91cdf0e10cSrcweir				term in application's language) and the first sentence of
92cdf0e10cSrcweir				the paragraph.
93cdf0e10cSrcweir			<li>There are no relations.
94cdf0e10cSrcweir			<li>The following states are supported by the
95cdf0e10cSrcweir				<type scope="::com::sun::star::accessibility"
96cdf0e10cSrcweir                >XAccessibleStateSet</type> returned by
97cdf0e10cSrcweir				<method scope="::com::sun::star::accessibility"
98cdf0e10cSrcweir                >XAccessibleContext::getAccessibleStateSet</method>.
99cdf0e10cSrcweir				<ul>
100cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
101cdf0e10cSrcweir                        >AccessibleStateType::DEFUNC</const> (indicates that
102cdf0e10cSrcweir                        the document window has been closed or the paragraph
103cdf0e10cSrcweir                        fragment is not existing any longer).
104cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
105cdf0e10cSrcweir                        >AccessibleStateType::EDITABLE</const>
106cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
107cdf0e10cSrcweir                        >AccessibleStateType::ENABLED</const> (always
108cdf0e10cSrcweir                        contained)
109cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
110cdf0e10cSrcweir                        >AccessibleStateType::MULTILINE</const> (always
111cdf0e10cSrcweir                        contained)
112cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
113cdf0e10cSrcweir                        >AccessibleStateType::MULTISELECTABLE</const>
114cdf0e10cSrcweir                        (always contained)
115cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
116cdf0e10cSrcweir                        >AccessibleStateType::OPAQUE</const>
117cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
118cdf0e10cSrcweir                        >AccessibleStateType::SHOWING</const>
119cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
120cdf0e10cSrcweir                        >AccessibleStateType::VISIBLE</const>
121cdf0e10cSrcweir					<li><const scope="::com::sun::star::accessibility"
122cdf0e10cSrcweir                        >AccessibleStateType::FOCUSED</const>
123cdf0e10cSrcweir				</ul>
124cdf0e10cSrcweir			<li>Depending of the application's region setting, the locale is
125cdf0e10cSrcweir				the western, asian or complex language of the paragraph.
126cdf0e10cSrcweir		</ul>
127cdf0e10cSrcweir
128cdf0e10cSrcweir	 */
129cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleContext;
130cdf0e10cSrcweir
131cdf0e10cSrcweir	/** This interface describes the graphical representation of a paragraph
132cdf0e10cSrcweir	  	fragment.
133cdf0e10cSrcweir	 */
134cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleComponent;
135cdf0e10cSrcweir
136cdf0e10cSrcweir	/** This interface gives access to a paragraph fragment's text. The text
137cdf0e10cSrcweir	  	contains the paragraph's editable text as well as generated text,
138cdf0e10cSrcweir		like chapter numbers, hyphens or fields. Characters of generated
139cdf0e10cSrcweir		text contribute to the text's character indexing. However, it is not
140cdf0e10cSrcweir		possible to set the caret or start a selection within generated text.
141cdf0e10cSrcweir		<p>For text frames, graphics, etc. that are bound as character some
142cdf0e10cSrcweir		text is generated that contains the objects description.
143cdf0e10cSrcweir		<p>The attributes (or properties) returned by
144cdf0e10cSrcweir        <method scope="::com::sun::star::accessibility"
145cdf0e10cSrcweir        >XAccessibleText::getCharacterAttributes</method>
146cdf0e10cSrcweir		are a sub set of the properties described by the service
147cdf0e10cSrcweir		<type scope="::com::sun::star::style">CharacterProperties</type>. For
148cdf0e10cSrcweir		properties that have asian and complex counterparts, the value that
149cdf0e10cSrcweir		is visible is returned. This can be in fact the western, asian or
150cdf0e10cSrcweir		complex value.  Its not possible to change the value of any property
151cdf0e10cSrcweir		by using
152cdf0e10cSrcweir		<method scope="::com::sun::star::accessibility"
153cdf0e10cSrcweir        >XAccessibleEditableText::setAttributes</method>.
154cdf0e10cSrcweir		<p><em>TODO: If there is a demand, some attributes might be added that
155cdf0e10cSrcweir		tells whether the character at a certain index is editable or generated.
156cdf0e10cSrcweir		</em>
157cdf0e10cSrcweir
158cdf0e10cSrcweir	 */
159cdf0e10cSrcweir	[optional] interface ::com::sun::star::accessibility::XAccessibleEditableText;
160cdf0e10cSrcweir
161cdf0e10cSrcweir	/** This interface is a subset of
162cdf0e10cSrcweir		<type scope="::com::sun::star::accessibility"
163cdf0e10cSrcweir        >XAccessibleEditableText</type> and gives access to a paragraph
164cdf0e10cSrcweir        fragment's text in a read-only mode.  The text contains the
165cdf0e10cSrcweir        paragraph's text (changeable as well as generated text, like chapter
166cdf0e10cSrcweir        numbers, hyphens or fields). Characters of generated text contribute
167cdf0e10cSrcweir        to the text's character indexing.
168cdf0e10cSrcweir		<p>For text frames, graphics, etc. that are bound as character
169cdf0e10cSrcweir		some text is generated that contains the objects description.
170cdf0e10cSrcweir		<p>The attributes (or properties) returned by
171cdf0e10cSrcweir		<method scope="::com::sun::star::accessibility"
172cdf0e10cSrcweir        >XAccessibleText::getCharacterAttributes</method> are a sub set of the properties
173cdf0e10cSrcweir		described by the service
174cdf0e10cSrcweir		<type scope="::com::sun::star::style">CharacterProperties</type>. For
175cdf0e10cSrcweir		properties that have asian and complex counterparts, the value that
176cdf0e10cSrcweir		is visible is returned. This can be in fact the western, asian or
177cdf0e10cSrcweir		complex value.
178cdf0e10cSrcweir        <p><em>TODO: If there is a demand, some attributes might be added
179cdf0e10cSrcweir        that tells whether the character at a certain index is changeable or
180cdf0e10cSrcweir        generated.
181cdf0e10cSrcweir		</em>
182cdf0e10cSrcweir	 */
183cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleText;
184cdf0e10cSrcweir
185cdf0e10cSrcweir	/** This interface is for selecting the paragraph's children. Multi
186cdf0e10cSrcweir	    selection is supported only for children that are multi selectable
187cdf0e10cSrcweir		in the GUI, too.
188cdf0e10cSrcweir    */
189cdf0e10cSrcweir	[optional] interface ::com::sun::star::accessibility::XAccessibleSelection;
190cdf0e10cSrcweir
191cdf0e10cSrcweir	/** This is the interface for listeners.
192cdf0e10cSrcweir    */
193cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
194cdf0e10cSrcweir
195cdf0e10cSrcweir        /** This interface gives access to the default attributes of a paragraph
196cdf0e10cSrcweir            and to the run attributes of a certain character in a paragraph
197cdf0e10cSrcweir
198*2a413f17SJürgen Schmidt            @since OpenOffice 2.0.4
199cdf0e10cSrcweir        */
200cdf0e10cSrcweir        [optional] interface ::com::sun::star::accessibility::XAccessibleTextAttributes;
201cdf0e10cSrcweir
202cdf0e10cSrcweir};
203cdf0e10cSrcweir
204cdf0e10cSrcweir//=============================================================================
205cdf0e10cSrcweir
206cdf0e10cSrcweir}; }; }; };
207cdf0e10cSrcweir
208cdf0e10cSrcweir#endif
209