/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #pragma once #include #include #include namespace chart { class AreaChart : public VSeriesPlotter { // public methods public: AreaChart() = delete; AreaChart( const rtl::Reference< ::chart::ChartType >& xChartTypeModel , sal_Int32 nDimensionCount , bool bCategoryXAxis, bool bNoArea=false ); virtual ~AreaChart() override; virtual void createShapes() override; virtual void addSeries( std::unique_ptr pSeries, sal_Int32 zSlot, sal_Int32 xSlot, sal_Int32 ySlot ) override; virtual css::drawing::Direction3D getPreferredDiagramAspectRatio() const override; // MinimumAndMaximumSupplier virtual bool isSeparateStackingForDifferentSigns( sal_Int32 nDimensionIndex ) override; virtual LegendSymbolStyle getLegendSymbolStyle() override; virtual css::uno::Any getExplicitSymbol( const VDataSeries& rSeries, sal_Int32 nPointIndex/*-1 for series symbol*/ ) override; private: //methods void impl_createSeriesShapes(); bool impl_createArea( VDataSeries* pSeries , std::vector> const * pSeriesPoly , std::vector> const * pPreviousSeriesPoly , PlottingPositionHelper const * pPosHelper ); bool impl_createLine( VDataSeries* pSeries , std::vector> const * pSeriesPoly , PlottingPositionHelper* pPosHelper ); static bool create_stepped_line( std::vector> aStartPoly , css::chart2::CurveStyle eCurveStyle , PlottingPositionHelper const * pPosHelper , std::vector> &aPoly ); private: //member std::unique_ptr m_pMainPosHelper; bool m_bArea;//false -> line or symbol only bool m_bLine; bool m_bSymbol; //Properties for splines: css::chart2::CurveStyle m_eCurveStyle; sal_Int32 m_nCurveResolution; sal_Int32 m_nSplineOrder; rtl::Reference m_xSeriesTarget; rtl::Reference m_xErrorBarTarget; rtl::Reference m_xTextTarget; rtl::Reference m_xRegressionCurveEquationTarget; }; } //namespace chart /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ bora/cp-6.0-29'>distro/collabora/cp-6.0-29 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-05-13drop some unneeded includesCaolán McNamara
2019-05-11remove unused RefEdit/RefButtonCaolán McNamara
2019-04-19sc: Get rid of the Idle hack in the Special Filter Dialog.Jan Holesovsky
2019-04-17drop newly unused ScFilterOptionsMgrCaolán McNamara
2019-04-17weld ScSpecialFilterDlgCaolán McNamara
2019-02-27tdf#42949 Fix IWYU warnings in sc/source/ui/d*/*cxxGabor Kelemen
2019-02-09loplugin:indentation in scNoel Grandin
2019-01-17Simplify containers iterations in sc/source/ui/[A-Sa-d]*Arkadiy Illarionov
2018-11-29remove unnecessary "if (!empty()" checks before loopsNoel Grandin
2018-09-10loplugin:simplifyconstruct in scNoel Grandin
2018-06-28loplugin:useuniqueptr in ScSpecialFilterDlgNoel Grandin
2018-05-12Replace ScGlobal::GetRscString with simple ScResId callsGabor Kelemen
2018-03-20drop unnecessary includesCaolán McNamara
2018-02-22weld native message dialogsCaolán McNamara
2017-10-23loplugin:includeform: scStephan Bergmann
2017-09-21Rename GetSelectEntryPos -> GetSelectedEntryPosSamuel Mehrbrodt
2017-07-21migrate to boost::gettextCaolán McNamara
2017-05-19make string translation loading more uniformCaolán McNamara
2017-04-09tdf#97087, Add debug name to an Idle objectblendergeek
2017-03-20remove unused defines from HRC files in misc(2)Noel Grandin
2017-03-16Fix typosAndrea Gelmini
2017-03-14Translate German comments in sc/source/ui (part of its sub-dirs)Johnny_M