From 55ff43138724a1c68950b252e87c75cfa0129415 Mon Sep 17 00:00:00 2001
From: Vladimir Glazounov <vg@openoffice.org>
Date: Thu, 15 May 2008 07:02:13 +0000
Subject: INTEGRATION: CWS chart26_DEV300 (1.5.20); FILE MERGED 2008/04/09
 08:18:32 iha 1.5.20.2: #i72994# simpler access to 3D settings 2008/04/08
 16:02:31 iha 1.5.20.1: #i72994# simpler access to 3D settings

---
 chart2/source/controller/main/ChartController_Tools.cxx | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

(limited to 'chart2')

diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx
index efe44a86d57c..501f9c7cd92f 100644
--- a/chart2/source/controller/main/ChartController_Tools.cxx
+++ b/chart2/source/controller/main/ChartController_Tools.cxx
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: ChartController_Tools.cxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -303,13 +303,7 @@ void ChartController::executeDispatch_NewArrangement()
             xState->setPropertyToDefault( C2U("RelativePosition"));
 
             // 3d rotation
-            xState->setPropertyToDefault( C2U("D3DTransformMatrix"));
-            xState->setPropertyToDefault( C2U("D3DSceneDistance"));
-            xState->setPropertyToDefault( C2U("D3DSceneFocalLength"));
-            Reference< beans::XPropertySet > xDiaProp( xDiagram, uno::UNO_QUERY_THROW );
-            drawing::CameraGeometry aCameraGeo( ThreeDHelper::getDefaultCameraGeometry());
-            xDiaProp->setPropertyValue( C2U("D3DCameraGeometry"), uno::makeAny( aCameraGeo ));
-            //todo: different defaults for pie and donut; todo ask template
+            ThreeDHelper::set3DSettingsToDefault( uno::Reference< beans::XPropertySet >( xDiagram, uno::UNO_QUERY ) );
 
             // legend
             Reference< beans::XPropertyState > xLegendState( xDiagram->getLegend(), uno::UNO_QUERY );
-- 
cgit