1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: VPolarRadiusAxis.hxx,v $
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 ************************************************************************/
30 #ifndef _CHART2_VPOLARRADIUSAXIS_HXX
31 #define _CHART2_VPOLARRADIUSAXIS_HXX
33 #include "VPolarAxis.hxx"
37 //.............................................................................
40 //.............................................................................
42 //-----------------------------------------------------------------------------
48 class VPolarRadiusAxis
: public VPolarAxis
51 VPolarRadiusAxis( const AxisProperties
& rAxisProperties
52 , const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatsSupplier
>& xNumberFormatsSupplier
53 , sal_Int32 nDimensionCount
);
54 virtual ~VPolarRadiusAxis();
56 virtual void SAL_CALL
initPlotter(
57 const ::com::sun::star::uno::Reference
<
58 ::com::sun::star::drawing::XShapes
>& xLogicTarget
59 , const ::com::sun::star::uno::Reference
<
60 ::com::sun::star::drawing::XShapes
>& xFinalTarget
61 , const ::com::sun::star::uno::Reference
<
62 ::com::sun::star::lang::XMultiServiceFactory
>& xFactory
63 , const rtl::OUString
& rCID
64 ) throw (::com::sun::star::uno::RuntimeException
);
66 virtual void setTransformationSceneToScreen( const ::com::sun::star::drawing::HomogenMatrix
& rMatrix
);
68 virtual void SAL_CALL
setScales(
69 const ::com::sun::star::uno::Sequence
<
70 ::com::sun::star::chart2::ExplicitScaleData
>& rScales
71 , sal_Bool bSwapXAndYAxis
)
72 throw (::com::sun::star::uno::RuntimeException
);
74 virtual void SAL_CALL
setExplicitScaleAndIncrement(
75 const ::com::sun::star::chart2::ExplicitScaleData
& rScale
76 , const ::com::sun::star::chart2::ExplicitIncrementData
& rIncrement
)
77 throw (::com::sun::star::uno::RuntimeException
);
79 virtual void SAL_CALL
initAxisLabelProperties(
80 const ::com::sun::star::awt::Size
& rFontReferenceSize
81 , const ::com::sun::star::awt::Rectangle
& rMaximumSpaceForLabels
);
83 virtual sal_Int32
estimateMaximumAutoMainIncrementCount();
85 virtual void SAL_CALL
createMaximumLabels();
86 virtual void SAL_CALL
createLabels();
87 virtual void SAL_CALL
updatePositions();
89 virtual void SAL_CALL
createShapes();
92 virtual bool prepareShapeCreation();
95 std::auto_ptr
<VCartesianAxis
> m_apAxisWithLabels
;
98 //.............................................................................
100 //.............................................................................