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 24cdf0e10cSrcweir#ifndef __com_sun_star_chart_AccessibleChartElement_idl__ 25cdf0e10cSrcweir#define __com_sun_star_chart_AccessibleChartElement_idl__ 26cdf0e10cSrcweir 27cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessible_idl__ 28cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessible.idl> 29cdf0e10cSrcweir#endif 30cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ 31cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleContext.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ 34cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> 35cdf0e10cSrcweir#endif 36cdf0e10cSrcweir 37cdf0e10cSrcweir 38cdf0e10cSrcweirmodule com { module sun { module star { module chart { 39cdf0e10cSrcweir 40cdf0e10cSrcweir/** This service is supported by all components that are contained in 41cdf0e10cSrcweir the view of a chart document that are controlled by the chart. 42cdf0e10cSrcweir Shapes added by a user via the clipboard are not treated as chart 43cdf0e10cSrcweir elements. 44cdf0e10cSrcweir 45cdf0e10cSrcweir <p>The list of objects that implement this service is 46cdf0e10cSrcweir <type scope="::com::sun::star::chart">ChartTitle</type>, 47cdf0e10cSrcweir <type scope="::com::sun::star::chart">ChartLegend</type>, 48cdf0e10cSrcweir <type scope="::com::sun::star::chart">Diagram</type>, 49cdf0e10cSrcweir <type scope="::com::sun::star::chart">ChartAxis</type>, 50cdf0e10cSrcweir <type scope="::com::sun::star::chart">ChartDataRowProperties</type>, 51cdf0e10cSrcweir <type scope="::com::sun::star::chart">ChartDataPointProperties</type>. 52cdf0e10cSrcweir </p> 53cdf0e10cSrcweir 54cdf0e10cSrcweir <p>The 55cdf0e10cSrcweir <type scope="::com::sun::star::accessibility">XAccessibleExtendedComponent</type> 56cdf0e10cSrcweir is suported by all chart elements.</p> 57cdf0e10cSrcweir 58*0d3a54ffSJürgen Schmidt @since OpenOffice 1.1.2 59cdf0e10cSrcweir*/ 60cdf0e10cSrcweirpublished service AccessibleChartElement 61cdf0e10cSrcweir{ 62cdf0e10cSrcweir /** Base interface for being accessible. It gives access to the 63cdf0e10cSrcweir <type scope="::com::sun::star::accessibility">XAccessibleContext</type> 64cdf0e10cSrcweir interface. 65cdf0e10cSrcweir */ 66cdf0e10cSrcweir interface ::com::sun::star::accessibility::XAccessible; 67cdf0e10cSrcweir 68cdf0e10cSrcweir /** Give access to the structural information of a chart element. 69cdf0e10cSrcweir 70cdf0e10cSrcweir <p>You can access the following information for the shapes of the above listed types: 71cdf0e10cSrcweir <dl> 72cdf0e10cSrcweir <dt>Role</dt> 73cdf0e10cSrcweir <dd>All chart elements have the role 74cdf0e10cSrcweir <const scope="::com::sun::star::accessibility">AccessibleRole::SHAPE</const>. 75cdf0e10cSrcweir </dd> 76cdf0e10cSrcweir <dt>Name</dt> 77cdf0e10cSrcweir <dd>For unique elements you get fixed names. The unique 78cdf0e10cSrcweir elements are the titles, legend, diagram and axes. The 79cdf0e10cSrcweir names you get for them are "main-title", "sub-title", 80cdf0e10cSrcweir "(x|y|z)-axis-title", "legend", "diagram", "(x|y|z)-axis" 81cdf0e10cSrcweir and "second-(x|y)-axis", respectively.</dd> 82cdf0e10cSrcweir <dt>Description</dt> 83cdf0e10cSrcweir <dd>Descriptions contain a list of selected 84cdf0e10cSrcweir attributes. These attributes are, if applicable: 85cdf0e10cSrcweir foreground and background color, line width, font name and 86cdf0e10cSrcweir size. The purpose of these attributes is to give a rough 87cdf0e10cSrcweir description of the more simple geometric shapes. The list 88cdf0e10cSrcweir is very restricted in order to avoid overwhelming or 89cdf0e10cSrcweir confusing the user.</dd> 90cdf0e10cSrcweir <dt>Children</dt> 91cdf0e10cSrcweir <dd>The <type scope="::com::sun::star::chart">Diagram</type> and 92cdf0e10cSrcweir the <type scope="::com::sun::star::chart">ChartLegend</type> 93cdf0e10cSrcweir contain children, all other objects in a chart do not, i.e., are 94cdf0e10cSrcweir leaves in the document representation tree.</dd> 95cdf0e10cSrcweir <dt>Parent</dt> 96cdf0e10cSrcweir <dd>Because the <code>setParent</code> method from the JAA has 97cdf0e10cSrcweir been removed, the reference to the parent has to be provided in an 98cdf0e10cSrcweir implementation specific way.</dd> 99cdf0e10cSrcweir <dt>Relations</dt> 100cdf0e10cSrcweir <dd>They are not used at the moment.</dd> 101cdf0e10cSrcweir 102cdf0e10cSrcweir <dt>States</dt> 103cdf0e10cSrcweir <dd>The states supported by this service are: 104cdf0e10cSrcweir <ul> 105cdf0e10cSrcweir 106cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::DEFUNC</const> 107cdf0e10cSrcweir is set if an object was removed. This indicates that the user 108cdf0e10cSrcweir should release all references to the accessible object. If 109cdf0e10cSrcweir this state is set then no other of the states below is set. 110cdf0e10cSrcweir </li> 111cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::EDITABLE</const></li> 112cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::ENABLED</const> 113cdf0e10cSrcweir is always set.<sup>†</sup></li> 114cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::MULTILINE</const> 115cdf0e10cSrcweir is set for all titles.</li> 116cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::OPAQUE</const> 117cdf0e10cSrcweir is set for all elements that do have a transparency 118cdf0e10cSrcweir attributes set to 0% and no transparency gradient.</li> 119cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::RESIZABLE</const> 120cdf0e10cSrcweir Is set for the diagram object only. All other chart elements may not be resized.</li> 121cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::SELECTABLE</const></li> 122cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::SELECTED</const></li> 123cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::SHOWING</const> 124cdf0e10cSrcweir is always set.<sup>†</sup></li> 125cdf0e10cSrcweir <li><const scope="::com::sun::star::accessibility">AccessibleStateType::VISIBLE</const> 126cdf0e10cSrcweir is always set.<sup>†</sup></li> 127cdf0e10cSrcweir </ul> 128cdf0e10cSrcweir <sup>†</sup>always, except if the state 129cdf0e10cSrcweir <const scope="::com::sun::star::accessibility">AccessibleStateType::DEFUNC</const> 130cdf0e10cSrcweir is set.</dd> 131cdf0e10cSrcweir <dt>Locale</dt> 132cdf0e10cSrcweir <dd>is supported.</dd> 133cdf0e10cSrcweir <dt>Property change listeners</dt> 134cdf0e10cSrcweir <dd>Property change listeners that are registered with a chart 135cdf0e10cSrcweir element are informed if the size or position or an attribute 136cdf0e10cSrcweir changed. The last point needs a short explanation: An attribute 137cdf0e10cSrcweir change is signaled even if that attribute is not part of the 138cdf0e10cSrcweir shape's description and is therefore not explicitly represented by 139cdf0e10cSrcweir the UAA.</dd> 140cdf0e10cSrcweir </dl> 141cdf0e10cSrcweir */ 142cdf0e10cSrcweir interface ::com::sun::star::accessibility::XAccessibleContext; 143cdf0e10cSrcweir 144cdf0e10cSrcweir /** Give access to the graphical representation of a chart element. 145cdf0e10cSrcweir 146cdf0e10cSrcweir <p>The coordinate oriented methods <code>contains</code>, 147cdf0e10cSrcweir <code>getAccessibleAt</code>, <code>getBounds</code>, 148cdf0e10cSrcweir <code>getLocation</code>, <code>getLocationOnScreen</code>, and 149cdf0e10cSrcweir <code>getSize</code> work on pixel coordinates. (To transform between 150cdf0e10cSrcweir the internal 100th of mm and pixels a chart element has to have access 151cdf0e10cSrcweir to information that allows it to do so. These information are the 152cdf0e10cSrcweir enclosing window's size in pixel, 100th of mm, and its own relative 153cdf0e10cSrcweir position in one or the other coordinate system).</p> 154cdf0e10cSrcweir 155cdf0e10cSrcweir <p>Focus handling depends on support of the 156cdf0e10cSrcweir <type scope="::com::sun::star::accessibility">XAccessibleText</type> and 157cdf0e10cSrcweir <type scope="::com::sun::star::accessibility">XAccessibleEditableText</type> 158cdf0e10cSrcweir interfaces.</p> 159cdf0e10cSrcweir 160cdf0e10cSrcweir <p>Key bindings are not supported at the moment</p> 161cdf0e10cSrcweir */ 162cdf0e10cSrcweir interface ::com::sun::star::accessibility::XAccessibleComponent; 163cdf0e10cSrcweir 164cdf0e10cSrcweir /** Give extended access to the graphical representation of a chart element. 165cdf0e10cSrcweir 166cdf0e10cSrcweir <p>This interface is used primarily to provide the predominant 167cdf0e10cSrcweir foreground and background colors and—if applicable, i.e. the 168cdf0e10cSrcweir <type scope="::com::sun::star::accessibility">XAccessibleText</type> 169cdf0e10cSrcweir interface is supported—information about the font used to display 170cdf0e10cSrcweir text.</p> 171cdf0e10cSrcweir 172cdf0e10cSrcweir <p>The foreground and background colors may in some cases be directly 173cdf0e10cSrcweir taken from the object. In other cases, for example when a gradient or a 174cdf0e10cSrcweir texture is used, they have to be interpolated. The color returned may 175cdf0e10cSrcweir not be appropriate in all cases.</p> 176cdf0e10cSrcweir 177cdf0e10cSrcweir <p>Specifying the font used for displaying text depends on the 178cdf0e10cSrcweir transformation of UNO API font information into the Java™ format. 179cdf0e10cSrcweir However, if the UAA is used directly, this is of course not an 180cdf0e10cSrcweir issue.</p> 181cdf0e10cSrcweir 182cdf0e10cSrcweir <p>The support of this interface is optional to reduce overhead in case 183cdf0e10cSrcweir that no text is displayed and color information can not be determined 184cdf0e10cSrcweir with an acceptable cost.</p> 185cdf0e10cSrcweir */ 186cdf0e10cSrcweir [optional] interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; 187cdf0e10cSrcweir}; 188cdf0e10cSrcweir 189cdf0e10cSrcweir}; }; }; }; 190cdf0e10cSrcweir 191cdf0e10cSrcweir#endif 192