Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / chart2 / source / view / inc / PolarLabelPositionHelper.hxx
blob7ffa3b1628ecbde4ced5fd8f4645473bae36b238
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 .
20 #ifndef _CHART2_VIEW_POLARLABELPOSITIONHELPER_HXX
21 #define _CHART2_VIEW_POLARLABELPOSITIONHELPER_HXX
23 #include "LabelPositionHelper.hxx"
24 #include <com/sun/star/awt/Point.hpp>
25 #include <com/sun/star/drawing/Position3D.hpp>
27 //.............................................................................
28 namespace chart
30 //.............................................................................
32 //-----------------------------------------------------------------------------
33 /**
35 class PolarPlottingPositionHelper;
37 class PolarLabelPositionHelper : public LabelPositionHelper
39 public:
40 PolarLabelPositionHelper(
41 PolarPlottingPositionHelper* pPosHelper
42 , sal_Int32 nDimensionCount
43 , const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xLogicTarget
44 , ShapeFactory* pShapeFactory );
45 virtual ~PolarLabelPositionHelper();
47 ::com::sun::star::awt::Point getLabelScreenPositionAndAlignmentForLogicValues(
48 LabelAlignment& rAlignment
49 , double fLogicValueOnAngleAxis
50 , double fLogicValueOnRadiusAxis
51 , double fLogicZ
52 , sal_Int32 nScreenValueOffsetInRadiusDirection=0 ) const;
54 ::com::sun::star::awt::Point getLabelScreenPositionAndAlignmentForUnitCircleValues(
55 LabelAlignment& rAlignment, sal_Int32 nLabelPlacement /*see ::com::sun::star::chart::DataLabelPlacement*/
56 , double fUnitCircleStartAngleDegree, double fUnitCircleWidthAngleDegree
57 , double fUnitCircleInnerRadius, double fUnitCircleOuterRadius
58 , double fLogicZ
59 , sal_Int32 nScreenValueOffsetInRadiusDirection=0 ) const;
61 private:
62 PolarPlottingPositionHelper* m_pPosHelper;
65 //.............................................................................
66 } //namespace chart
67 //.............................................................................
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */