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_StockDiagram_idl__
28 #define __com_sun_star_chart_StockDiagram_idl__
30 #ifndef __com_sun_star_chart_XStatisticDisplay_idl__
31 #include
<com
/sun
/star
/chart
/XStatisticDisplay.idl
>
34 #ifndef __com_sun_star_chart_ChartStatistics_idl__
35 #include
<com
/sun
/star
/chart
/ChartStatistics.idl
>
38 #ifndef __com_sun_star_chart_Diagram_idl__
39 #include
<com
/sun
/star
/chart
/Diagram.idl
>
42 #ifndef __com_sun_star_chart_ChartAxisXSupplier_idl__
43 #include
<com
/sun
/star
/chart
/ChartAxisXSupplier.idl
>
46 #ifndef __com_sun_star_chart_ChartTwoAxisYSupplier_idl__
47 #include
<com
/sun
/star
/chart
/ChartTwoAxisYSupplier.idl
>
51 //=============================================================================
53 module com
{ module sun
{ module star
{ module chart
{
55 //=============================================================================
57 /** specifies a diagram which can be used for presenting stock quotes.
59 <p>Note that the data must have a specific structure for stock
60 diagrams. Let us assume that data is interpreted, such that
61 series are taken from columns (see property
62 <member>Diagram::DataRowSource</member>). Then you need tables of
63 the following structures for different types:</p>
66 <member>StockDiagram::Volume</member> is <FALSE/><br>
67 <member>StockDiagram::UpDown</member> is <FALSE/>
70 <tr><td>Low</td><td>High</td><td>Close</td></tr>
71 <tr><td>…</td><td>…</td><td>…</td></tr>
75 <member>StockDiagram::Volume</member> is <TRUE/><br>
76 <member>StockDiagram::UpDown</member> is <FALSE/>
79 <tr><td><strong>Volume</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
80 <tr><td>…</td><td>…</td><td>…</td><td>…</td></tr>
84 <member>StockDiagram::Volume</member> is <FALSE/><br>
85 <member>StockDiagram::UpDown</member> is <TRUE/>
88 <tr><td><strong>Open</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
89 <tr><td>…</td><td>…</td><td>…</td><td>…</td></tr>
93 <member>StockDiagram::Volume</member> is <TRUE/><br>
94 <member>StockDiagram::UpDown</member> is <TRUE/>
97 <tr><td><strong>Volume</strong></td><td><strong>Open</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
98 <tr><td>…</td><td>…</td><td>…</td><td>…</td><td>…</td></tr>
101 published service StockDiagram
103 interface com
::sun
::star
::chart
::XStatisticDisplay
;
104 service com
::sun
::star
::chart
::ChartStatistics
;
105 service com
::sun
::star
::chart
::Diagram
;
106 service com
::sun
::star
::chart
::ChartAxisXSupplier
;
107 service com
::sun
::star
::chart
::ChartTwoAxisYSupplier
;
109 //-------------------------------------------------------------------------
111 /** indicates if a stock chart contains data representing the
114 <p>The values of the volume are represented as columns like
115 those of a <type>BarDiagram</type>.</p>
117 <p>If this property is set to <TRUE/>, the values of the first
118 series of the chart data are interpreted as volume.</p>
120 [property
] boolean Volume
;
122 //-------------------------------------------------------------------------
124 /** indicates if a stock chart contains data representing the
125 value of stocks on the opening and closing date.
127 <p>The difference will be indicated by bars. The color
128 of the bar will be significant for positive or negative
129 differences between open and closed data.</p>
131 <p>If this property is <FALSE/>, the values of the first
132 series (or second if <member>StockDiagram::Volume</member> is
133 <TRUE/>) of the chart data are interpreted as the day's lowest
134 value. The next series is interpreted as the day's highest
135 value, and the last series is interpreted as the closing
138 <p>If this property is set to <TRUE/>, one additional series
139 is needed with the opening value of the stocks. It is assumed
140 as the series before the series with the day's lowest
143 [property
] boolean UpDown
;
147 //=============================================================================