From 2ff1088577fa4e5f924ed42c43698175afc3201c Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Mon, 11 Jun 2007 13:53:54 +0000 Subject: INTEGRATION: CWS chart05 (1.45.12); FILE MERGED 2007/05/30 08:17:19 bm 1.45.12.1: #i77917# consolidate setting defaults for charts in one method of the view shell, also set the border to none (changed default) --- sd/source/ui/func/fuinsert.cxx | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx index c77c8ee1e440..05e2b8fd37d6 100644 --- a/sd/source/ui/func/fuinsert.cxx +++ b/sd/source/ui/func/fuinsert.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fuinsert.cxx,v $ * - * $Revision: 1.45 $ + * $Revision: 1.46 $ * - * last change: $Author: vg $ $Date: 2007-05-22 16:13:37 $ + * last change: $Author: obo $ $Date: 2007-06-11 14:53:54 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -156,34 +156,6 @@ using namespace com::sun::star; -namespace -{ -void lcl_setTransparentBackgroundAtChart( - const uno::Reference < embed::XEmbeddedObject > & xEmbObj ) -{ - if( xEmbObj.is()) - { - uno::Reference< chart2::XChartDocument > xChartDoc( xEmbObj->getComponent(), uno::UNO_QUERY ); - OSL_ENSURE( xChartDoc.is(), "Trying to set chart property to non-chart OLE" ); - if( !xChartDoc.is()) - return; - - try - { - uno::Reference< beans::XPropertySet > xPageProp( xChartDoc->getPageBackground()); - if( xPageProp.is()) - xPageProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("FillStyle")), - uno::makeAny( drawing::FillStyle_NONE )); - } - catch( const uno::Exception & ) - { - OSL_ENSURE( false, "Exception caught in lcl_setTransparentBackgroundAtChart" ); - } - } -} - -} // anonymous namespace - namespace sd { TYPEINIT1( FuInsertGraphic, FuPoor ); @@ -468,7 +440,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) // note, that this call modified the chart model which // results in a change notification. So call this after // everything else is finished. - lcl_setTransparentBackgroundAtChart( xObj ); + mpViewShell->AdaptDefaultsForChart( xObj ); } } } -- cgit v1.2.3