tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / chart2 / DataSeries.idl
blob66109180a9f6b28d5c9e91b264bd3d27f05dcfb6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com
22 module sun
24 module star
26 module chart2
29 // NOTES
31 // ability to be combined - data series combiner (another component?)
32 // coordinatesystem-supplier
33 // chart-type ? property string rendererServiceName
36 /** reflects the model data of the object that has all the information
37 for a DataRenderer to create a visible data series in
38 a chart.
40 <p>It combines one or more DataSequences which are
41 interpreted by evaluating their role-string.</p>
43 @see DataSequenceRole
45 service DataSeries
47 /** allows to connect a CoordinateSystem to a DataSeries
49 // service CoordinateSystemSupplier;
51 // service ChartTypeSupplier;
52 /** the property interface by which the properties of all
53 supported services are exchanged
55 service ::com::sun::star::beans::PropertySet;
57 /** these properties serve as default for data points.
59 <p>So, an attribute for a data point comes from one point in
60 the following hierarchy:</p>
62 <ul>
63 <li>default value of data series</li>
64 <li>value from style of data series (if a style was set)</li>
65 <li>value from hard attribute of data series (set with setPropertyValue)</li>
66 <li>value from style of data point (if a style was set)</li>
67 <li>value from hard attribute of data point (set with setPropertyValue)</li>
68 </ul>
70 service DataPointProperties;
73 /** allows setting a coordinate-system
75 interface XDataSeries;
77 /** allows attaching data sequences to a series.
79 interface data::XDataSink;
81 /** allows querying the data that was set.
83 interface data::XDataSource;
85 /** gives access to the data points contained in a data series.
87 <p>The objects returned by the
88 com::sun::star::container::XIndexAccess
89 are of type
90 com::sun::star::beans::XPropertySet
91 and support the service
92 DataPoint.
94 // interface ::com::sun::star::container::XIndexContainer;
96 /** establishes a broadcaster-listener mechanism for the
97 com::sun::star::container::XIndexContainer
98 to keep changes and the property
99 DataSeries::AttributedDataPoints in sync.
101 // interface ::com::sun::star::container::XContainer;
103 /** Holds regression curves (aka trend-lines) for a data series.
105 [optional] interface XRegressionCurveContainer;
108 /** This service will be used to render this data series.
110 <p>This service name can be used to determine which DataSeries
111 are of the same type.</p>
113 <p>The result of the
114 DataSeries::DataSequenceRoles depends on the
115 renderer service set here.</p>
117 // stored at the DataSeriesGroup now
118 // [property] string DataRendererServiceName;
120 /** a sequence of indexes denoting which data points have set
121 properties that differ from the default.
123 <p>The default values are determined by the properties set at
124 the #DataPointProperties of the data
125 series.</p>
127 <p>If the sequence is empty, that means that all data points
128 look alike. They are formatted using the property values set
129 in the data series.</p>
131 <p>The indexes in this sequence match the indexes used by the
132 XIndexContainer.</p>
134 <p>This property is especially useful for large data series
135 with only some formatted data points, because you do not have
136 to iterate over all elements.</p>
138 [readonly, optional, property] sequence< long > AttributedDataPoints;
140 /** indicates whether this series should be stacked with respect to the previous series.
142 [property] StackingDirection StackingDirection;
144 /** If `TRUE`, the data points of this series get different
145 colors by default, like in a pie chart.
147 [optional, property] boolean VaryColorsByPoint;
149 /** This property describes whether the series should be shown at
150 the main value axis or at the secondary value axis. Having
151 this property not set or setting it to 0 means that this data
152 series will be scaled at the primary y-axis ( of the
153 coordinate system in which this series is hosted ).
155 <p>Setting this property to 1 means that this series should be
156 scaled at the secondary y-axis. If there is no secondary axis
157 the main axis should be used for scaling instead.</p>
159 <p>If you want to scale a series at a different x or z axis
160 you need to create an additional coordinate system and host
161 this series there.</p>
163 [optional, property] long AttachedAxisIndex;
165 /** This property describes whether the legend entry for the
166 the data series should be shown.
168 @since LibreOffice 6.3
170 [optional, property] boolean ShowLegendEntry;
172 /** A sequence of indexes denoting which data points shouldn't be
173 shown in the legend.
175 @since LibreOffice 7.0
177 [optional, property] sequence<long> DeletedLegendEntries;
179 /** This property describes whether the data point and the data label
180 are connected with a leader line.
182 @since LibreOffice 7.1
184 [optional, property] boolean ShowCustomLeaderLines;
187 } ; // chart2
188 } ; // com
189 } ; // sun
190 } ; // star
193 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */