LibreOffice Module chart2 (master) 1
ExplicitValueProvider.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 <sal/types.h>
23#include <rtl/ref.hxx>
24#include <rtl/ustring.hxx>
25
26#include <memory>
27
28namespace com::sun::star::beans { class XPropertySet; }
29namespace com::sun::star::chart2 { class XAxis; }
30namespace com::sun::star::chart2 { class XChartDocument; }
31namespace com::sun::star::chart2 { class XCoordinateSystem; }
32namespace com::sun::star::chart2 { class XDataSeries; }
33namespace com::sun::star::chart2 { class XDiagram; }
34namespace com::sun::star::drawing { class XShape; }
35namespace com::sun::star::uno { class XInterface; }
36namespace com::sun::star::uno { template <typename > class Reference; }
37namespace com::sun::star::uno { template <typename > class Sequence; }
38namespace com::sun::star::util { class XNumberFormatsSupplier; }
39namespace com::sun::star::awt { struct Rectangle; }
40class SvxShape;
41
42namespace chart
43{
44class Axis;
45class BaseCoordinateSystem;
46class DrawModelWrapper;
47class ChartModel;
48struct ExplicitIncrementData;
49struct ExplicitScaleData;
50
51class OOO_DLLPUBLIC_CHARTVIEW SAL_LOPLUGIN_ANNOTATE("crosscast") ExplicitValueProvider
52{
53public:
58 virtual bool getExplicitValuesForAxis(
60 , ExplicitScaleData& rExplicitScale
61 , ExplicitIncrementData& rExplicitIncrement )=0;
62
66 virtual css::awt::Rectangle
67 getRectangleOfObject( const OUString& rObjectCID, bool bSnapRect=false )=0;
68
69 virtual css::awt::Rectangle getDiagramRectangleExcludingAxes()=0;
70
72 getShapeForCID( const OUString& rObjectCID )=0;
73
74 virtual std::shared_ptr< DrawModelWrapper > getDrawModelWrapper() = 0;
75
76 static css::awt::Rectangle
77 AddSubtractAxisTitleSizes(
78 ChartModel& rModel
79 , ExplicitValueProvider* pChartView
80 , const css::awt::Rectangle& rPositionAndSize, bool bSubtract );
81
82 static sal_Int32 getExplicitNumberFormatKeyForAxis(
84 , const rtl::Reference< ::chart::BaseCoordinateSystem > & xCorrespondingCoordinateSystem
85 , const rtl::Reference<::chart::ChartModel>& xChartDoc);
86
87 static sal_Int32 getExplicitNumberFormatKeyForDataLabel(
88 const css::uno::Reference< css::beans::XPropertySet >& xSeriesOrPointProp );
89
90 static sal_Int32 getExplicitPercentageNumberFormatKeyForDataLabel(
91 const css::uno::Reference< css::beans::XPropertySet >& xSeriesOrPointProp
92 , const css::uno::Reference< css::util::XNumberFormatsSupplier >& xNumberFormatsSupplier );
93
94protected:
95 ~ExplicitValueProvider() = default;
96};
97
98} //namespace chart
99
100/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define OOO_DLLPUBLIC_CHARTVIEW
class SAL_LOPLUGIN_ANNOTATE("crosscast") TabPageNotifiable
class SAL_NO_VTABLE XPropertySet
Reference