/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 . */ 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.
The list of objects that implement this service is ::com::sun::star::chart::ChartTitle, ::com::sun::star::chart::ChartLegend, ::com::sun::star::chart::Diagram, ::com::sun::star::chart::ChartAxis, ::com::sun::star::chart::ChartDataRowProperties, ::com::sun::star::chart::ChartDataPointProperties.
The ::com::sun::star::accessibility::XAccessibleExtendedComponent is supported by all chart elements.
@since OOo 1.1.2 */ service AccessibleChartElement { /** Base interface for being accessible. It gives access to the ::com::sun::star::accessibility::XAccessibleContext interface. */ interface ::com::sun::star::accessibility::XAccessible; /** Give access to the structural information of a chart element.You can access the following information for the shapes of the above listed types:
setParent
method from the JAVA has
been removed, the reference to the parent has to be provided in an
implementation specific way.The coordinate oriented methods contains
,
getAccessibleAt
, getBounds
,
getLocation
, getLocationOnScreen
, and
getSize
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. This information is the
enclosing window's size in pixel, 100th of mm, and its own relative
position in one or the other coordinate system).
Focus handling depends on support of the ::com::sun::star::accessibility::XAccessibleText and ::com::sun::star::accessibility::XAccessibleEditableText interfaces.
Key bindings are not supported at the moment
*/ interface ::com::sun::star::accessibility::XAccessibleComponent; /** Give extended access to the graphical representation of a chart element.This interface is used primarily to provide the predominant foreground and background colors and—if applicable, i.e. the ::com::sun::star::accessibility::XAccessibleText interface is supported—information about the font used to display text.
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.
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.
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.
*/ [optional] interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; }; }; }; }; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */