summaryrefslogtreecommitdiff
path: root/chart2/source/inc/ThreeDHelper.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-01-25 20:17:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-25 20:23:08 +0100
commit39f452953e12e24350e7a3740129fa4930aedfca (patch)
tree4561622298ab522d07b87f404b565ae271273656 /chart2/source/inc/ThreeDHelper.hxx
parentd1207a5f3a573dbe39a7874931ce373e5c88628d (diff)
use more concrete types in chart2, Diagram
Change-Id: I40cd39d0878dc56e4e86e05149c9744cb563d745 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128942 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/inc/ThreeDHelper.hxx')
-rw-r--r--chart2/source/inc/ThreeDHelper.hxx34
1 files changed, 18 insertions, 16 deletions
diff --git a/chart2/source/inc/ThreeDHelper.hxx b/chart2/source/inc/ThreeDHelper.hxx
index 93b1c995f388..b5edf986c26d 100644
--- a/chart2/source/inc/ThreeDHelper.hxx
+++ b/chart2/source/inc/ThreeDHelper.hxx
@@ -20,6 +20,7 @@
#pragma once
#include <com/sun/star/drawing/CameraGeometry.hpp>
+#include <rtl/ref.hxx>
#include "charttoolsdllapi.hxx"
namespace com::sun::star::beans { class XPropertySet; }
@@ -27,6 +28,7 @@ namespace com::sun::star::chart2 { class XDiagram; }
namespace chart
{
+class Diagram;
enum class ThreeDLookScheme
{
@@ -61,14 +63,14 @@ public:
const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties
, double& rfXAngleRad, double& rfYAngleRad, double& rfZAngleRad );
static void setRotationAngleToDiagram(
- const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties
+ const rtl::Reference< ::chart::Diagram >& xSceneProperties
, double fXAngleRad, double fYAngleRad, double fZAngleRad );
static void getRotationFromDiagram(
- const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties
+ const rtl::Reference< ::chart::Diagram >& xSceneProperties
, sal_Int32& rnHorizontalAngleDegree, sal_Int32& rnVerticalAngleDegree );
static void setRotationToDiagram(
- const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties
+ const rtl::Reference< ::chart::Diagram >& xSceneProperties
, sal_Int32 nHorizontalAngleDegree, sal_Int32 nVerticalYAngleDegree );
static void switchRightAngledAxes( const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties
@@ -99,29 +101,29 @@ public:
static double CameraDistanceToPerspective( double fCameraDistance );
static double PerspectiveToCameraDistance( double fPerspective );
- static void set3DSettingsToDefault( const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties );
- static void setDefaultRotation( const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties );
- static void setDefaultIllumination( const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties );
+ static void set3DSettingsToDefault( const rtl::Reference< ::chart::Diagram >& xSceneProperties );
+ static void setDefaultRotation( const rtl::Reference< ::chart::Diagram >& xDiagram );
+ static void setDefaultIllumination( const rtl::Reference< ::chart::Diagram >& xDiagram );
static void setDefaultRotation( const css::uno::Reference< css::beans::XPropertySet >& xSceneProperties, bool bPieOrDonut );
- static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardLeftWall( const css::uno::Reference<
- css::beans::XPropertySet >& xSceneProperties );
- static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBackWall(const css::uno::Reference<
- css::beans::XPropertySet >& xSceneProperties );
- static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBottom(const css::uno::Reference<
- css::beans::XPropertySet >& xSceneProperties );
+ static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardLeftWall( const rtl::Reference<
+ ::chart::Diagram >& xDiagram );
+ static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBackWall(const rtl::Reference<
+ ::chart::Diagram >& xDiagram );
+ static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBottom(const rtl::Reference<
+ ::chart::Diagram >& xDiagram );
- static ThreeDLookScheme detectScheme( const css::uno::Reference< css::chart2::XDiagram >& xDiagram );
- static void setScheme( const css::uno::Reference< css::chart2::XDiagram >& xDiagram
+ static ThreeDLookScheme detectScheme( const rtl::Reference< ::chart::Diagram >& xDiagram );
+ static void setScheme( const rtl::Reference< ::chart::Diagram >& xDiagram
, ThreeDLookScheme aScheme );
//sal_Int32 nRoundedEdges: <0 or >100 -> mixed state
//sal_Int32 nObjectLines: 0->no lines; 1->all lines on; other->mixed state
- static void getRoundedEdgesAndObjectLines( const css::uno::Reference< css::chart2::XDiagram >& xDiagram
+ static void getRoundedEdgesAndObjectLines( const rtl::Reference< ::chart::Diagram >& xDiagram
, sal_Int32& rnRoundedEdges, sal_Int32& rnObjectLines );
- static void setRoundedEdgesAndObjectLines( const css::uno::Reference< css::chart2::XDiagram >& xDiagram
+ static void setRoundedEdgesAndObjectLines( const rtl::Reference< ::chart::Diagram >& xDiagram
, sal_Int32 nRoundedEdges, sal_Int32 nObjectLines );
};