merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / view / charttypes / CandleStickChart.hxx
blobca4cc9d0fcb686b381609d8b7ab9b38b3fca58bf
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: CandleStickChart.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CHART2_CANDLESTICKCHART_HXX
32 #define _CHART2_CANDLESTICKCHART_HXX
34 #include "VSeriesPlotter.hxx"
36 //.............................................................................
37 namespace chart
39 //.............................................................................
40 class BarPositionHelper;
42 class CandleStickChart : public VSeriesPlotter
44 //-------------------------------------------------------------------------
45 // public methods
46 //-------------------------------------------------------------------------
47 public:
48 CandleStickChart( const ::com::sun::star::uno::Reference<
49 ::com::sun::star::chart2::XChartType >& xChartTypeModel
50 , sal_Int32 nDimensionCount );
51 virtual ~CandleStickChart();
53 //-------------------------------------------------------------------------
54 // chart2::XPlotter
55 //-------------------------------------------------------------------------
57 virtual void SAL_CALL createShapes();
59 virtual ::rtl::OUString SAL_CALL getCoordinateSystemTypeID( ) throw (::com::sun::star::uno::RuntimeException);
60 virtual void SAL_CALL setScales( const ::com::sun::star::uno::Sequence< ::com::sun::star::chart2::ExplicitScaleData >& rScales ) throw (::com::sun::star::uno::RuntimeException);
61 virtual void SAL_CALL setTransformation( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XTransformation >& xTransformationToLogicTarget, const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XTransformation >& xTransformationToFinalPage ) throw (::com::sun::star::uno::RuntimeException);
63 virtual void addSeries( VDataSeries* pSeries, sal_Int32 zSlot = -1, sal_Int32 xSlot = -1,sal_Int32 ySlot = -1 );
65 virtual ::com::sun::star::drawing::Direction3D getPreferredDiagramAspectRatio() const;
67 //-------------------------------------------------------------------------
68 // MinimumAndMaximumSupplier
69 //-------------------------------------------------------------------------
70 virtual double getMinimumX();
71 virtual double getMaximumX();
72 virtual bool isSeperateStackingForDifferentSigns( sal_Int32 nDimensionIndex );
74 //-------------------------------------------------------------------------
76 virtual ::com::sun::star::chart2::LegendSymbolStyle getLegendSymbolStyle();
78 //-------------------------------------------------------------------------
79 //-------------------------------------------------------------------------
80 //-------------------------------------------------------------------------
82 private: //methods
83 //no default constructor
84 CandleStickChart();
86 private: //member
87 BarPositionHelper* m_pMainPosHelper;
89 //.............................................................................
90 } //namespace chart
91 //.............................................................................
92 #endif