1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
29 /** Describes a legend for a Diagram.
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
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
82 [property
, maybevoid
] ::com
::sun
::star
::chart2
::RelativePosition RelativePosition
;
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */