1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_chart_ChartDataPointProperties_idl__
24#define __com_sun_star_chart_ChartDataPointProperties_idl__
25
26#ifndef __com_sun_star_drawing_FillProperties_idl__
27#include <com/sun/star/drawing/FillProperties.idl>
28#endif
29
30#ifndef __com_sun_star_drawing_LineProperties_idl__
31#include <com/sun/star/drawing/LineProperties.idl>
32#endif
33
34#ifndef __com_sun_star_style_CharacterProperties_idl__
35#include <com/sun/star/style/CharacterProperties.idl>
36#endif
37
38#ifndef __com_sun_star_chart_Chart3DBarPropertiesidl__
39#include <com/sun/star/chart/Chart3DBarProperties.idl>
40#endif
41
42#ifndef __com_sun_star_beans_XPropertySet_idl__
43#include <com/sun/star/beans/XPropertySet.idl>
44#endif
45
46#ifndef _com_sun_star_xml_UserDefinedAttributeSupplier_idl_
47#include <com/sun/star/xml/UserDefinedAttributeSupplier.idl>
48#endif
49
50//=============================================================================
51
52 module com {  module sun {  module star {  module chart {
53
54//=============================================================================
55
56/** specifies all the properties for the graphic object of
57	a data point (e.g., a single bar in a bar chart).
58
59	<p>Text properties correlate to the data description of the data
60	point.  There is a similar service for a group of graphic elements
61	called <type>ChartDataRowProperties</type> for the properties of
62	whole data rows.</p>
63
64    @see ChartDataRowProperties
65 */
66published service ChartDataPointProperties
67{
68    /** This service has to be supported for data points that can be
69        filled.
70     */
71	[optional] service com::sun::star::drawing::FillProperties;
72
73	service com::sun::star::drawing::LineProperties;
74
75    /** These properties affect the characters of data captions if
76        those are displayed.
77     */
78	service com::sun::star::style::CharacterProperties;
79
80    /** If <type>ChartDataPointProperties</type> may be stored as XML
81        element, this service should be supported in order to preserve
82        unparsed XML attributes.
83
84	@since OpenOffice 1.1.2
85     */
86    [optional] service com::sun::star::xml::UserDefinedAttributeSupplier;
87
88	//-------------------------------------------------------------------------
89
90	/** is only available if the chart is of type
91        <type>BarDiagram</type> and <type>Dim3DDiagram</type> and the
92        property <member>ChartDataPointProperties::Dim3D</member> is
93        set to <TRUE/>.
94
95        @see BarDiagram
96        @see Dim3DDiagram@see BarDiagram
97        @see Dim3DDiagram
98     */
99	[optional] service com::sun::star::chart::Chart3DBarProperties;
100
101	interface com::sun::star::beans::XPropertySet;
102
103	//-------------------------------------------------------------------------
104
105	/** specifies how the captions of data points are displayed.@see ChartDataCaption
106	 */
107	[property] long DataCaption;
108
109
110    //-------------------------------------------------------------------------
111
112	/** specifies a string that is used to separate the parts of a data label (caption)
113	 */
114    [optional, property] string LabelSeparator;
115
116    //-------------------------------------------------------------------------
117
118	/** specifies a number format for the display of the value in the data label
119	 */
120    [optional, property] long NumberFormat;
121
122    //-------------------------------------------------------------------------
123
124	/** specifies a number format for the display of the percentage value in the data label
125	 */
126    [optional, property] long PercentageNumberFormat;
127
128    //-------------------------------------------------------------------------
129
130	/** specifies a relative position for the data label
131
132        @see DataLabelPlacement
133	 */
134    [optional, property] long LabelPlacement;
135
136	//-------------------------------------------------------------------------
137
138	/** specifies the type of symbols if the current chart type
139        supports the usage of symbols.
140
141		@see ChartSymbolType
142	 */
143	[optional, property] long SymbolType;
144
145	//-------------------------------------------------------------------------
146
147	/** In charts that support symbols, you can set this property to
148        any valid URL that points to a graphic file.  This graphic is
149        then used as symbol for each data point.
150
151        <p>When you query this value you get an internal URL of the
152        embedded graphic.</p>
153
154		@see ChartSymbolType
155	 */
156	[optional, property] string SymbolBitmapURL;
157
158    /** the offset by which pie segments in a <type>PieDiagram</type>
159        are dragged outside from the center.  This value is given in
160        percent of the radius.
161     */
162    [optional, property] long SegmentOffset;
163};
164
165//=============================================================================
166
167}; }; }; };
168
169#endif
170