summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-06-11 13:53:54 +0000
committerOliver Bolte <obo@openoffice.org>2007-06-11 13:53:54 +0000
commit2ff1088577fa4e5f924ed42c43698175afc3201c (patch)
tree4859fe2869aea2b38b606c01c2372e62ad2379f7 /sd
parent147fc587311f6c5fc2298e01db3b0e9bc65a100e (diff)
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)
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuinsert.cxx34
1 files changed, 3 insertions, 31 deletions
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 );
}
}
}