cid#1640468 Dereference after null check
[LibreOffice.git] / offapi / com / sun / star / chart / Diagram.idl
blob332970198d0ba9b6d817663976392a2c9ed13332
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 .
21 module com { module sun { module star { module chart {
24 /** the base service for the diagram of the chart document.
26 <p>The diagram is the object that contains the actual plot.</p>
28 <p>Different Diagram Types, e.g., PieDiagram or
29 LineDiagram, can be instantiated by the
30 com::sun::star::lang::XMultiServiceFactory of
31 the XChartDocument.</p>
34 published service Diagram
37 interface com::sun::star::chart::XDiagram;
39 /** Provides easier access to the different axes and their sub elements.
40 @since OOo 3.4
42 [optional] interface com::sun::star::chart::XAxisSupplier;
44 /** Provides access to the titles of the secondary X axis and Y axis.
45 @since OOo 3.0
47 [optional] interface com::sun::star::chart::XSecondAxisTitleSupplier;
49 /**
50 @since OOo 3.3
52 [optional] interface com::sun::star::chart::XDiagramPositioning;
55 /** If this property is `TRUE` the position is calculated by the application automatically.
56 Setting this property to false will have no effect. Instead use the interface com::sun::star::drawing::XShape
57 to set a concrete position (note com::sun::star::chart::XDiagram is derived from com::sun::star::drawing::XShape).
59 [optional, property] boolean AutomaticPosition;
62 /** If this property is `TRUE` the size is calculated by the application automatically.
63 Setting this property to false will have no effect. Instead use the interface com::sun::star::drawing::XShape
64 to set a concrete size (note com::sun::star::chart::XDiagram is derived from com::sun::star::drawing::XShape).
66 [optional, property] boolean AutomaticSize;
69 interface com::sun::star::beans::XPropertySet;
72 /** If a Diagram may be stored as XML file, this
73 service should be supported in order to preserve unparsed XML
74 attributes.
76 @since OOo 1.1.2
78 [optional] service com::sun::star::xml::UserDefinedAttributesSupplier;
81 /** determines if the data for a data row is contained in the
82 columns or in the rows of the data array.
84 @see ChartDataRowSource
85 @see ChartDataArray
87 [property] com::sun::star::chart::ChartDataRowSource DataRowSource;
90 /** specifies how the caption of data points is displayed.
92 @see ChartDataCaption
94 [property] long DataCaption;
97 /** specifies how empty or invalid cells in the provided data should be handled when displayed
99 @see MissingValueTreatment
101 [optional, property] long MissingValueTreatment;
106 }; }; }; };
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */