1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef com_sun_star_chart2_XDataSeriesContainer_idl
28#define com_sun_star_chart2_XDataSeriesContainer_idl
29
30#include <com/sun/star/uno/XInterface.idl>
31
32#ifndef com_sun_star_chart_XDataSeries_idl
33#include <com/sun/star/chart2/XDataSeries.idl>
34#endif
35
36#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
37#include <com/sun/star/lang/IllegalArgumentException.idl>
38#endif
39#ifndef __com_sun_star_container_NoSuchElementException_idl__
40#include <com/sun/star/container/NoSuchElementException.idl>
41#endif
42
43module com
44{
45module sun
46{
47module star
48{
49module chart2
50{
51
52interface XDataSeriesContainer : com::sun::star::uno::XInterface
53{
54    /** add a data series to the data series container
55
56        @throws IllegalArgumentException
57            If the given data series is already contained in the data series container.
58     */
59    void addDataSeries( [in] XDataSeries aDataSeries )
60        raises( com::sun::star::lang::IllegalArgumentException );
61
62    /** removes one data deries from the data series container.
63     */
64    void removeDataSeries( [in] XDataSeries aDataSeries )
65        raises( com::sun::star::container::NoSuchElementException );
66
67    /** retrieve all data series
68     */
69    sequence< XDataSeries > getDataSeries();
70
71    /** set all data series
72     */
73    void setDataSeries( [in] sequence< XDataSeries > aDataSeries )
74        raises( com::sun::star::lang::IllegalArgumentException );
75};
76
77} ; // chart2
78} ; // com
79} ; // sun
80} ; // star
81
82#endif
83