Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / chart / Diagram.idl
blob76f31b00c78f9b3e779c0e3ed58bd68ec7da5ac0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_chart_Diagram_idl__
20 #define __com_sun_star_chart_Diagram_idl__
22 #include <com/sun/star/chart/XDiagram.idl>
23 #include <com/sun/star/chart/XAxisSupplier.idl>
24 #include <com/sun/star/chart/XDiagramPositioning.idl>
26 #include <com/sun/star/chart/XSecondAxisTitleSupplier.idl>
27 #include <com/sun/star/beans/XPropertySet.idl>
29 #include <com/sun/star/chart/ChartDataRowSource.idl>
31 #include <com/sun/star/xml/UserDefinedAttributesSupplier.idl>
34 module com { module sun { module star { module chart {
37 /** the base service for the diagram of the chart document.
39 <p>The diagram is the object that contains the actual plot.</p>
41 <p>Different Diagram Types, e.g., PieDiagram or
42 LineDiagram, can be instantiated by the
43 com::sun::star::lang::XMultiServiceFactory of
44 the XChartDocument.</p>
47 published service Diagram
50 interface com::sun::star::chart::XDiagram;
52 /** Provides easier access to the differnet axes and their sub elements.
53 @since OOo 3.4
55 [optional] interface com::sun::star::chart::XAxisSupplier;
57 /** Provides access to the titles of the secondary X axis and Y axis.
58 @since OOo 3.0
60 [optional] interface com::sun::star::chart::XSecondAxisTitleSupplier;
62 /**
63 @since OOo 3.3
65 [optional] interface com::sun::star::chart::XDiagramPositioning;
68 /** If this property is `TRUE` the position is calculated by the application automatically.
69 Setting this property to false will have no effect. Instead use the interface com::sun::star::drawing::XShape
70 to set a concrete position (note com::sun::star::chart::XDiagram is derived from com::sun::star::drawing::XShape).
72 [optional, property] boolean AutomaticPosition;
75 /** If this property is `TRUE` the size is calculated by the application automatically.
76 Setting this property to false will have no effect. Instead use the interface com::sun::star::drawing::XShape
77 to set a concrete size (note com::sun::star::chart::XDiagram is derived from com::sun::star::drawing::XShape).
79 [optional, property] boolean AutomaticSize;
82 interface com::sun::star::beans::XPropertySet;
85 /** If a Diagram may be stored as XML file, this
86 service should be supported in order to preserve unparsed XML
87 attributes.
89 @since OOo 1.1.2
91 [optional] service com::sun::star::xml::UserDefinedAttributesSupplier;
94 /** determines if the data for a data row is contained in the
95 columns or in the rows of the data array.
97 @see ChartDataRowSource
98 @see ChartDataArray
100 [property] com::sun::star::chart::ChartDataRowSource DataRowSource;
103 /** specifies how the caption of data points is displayed.
105 @see ChartDataCaption
107 [property] long DataCaption;
110 /** specifies how empty or invalid cells in the provided data should be handled when displayed
112 @see MissingValueTreatment
114 [optional, property] long MissingValueTreatment;
119 }; }; }; };
121 #endif
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */