nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / view / axes / VPolarGrid.hxx
blob7b39aeadcad25c5b3e641a2f60961e47d9a84420
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 .
19 #pragma once
21 #include "VAxisOrGridBase.hxx"
22 #include "Tickmarks.hxx"
23 #include <com/sun/star/drawing/PointSequenceSequence.hpp>
24 #include <memory>
26 namespace chart { struct VLineProperties; }
28 namespace chart
31 class PolarPlottingPositionHelper;
33 class VPolarGrid : public VAxisOrGridBase
35 // public methods
36 public:
37 VPolarGrid( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount
38 , const css::uno::Sequence<
39 css::uno::Reference< css::beans::XPropertySet > > & rGridPropertiesList //main grid, subgrid, subsubgrid etc
41 virtual ~VPolarGrid() override;
43 virtual void createShapes() override;
45 void setIncrements( const std::vector< ExplicitIncrementData >& rIncrements );
47 static void createLinePointSequence_ForAngleAxis(
48 css::drawing::PointSequenceSequence& rPoints
49 , TickInfoArraysType& rAllTickInfos
50 , const ExplicitIncrementData& rIncrement
51 , const ExplicitScaleData& rScale
52 , PolarPlottingPositionHelper const * pPosHelper
53 , double fLogicRadius, double fLogicZ );
55 private: //member
56 css::uno::Sequence<
57 css::uno::Reference< css::beans::XPropertySet > > m_aGridPropertiesList;//main grid, subgrid, subsubgrid etc
58 std::unique_ptr<PolarPlottingPositionHelper> m_pPosHelper;
59 std::vector< ExplicitIncrementData > m_aIncrements;
61 void getAllTickInfos( sal_Int32 nDimensionIndex, TickInfoArraysType& rAllTickInfos ) const;
63 void create2DRadiusGrid( const css::uno::Reference<css::drawing::XShapes>& xLogicTarget
64 , TickInfoArraysType& rRadiusTickInfos
65 , TickInfoArraysType& rAngleTickInfos
66 , const std::vector<VLineProperties>& rLinePropertiesList );
69 } //namespace chart
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */