From ede0d237414fb7e3d654b847e228cf8d9ed1bb1c Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Thu, 15 May 2008 07:25:09 +0000 Subject: [PATCH] INTEGRATION: CWS chart26_DEV300 (1.11.20.1.6); FILE MERGED 2008/04/09 08:15:44 iha 1.11.20.1.6.3: #i72994# simpler access to 3D settings 2008/04/08 15:57:35 iha 1.11.20.1.6.2: #i72994# simpler access to 3D settings 2008/04/07 15:59:21 iha 1.11.20.1.6.1: #i72994# simpler access to 3D settings - joined from CWS xmlfilter04 --- .../chartapiwrapper/DiagramWrapper.cxx | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx index 688b5e667e36..bffd0177aaee 100644 --- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DiagramWrapper.cxx,v $ - * $Revision: 1.16 $ + * $Revision: 1.17 $ * * This file is part of OpenOffice.org. * @@ -1063,6 +1063,31 @@ Reference< return m_xFloor; } +// ____ X3DDefaultSetter ____ +void SAL_CALL DiagramWrapper::set3DSettingsToDefault() + throw (uno::RuntimeException) +{ + Reference< X3DDefaultSetter > x3DDefaultSetter( m_spChart2ModelContact->getChart2Diagram(), uno::UNO_QUERY ); + if( x3DDefaultSetter.is() ) + x3DDefaultSetter->set3DSettingsToDefault(); +} + +void SAL_CALL DiagramWrapper::setDefaultRotation() + throw (uno::RuntimeException) +{ + Reference< X3DDefaultSetter > x3DDefaultSetter( m_spChart2ModelContact->getChart2Diagram(), uno::UNO_QUERY ); + if( x3DDefaultSetter.is() ) + x3DDefaultSetter->setDefaultRotation(); +} + +void SAL_CALL DiagramWrapper::setDefaultIllumination() + throw (uno::RuntimeException) +{ + Reference< X3DDefaultSetter > x3DDefaultSetter( m_spChart2ModelContact->getChart2Diagram(), uno::UNO_QUERY ); + if( x3DDefaultSetter.is() ) + x3DDefaultSetter->setDefaultIllumination(); +} + // ____ XComponent ____ void SAL_CALL DiagramWrapper::dispose() throw (uno::RuntimeException)