LibreOffice Module chart2 (master) 1
LegendEntryProvider.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <com/sun/star/chart2/LegendPosition.hpp>
22#include <com/sun/star/chart2/XFormattedString2.hpp>
23#include <com/sun/star/awt/Size.hpp>
24#include <com/sun/star/uno/Reference.h>
25#include <com/sun/star/uno/Sequence.h>
26#include <rtl/ref.hxx>
27#include <svx/unoshape.hxx>
28#include <vector>
29
30namespace chart { class ChartModel; }
31namespace com::sun::star::beans { class XPropertySet; }
32namespace com::sun::star::drawing { class XShape; }
33namespace com::sun::star::drawing { class XShapes; }
34namespace com::sun::star::lang { class XMultiServiceFactory; }
35namespace com::sun::star::uno { class XComponentContext; }
36
37namespace chart
38{
39class FormattedString;
40
42{
45 Box,
46
49 Line,
50
54 Circle
55};
56
58{
63
67};
68
69
71{
76};
77
79{
80public:
81 virtual css::awt::Size getPreferredLegendKeyAspectRatio()=0;
82
83 virtual std::vector< ViewLegendEntry > createLegendEntries(
84 const css::awt::Size& rEntryKeyAspectRatio,
85 css::chart2::LegendPosition eLegendPosition,
86 const css::uno::Reference< css::beans::XPropertySet >& xTextProperties,
88 const css::uno::Reference< css::uno::XComponentContext >& xContext,
89 ChartModel& rModel
90 ) = 0;
91
92protected:
94};
95
96} // namespace chart
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual std::vector< ViewLegendEntry > createLegendEntries(const css::awt::Size &rEntryKeyAspectRatio, css::chart2::LegendPosition eLegendPosition, const css::uno::Reference< css::beans::XPropertySet > &xTextProperties, const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::uno::Reference< css::uno::XComponentContext > &xContext, ChartModel &rModel)=0
virtual css::awt::Size getPreferredLegendKeyAspectRatio()=0
class SAL_NO_VTABLE XPropertySet
rtl::Reference< ::chart::FormattedString > xLabel
The descriptive text for a legend entry.
rtl::Reference< SvxShapeGroup > xSymbol
The legend symbol that represents a data series or other information contained in the legend.
rtl::Reference< SvxShapeGroup > xSymbol
The legend symbol that represents a data series or other information contained in the legend.