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 .
23 #include <VSeriesPlotter.hxx>
28 class NetChart
: public VSeriesPlotter
34 NetChart( const rtl::Reference
< ::chart::ChartType
>& xChartTypeModel
35 , sal_Int32 nDimensionCount
37 , std::unique_ptr
<PlottingPositionHelper
> pPlottingPositionHelper
//takes ownership
39 virtual ~NetChart() override
;
41 virtual void createShapes() override
;
43 virtual css::drawing::Direction3D
getPreferredDiagramAspectRatio() const override
;
45 // MinimumAndMaximumSupplier
46 virtual double getMaximumX() override
;
47 virtual bool isExpandIfValuesCloseToBorder( sal_Int32 nDimensionIndex
) override
;
48 virtual bool isSeparateStackingForDifferentSigns( sal_Int32 nDimensionIndex
) override
;
50 virtual LegendSymbolStyle
getLegendSymbolStyle() override
;
51 virtual css::uno::Any
getExplicitSymbol( const VDataSeries
& rSeries
, sal_Int32 nPointIndex
/*-1 for series symbol*/ ) override
;
54 void impl_createSeriesShapes();
55 bool impl_createArea( VDataSeries
* pSeries
56 , const std::vector
<std::vector
<css::drawing::Position3D
>>* pSeriesPoly
57 , std::vector
<std::vector
<css::drawing::Position3D
>> const * pPreviousSeriesPoly
58 , PlottingPositionHelper
const * pPosHelper
);
59 bool impl_createLine( VDataSeries
* pSeries
60 , const std::vector
<std::vector
<css::drawing::Position3D
>>* pSeriesPoly
61 , PlottingPositionHelper
const * pPosHelper
);
64 std::unique_ptr
<PlottingPositionHelper
> m_pMainPosHelper
;
66 bool m_bArea
;//false -> line or symbol only
69 rtl::Reference
<SvxShapeGroupAnyD
> m_xSeriesTarget
;
70 rtl::Reference
<SvxShapeGroupAnyD
> m_xTextTarget
;
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */