a3acf41195
2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
454 lines
20 KiB
C++
454 lines
20 KiB
C++
/*************************************************************************
|
|
*
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
*
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: VSeriesPlotter.hxx,v $
|
|
* $Revision: 1.25.8.1 $
|
|
*
|
|
* This file is part of OpenOffice.org.
|
|
*
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
* only, as published by the Free Software Foundation.
|
|
*
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License version 3 for more details
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
* <http://www.openoffice.org/license.html>
|
|
* for a copy of the LGPLv3 License.
|
|
*
|
|
************************************************************************/
|
|
#ifndef _CHART2_VSERIESPLOTTER_HXX
|
|
#define _CHART2_VSERIESPLOTTER_HXX
|
|
|
|
#include "PlotterBase.hxx"
|
|
#include "VDataSeries.hxx"
|
|
#include "LabelAlignment.hxx"
|
|
#include "MinimumAndMaximumSupplier.hxx"
|
|
#include "LegendEntryProvider.hxx"
|
|
#include <com/sun/star/chart2/LegendSymbolStyle.hpp>
|
|
#include <com/sun/star/chart2/XChartType.hpp>
|
|
#include <com/sun/star/chart2/data/XTextualDataSequence.hpp>
|
|
#include <com/sun/star/drawing/Direction3D.hpp>
|
|
|
|
|
|
namespace com { namespace sun { namespace star {
|
|
namespace util {
|
|
class XNumberFormatsSupplier;
|
|
}
|
|
namespace chart2 {
|
|
class XColorScheme;
|
|
class XRegressionCurveCalculator;
|
|
}
|
|
}}}
|
|
|
|
//.............................................................................
|
|
namespace chart
|
|
{
|
|
//.............................................................................
|
|
|
|
class NumberFormatterWrapper;
|
|
|
|
class AxesNumberFormats
|
|
{
|
|
public:
|
|
AxesNumberFormats() {};
|
|
|
|
void setFormat( sal_Int32 nFormatKey, sal_Int32 nDimIndex, sal_Int32 nAxisIndex )
|
|
{
|
|
m_aNumberFormatMap[tFullAxisIndex(nDimIndex,nAxisIndex)] = nFormatKey;
|
|
}
|
|
sal_Int32 hasFormat( sal_Int32 nDimIndex, sal_Int32 nAxisIndex ) const
|
|
{
|
|
return (m_aNumberFormatMap.find(tFullAxisIndex(nDimIndex,nAxisIndex)) !=m_aNumberFormatMap.end());
|
|
}
|
|
sal_Int32 getFormat( sal_Int32 nDimIndex, sal_Int32 nAxisIndex ) const
|
|
{
|
|
tNumberFormatMap::const_iterator aIt = m_aNumberFormatMap.find(tFullAxisIndex(nDimIndex,nAxisIndex));
|
|
if( aIt !=m_aNumberFormatMap.end() )
|
|
return aIt->second;
|
|
return 0;
|
|
}
|
|
|
|
private:
|
|
typedef std::pair< sal_Int32, sal_Int32 > tFullAxisIndex;
|
|
typedef std::map< tFullAxisIndex, sal_Int32 > tNumberFormatMap;
|
|
tNumberFormatMap m_aNumberFormatMap;
|
|
};
|
|
|
|
//-----------------------------------------------------------------------------
|
|
/**
|
|
*/
|
|
|
|
//enum StackType { STACK_NORMAL, STACK_NONE, STACK_BESIDES, STACK_ONTOP, STACK_BEHIND };
|
|
|
|
class VDataSeriesGroup
|
|
{
|
|
//a list of series that have the same CoordinateSystem
|
|
//they are used to be plotted maybe in a stacked manner by a plotter
|
|
|
|
public:
|
|
VDataSeriesGroup();
|
|
VDataSeriesGroup( VDataSeries* pSeries );
|
|
virtual ~VDataSeriesGroup();
|
|
|
|
void addSeries( VDataSeries* pSeries );//takes ownership of pSeries
|
|
sal_Int32 getSeriesCount() const;
|
|
void deleteSeries();
|
|
|
|
sal_Int32 getPointCount() const;
|
|
sal_Int32 getAttachedAxisIndexForFirstSeries() const;
|
|
|
|
void getMinimumAndMaximiumX( double& rfMinimum, double& rfMaximum ) const;
|
|
void getMinimumAndMaximiumYInContinuousXRange( double& rfMinY, double& rfMaxY, double fMinX, double fMaxX, sal_Int32 nAxisIndex ) const;
|
|
|
|
void calculateYMinAndMaxForCategory( sal_Int32 nCategoryIndex
|
|
, bool bSeperateStackingForDifferentSigns
|
|
, double& rfMinimumY, double& rfMaximumY, sal_Int32 nAxisIndex );
|
|
void calculateYMinAndMaxForCategoryRange( sal_Int32 nStartCategoryIndex, sal_Int32 nEndCategoryIndex
|
|
, bool bSeperateStackingForDifferentSigns
|
|
, double& rfMinimumY, double& rfMaximumY, sal_Int32 nAxisIndex );
|
|
|
|
::std::vector< VDataSeries* > m_aSeriesVector;
|
|
|
|
private:
|
|
//cached values
|
|
struct CachedYValues
|
|
{
|
|
CachedYValues();
|
|
|
|
bool m_bValuesDirty;
|
|
double m_fMinimumY;
|
|
double m_fMaximumY;
|
|
};
|
|
|
|
mutable bool m_bMaxPointCountDirty;
|
|
mutable sal_Int32 m_nMaxPointCount;
|
|
typedef std::map< sal_Int32, CachedYValues > tCachedYValuesPerAxisIndexMap;
|
|
mutable ::std::vector< tCachedYValuesPerAxisIndexMap > m_aListOfCachedYValues;
|
|
};
|
|
|
|
class VSeriesPlotter : public PlotterBase, public MinimumAndMaximumSupplier, public LegendEntryProvider
|
|
{
|
|
//-------------------------------------------------------------------------
|
|
// public methods
|
|
//-------------------------------------------------------------------------
|
|
public:
|
|
virtual ~VSeriesPlotter();
|
|
|
|
/*
|
|
* A new series can be positioned relative to other series in a chart.
|
|
* This positioning has two dimensions. First a series can be placed
|
|
* next to each other on the category axis. This position is indicated by xSlot.
|
|
* Second a series can be stacked on top of another. This position is indicated by ySlot.
|
|
* The positions are counted from 0 on.
|
|
* xSlot < 0 : append the series to already existing x series
|
|
* xSlot > occupied : append the series to already existing x series
|
|
*
|
|
* If the xSlot is already occupied the given ySlot decides what should happen:
|
|
* ySlot < -1 : move all existing series in the xSlot to next slot
|
|
* ySlot == -1 : stack on top at given x position
|
|
* ySlot == already occupied : insert at given y and x position
|
|
* ySlot > occupied : stack on top at given x position
|
|
*/
|
|
virtual void addSeries( VDataSeries* pSeries, sal_Int32 zSlot = -1, sal_Int32 xSlot = -1,sal_Int32 ySlot = -1 );
|
|
|
|
/** a value <= 0 for a directions means that this direction can be stretched arbitrary
|
|
*/
|
|
virtual ::com::sun::star::drawing::Direction3D getPreferredDiagramAspectRatio() const;
|
|
virtual bool keepAspectRatio() const;
|
|
|
|
/** this enables you to handle series on the same x axis with different y axis
|
|
the property AttachedAxisIndex at a dataseries indicates which value scale is to use
|
|
(0==AttachedAxisIndex or a not set AttachedAxisIndex property indicates that this series should be scaled at the main y-axis;
|
|
1==AttachedAxisIndex indicates that the series should be scaled at the first secondary axis if there is any otherwise at the main y axis
|
|
and so on.
|
|
The parameter nAxisIndex matches this DataSereis property 'AttachedAxisIndex'.
|
|
nAxisIndex must be greater than 0. nAxisIndex==1 referres to the first secondary axis.
|
|
)
|
|
*/
|
|
|
|
virtual void SAL_CALL addSecondaryValueScale( const
|
|
::com::sun::star::chart2::ExplicitScaleData& rScale, sal_Int32 nAxisIndex )
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
//-------------------------------------------------------------------------
|
|
// MinimumAndMaximumSupplier
|
|
//-------------------------------------------------------------------------
|
|
|
|
virtual double getMinimumX();
|
|
virtual double getMaximumX();
|
|
|
|
virtual double getMinimumYInRange( double fMinimumX, double fMaximumX, sal_Int32 nAxisIndex );
|
|
virtual double getMaximumYInRange( double fMinimumX, double fMaximumX, sal_Int32 nAxisIndex );
|
|
|
|
virtual double getMinimumZ();
|
|
virtual double getMaximumZ();
|
|
|
|
virtual bool isExpandBorderToIncrementRhythm( sal_Int32 nDimensionIndex );
|
|
virtual bool isExpandIfValuesCloseToBorder( sal_Int32 nDimensionIndex );
|
|
virtual bool isExpandWideValuesToZero( sal_Int32 nDimensionIndex );
|
|
virtual bool isExpandNarrowValuesTowardZero( sal_Int32 nDimensionIndex );
|
|
virtual bool isSeperateStackingForDifferentSigns( sal_Int32 nDimensionIndex );
|
|
|
|
//------
|
|
|
|
void getMinimumAndMaximiumX( double& rfMinimum, double& rfMaximum ) const;
|
|
void getMinimumAndMaximiumYInContinuousXRange( double& rfMinY, double& rfMaxY, double fMinX, double fMaxX, sal_Int32 nAxisIndex ) const;
|
|
|
|
//-------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------
|
|
|
|
virtual ::com::sun::star::uno::Sequence<
|
|
::com::sun::star::chart2::ViewLegendEntry > SAL_CALL createLegendEntries(
|
|
::com::sun::star::chart2::LegendExpansion eLegendExpansion,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::beans::XPropertySet >& xTextProperties,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::lang::XMultiServiceFactory >& xShapeFactory,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::uno::XComponentContext >& xContext
|
|
)
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
virtual ::com::sun::star::chart2::LegendSymbolStyle getLegendSymbolStyle();
|
|
virtual ::com::sun::star::uno::Any getExplicitSymbol( const VDataSeries& rSeries, sal_Int32 nPointIndex=-1/*-1 for series symbol*/ );
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > createLegendSymbolForSeries(
|
|
const VDataSeries& rSeries
|
|
, const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xTarget
|
|
, const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xShapeFactory );
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > createLegendSymbolForPoint(
|
|
const VDataSeries& rSeries
|
|
, sal_Int32 nPointIndex
|
|
, const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xTarget
|
|
, const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xShapeFactory );
|
|
|
|
virtual std::vector<
|
|
::com::sun::star::chart2::ViewLegendEntry > SAL_CALL createLegendEntriesForSeries(
|
|
const VDataSeries& rSeries,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::beans::XPropertySet >& xTextProperties,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::lang::XMultiServiceFactory >& xShapeFactory,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::uno::XComponentContext >& xContext
|
|
);
|
|
|
|
virtual std::vector<
|
|
::com::sun::star::chart2::ViewLegendEntry > SAL_CALL createLegendEntriesForChartType(
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::beans::XPropertySet >& xTextProperties,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::lang::XMultiServiceFactory >& xShapeFactory,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::uno::XComponentContext >& xContext
|
|
);
|
|
|
|
//-------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------
|
|
|
|
static VSeriesPlotter* createSeriesPlotter( const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::XChartType >& xChartTypeModel
|
|
, sal_Int32 nDimensionCount );
|
|
|
|
sal_Int32 getPointCount() const;
|
|
|
|
void setNumberFormatsSupplier( const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::util::XNumberFormatsSupplier > & xNumFmtSupplier );
|
|
void setAxesNumberFormats( const AxesNumberFormats& rAxesNumberFormats ) { m_aAxesNumberFormats = rAxesNumberFormats; };
|
|
|
|
void setColorScheme( const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::XColorScheme >& xColorScheme );
|
|
|
|
void setExplicitCategoriesProvider( const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::data::XTextualDataSequence >& xExplicitCategoriesProvider );
|
|
|
|
//get series names for the z axis labels
|
|
::com::sun::star::uno::Sequence< rtl::OUString > getSeriesNames() const;
|
|
|
|
void setPageReferenceSize( const ::com::sun::star::awt::Size & rPageRefSize );
|
|
//better performance for big data
|
|
void setCoordinateSystemResolution( const ::com::sun::star::uno::Sequence< sal_Int32 >& rCoordinateSystemResolution );
|
|
bool PointsWereSkipped() const;
|
|
|
|
//return the depth for a logic 1
|
|
double getTransformedDepth() const;
|
|
|
|
void releaseShapes();
|
|
|
|
virtual void rearrangeLabelToAvoidOverlapIfRequested( const ::com::sun::star::awt::Size& rPageSize );
|
|
|
|
//-------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------
|
|
private: //methods
|
|
//no default constructor
|
|
VSeriesPlotter();
|
|
|
|
protected: //methods
|
|
|
|
VSeriesPlotter( const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::XChartType >& xChartTypeModel
|
|
, sal_Int32 nDimensionCount
|
|
, bool bCategoryXAxis=true );
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >
|
|
getSeriesGroupShape( VDataSeries* pDataSeries
|
|
, const::com::sun::star:: uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget );
|
|
|
|
//the following group shapes will be created as children of SeriesGroupShape on demand
|
|
//they can be used to assure that some parts of a series shape are always in front of others (e.g. symbols in front of lines)
|
|
//parameter xTarget will be used as parent for the series group shape
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >
|
|
getSeriesGroupShapeFrontChild( VDataSeries* pDataSeries
|
|
, const::com::sun::star:: uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget );
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >
|
|
getSeriesGroupShapeBackChild( VDataSeries* pDataSeries
|
|
, const::com::sun::star:: uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget );
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >
|
|
getLabelsGroupShape( VDataSeries& rDataSeries
|
|
, const::com::sun::star:: uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget );
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >
|
|
getErrorBarsGroupShape( VDataSeries& rDataSeries
|
|
, const::com::sun::star:: uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget );
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >
|
|
createDataLabel( const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget
|
|
, VDataSeries& rDataSeries
|
|
, sal_Int32 nPointIndex
|
|
, double fValue
|
|
, double fSumValue
|
|
, const ::com::sun::star::awt::Point& rScreenPosition2D
|
|
, LabelAlignment eAlignment=LABEL_ALIGN_CENTER
|
|
, sal_Int32 nOffset=0 );
|
|
|
|
::rtl::OUString getLabelTextForValue( VDataSeries& rDataSeries
|
|
, sal_Int32 nPointIndex
|
|
, double fValue
|
|
, bool bAsPercentage );
|
|
|
|
/** creates two T-shaped error bars in both directions (up/down or
|
|
left/right depending on the bVertical parameter)
|
|
|
|
@param rPos
|
|
logic coordinates
|
|
|
|
@param xErrorBarProperties
|
|
the XPropertySet returned by the DataPoint-property "ErrorBarX" or
|
|
"ErrorBarY".
|
|
|
|
@param nIndex
|
|
the index of the data point in rData for which the calculation is
|
|
done.
|
|
|
|
@param bVertical
|
|
for y-error bars this is true, for x-error-bars it is false.
|
|
*/
|
|
virtual void createErrorBar(
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget
|
|
, const ::com::sun::star::drawing::Position3D & rPos
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::beans::XPropertySet > & xErrorBarProperties
|
|
, const VDataSeries& rVDataSeries
|
|
, sal_Int32 nIndex
|
|
, bool bVertical
|
|
);
|
|
|
|
virtual void createErrorBar_Y( const ::com::sun::star::drawing::Position3D& rUnscaledLogicPosition
|
|
, VDataSeries& rVDataSeries, sal_Int32 nPointIndex
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget );
|
|
|
|
virtual void createRegressionCurvesShapes( VDataSeries& rVDataSeries
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xTarget
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xEquationTarget
|
|
, bool bMaySkipPointsInRegressionCalculation );
|
|
|
|
virtual void createRegressionCurveEquationShapes( const ::rtl::OUString & rEquationCID
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::beans::XPropertySet > & xEquationProperties
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShapes >& xEquationTarget
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::XRegressionCurveCalculator > & xRegressionCurveCalculator
|
|
, ::com::sun::star::awt::Point aDefaultPos );
|
|
|
|
virtual void setMappedProperties(
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::drawing::XShape >& xTarget
|
|
, const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::beans::XPropertySet >& xSource
|
|
, const tPropertyNameMap& rMap
|
|
, tPropertyNameValueMap* pOverwriteMap=0 );
|
|
|
|
virtual PlottingPositionHelper& getPlottingPositionHelper( sal_Int32 nAxisIndex ) const;//nAxisIndex indicates wether the position belongs to the main axis ( nAxisIndex==0 ) or secondary axis ( nAxisIndex==1 )
|
|
|
|
VDataSeries* getFirstSeries() const;
|
|
|
|
protected: //member
|
|
PlottingPositionHelper* m_pMainPosHelper;
|
|
|
|
::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::XChartType > m_xChartTypeModel;
|
|
::com::sun::star::uno::Reference<
|
|
::com::sun::star::beans::XPropertySet > m_xChartTypeModelProps;
|
|
|
|
::std::vector< ::std::vector< VDataSeriesGroup > > m_aZSlots;
|
|
|
|
bool m_bCategoryXAxis;//true->xvalues are indices (this would not be necessary if series for category chart wouldn't have x-values)
|
|
|
|
::std::auto_ptr< NumberFormatterWrapper > m_apNumberFormatterWrapper;
|
|
AxesNumberFormats m_aAxesNumberFormats;//direct numberformats on axes, if empty ask the data series instead
|
|
|
|
::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::XColorScheme > m_xColorScheme;
|
|
|
|
::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::data::XTextualDataSequence > m_xExplicitCategoriesProvider;
|
|
|
|
//better performance for big data
|
|
::com::sun::star::uno::Sequence< sal_Int32 > m_aCoordinateSystemResolution;
|
|
bool m_bPointsWereSkipped;
|
|
|
|
private: //member
|
|
typedef std::map< sal_Int32 , ::com::sun::star::chart2::ExplicitScaleData > tSecondaryValueScales;
|
|
tSecondaryValueScales m_aSecondaryValueScales;
|
|
|
|
typedef std::map< sal_Int32 , PlottingPositionHelper* > tSecondaryPosHelperMap;
|
|
mutable tSecondaryPosHelperMap m_aSecondaryPosHelperMap;
|
|
::com::sun::star::awt::Size m_aPageReferenceSize;
|
|
};
|
|
|
|
//.............................................................................
|
|
} //namespace chart
|
|
//.............................................................................
|
|
#endif
|