1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_chart_XChartDataArray_idl__
24#define __com_sun_star_chart_XChartDataArray_idl__
25
26#ifndef __com_sun_star_chart_XChartData_idl__
27#include <com/sun/star/chart/XChartData.idl>
28#endif
29
30//=============================================================================
31
32 module com {  module sun {  module star {  module chart {
33
34//=============================================================================
35
36/** gives access to data represented as an array of rows.
37
38    <p>Can be obtained from interface <type>XChartDocument</type> via method getData().</p>
39
40	<p>If used for an <type>XYDiagram</type>, the row number 0
41	represents the <i>x</i>-values.</p>
42 */
43published interface XChartDataArray: XChartData
44{
45	//-------------------------------------------------------------------------
46
47	/** retrieves the numerical data as a nested sequence of values.
48
49        @returns
50        	the values as a sequence of sequences.  The inner sequence
51        	represents rows.
52    */
53	sequence< sequence< double > > getData();
54
55	//-------------------------------------------------------------------------
56
57	/** sets the chart data as an array of numbers.
58
59        @param aData
60        	the values as a sequence of sequences.  The inner sequence
61        	represents rows.
62	 */
63	void setData( [in] sequence< sequence< double > > aData );
64
65	//-------------------------------------------------------------------------
66
67	/** retrieves the description texts for all rows.
68
69    	@returns
70        	a sequence of strings, each representing the description
71        	of a row.
72	 */
73	sequence< string > getRowDescriptions();
74
75	//-------------------------------------------------------------------------
76
77	/** sets the description texts for all rows.
78
79        @param aRowDescriptions
80        	a sequence of strings which represent a description for
81        	each row.
82    */
83	void setRowDescriptions( [in] sequence< string > aRowDescriptions );
84
85	//-------------------------------------------------------------------------
86
87	/** retrieves the description texts for all columns.
88
89        @returns
90        	a sequence of strings, each representing the description
91        	of a column.
92	 */
93	sequence< string > getColumnDescriptions();
94
95	//-------------------------------------------------------------------------
96
97	/** sets the description texts for all columns.
98
99        @param aColumnDescriptions
100        	a sequence of strings which represent a description for
101        	each column.
102	 */
103	void setColumnDescriptions( [in] sequence< string > aColumnDescriptions );
104};
105
106//=============================================================================
107
108}; }; }; };
109
110#endif
111