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_AccessibleSpreadsheetDocumentView_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_sheet_AccessibleSpreadsheetDocumentView_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_XAccessibleTable_idl__ 39*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleTable.idl> 40*cdf0e10cSrcweir#endif 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__ 43*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleSelection.idl> 44*cdf0e10cSrcweir#endif 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ 47*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> 48*cdf0e10cSrcweir#endif 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir//============================================================================= 52*cdf0e10cSrcweir 53*cdf0e10cSrcweirmodule com { module sun { module star { module table { 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir//============================================================================= 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir/** The accessible view of a table in a text document or in the page preview 58*cdf0e10cSrcweir of a spreadsheet document. See 59*cdf0e10cSrcweir <type scope="::com::sun::star::sheet">AccessibleSpreadsheet</type> for 60*cdf0e10cSrcweir tables in the edit view of a spreadsheet. 61*cdf0e10cSrcweir @since OOo 1.1.2 62*cdf0e10cSrcweir*/ 63*cdf0e10cSrcweirpublished service AccessibleTableView 64*cdf0e10cSrcweir{ 65*cdf0e10cSrcweir /** This interface gives access to any table cell that is contained in 66*cdf0e10cSrcweir a table fragment that is at least partially visible. A table fragment 67*cdf0e10cSrcweir is the part of a table that is displayed at a single page. 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir <ul> 70*cdf0e10cSrcweir <li>The parent returned by 71*cdf0e10cSrcweir <method scope="::com::sun::star::accessibility" 72*cdf0e10cSrcweir >XAccessibleContext::getAccessibleParent</method> 73*cdf0e10cSrcweir is the accessible text document view, a page of the accessible 74*cdf0e10cSrcweir text documenent page preview, or the accessible spreadsheet 75*cdf0e10cSrcweir page preview.</li> 76*cdf0e10cSrcweir <li>The children returned by 77*cdf0e10cSrcweir <method scope="::com::sun::star::accessibility" 78*cdf0e10cSrcweir >XAccessibleContext::getAccessibleChild</method> all 79*cdf0e10cSrcweir support the interface XAccessible. Calling 80*cdf0e10cSrcweir <method scope="::com::sun::star::accessibility" 81*cdf0e10cSrcweir >XAccessible::getAccessibleContext</method> for these children 82*cdf0e10cSrcweir returns an object that supports the service. 83*cdf0e10cSrcweir <type scope="::com::sun::star::table">AccessibleCellView</type>: 84*cdf0e10cSrcweir A child where calling 85*cdf0e10cSrcweir <method scope="::com::sun::star::accessibility" 86*cdf0e10cSrcweir >XAccessibleContext::getAccessibleChild</method> 87*cdf0e10cSrcweir an object that supports this service is returned for 88*cdf0e10cSrcweir every partially visible cell in this table. 89*cdf0e10cSrcweir <p>The following rules apply to the children order.</p> 90*cdf0e10cSrcweir <ul> 91*cdf0e10cSrcweir <li>All the children are cells. The order of this cells is to 92*cdf0e10cSrcweir the order on the screen. This means that the first cell is the 93*cdf0e10cSrcweir cell in the left top edge of the table and the last one is the 94*cdf0e10cSrcweir cell in the right bottom edge of the table. The second is the 95*cdf0e10cSrcweir cell in the first row and second xolumn and so on.</li> 96*cdf0e10cSrcweir </ul> 97*cdf0e10cSrcweir <li>The description is ???.</li> 98*cdf0e10cSrcweir <li>The name is the given table name and a number to make it non-ambiguous.</li> 99*cdf0e10cSrcweir <li>The role is <const scope="::com::sun::star::accessibility" 100*cdf0e10cSrcweir >AccessibleRole::TABLE</const></li> 101*cdf0e10cSrcweir <li>In a spreadsheet page preview there are relations between the 102*cdf0e10cSrcweir table and the shapes with an anchor 103*cdf0e10cSrcweir on this table (not with an anchor on a cell in this table).</li> 104*cdf0e10cSrcweir <li>The following states are supported: 105*cdf0e10cSrcweir <ul> 106*cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility" 107*cdf0e10cSrcweir >AccessibleStateType::DEFUNC</const> is always false if the 108*cdf0e10cSrcweir table is not deleted, the document is open. Also it is 109*cdf0e10cSrcweir false if the table was showed in a page preview and the 110*cdf0e10cSrcweir page preview is allready opend, otherwise it is true.</li> 111*cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility" 112*cdf0e10cSrcweir >AccessibleStateType::EDITABLE</const> is false if the 113*cdf0e10cSrcweir table is showed in a page preview or the table is 114*cdf0e10cSrcweir protected, otherwise it is true.</li> 115*cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility" 116*cdf0e10cSrcweir >AccessibleStateType::ENABLED</const> is always true.</li> 117*cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility" 118*cdf0e10cSrcweir >AccessibleStateType::MULTI_SELECTABLE</const> is false 119*cdf0e10cSrcweir if the table is showed in a page preview, otherwise it is 120*cdf0e10cSrcweir true.</li> 121*cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility" 122*cdf0e10cSrcweir >AccessibleStateType::OPAQUE</const> is false, if the table 123*cdf0e10cSrcweir has no background color or graphic, otherwise it is 124*cdf0e10cSrcweir false.</li> 125*cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility" 126*cdf0e10cSrcweir >AccessibleStateType::SHOWING</const>Is true if the 127*cdf0e10cSrcweir Bounding Box lies in the Bounding Box of the parent. 128*cdf0e10cSrcweir Otherwise it is false.</li> 129*cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility" 130*cdf0e10cSrcweir >AccessibleStateType::VISIBLE</const>Is always true.</li> 131*cdf0e10cSrcweir </ul> 132*cdf0e10cSrcweir </li> 133*cdf0e10cSrcweir </ul> 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir */ 136*cdf0e10cSrcweir interface ::com::sun::star::accessibility::XAccessibleContext; 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir /** This interface gives access to the visibility of the document. 139*cdf0e10cSrcweir */ 140*cdf0e10cSrcweir interface ::com::sun::star::accessibility::XAccessibleComponent; 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir /** This interface gives access to any cell that is at least partially 143*cdf0e10cSrcweir visible on the screen. So this interface gives access to the same 144*cdf0e10cSrcweir things like the XAccessibleContext interface. Therefor it use more 145*cdf0e10cSrcweir usable methods. Also it gives access to some table specific data. 146*cdf0e10cSrcweir */ 147*cdf0e10cSrcweir interface ::com::sun::star::accessibility::XAccessibleTable; 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir /** This interface is for selecting the cells. This interface is optional. 150*cdf0e10cSrcweir */ 151*cdf0e10cSrcweir [optional] interface ::com::sun::star::accessibility::XAccessibleSelection; 152*cdf0e10cSrcweir 153*cdf0e10cSrcweir /** This is the interface for listeners */ 154*cdf0e10cSrcweir interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; 155*cdf0e10cSrcweir}; 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir//============================================================================= 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir}; }; }; }; 160*cdf0e10cSrcweir 161*cdf0e10cSrcweir#endif 162