merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / chart / XChartDocument.idl
blob14322c6edf4acc182cf3f9684da9a5b1b6fa4921
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef __com_sun_star_chart_XChartDocument_idl__
28 #define __com_sun_star_chart_XChartDocument_idl__
30 #ifndef __com_sun_star_frame_XModel_idl__
31 #include <com/sun/star/frame/XModel.idl>
32 #endif
34 #ifndef __com_sun_star_drawing_XShape_idl__
35 #include <com/sun/star/drawing/XShape.idl>
36 #endif
38 #ifndef __com_sun_star_beans_XPropertySet_idl__
39 #include <com/sun/star/beans/XPropertySet.idl>
40 #endif
42 #ifndef __com_sun_star_chart_XDiagram_idl__
43 #include <com/sun/star/chart/XDiagram.idl>
44 #endif
46 #ifndef __com_sun_star_chart_XChartData_idl__
47 #include <com/sun/star/chart/XChartData.idl>
48 #endif
51 //=============================================================================
53 module com { module sun { module star { module chart {
55 //=============================================================================
57 /** manages the chart document.
59 @see XDiagram
60 @see XChartData
62 published interface XChartDocument: com::sun::star::frame::XModel
64 //-------------------------------------------------------------------------
66 /** @returns
67 the shape of the main title of the chart document.
69 @see ChartTitle
71 com::sun::star::drawing::XShape getTitle();
73 //-------------------------------------------------------------------------
75 /** @returns
76 the shape of the subtitle of the chart document.
78 <p>Usually the subtitle is smaller than the main title by
79 default. And it is most commonly placed below the main title
80 by default.</p>
82 @see ChartTitle
84 com::sun::star::drawing::XShape getSubTitle();
86 //-------------------------------------------------------------------------
88 /** @returns
89 the shape of the legend of the chart document.
91 @see ChartLegend
93 com::sun::star::drawing::XShape getLegend();
95 //-------------------------------------------------------------------------
97 /** @returns
98 the properties of the background area of the chart document.
100 <p>The area's extent is equal to the document size. If you
101 want to access properties of the background area of the
102 diagram, in which the actual data is represented, you have to
103 change the chart wall which you get from the
104 <type>X3DDisplay</type>.</p>
106 @see ChartArea
107 @see X3DDisplay
109 com::sun::star::beans::XPropertySet getArea();
111 //-------------------------------------------------------------------------
113 /** @returns
114 the diagram of the chart document.
116 @see Diagram
118 com::sun::star::chart::XDiagram getDiagram();
120 //-------------------------------------------------------------------------
122 /** sets the diagram for the chart document.
124 <p>Setting a new diagram implicitly disposes the previous
125 diagram.</p>
127 @param xDiagram
128 the new diagram that should be set for the chart. To
129 create such a diagram component, you can use the
130 <type scope="com::sun::star::lang">XMultiServiceFactory</type>,
131 which should be implemented by an
132 <type>XChartDocument</type>.
134 void setDiagram( [in] com::sun::star::chart::XDiagram xDiagram );
136 //-------------------------------------------------------------------------
138 /** @returns
139 the data of the chart.
141 <p>The returned object supports interface <type>XChartDataArray</type>
142 which can be used to access the concrete data.</p>
144 <p>Since OOo 3.3 the returned object also supports interface <type>XComplexDescriptionAccess</type>
145 which can be used to access complex hierarchical axis descriptions.</p>
147 @see XChartData
148 @see XChartDataArray
149 @see XComplexDescriptionAccess
151 com::sun::star::chart::XChartData getData();
153 //-------------------------------------------------------------------------
155 /** attaches data to the chart.
157 <p>The given object needs to support interface <type>XChartDataArray</type>.</p>
159 <p>Since OOo 3.3 if the given object might support interface <type>XComplexDescriptionAccess</type>
160 which allows to set complex hierarchical axis descriptions.</p>
162 <p>The given data is copied before it is applied to the chart.
163 So changing xData after this call will have no effect on the chart.</p>
165 @see XChartData
166 @see XChartDataArray
167 @see XComplexDescriptionAccess
169 @param xData
170 the object that provides the new data.
172 void attachData( [in] com::sun::star::chart::XChartData xData );
176 //=============================================================================
178 }; }; }; };
180 #endif