1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module chart
{
25 /** specifies a diagram which can be used for presenting stock quotes.
27 <p>Note that the data must have a specific structure for stock
28 diagrams. Let us assume that data is interpreted, such that
29 series are taken from columns (see property
30 Diagram::DataRowSource). Then you need tables of
31 the following structures for different types:</p>
34 StockDiagram::Volume is `FALSE`<br>
35 StockDiagram::UpDown is `FALSE`
38 <tr><td>Low</td><td>High</td><td>Close</td></tr>
39 <tr><td>...</td><td>...</td><td>...</td></tr>
43 StockDiagram::Volume is `TRUE`<br>
44 StockDiagram::UpDown is `FALSE`
47 <tr><td><strong>Volume</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
48 <tr><td>...</td><td>...</td><td>...</td><td>...</td></tr>
52 StockDiagram::Volume is `FALSE`<br>
53 StockDiagram::UpDown is `TRUE`
56 <tr><td><strong>Open</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
57 <tr><td>...</td><td>...</td><td>...</td><td>...</td></tr>
61 StockDiagram::Volume is `TRUE`<br>
62 StockDiagram::UpDown is `TRUE`
65 <tr><td><strong>Volume</strong></td><td><strong>Open</strong></td><td>Low</td><td>High</td><td>Close</td></tr>
66 <tr><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td></tr>
69 published service StockDiagram
71 interface com
::sun
::star
::chart
::XStatisticDisplay
;
72 service com
::sun
::star
::chart
::ChartStatistics
;
73 service com
::sun
::star
::chart
::Diagram
;
74 service com
::sun
::star
::chart
::ChartAxisXSupplier
;
75 service com
::sun
::star
::chart
::ChartTwoAxisYSupplier
;
78 /** indicates if a stock chart contains data representing the
81 <p>The values of the volume are represented as columns like
82 those of a BarDiagram.</p>
84 <p>If this property is set to `TRUE`, the values of the first
85 series of the chart data are interpreted as volume.</p>
87 [property
] boolean Volume
;
90 /** indicates if a stock chart contains data representing the
91 value of stocks on the opening and closing date.
93 <p>The difference will be indicated by bars. The color
94 of the bar will be significant for positive or negative
95 differences between open and closed data.</p>
97 <p>If this property is `FALSE`, the values of the first
98 series (or second if StockDiagram::Volume is
99 `TRUE`) of the chart data are interpreted as the day's lowest
100 value. The next series is interpreted as the day's highest
101 value, and the last series is interpreted as the closing
104 <p>If this property is set to `TRUE`, one additional series
105 is needed with the opening value of the stocks. It is assumed
106 as the series before the series with the day's lowest
109 [property
] boolean UpDown
;
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */