fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / view / inc / PolarLabelPositionHelper.hxx
blobcb7ae63ad887b46f1652e2834e258b52eab9bb4c
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 INCLUDED_CHART2_SOURCE_VIEW_INC_POLARLABELPOSITIONHELPER_HXX
21 #define INCLUDED_CHART2_SOURCE_VIEW_INC_POLARLABELPOSITIONHELPER_HXX
23 #include "LabelPositionHelper.hxx"
24 #include <com/sun/star/awt/Point.hpp>
25 #include <com/sun/star/drawing/Position3D.hpp>
27 namespace chart
30 /**
32 class PolarPlottingPositionHelper;
34 class PolarLabelPositionHelper : public LabelPositionHelper
36 public:
37 PolarLabelPositionHelper(
38 PolarPlottingPositionHelper* pPosHelper
39 , sal_Int32 nDimensionCount
40 , const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xLogicTarget
41 , AbstractShapeFactory* pShapeFactory );
42 virtual ~PolarLabelPositionHelper();
44 ::com::sun::star::awt::Point getLabelScreenPositionAndAlignmentForLogicValues(
45 LabelAlignment& rAlignment
46 , double fLogicValueOnAngleAxis
47 , double fLogicValueOnRadiusAxis
48 , double fLogicZ
49 , sal_Int32 nScreenValueOffsetInRadiusDirection=0 ) const;
51 /** Calculate the anchor point position for a text label.
52 * When the requested label placement is of `INSIDE` or `OUTSIDE` type the
53 * returned anchor point for the text label is the middle point of the
54 * outer arc for the given slice; when the requested label placement is of
55 * `CENTER` type the returned anchor point for the text label is the
56 * middle point of the line segment bisecting the slice.
57 * The text alignment is always centered when the requested label
58 * placement is of `CENTER` type else it is dependent on the value of the
59 * angle defined by the horizontal axis and the ray bisecting the slice.
62 ::com::sun::star::awt::Point getLabelScreenPositionAndAlignmentForUnitCircleValues(
63 LabelAlignment& rAlignment, sal_Int32 nLabelPlacement /*see ::com::sun::star::chart::DataLabelPlacement*/
64 , double fUnitCircleStartAngleDegree, double fUnitCircleWidthAngleDegree
65 , double fUnitCircleInnerRadius, double fUnitCircleOuterRadius
66 , double fLogicZ
67 , sal_Int32 nScreenValueOffsetInRadiusDirection=0 ) const;
69 private:
70 PolarPlottingPositionHelper* m_pPosHelper;
73 } //namespace chart
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */