/* -*- 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
namespace com::sun::star::awt { struct Rectangle; } namespace com::sun::star::awt { struct Size; } namespace com::sun::star::beans { class XPropertySet; } namespace com::sun::star::chart2 { class XAxis; } namespace com::sun::star::chart2 { class XChartDocument; } namespace com::sun::star::chart2 { class XCoordinateSystem; } namespace com::sun::star::drawing { class XShapes; } namespace com::sun::star::lang { class XMultiServiceFactory; } namespace com::sun::star::uno { class XComponentContext; }
namespace chart
{ class ExplicitCategoriesProvider; class ScaleAutomatism; class ChartModel; class Axis; class BaseCoordinateSystem; class GridProperties; class VAxisBase;
class VCoordinateSystem
{ public: virtual ~VCoordinateSystem();
// returns a complete scale set for a given dimension and index; for example if nDimensionIndex==1 and nAxisIndex==2 you get returned the secondary x axis, main y axis and main z axis
std::vector< ExplicitScaleData > getExplicitScales( sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex ) const; // returns a complete increment set for a given dimension and index; for example if nDimensionIndex==1 and nAxisIndex==2 you get returned the secondary x axis, main y axis and main z axis
std::vector< ExplicitIncrementData > getExplicitIncrements( sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex ) const;
/** * It sets the scaling parameters for the passed `ScaleAutomatism` object. * Especially it sets the `m_fValueMinimum` and the `m_fValueMaximum` * parameters (see `ScaleAutomatism::expandValueRange`). * The value to be assigned to these two parameters is retrieved by * invoking the `getMinimum` and `getMaximum` methods of the minimum-maximum * supplier object that belongs to the given coordinate system. * The minimum-maximum supplier object is set in the * `SeriesPlotterContainer::initializeCooSysAndSeriesPlotter` method to the * series plotter which is based on the coordinate system (see notes for * the method). For instance for a pie chart the `m_fValueMinimum` and the * `m_fValueMaximum` parameters are initialized by the `PieChart::getMinimum` * and `PieChart::getMaximum` methods.
*/ void prepareAutomaticAxisScaling( ScaleAutomatism& rScaleAutomatism, sal_Int32 nDimIndex, sal_Int32 nAxisIndex );
typedef std::pair< sal_Int32, sal_Int32 > tFullAxisIndex; //first index is the dimension, second index is the axis index that indicates whether this is a main or secondary axis
/** * Collection of min-max suppliers which are basically different chart * types present in the same coordinate system. This is used only for * auto-scaling purposes.
*/
MergedMinimumAndMaximumSupplier m_aMergedMinMaxSupplier;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.