xref: /trunk/main/offapi/com/sun/star/sheet/AccessibleSpreadsheetDocumentView.idl (revision ffd38472365e95f6a578737bc9a5eb0fac624a86)
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_AccessibleSpreadsheetDocumentView_idl__
24cdf0e10cSrcweir#define __com_sun_star_sheet_AccessibleSpreadsheetDocumentView_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_XAccessibleSelection_idl__
35cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleSelection.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
39cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir//=============================================================================
43cdf0e10cSrcweir
44cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
45cdf0e10cSrcweir
46cdf0e10cSrcweir//=============================================================================
47cdf0e10cSrcweir
48cdf0e10cSrcweir/** The accessible view of a spreadsheet document
49cdf0e10cSrcweir
50fbef625eSJürgen Schmidt     @since OpenOffice 1.1.2
51cdf0e10cSrcweir
52cdf0e10cSrcweir */
53cdf0e10cSrcweirpublished service AccessibleSpreadsheetDocumentView
54cdf0e10cSrcweir{
55cdf0e10cSrcweir    /** This interface gives access to any object that is contained in this
56cdf0e10cSrcweir        document.
57cdf0e10cSrcweir
58cdf0e10cSrcweir    <ul>
59cdf0e10cSrcweir        <li>The parent returned by <method>getAccessibleParent</method>
60*a893be29SPedro Giffuni            is the window which contains the view of these document.</li>
61cdf0e10cSrcweir        <li>The children returned by <method>getAccessibleChild</method> all
62cdf0e10cSrcweir            support the interface XAccessible. Calling
63cdf0e10cSrcweir            <method>getAccessibleContext</method> for these children returns
64cdf0e10cSrcweir            an object that supports one of the following services.</li>
65cdf0e10cSrcweir        <ul>
66cdf0e10cSrcweir            <li><type scope="::com::sun::star::sheet">AccessibleSpreadsheet</type>:
67cdf0e10cSrcweir                A child where calling <method>getAccessibleChild</method>
68cdf0e10cSrcweir                an object that supports this service is returned for
69cdf0e10cSrcweir                the current spreadsheet which is showing in this document
70cdf0e10cSrcweir                window. There is every time one child which supports this
71cdf0e10cSrcweir                service, because it is only possible to have one spreadsheet
72cdf0e10cSrcweir                in the current document window.</li>
73cdf0e10cSrcweir            <li><type scope="::com::sun::star::drawing">AccessibleShape</type>:
74cdf0e10cSrcweir                A child where calling <method>getAccessibleChild</method>
75cdf0e10cSrcweir                an object that supports this service is returned
76cdf0e10cSrcweir                for every shape that is at the current table. These
77cdf0e10cSrcweir                objects are children of the
78cdf0e10cSrcweir                <type>AccessibleSpreadsheetDocumentView</type> regardless
79cdf0e10cSrcweir                whether they are bound to a table or a cell.</li>
80cdf0e10cSrcweir            <li><type scope="::com::sun::star::text">AccessibleParagraphView</type>:
81cdf0e10cSrcweir                A child where calling <method>getAccessibleChild</method>
82cdf0e10cSrcweir                an object that supports this service is returned for
83cdf0e10cSrcweir                the current cell in edit mode. This is necessary to
84cdf0e10cSrcweir                have an object which allows event listeners. It exists
85cdf0e10cSrcweir                only if a cell is in edit mode.</li>
86cdf0e10cSrcweir            <li><type scope="::com::sun::star::accessibility">AccessibleContext</type>:
87cdf0e10cSrcweir                A child where calling <method>getAccessibleChild</method>
88cdf0e10cSrcweir                an object that supports this service is returned for
89cdf0e10cSrcweir                the current OLE object in edit mode. It exists
90cdf0e10cSrcweir                only if a OLE object is in edit mode.</li>
91cdf0e10cSrcweir        </ul>
92cdf0e10cSrcweir        <p>The following rules apply to the children order. General it
93cdf0e10cSrcweir            represents the paint order. The object in the background came
94cdf0e10cSrcweir            first and than all over lying objects. The last painted object
95cdf0e10cSrcweir            is also the last child.</p>
96cdf0e10cSrcweir        <ul>
97cdf0e10cSrcweir            <li>Graphics, embedded objects and shapes appear
98cdf0e10cSrcweir                before the other childs if they are painted in the
99cdf0e10cSrcweir                background. Their order reflects the z order.</li>
100cdf0e10cSrcweir            <li>The current table is painted after the background and so it
101cdf0e10cSrcweir                comes after all background objects.</li>
102cdf0e10cSrcweir            <li>Graphics, embedded objects and shapes appear
103cdf0e10cSrcweir                behind any other children except controls if they are
104cdf0e10cSrcweir                painted in the foreground. Their order reflects the z order.</li>
105cdf0e10cSrcweir            <li>Controls appear behind the other graphic objects. Their order
106cdf0e10cSrcweir                reflects the z order.</li>
107cdf0e10cSrcweir            <li>The temporary object for the cell or OLE in edit mode (only
108cdf0e10cSrcweir                one can exist in the same time) is the last object.</li>
109cdf0e10cSrcweir        </ul>
110cdf0e10cSrcweir        <li>The description is ???.</li>
111cdf0e10cSrcweir        <li>The name is Spreadsheet Document View with a unique number.</li>
112cdf0e10cSrcweir        <li>The role is <const scope="::com::sun::star::accessibility">AccessibleRole::DOCUMENT</const></li>
113cdf0e10cSrcweir        <li>There are no relations.</li>
114cdf0e10cSrcweir        <li>The following states are supported:
115cdf0e10cSrcweir            <ul>
116cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::DEFUNC</const> is always false until the document is
117cdf0e10cSrcweir                    closed.</li>
118cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::EDITABLE</const> is always true.</li>
119cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::ENABLED</const> is always true.</li>
120cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::MULTI_LINE</const> makes no sense in on a document and
121cdf0e10cSrcweir                    so it is left out of the list.</li>
122cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::MULTI_SELECTABLE</const> is always false, because a
123cdf0e10cSrcweir                document is not selectable. Only the children are
124cdf0e10cSrcweir                selectable. So it is left out of the list.</li>
125cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::OPAQUE</const> is always true.</li>
126cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::RESIZEABLE</const> is always false, because you can
127cdf0e10cSrcweir                    resize the window, but not the document. So it is left out
128cdf0e10cSrcweir                    of the list.</li>
129cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::SELECTABLE</const> is always false, because a
130cdf0e10cSrcweir                    document is not selectable. Only the children are
131cdf0e10cSrcweir                    selectable. So it is left out of the list.</li>
132cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::SELECTED</const> is always false, because a
133cdf0e10cSrcweir                    document is not selectable. Only the children are
134cdf0e10cSrcweir                    selectable. So it is left out of the list.</li>
135cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::SHOWING</const>Is true if the Bounding Box lies in
136cdf0e10cSrcweir                    the Bounding Box of the parent. Otherwise it is false.</li>
137cdf0e10cSrcweir                <li><const scope="::com::sun::star::accessibility">AccessibleStateType::VISIBLE</const>Is always true.</li>
138cdf0e10cSrcweir            </ul>
139cdf0e10cSrcweir        </li>
140cdf0e10cSrcweir    </ul>
141cdf0e10cSrcweir
142cdf0e10cSrcweir     */
143cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleContext;
144cdf0e10cSrcweir
145cdf0e10cSrcweir    /** This interface gives access to the visibility of the document.
146cdf0e10cSrcweir    */
147cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleComponent;
148cdf0e10cSrcweir
149cdf0e10cSrcweir    /** This interface is for selecting the document's children like
150cdf0e10cSrcweir        shapes or the whole table.
151cdf0e10cSrcweir     */
152cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleSelection;
153cdf0e10cSrcweir
154cdf0e10cSrcweir    /** This is the interface for listeners */
155cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
156cdf0e10cSrcweir};
157cdf0e10cSrcweir
158cdf0e10cSrcweir//=============================================================================
159cdf0e10cSrcweir
160cdf0e10cSrcweir}; }; }; };
161cdf0e10cSrcweir
162cdf0e10cSrcweir#endif
163