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_sheet_AccessibleCell_idl__
28*cdf0e10cSrcweir#define __com_sun_star_sheet_AccessibleCell_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_XAccessibleValue_idl__
39*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleValue.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleText_idl__
43*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleText.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir
47*cdf0e10cSrcweir//=============================================================================
48*cdf0e10cSrcweir
49*cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir//=============================================================================
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir/** The accessible view of a spreadsheet document
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir	 @since OOo 1.1.2
56*cdf0e10cSrcweir
57*cdf0e10cSrcweir */
58*cdf0e10cSrcweirpublished service AccessibleCell
59*cdf0e10cSrcweir{
60*cdf0e10cSrcweir	/** This interface gives access to the whole content of the cell.
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir	<ul>
63*cdf0e10cSrcweir		<li>The parent returned by
64*cdf0e10cSrcweir            <method scope="::com::sun::star::accessibility"
65*cdf0e10cSrcweir            >XAccessibleContext::getAccessibleParent</method>
66*cdf0e10cSrcweir			is the accessible spreadsheet.</li>
67*cdf0e10cSrcweir		<li>This object has no children.</li>
68*cdf0e10cSrcweir		<li>The description is ???.</li>
69*cdf0e10cSrcweir		<li>The name is something like A10 or B23 or so on.</li>
70*cdf0e10cSrcweir		<li>The role is <const scope="::com::sun::star::accessibility"
71*cdf0e10cSrcweir            >AccessibleRole::TABLE_CELL</const></li>
72*cdf0e10cSrcweir		<li>There are relations between the cell and the shapes with an anchor
73*cdf0e10cSrcweir			on this cell.</li>
74*cdf0e10cSrcweir		<li>The following states are supported:
75*cdf0e10cSrcweir			<ul>
76*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
77*cdf0e10cSrcweir                    >AccessibleStateType::DEFUNC</const> is always false if the
78*cdf0e10cSrcweir                    parent table is showed, otherwise it is true.</li>
79*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
80*cdf0e10cSrcweir                    >AccessibleStateType::EDITABLE</const> is false if the cell
81*cdf0e10cSrcweir                    or the table is protected, otherwise it is true.</li>
82*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
83*cdf0e10cSrcweir                    >AccessibleStateType::ENABLED</const> is always true.</li>
84*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
85*cdf0e10cSrcweir                    >AccessibleStateType::MULTILINE</const> is always true.</li>
86*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
87*cdf0e10cSrcweir                    >AccessibleStateType::MULTISELECTABLE</const> is always
88*cdf0e10cSrcweir                    true.</li>
89*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
90*cdf0e10cSrcweir                    >AccessibleStateType::OPAQUE</const> is false if the cell
91*cdf0e10cSrcweir                    has no background color or graphic, otherwise it is
92*cdf0e10cSrcweir                    true.</li>
93*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
94*cdf0e10cSrcweir                    >AccessibleStateType::RESIZEABLE</const> is false if the
95*cdf0e10cSrcweir                    table is protected, otherwise is it true.</li>
96*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
97*cdf0e10cSrcweir                    >AccessibleStateType::SELECTABLE</const> is always
98*cdf0e10cSrcweir                    true.</li>
99*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
100*cdf0e10cSrcweir                    >AccessibleStateType::SELECTED</const> is true, if the
101*cdf0e10cSrcweir                    cell is selected.</li>
102*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
103*cdf0e10cSrcweir                    >AccessibleStateType::TRANSIENT</const> is always true.</li>
104*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
105*cdf0e10cSrcweir                    >AccessibleStateType::SHOWING</const>Is true if the
106*cdf0e10cSrcweir                    Bounding Box lies in Bounding Box of the parent. Otherwise
107*cdf0e10cSrcweir                    it is false.</li>
108*cdf0e10cSrcweir				<li><const scope="::com::sun::star::accessibility"
109*cdf0e10cSrcweir                    >AccessibleStateType::VISIBLE</const>Is false if the
110*cdf0e10cSrcweir                    column/row with this cell is filtered or hidden.
111*cdf0e10cSrcweir                    Otherwise is true.</li>
112*cdf0e10cSrcweir			</ul>
113*cdf0e10cSrcweir		</li>
114*cdf0e10cSrcweir	</ul>
115*cdf0e10cSrcweir	 */
116*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleContext;
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir	/** This interface gives access to the visibility of the cell.
119*cdf0e10cSrcweir	*/
120*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleComponent;
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir	/** This interface gives access to the value of the cell.
123*cdf0e10cSrcweir	 */
124*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleValue;
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir	/** This interface gives access to the text representation of the cell content.
127*cdf0e10cSrcweir	 */
128*cdf0e10cSrcweir	interface ::com::sun::star::accessibility::XAccessibleText;
129*cdf0e10cSrcweir};
130*cdf0e10cSrcweir
131*cdf0e10cSrcweir//=============================================================================
132*cdf0e10cSrcweir
133*cdf0e10cSrcweir}; }; }; };
134*cdf0e10cSrcweir
135*cdf0e10cSrcweir#endif
136