INTEGRATION: CWS uaa02 (1.1.2); FILE ADDED
2003/04/14 15:34:26 af 1.1.2.1: #108113# Moved accessibility service descriptions from drafts directory.
This commit is contained in:
parent
40712debce
commit
582ff4207d
1 changed files with 225 additions and 0 deletions
225
offapi/com/sun/star/chart/AccessibleChartElement.idl
Normal file
225
offapi/com/sun/star/chart/AccessibleChartElement.idl
Normal file
|
@ -0,0 +1,225 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* $RCSfile: AccessibleChartElement.idl,v $
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: vg $ $Date: 2003-04-24 17:42:54 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
*
|
||||
* - GNU Lesser General Public License Version 2.1
|
||||
* - Sun Industry Standards Source License Version 1.1
|
||||
*
|
||||
* Sun Microsystems Inc., October, 2000
|
||||
*
|
||||
* GNU Lesser General Public License Version 2.1
|
||||
* =============================================
|
||||
* Copyright 2000 by Sun Microsystems, Inc.
|
||||
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
*
|
||||
* Sun Industry Standards Source License Version 1.1
|
||||
* =================================================
|
||||
* The contents of this file are subject to the Sun Industry Standards
|
||||
* Source License Version 1.1 (the "License"); You may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of the
|
||||
* License at http://www.openoffice.org/license.html.
|
||||
*
|
||||
* Software provided under this License is provided on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
||||
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
||||
* See the License for the specific provisions governing your rights and
|
||||
* obligations concerning the Software.
|
||||
*
|
||||
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
||||
*
|
||||
* Copyright: 2000 by Sun Microsystems, Inc.
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): _______________________________________
|
||||
*
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#ifndef __com_sun_star_chart_AccessibleChartElement_idl__
|
||||
#define __com_sun_star_chart_AccessibleChartElement_idl__
|
||||
|
||||
#ifndef __com_sun_star_accessibility_XAccessible_idl__
|
||||
#include <com/sun/star/accessibility/XAccessible.idl>
|
||||
#endif
|
||||
#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
|
||||
#include <com/sun/star/accessibility/XAccessibleContext.idl>
|
||||
#endif
|
||||
#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__
|
||||
#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl>
|
||||
#endif
|
||||
|
||||
|
||||
module com { module sun { module star { module chart {
|
||||
|
||||
/** This service is supported by all components that are contained in
|
||||
the view of a chart document that are controlled by the chart.
|
||||
Shapes added by a user via the clipboard are not treated as chart
|
||||
elements.
|
||||
|
||||
<p>The list of objects that implement this service is
|
||||
<type scope="::com::sun::star::chart">ChartTitle</type>,
|
||||
<type scope="::com::sun::star::chart">ChartLegend</type>,
|
||||
<type scope="::com::sun::star::chart">Diagram</type>,
|
||||
<type scope="::com::sun::star::chart">ChartAxis</type>,
|
||||
<type scope="::com::sun::star::chart">ChartDataRowProperties</type>,
|
||||
<type scope="::com::sun::star::chart">ChartDataPointProperties</type>.
|
||||
</p>
|
||||
|
||||
<p>The
|
||||
<type scope="::com::sun::star::accessibility">XAccessibleExtendedComponent</type>
|
||||
is suported by all chart elements.</p>
|
||||
*/
|
||||
service AccessibleChartElement
|
||||
{
|
||||
/** Base interface for being accessible. It gives access to the
|
||||
<type scope="::com::sun::star::accessibility">XAccessibleContext</type>
|
||||
interface.
|
||||
*/
|
||||
interface ::com::sun::star::accessibility::XAccessible;
|
||||
|
||||
/** Give access to the structural information of a chart element.
|
||||
|
||||
<p>You can access the following information for the shapes of the above listed types:
|
||||
<dl>
|
||||
<dt>Role</dt>
|
||||
<dd>All chart elements have the role
|
||||
<const scope="::com::sun::star::accessibility">AccessibleRole::SHAPE</const>.
|
||||
</dd>
|
||||
<dt>Name</dt>
|
||||
<dd>For unique elements you get fixed names. The unique
|
||||
elements are the titles, legend, diagram and axes. The
|
||||
names you get for them are "main-title", "sub-title",
|
||||
"(x|y|z)-axis-title", "legend", "diagram", "(x|y|z)-axis"
|
||||
and "second-(x|y)-axis", respectively.</dd>
|
||||
<dt>Description</dt>
|
||||
<dd>Descriptions contain a list of selected
|
||||
attributes. These attributes are, if applicable:
|
||||
foreground and background color, line width, font name and
|
||||
size. The purpose of these attributes is to give a rough
|
||||
description of the more simple geometric shapes. The list
|
||||
is very restricted in order to avoid overwhelming or
|
||||
confusing the user.</dd>
|
||||
<dt>Children</dt>
|
||||
<dd>The <type scope="::com::sun::star::chart">Diagram</type> and
|
||||
the <type scope="::com::sun::star::chart">ChartLegend</type>
|
||||
contain children, all other objects in a chart do not, i.e., are
|
||||
leaves in the document representation tree.</dd>
|
||||
<dt>Parent</dt>
|
||||
<dd>Because the <code>setParent</code> method from the JAA has
|
||||
been removed, the reference to the parent has to be provided in an
|
||||
implementation specific way.</dd>
|
||||
<dt>Relations</dt>
|
||||
<dd>They are not used at the moment.</dd>
|
||||
|
||||
<dt>States</dt>
|
||||
<dd>The states supported by this service are:
|
||||
<ul>
|
||||
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::DEFUNC</const>
|
||||
is set if an object was removed. This indicates that the user
|
||||
should release all references to the accessible object. If
|
||||
this state is set then no other of the states below is set.
|
||||
</li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::EDITABLE</const></li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::ENABLED</const>
|
||||
is always set.<sup>†</sup></li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::MULTILINE</const>
|
||||
is set for all titles.</li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::OPAQUE</const>
|
||||
is set for all elements that do have a transparency
|
||||
attributes set to 0% and no transparency gradient.</li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::RESIZABLE</const>
|
||||
Is set for the diagram object only. All other chart elements may not be resized.</li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::SELECTABLE</const></li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::SELECTED</const></li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::SHOWING</const>
|
||||
is always set.<sup>†</sup></li>
|
||||
<li><const scope="::com::sun::star::accessibility">AccessibleStateType::VISIBLE</const>
|
||||
is always set.<sup>†</sup></li>
|
||||
</ul>
|
||||
<sup>†</sup>always, except if the state
|
||||
<const scope="::com::sun::star::accessibility">AccessibleStateType::DEFUNC</const>
|
||||
is set.</dd>
|
||||
<dt>Locale</dt>
|
||||
<dd>is supported.</dd>
|
||||
<dt>Property change listeners</dt>
|
||||
<dd>Property change listeners that are registered with a chart
|
||||
element are informed if the size or position or an attribute
|
||||
changed. The last point needs a short explanation: An attribute
|
||||
change is signaled even if that attribute is not part of the
|
||||
shape's description and is therefore not explicitly represented by
|
||||
the UAA.</dd>
|
||||
</dl>
|
||||
*/
|
||||
interface ::com::sun::star::accessibility::XAccessibleContext;
|
||||
|
||||
/** Give access to the graphical representation of a chart element.
|
||||
|
||||
<p>The coordinate oriented methods <code>contains</code>,
|
||||
<code>getAccessibleAt</code>, <code>getBounds</code>,
|
||||
<code>getLocation</code>, <code>getLocationOnScreen</code>, and
|
||||
<code>getSize</code> work on pixel coordinates. (To transform between
|
||||
the internal 100th of mm and pixels a chart element has to have access
|
||||
to information that allows it to do so. These information are the
|
||||
enclosing window's size in pixel, 100th of mm, and its own relative
|
||||
position in one or the other coordinate system).</p>
|
||||
|
||||
<p>Focus handling depends on support of the
|
||||
<type>XAccessibleText</type> and
|
||||
<type>XAccessibleEditableText</type> interfaces.</p>
|
||||
|
||||
<p>Key bindings are not supported at the moment</p>
|
||||
*/
|
||||
interface ::com::sun::star::accessibility::XAccessibleComponent;
|
||||
|
||||
/** Give extended access to the graphical representation of a chart element.
|
||||
|
||||
<p>This interface is used primarily to provide the predominant
|
||||
foreground and background colors and—if applicable, i.e. the
|
||||
<type>XAccessibleText</type> interface is supported—information
|
||||
about the font used to display text.</p>
|
||||
|
||||
<p>The foreground and background colors may in some cases be directly
|
||||
taken from the object. In other cases, for example when a gradient or a
|
||||
texture is used, they have to be interpolated. The color returned may
|
||||
not be appropriate in all cases.</p>
|
||||
|
||||
<p>Specifying the font used for displaying text depends on the
|
||||
transformation of UNO API font information into the Java™ format.
|
||||
However, if the UAA is used directly, this is of course not an
|
||||
issue.</p>
|
||||
|
||||
<p>The support of this interface is optional to reduce overhead in case
|
||||
that no text is displayed and color information can not be determined
|
||||
with an acceptable cost.</p>
|
||||
*/
|
||||
[optional] interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
|
||||
};
|
||||
|
||||
}; }; }; };
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue