bump product version to 4.1.6.2
[LibreOffice.git] / chart2 / source / view / charttypes / BubbleChart.hxx
blob23b34edc269ef0ea326d937f318b8ee388bb2f03
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 #ifndef _CHART2_BUBBLECHART_HXX
20 #define _CHART2_BUBBLECHART_HXX
22 #include "VSeriesPlotter.hxx"
23 #include <com/sun/star/drawing/Direction3D.hpp>
25 //.............................................................................
26 namespace chart
28 //.............................................................................
30 class BubbleChart : public VSeriesPlotter
32 //-------------------------------------------------------------------------
33 // public methods
34 //-------------------------------------------------------------------------
35 public:
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 );
45 //-------------------
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 //-------------------------------------------------------------------------
61 private: //methods
62 //no default constructor
63 BubbleChart();
65 void calculateMaximumLogicBubbleSize();
66 void calculateBubbleSizeScalingFactor();
68 com::sun::star::drawing::Direction3D transformToScreenBubbleSize( double fLogicSize );
70 private: //member
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 //.............................................................................
80 } //namespace chart
81 //.............................................................................
82 #endif
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */