xref: /AOO41X/main/offapi/com/sun/star/sheet/AccessibleSpreadsheetPageView.idl (revision fbef625e460ef3feded438b39e36a4c8f360d8f1)
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
10cdf0e10cSrcweir *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
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.
19cdf0e10cSrcweir *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_sheet_AccessibleSpreadsheetPageView_idl__
24cdf0e10cSrcweir#define __com_sun_star_sheet_AccessibleSpreadsheetPageView_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_XAccessibleEventBroadcaster_idl__
35cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir//=============================================================================
39cdf0e10cSrcweir
40cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
41cdf0e10cSrcweir
42cdf0e10cSrcweir//=============================================================================
43cdf0e10cSrcweir
44cdf0e10cSrcweir/** The accessible view of a spreadsheet page preview
45cdf0e10cSrcweir
46*fbef625eSJürgen Schmidt	 @since OpenOffice 1.1.2
47cdf0e10cSrcweir
48cdf0e10cSrcweir */
49cdf0e10cSrcweirpublished service AccessibleSpreadsheetPageView
50cdf0e10cSrcweir{
51cdf0e10cSrcweir	/** This interface gives access to any object that is at least partially
52cdf0e10cSrcweir	    visible on the screen in the page preview.
53cdf0e10cSrcweir
54cdf0e10cSrcweir	<ul>
55cdf0e10cSrcweir		<li>The parent returned by
56cdf0e10cSrcweir            <method scope="::com::sun::star::accessibility"
57cdf0e10cSrcweir            >XAccessibleContext::getAccessibleParent</method>
58cdf0e10cSrcweir			is the window wich contains the view of these page preview.</li>
59cdf0e10cSrcweir		<li>The children returned by
60cdf0e10cSrcweir            <method scope="::com::sun::star::accessibility"
61cdf0e10cSrcweir            >XAccessibleContext::getAccessibleChild</method> all
62cdf0e10cSrcweir			support the interface XAccessible. Calling
63cdf0e10cSrcweir			<method scope="::com::sun::star::accessibility"
64cdf0e10cSrcweir            >XAccessibleContext::getAccessibleContext</method> for these children returns
65cdf0e10cSrcweir			an object that supports one of the following services.</li>
66cdf0e10cSrcweir		<ul>
67cdf0e10cSrcweir			<li><type scope="::com::sun::star::sheet"
68cdf0e10cSrcweir                >AccessiblePageHeaderFooterAreasView</type>: A child where calling
69cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
70cdf0e10cSrcweir                >XAccessibleContext::getAccessibleChild</method>
71cdf0e10cSrcweir				an object that supports this service is returned for
72cdf0e10cSrcweir				every header and footer that is at least partially visible.</li>
73cdf0e10cSrcweir			<li><type scope="::com::sun::star::table">AccessibleTableView</type>:
74cdf0e10cSrcweir				A child where calling
75cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
76cdf0e10cSrcweir                >XAccessibleChild::getAccessibleChild</method>
77cdf0e10cSrcweir				an object that supports this service is returned for
78cdf0e10cSrcweir				every table fragment that is contained in the document body
79cdf0e10cSrcweir				and is at least partially visible. A table fragment is the
80cdf0e10cSrcweir				part of a table that is displayed on a certain page.</li>
81cdf0e10cSrcweir			<li><type scope="::com::sun::star::drawing">AccessibleShape</type>:
82cdf0e10cSrcweir				A child where calling
83cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
84cdf0e10cSrcweir                >XAccessibleContext::getAccessibleChild</method>
85cdf0e10cSrcweir				an object that supports this service is returned
86cdf0e10cSrcweir				for every shape that is at least partially visible. These
87cdf0e10cSrcweir				objects are children of the
88cdf0e10cSrcweir				<type>AccessibleSpreadsheetPageView</type> regardless
89cdf0e10cSrcweir				whether they are bound to a table or a cell.</li>
90cdf0e10cSrcweir			<li><type scope="::com::sun::star::text">AccessibleParagraphView</type>:
91cdf0e10cSrcweir				A child where calling
92cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
93cdf0e10cSrcweir                >XAccessibleContext::getAccessibleChild</method>
94cdf0e10cSrcweir				an object that supports this service is returned for
95cdf0e10cSrcweir				every note (its paragraphs) and its location (which is
96cdf0e10cSrcweir				represented as a paragraph with the cell name as content).</li>
97cdf0e10cSrcweir		</ul>
98cdf0e10cSrcweir		<p>The following rules apply to the children order. General it
99cdf0e10cSrcweir			represents the paint order. The object in the background came
100cdf0e10cSrcweir			first and than all over lying objects. The last painted object
101cdf0e10cSrcweir			is also the last child.</p>
102cdf0e10cSrcweir		<ul>
103cdf0e10cSrcweir			<li>The logical order of paragraph and table fragments is never
104cdf0e10cSrcweir				changed.</li>
105cdf0e10cSrcweir			<li>Headers appear immediately before the first table fragment
106cdf0e10cSrcweir				of the header's page.</li>
107cdf0e10cSrcweir			<li>Footers appear immediately after the last table fragment.</li>
108cdf0e10cSrcweir			<li>Shapes appear before any other children if they are painted
109cdf0e10cSrcweir				in the background.  Their order reflects the z order.</li>
110cdf0e10cSrcweir			<li>Shapes appear behind any other children except controls if
111cdf0e10cSrcweir				they are painted in the foreground. Their order reflects the
112cdf0e10cSrcweir				z order.</li>
113cdf0e10cSrcweir			<li>Controls appear behind any other objects. Their order
114cdf0e10cSrcweir				reflects the z order.</li>
115cdf0e10cSrcweir		</ul>
116cdf0e10cSrcweir		<li>The description is ???.</li>
117cdf0e10cSrcweir		<li>The name is Spreadsheet Document Page Preview.</li>
118cdf0e10cSrcweir		<li>The role is <const scope="::com::sun::star::accessibility"
119cdf0e10cSrcweir            >AccessibleRole::DOCUMENT</const></li>
120cdf0e10cSrcweir		<li>There are no relations.</li>
121cdf0e10cSrcweir		<li>The following states are supported:
122cdf0e10cSrcweir			<ul>
123cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
124cdf0e10cSrcweir                    >AccessibleStateType::DEFUNC</const> is always false until
125cdf0e10cSrcweir                    the preview is closed.</li>
126cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
127cdf0e10cSrcweir                    >AccessibleStateType::EDITABLE</const> is always false,
128cdf0e10cSrcweir                    because the document is not editable in the page preview.
129cdf0e10cSrcweir                    So it is left out of the list.</li>
130cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
131cdf0e10cSrcweir                    >AccessibleStateType::ENABLED</const> is always true.</li>
132cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
133cdf0e10cSrcweir                    >AccessibleStateType::MULTILINE</const> makes no sense on a
134cdf0e10cSrcweir                    document and so it is left out of the list.</li>
135cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
136cdf0e10cSrcweir                    >AccessibleStateType::MULTI_SELECTABLE</const> is always
137cdf0e10cSrcweir                    false, because in a page preview a selection is not
138cdf0e10cSrcweir                    possible. So it is left out of the list.</li>
139cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
140cdf0e10cSrcweir                    >AccessibleStateType::OPAQUE</const> is always true.</li>
141cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
142cdf0e10cSrcweir                    >AccessibleStateType::RESIZEABLE</const> is always false,
143cdf0e10cSrcweir                    because you can resize the window of the page preview, but
144cdf0e10cSrcweir                    not the page preview itself. So it is left out of the
145cdf0e10cSrcweir                    list.</li>
146cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
147cdf0e10cSrcweir                    >AccessibleStateType::SELECTABLE</const> is always false,
148cdf0e10cSrcweir                    because in the page preview is no selection possible. So
149cdf0e10cSrcweir                    it is left out of the list.</li>
150cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
151cdf0e10cSrcweir                    >AccessibleStateType::SELECTED</const> is always false,
152cdf0e10cSrcweir                    because in the page preview is no selection possible. So
153cdf0e10cSrcweir                    it is left out of the list.</li>
154cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
155cdf0e10cSrcweir                    >AccessibleStateType::SHOWING</const>Is true if the
156cdf0e10cSrcweir                    Bounding Box lies in the Bounding Box of the parent.
157cdf0e10cSrcweir                    Otherwise it is false.</li>
158cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
159cdf0e10cSrcweir                    >AccessibleStateType::VISIBLE</const>Is always true.</li>
160cdf0e10cSrcweir			</ul>
161cdf0e10cSrcweir		</li>
162cdf0e10cSrcweir	</ul>
163cdf0e10cSrcweir
164cdf0e10cSrcweir	 */
165cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleContext;
166cdf0e10cSrcweir
167cdf0e10cSrcweir	/** This interface gives access to the visibility of the document.
168cdf0e10cSrcweir	*/
169cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleComponent;
170cdf0e10cSrcweir
171cdf0e10cSrcweir	/** This is the interface for listeners */
172cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
173cdf0e10cSrcweir};
174cdf0e10cSrcweir
175cdf0e10cSrcweir//=============================================================================
176cdf0e10cSrcweir
177cdf0e10cSrcweir}; }; }; };
178cdf0e10cSrcweir
179cdf0e10cSrcweir#endif
180