nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / view / charttypes / NetChart.hxx
blob04e39080a06b35c3d5751f34a4e4867a9464e383
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 #pragma once
22 #include <memory>
23 #include <VSeriesPlotter.hxx>
25 namespace chart
28 class NetChart : public VSeriesPlotter
30 // public methods
31 public:
32 NetChart() = delete;
34 NetChart( const css::uno::Reference< css::chart2::XChartType >& xChartTypeModel
35 , sal_Int32 nDimensionCount
36 , bool bNoArea
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;
53 private: //methods
54 void impl_createSeriesShapes();
55 bool impl_createArea( VDataSeries* pSeries
56 , css::drawing::PolyPolygonShape3D* pSeriesPoly
57 , css::drawing::PolyPolygonShape3D const * pPreviousSeriesPoly
58 , PlottingPositionHelper const * pPosHelper );
59 bool impl_createLine( VDataSeries* pSeries
60 , css::drawing::PolyPolygonShape3D* pSeriesPoly
61 , PlottingPositionHelper const * pPosHelper );
63 private: //member
64 std::unique_ptr<PlottingPositionHelper> m_pMainPosHelper;
66 bool m_bArea;//false -> line or symbol only
67 bool m_bLine;
69 css::uno::Reference< css::drawing::XShapes > m_xSeriesTarget;
70 css::uno::Reference< css::drawing::XShapes > m_xTextTarget;
72 } //namespace chart
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */