1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #ifndef _CHART2_BUBBLECHART_HXX
20 #define _CHART2_BUBBLECHART_HXX
22 #include "VSeriesPlotter.hxx"
23 #include <com/sun/star/drawing/Direction3D.hpp>
25 //.............................................................................
28 //.............................................................................
30 class BubbleChart
: public VSeriesPlotter
32 //-------------------------------------------------------------------------
34 //-------------------------------------------------------------------------
36 BubbleChart( const ::com::sun::star::uno::Reference
<
37 ::com::sun::star::chart2::XChartType
>& xChartTypeModel
38 , sal_Int32 nDimensionCount
);
39 virtual ~BubbleChart();
41 virtual void createShapes();
43 virtual void addSeries( VDataSeries
* pSeries
, sal_Int32 zSlot
= -1, sal_Int32 xSlot
= -1,sal_Int32 ySlot
= -1 );
46 virtual ::com::sun::star::drawing::Direction3D
getPreferredDiagramAspectRatio() const;
48 //-------------------------------------------------------------------------
49 // MinimumAndMaximumSupplier
50 //-------------------------------------------------------------------------
51 virtual bool isExpandIfValuesCloseToBorder( sal_Int32 nDimensionIndex
);
52 virtual bool isSeparateStackingForDifferentSigns( sal_Int32 nDimensionIndex
);
54 //-------------------------------------------------------------------------
56 virtual LegendSymbolStyle
getLegendSymbolStyle();
58 //-------------------------------------------------------------------------
59 //-------------------------------------------------------------------------
60 //-------------------------------------------------------------------------
62 //no default constructor
65 void calculateMaximumLogicBubbleSize();
66 void calculateBubbleSizeScalingFactor();
68 com::sun::star::drawing::Direction3D
transformToScreenBubbleSize( double fLogicSize
);
72 bool m_bShowNegativeValues
;//input parameter
73 bool m_bBubbleSizeAsArea
;//input parameter
74 double m_fBubbleSizeScaling
;//input parameter
76 double m_fMaxLogicBubbleSize
;//calculated values
77 double m_fBubbleSizeFactorToScreen
;//calculated values
79 //.............................................................................
81 //.............................................................................
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */