cid#1607171 Data race condition
[LibreOffice.git] / offapi / com / sun / star / chart2 / Legend.idl
blobeb5b2d1a27474921d83fcf91448755ae948f6948
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 .
20 module com
22 module sun
24 module star
26 module chart2
29 /** Describes a legend for a Diagram.
31 service Legend
33 service ::com::sun::star::drawing::FillProperties;
34 service ::com::sun::star::drawing::LineProperties;
35 service ::com::sun::star::beans::PropertySet;
37 /** The interface for registering and removing legend entries.
39 interface ::com::sun::star::chart2::XLegend;
41 /** Provides an automated position
43 [property] LegendPosition AnchorPosition;
45 /** Determines how the aspect ratio of the legend should roughly
46 be.
48 <p>Set the Expansion to
49 ::com::sun::star::chart#HIGH
50 for a legend that is positioned on the right or left hand
51 side. Use ::com::sun::star::chart::WIDE for a legend
52 that is positioned on top or the bottom.</p>
54 [property] ::com::sun::star::chart::ChartLegendExpansion Expansion;
56 /** Determines, whether the legend should be rendered by the view.
58 [property] boolean Show;
60 /** Determines, whether the legend should overlay the chart.
62 @since LibreOffice 7.0
64 [property] boolean Overlay;
66 /** contains the size of the page at the time when properties were
67 set (e.g. the CharHeight).
69 <p>This way it is possible to resize objects (like text) in
70 the view without modifying the model.</p>
72 [property, maybevoid] com::sun::star::awt::Size ReferencePageSize;
74 /** The position is as a relative position on the page.
76 <p>If a relative position is given the legend is not automatically placed,
77 but instead is placed relative on the page.</p>
79 <p>If `VOID`, the legend position is solely determined by the
80 #AnchorPosition.</p>
82 [property, maybevoid] ::com::sun::star::chart2::RelativePosition RelativePosition;
85 } ; // chart2
86 } ; // com
87 } ; // sun
88 } ; // star
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */