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_chart2_XDataSeries_idl
24#define com_sun_star_chart2_XDataSeries_idl
25
26// #include <com/sun/star/chart2/XCoordinateSystem.idl>
27
28#ifndef __com_sun_star_beans_XPropertySet_idl__
29#include <com/sun/star/beans/XPropertySet.idl>
30#endif
31
32#ifndef __com_sun_star_uno_XInterface_idl__
33#include <com/sun/star/uno/XInterface.idl>
34#endif
35
36#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
37#include <com/sun/star/lang/IndexOutOfBoundsException.idl>
38#endif
39
40module com
41{
42module sun
43{
44module star
45{
46module chart2
47{
48
49/** A data series represents the object that has all the knowledge to
50    be rendered as a visual data series.
51 */
52interface XDataSeries : ::com::sun::star::uno::XInterface
53{
54	/** @returns
55			the element at the specified index.
56
57		@param nIndex
58			specifies the index of the data point within the series. The first index is 0.
59
60		@throws com::sun::star::lang::IndexOutOfBoundException
61			if the index is not valid.
62	 */
63    ::com::sun::star::beans::XPropertySet getDataPointByIndex( [in] long nIndex )
64        raises( ::com::sun::star::lang::IndexOutOfBoundsException );
65
66    /** the formatting of the specified data point is cleared
67
68        @param nIndex
69			specifies the index of the data point within the series. The first index is 0.
70	 */
71    void resetDataPoint( [in] long nIndex );
72
73    /** all data point formattings are cleared
74	 */
75    void resetAllDataPoints();
76};
77
78} ; // chart2
79} ; // com
80} ; // sun
81} ; // star
82
83
84#endif
85