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_ChartDocument_idl
28#define com_sun_star_chart2_ChartDocument_idl
29
30#include <com/sun/star/style/XStyleFamiliesSupplier.idl>
31#include <com/sun/star/util/XNumberFormatsSupplier.idl>
32
33#include <com/sun/star/chart2/XChartDocument.idl>
34#include <com/sun/star/chart2/XUndoSupplier.idl>
35#include <com/sun/star/chart2/data/XDataReceiver.idl>
36
37#include <com/sun/star/chart2/XTitled.idl>
38#include <com/sun/star/lang/XInitialization.idl>
39
40module com
41{
42module sun
43{
44module star
45{
46module chart2
47{
48
49service ChartDocument
50{
51    /** this interface is derived from
52        <type-scope="com::sun::star::frame">XModel</type>.  Thus model
53        functionality is available via this interface.
54     */
55    interface  XChartDocument;
56
57    /** offers connection to data
58    */
59    interface  data::XDataReceiver;
60
61    /** gives access to the main title of a chart document
62     */
63    interface  XTitled;
64
65    /** maintains all style families applying to any object in the
66        chart.
67     */
68    interface  ::com::sun::star::style::XStyleFamiliesSupplier;
69
70    /** maintains all number formats used anywhere in the chart.
71     */
72    interface  ::com::sun::star::util::XNumberFormatsSupplier;
73
74    /** Allows passing arguments to createInstanceWithArguments.
75
76        <p>The following arguments are allowed in the given order:</p>
77
78        <ol>
79         <li>string  Name</li>
80        </ol>
81     */
82    [optional] interface  ::com::sun::star::lang::XInitialization;
83
84    [optional] interface XUndoSupplier;
85};
86
87} ; // chart2
88} ; // com
89} ; // sun
90} ; // star
91
92#endif
93