1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __com_sun_star_chart_StockDiagram_idl__
28*cdf0e10cSrcweir#define __com_sun_star_chart_StockDiagram_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_chart_XStatisticDisplay_idl__
31*cdf0e10cSrcweir#include <com/sun/star/chart/XStatisticDisplay.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartStatistics_idl__
35*cdf0e10cSrcweir#include <com/sun/star/chart/ChartStatistics.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_chart_Diagram_idl__
39*cdf0e10cSrcweir#include <com/sun/star/chart/Diagram.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartAxisXSupplier_idl__
43*cdf0e10cSrcweir#include <com/sun/star/chart/ChartAxisXSupplier.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir#ifndef __com_sun_star_chart_ChartTwoAxisYSupplier_idl__
47*cdf0e10cSrcweir#include <com/sun/star/chart/ChartTwoAxisYSupplier.idl>
48*cdf0e10cSrcweir#endif
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir//=============================================================================
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir module com {  module sun {  module star {  module chart {
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir//=============================================================================
56*cdf0e10cSrcweir
57*cdf0e10cSrcweir/** specifies a diagram which can be used for presenting stock quotes.
58*cdf0e10cSrcweir
59*cdf0e10cSrcweir	<p>Note that the data must have a specific structure for stock
60*cdf0e10cSrcweir	diagrams.  Let us assume that data is interpreted, such that
61*cdf0e10cSrcweir	series are taken from columns (see property
62*cdf0e10cSrcweir	<member>Diagram::DataRowSource</member>).  Then you need tables of
63*cdf0e10cSrcweir	the following structures for different types:</p>
64*cdf0e10cSrcweir
65*cdf0e10cSrcweir    <p><strong>
66*cdf0e10cSrcweir     <member>StockDiagram::Volume</member> is <FALSE/><br>
67*cdf0e10cSrcweir     <member>StockDiagram::UpDown</member> is <FALSE/>
68*cdf0e10cSrcweir    </strong>
69*cdf0e10cSrcweir    <table border>
70*cdf0e10cSrcweir     <tr><td>Low</td><td>High</td><td>Close</td></tr>
71*cdf0e10cSrcweir     <tr><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td></tr>
72*cdf0e10cSrcweir    </table></p>
73*cdf0e10cSrcweir
74*cdf0e10cSrcweir    <p><strong>
75*cdf0e10cSrcweir     <member>StockDiagram::Volume</member> is <TRUE/><br>
76*cdf0e10cSrcweir     <member>StockDiagram::UpDown</member> is <FALSE/>
77*cdf0e10cSrcweir    </strong>
78*cdf0e10cSrcweir    <table border>
79*cdf0e10cSrcweir     <tr><td><strong>Volume</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
80*cdf0e10cSrcweir     <tr><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td></tr>
81*cdf0e10cSrcweir    </table></p>
82*cdf0e10cSrcweir
83*cdf0e10cSrcweir    <p><strong>
84*cdf0e10cSrcweir     <member>StockDiagram::Volume</member> is <FALSE/><br>
85*cdf0e10cSrcweir     <member>StockDiagram::UpDown</member> is <TRUE/>
86*cdf0e10cSrcweir    </strong>
87*cdf0e10cSrcweir    <table border>
88*cdf0e10cSrcweir     <tr><td><strong>Open</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
89*cdf0e10cSrcweir     <tr><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td></tr>
90*cdf0e10cSrcweir    </table></p>
91*cdf0e10cSrcweir
92*cdf0e10cSrcweir    <p><strong>
93*cdf0e10cSrcweir     <member>StockDiagram::Volume</member> is <TRUE/><br>
94*cdf0e10cSrcweir     <member>StockDiagram::UpDown</member> is <TRUE/>
95*cdf0e10cSrcweir    </strong>
96*cdf0e10cSrcweir    <table border>
97*cdf0e10cSrcweir     <tr><td><strong>Volume</strong></td><td><strong>Open</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
98*cdf0e10cSrcweir     <tr><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td><td>&hellip;</td></tr>
99*cdf0e10cSrcweir    </table></p>
100*cdf0e10cSrcweir*/
101*cdf0e10cSrcweirpublished service StockDiagram
102*cdf0e10cSrcweir{
103*cdf0e10cSrcweir	interface com::sun::star::chart::XStatisticDisplay;
104*cdf0e10cSrcweir	service com::sun::star::chart::ChartStatistics;
105*cdf0e10cSrcweir	service com::sun::star::chart::Diagram;
106*cdf0e10cSrcweir	service com::sun::star::chart::ChartAxisXSupplier;
107*cdf0e10cSrcweir	service com::sun::star::chart::ChartTwoAxisYSupplier;
108*cdf0e10cSrcweir
109*cdf0e10cSrcweir	//-------------------------------------------------------------------------
110*cdf0e10cSrcweir
111*cdf0e10cSrcweir	/** indicates if a stock chart contains data representing the
112*cdf0e10cSrcweir        volume of stocks.
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir		<p>The values of the volume are represented as columns like
115*cdf0e10cSrcweir		those of a <type>BarDiagram</type>.</p>
116*cdf0e10cSrcweir
117*cdf0e10cSrcweir        <p>If this property is set to <TRUE/>, the values of the first
118*cdf0e10cSrcweir        series of the chart data are interpreted as volume.</p>
119*cdf0e10cSrcweir	 */
120*cdf0e10cSrcweir	[property] boolean Volume;
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir	//-------------------------------------------------------------------------
123*cdf0e10cSrcweir
124*cdf0e10cSrcweir	/** indicates if a stock chart contains data representing the
125*cdf0e10cSrcweir        value of stocks on the opening and closing date.
126*cdf0e10cSrcweir
127*cdf0e10cSrcweir		<p>The difference will be indicated by bars.  The color
128*cdf0e10cSrcweir		of the bar will be significant for positive or negative
129*cdf0e10cSrcweir		differences between open and closed data.</p>
130*cdf0e10cSrcweir
131*cdf0e10cSrcweir        <p>If this property is <FALSE/>, the values of the first
132*cdf0e10cSrcweir        series (or second if <member>StockDiagram::Volume</member> is
133*cdf0e10cSrcweir        <TRUE/>) of the chart data are interpreted as the day's lowest
134*cdf0e10cSrcweir        value.  The next series is interpreted as the day's highest
135*cdf0e10cSrcweir        value, and the last series is interpreted as the closing
136*cdf0e10cSrcweir        value.</p>
137*cdf0e10cSrcweir
138*cdf0e10cSrcweir        <p>If this property is set to <TRUE/>, one additional series
139*cdf0e10cSrcweir        is needed with the opening value of the stocks.  It is assumed
140*cdf0e10cSrcweir        as the series before the series with the day's lowest
141*cdf0e10cSrcweir        value.</p>
142*cdf0e10cSrcweir	 */
143*cdf0e10cSrcweir	[property] boolean UpDown;
144*cdf0e10cSrcweir
145*cdf0e10cSrcweir};
146*cdf0e10cSrcweir
147*cdf0e10cSrcweir//=============================================================================
148*cdf0e10cSrcweir
149*cdf0e10cSrcweir}; }; }; };
150*cdf0e10cSrcweir
151*cdf0e10cSrcweir#endif
152