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 .
19 #ifndef com_sun_star_chart2_Symbol_idl
20 #define com_sun_star_chart2_Symbol_idl
22 #include
<com
/sun
/star
/drawing
/PolyPolygonBezierCoords.idl
>
23 #include
<com
/sun
/star
/awt
/Size.idl
>
24 #include
<com
/sun
/star
/graphic
/XGraphic.idl
>
25 #include
<com
/sun
/star
/chart2
/SymbolStyle.idl
>
28 module com
{ module sun
{ module star
{ module chart2
{
31 /** properties that are used for DataSeries that display symbols.
35 /** determines which of the following members determines the
36 appearance of the symbol.
40 /** The given polygon is used as symbol.
42 com
::sun
::star
::drawing
::PolyPolygonBezierCoords PolygonCoords
;
44 /** Use the nth standard symbol, if #Style is set
45 to SymbolStlye::STANDARD.
47 <p>If n is the number of standard symbols available in an
48 implementation, the symbol number is
49 #StandardSymbol modulo n.</p>
51 <p>The default implementation for example currently uses 8 different
52 standard symbols that are matched to the numbers 0 to 7.
55 <tr><th> value StandardSymbol </th><th> visible Symbol </th></tr>
56 <tr><td><code>0</code></td><td>square</td></tr>
57 <tr><td><code>1</code></td><td>diamond</td></tr>
58 <tr><td><code>2</code></td><td>down arrow</td></tr>
59 <tr><td><code>3</code></td><td>up arrow</td></tr>
60 <tr><td><code>4</code></td><td>right arrow</td></tr>
61 <tr><td><code>5</code></td><td>left arrow</td></tr>
62 <tr><td><code>6</code></td><td>bowtie</td></tr>
63 <tr><td><code>7</code></td><td>sandglass</td></tr>
70 /** use this graphic as symbol
72 com
::sun
::star
::graphic
::XGraphic Graphic
;
74 /** The size of the symbol in 100th of a mm.
76 @todo use a structure using doubles instead of longs
78 com
::sun
::star
::awt
::Size Size
;
80 /** The color used for drawing the border of symbols.
82 <p>Only effective if #Style is
84 SymbolStyle::STANDARD or
85 SymbolStyle::POLYGON.</p>
89 /** The color used for filling symbols that contain closed polygons.
91 <p>Only effective if #Style is
93 SymbolStyle::STANDARD or
94 SymbolStyle::POLYGON.</p>
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */