xref: /aoo42x/main/offapi/com/sun/star/chart2/Diagram.idl (revision d1766043)
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_Diagram_idl
24#define com_sun_star_chart_Diagram_idl
25
26#ifndef com_sun_star_chart2_XDiagram_idl__
27#include <com/sun/star/chart2/XDiagram.idl>
28#endif
29
30#include <com/sun/star/chart2/XCoordinateSystemContainer.idl>
31#include <com/sun/star/chart2/XTitled.idl>
32#include <com/sun/star/chart2/RelativePosition.idl>
33#include <com/sun/star/layout/RelativeSize.idl>
34#include <com/sun/star/chart/X3DDefaultSetter.idl>
35
36module com
37{
38module sun
39{
40module star
41{
42module chart2
43{
44
45/**
46 */
47service Diagram
48{
49    /**
50     */
51    interface ::com::sun::star::chart2::XDiagram;
52
53    /**
54     */
55    interface ::com::sun::star::chart2::XCoordinateSystemContainer;
56
57    /** gives access to the sub title of a chart document
58     */
59    interface  XTitled;
60
61    /** makes it easy to set suiteable defaults for illumination and rotation for 3D charts
62     */
63    [optional] interface ::com::sun::star::chart::X3DDefaultSetter;
64
65    /** The position is as a relative position on the page.
66
67        <p>If a relative position is given the diagam is not automatically placed,
68        but instead is placed relative on the page.</p>
69     */
70    [property, maybevoid] ::com::sun::star::chart2::RelativePosition RelativePosition;
71
72    /** The size of the diagram as relative size of the page size.
73     */
74    [property] ::com::sun::star::layout::RelativeSize RelativeSize;
75
76    /** The attributes RelativePosition and RelativeSize should be used for the inner coordinate region without axis labels and without data labels.
77     */
78    [optional, property] boolean                    PosSizeExcludeLabels;
79
80    /** Sort data points by x values for rendering
81     */
82    [optional, property] boolean                    SortByXValues;
83
84    /** Draw connection lines for stacked bar charts.
85     */
86    [optional, property] boolean                    ConnectBars;
87
88    /** If bars of a bar or column chart are attached to different
89        axis, this property determines how to display those.  If
90        <TRUE/>, the bars are grouped together in one block for each
91        axis, thus they are painted one group over the other.
92
93        <p>If <FALSE/>, the bars are displayed side-by-side, as if
94        they were all attached to the same axis.</p>
95
96        <p>If all data series of a bar or column chart are attached to
97        only one axis, this property has no effect.</p>
98    */
99    [optional, property] boolean                    GroupBarsPerAxis;
100
101    /** Starting angle in degrees for pie charts and doughnut charts.
102     */
103    [optional, property] long                       StartingAngle;
104
105    [optional, property] boolean                    RightAngledAxes;
106
107    /** Perspective of 3D charts ( [0,100] ).
108     */
109    [optional, property] long                       Perspective;
110
111    /** Horizontal rotation of 3D charts in degrees ( ]-180,180] ).
112     */
113    [optional, property] long                       RotationHorizontal;
114
115    /** Vertical rotation of 3D charts in degrees ( ]-180,180] ).
116     */
117    [optional, property] long                       RotationVertical;
118
119    /** specifies how empty or invalid cells in the provided data should be handled when displayed
120
121        @see ::com::sun::star::chart::MissingValueTreatment
122	 */
123    [optional, property] long                       MissingValueTreatment;
124};
125
126} ; // chart2
127} ; // com
128} ; // sun
129} ; // star
130
131#endif
132