summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ThreeDHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/ThreeDHelper.cxx')
-rw-r--r--chart2/source/tools/ThreeDHelper.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/chart2/source/tools/ThreeDHelper.cxx b/chart2/source/tools/ThreeDHelper.cxx
index 38c4adf59509..9ac262c15f2e 100644
--- a/chart2/source/tools/ThreeDHelper.cxx
+++ b/chart2/source/tools/ThreeDHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,7 +70,7 @@ bool lcl_isRightAngledAxesSetAndSupported( const Reference< beans::XPropertySet
if(bRightAngledAxes)
{
uno::Reference< chart2::XDiagram > xDiagram( xSceneProperties, uno::UNO_QUERY );
- if( ChartTypeHelper::isSupportingRightAngledAxes(
+ if( ChartTypeHelper::isSupportingRightAngledAxes(
DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) ) )
{
return true;
@@ -168,7 +168,7 @@ bool lcl_isLightScheme( const uno::Reference< beans::XPropertySet >& xDiagramPro
return false;
uno::Reference< chart2::XDiagram > xDiagram( xDiagramProps, uno::UNO_QUERY );
- uno::Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
+ uno::Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
sal_Int32 nColor = 0;
xDiagramProps->getPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTCOLOR_2 ) ) >>= nColor;
@@ -193,7 +193,7 @@ bool lcl_isLightScheme( const uno::Reference< beans::XPropertySet >& xDiagramPro
xDiagramProps->getPropertyValue( C2U("RightAngledAxes")) >>= bRightAngledAxes;
if(!bRightAngledAxes)
{
- if( ChartTypeHelper::isSupportingRightAngledAxes(
+ if( ChartTypeHelper::isSupportingRightAngledAxes(
DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) ) )
{
::basegfx::B3DHomMatrix aRotation( lcl_getCompleteRotationMatrix( xDiagramProps ) );
@@ -278,7 +278,7 @@ bool lcl_isSimpleScheme( drawing::ShadeMode aShadeMode
return false;
if(nObjectLines==0)
{
- uno::Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
+ uno::Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
return ChartTypeHelper::noBordersForSimpleScheme( xChartType );
}
if(nObjectLines!=1)
@@ -303,7 +303,7 @@ void lcl_setSimpleScheme( drawing::ShadeMode& rShadeMode
rShadeMode = drawing::ShadeMode_FLAT;
rnRoundedEdges = 0;
- uno::Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
+ uno::Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
rnObjectLines = ChartTypeHelper::noBordersForSimpleScheme( xChartType ) ? 0 : 1;
}
@@ -440,7 +440,7 @@ void ThreeDHelper::convertElevationRotationDegToXYZAngleRad(
double E = F_PI*nElevationDeg/180; //elevation in Rad
double R = F_PI*nRotationDeg/180; //rotation in Rad
-
+
if( (nRotationDeg == 0 || nRotationDeg == 180 )
&& ( nElevationDeg == 90 || nElevationDeg == 270 ) )
{
@@ -527,7 +527,7 @@ void ThreeDHelper::convertElevationRotationDegToXYZAngleRad(
x = E;
y = R;
double f23 = cos(R)*sin(E);
- if( (f23 * sin(x)) < 0.0 )
+ if( (f23 * sin(x)) < 0.0 )
x *= -1.0; //todo ??
}
else if (nRotationDeg == 90 || nRotationDeg == 270)
@@ -561,7 +561,7 @@ void ThreeDHelper::convertElevationRotationDegToXYZAngleRad(
double cy = cos(R)/cos(z);
lcl_ensureIntervalMinus1To1(cy);
y = acos(cy);
-
+
//element 12 in 23
double fDenominator = cos(z)*(1.0-pow(sin(y),2));
if(fDenominator==0.0)
@@ -619,7 +619,7 @@ void ThreeDHelper::convertXYZAngleRadToElevationRotationDeg(
double& x = fXRad;
double& y = fYRad;
double& z = fZRad;
-
+
double f11 = cos(y)*cos(z);
if( lcl_isSinZero(y) )
@@ -702,7 +702,7 @@ void ThreeDHelper::convertXYZAngleRadToElevationRotationDeg(
}
else if( lcl_isSinZero(z) )
{
- //sinY==0 sinZ==0 sinx!=0 cosx!=0
+ //sinY==0 sinZ==0 sinx!=0 cosx!=0
//element 13+11
if( f11 > 0 )
R = 0.0;
@@ -802,7 +802,7 @@ void ThreeDHelper::convertXYZAngleRadToElevationRotationDeg(
//cosY!=0 sinY!=0 sinX=0 sinZ!=0 cosZ!=0
double f13 = cos(x)*cos(z)*sin(y);
R = atan( f13/f11 );
-
+
if( f11<0 )
R+=F_PI;
@@ -902,7 +902,7 @@ void ThreeDHelper::convertXYZAngleRadToElevationRotationDeg(
if(f22<0.0)
E+=F_PI;
}
-
+
rnElevationDeg = ::basegfx::fround( BaseGFXHelper::Rad2Deg( E ) );
rnRotationDeg = ::basegfx::fround( BaseGFXHelper::Rad2Deg( R ) );
}
@@ -1025,7 +1025,7 @@ void ThreeDHelper::setRotationAngleToDiagram(
{
//remind old rotation for adaption of light directions
::basegfx::B3DHomMatrix aInverseOldRotation( lcl_getInverseRotationMatrix( xSceneProperties ) );
-
+
::basegfx::B3DHomMatrix aInverseCameraRotation;
{
::basegfx::B3DTuple aR( BaseGFXHelper::GetRotationFromMatrix(
@@ -1050,7 +1050,7 @@ void ThreeDHelper::setRotationAngleToDiagram(
sal_Bool bRightAngledAxes = sal_False;
xSceneProperties->getPropertyValue( C2U("RightAngledAxes")) >>= bRightAngledAxes;
uno::Reference< chart2::XDiagram > xDiagram( xSceneProperties, uno::UNO_QUERY );
- if(!bRightAngledAxes || !ChartTypeHelper::isSupportingRightAngledAxes(
+ if(!bRightAngledAxes || !ChartTypeHelper::isSupportingRightAngledAxes(
DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) ) )
{
::basegfx::B3DHomMatrix aNewRotation;
@@ -1415,7 +1415,7 @@ void ThreeDHelper::getRoundedEdgesAndObjectLines(
nCurrentRoundedEdges = -1;
}
}
-
+
if( !bDifferentObjectLines )
{
drawing::LineStyle aCurrentLineStyle;