1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_text_AccessibleEndnoteView_idl__
24*b1cdbd2cSJim Jagielski#define __com_sun_star_text_AccessibleEndnoteView_idl__
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
27*b1cdbd2cSJim Jagielski#include <com/sun/star/accessibility/XAccessibleContext.idl>
28*b1cdbd2cSJim Jagielski#endif
29*b1cdbd2cSJim Jagielski
30*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__
31*b1cdbd2cSJim Jagielski#include <com/sun/star/accessibility/XAccessibleComponent.idl>
32*b1cdbd2cSJim Jagielski#endif
33*b1cdbd2cSJim Jagielski
34*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
35*b1cdbd2cSJim Jagielski#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
36*b1cdbd2cSJim Jagielski#endif
37*b1cdbd2cSJim Jagielski
38*b1cdbd2cSJim Jagielski
39*b1cdbd2cSJim Jagielski//=============================================================================
40*b1cdbd2cSJim Jagielski
41*b1cdbd2cSJim Jagielskimodule com {  module sun {  module star {  module text {
42*b1cdbd2cSJim Jagielski
43*b1cdbd2cSJim Jagielski//=============================================================================
44*b1cdbd2cSJim Jagielski
45*b1cdbd2cSJim Jagielski/** The accessible view of endnotes.
46*b1cdbd2cSJim Jagielski    @since OpenOffice 1.1.2
47*b1cdbd2cSJim Jagielski */
48*b1cdbd2cSJim Jagielskipublished service AccessibleEndnoteView
49*b1cdbd2cSJim Jagielski{
50*b1cdbd2cSJim Jagielski	/** This interface gives access to any paragraph fragment and table
51*b1cdbd2cSJim Jagielski	    fragment that is contained in a endnote and is at least
52*b1cdbd2cSJim Jagielski		partially visible on the screen.
53*b1cdbd2cSJim Jagielski
54*b1cdbd2cSJim Jagielski		<ul>
55*b1cdbd2cSJim Jagielski			<li>The parent returned by
56*b1cdbd2cSJim Jagielski                <method scope="::com::sun::star::accessibility"
57*b1cdbd2cSJim Jagielski                >XAccessibleContext::getAccessibleParent</method>
58*b1cdbd2cSJim Jagielski				is either the accessible view of a text document,
59*b1cdbd2cSJim Jagielski				a page of the accessible page preview of a text document,
60*b1cdbd2cSJim Jagielski				or the accessible page preview of a spreadsheet document.
61*b1cdbd2cSJim Jagielski			<li>The children returned by
62*b1cdbd2cSJim Jagielski                <method scope="::com::sun::star::accessibility"
63*b1cdbd2cSJim Jagielski                >XAccessibleContext::getAccessibleChild</method> all
64*b1cdbd2cSJim Jagielski				support the interface XAccessible. Calling
65*b1cdbd2cSJim Jagielski				<method scope="::com::sun::star::accessibility"
66*b1cdbd2cSJim Jagielski                >XAccessible::getAccessibleContext</method> for these children returns
67*b1cdbd2cSJim Jagielski				an object that supports one of the following services.
68*b1cdbd2cSJim Jagielski				<ul>
69*b1cdbd2cSJim Jagielski					<li><type scope="::com::sun::star::text"
70*b1cdbd2cSJim Jagielski                        >AccessibleParagraphView</type>:
71*b1cdbd2cSJim Jagielski						A child of this kind is returned for every paragraph
72*b1cdbd2cSJim Jagielski						fragment that is contained in the document body and
73*b1cdbd2cSJim Jagielski						is at least partially visible. A paragraph fragment is
74*b1cdbd2cSJim Jagielski						the part of a paragraph that is displayed on a
75*b1cdbd2cSJim Jagielski						certain page.
76*b1cdbd2cSJim Jagielski					<li><type scope="::com::sun::star::table"
77*b1cdbd2cSJim Jagielski                        >AccessibleTableView</type>:
78*b1cdbd2cSJim Jagielski						A child of this kind is returned for every table
79*b1cdbd2cSJim Jagielski						fragment that is contained in the document body
80*b1cdbd2cSJim Jagielski						and is at least partially visible. A table fragment is
81*b1cdbd2cSJim Jagielski						the part of a table that is displayed on a certain page.
82*b1cdbd2cSJim Jagielski				</ul>
83*b1cdbd2cSJim Jagielski				<p>The logical order of paragraph and table fragments is never
84*b1cdbd2cSJim Jagielski				   changed.
85*b1cdbd2cSJim Jagielski			<li>The role is <const scope="::com::sun::star::accessibility"
86*b1cdbd2cSJim Jagielski                >AccessibleRole::ENDNOTE</const>
87*b1cdbd2cSJim Jagielski			<li>The name is "endnote" (or the equivalent term
88*b1cdbd2cSJim Jagielski				in application's language) with a number appended.
89*b1cdbd2cSJim Jagielski			<li>The description is endnote" (or the equivalent term
90*b1cdbd2cSJim Jagielski				in application's language) with the endnote number or
91*b1cdbd2cSJim Jagielski				character appended in the format that is specified in the
92*b1cdbd2cSJim Jagielski				endnote settings.
93*b1cdbd2cSJim Jagielski			<li>There are no relations. <em>TODO: One might specify a relation
94*b1cdbd2cSJim Jagielski				to the endnote anchor's paragraph.</em>
95*b1cdbd2cSJim Jagielski			<li>The following states might be contained in the state set
96*b1cdbd2cSJim Jagielski				returned by <method scope="::com::sun::star::accessibility"
97*b1cdbd2cSJim Jagielski                >XAccessibleContext::getAccessibleStateSet</method>:
98*b1cdbd2cSJim Jagielski				<ul>
99*b1cdbd2cSJim Jagielski					<li><const scope="::com::sun::star::accessibility"
100*b1cdbd2cSJim Jagielski                        >AccessibleStateType::DEFUNC</const> (indicates that the
101*b1cdbd2cSJim Jagielski                        document window has been closed or the endnote is
102*b1cdbd2cSJim Jagielski						not existing any longer)
103*b1cdbd2cSJim Jagielski					<li><const scope="::com::sun::star::accessibility"
104*b1cdbd2cSJim Jagielski                        >AccessibleStateType::EDITABLE</const>
105*b1cdbd2cSJim Jagielski					<li><const scope="::com::sun::star::accessibility"
106*b1cdbd2cSJim Jagielski                        >AccessibleStateType::ENABLED</const> (always contained)
107*b1cdbd2cSJim Jagielski					<li><const scope="::com::sun::star::accessibility"
108*b1cdbd2cSJim Jagielski                        >AccessibleStateType::OPAQUE</const>
109*b1cdbd2cSJim Jagielski					<li><const scope="::com::sun::star::accessibility"
110*b1cdbd2cSJim Jagielski                        >AccessibleStateType::SHOWING</const>
111*b1cdbd2cSJim Jagielski					<li><const scope="::com::sun::star::accessibility"
112*b1cdbd2cSJim Jagielski                        >AccessibleStateType::VISIBLE</const>
113*b1cdbd2cSJim Jagielski				</ul>
114*b1cdbd2cSJim Jagielski			<li>Depending of the application's region setting, the locale is
115*b1cdbd2cSJim Jagielski				the western, asian or complex default language of the document.
116*b1cdbd2cSJim Jagielski		</ul>
117*b1cdbd2cSJim Jagielski
118*b1cdbd2cSJim Jagielski	 */
119*b1cdbd2cSJim Jagielski	interface ::com::sun::star::accessibility::XAccessibleContext;
120*b1cdbd2cSJim Jagielski
121*b1cdbd2cSJim Jagielski	/** This interface describes the graphical representation of a
122*b1cdbd2cSJim Jagielski	  	endnote.
123*b1cdbd2cSJim Jagielski	 */
124*b1cdbd2cSJim Jagielski	interface ::com::sun::star::accessibility::XAccessibleComponent;
125*b1cdbd2cSJim Jagielski
126*b1cdbd2cSJim Jagielski	/** This is the interface for listeners */
127*b1cdbd2cSJim Jagielski	interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
128*b1cdbd2cSJim Jagielski};
129*b1cdbd2cSJim Jagielski
130*b1cdbd2cSJim Jagielski//=============================================================================
131*b1cdbd2cSJim Jagielski
132*b1cdbd2cSJim Jagielski}; }; }; };
133*b1cdbd2cSJim Jagielski
134*b1cdbd2cSJim Jagielski#endif
135