diff options
author | Thomas Benisch <tbe@openoffice.org> | 2010-11-24 11:32:32 +0100 |
---|---|---|
committer | Thomas Benisch <tbe@openoffice.org> | 2010-11-24 11:32:32 +0100 |
commit | b0386b57360965453007a0c1165aa5b1f68f1076 (patch) | |
tree | 7e111a40ec97b5f17eb787abc734fb60a6f9fe4b /oox/source/drawingml/chart | |
parent | 4d9490fbac574c9a9159d0d26542a38507a1e920 (diff) |
chartextensibility: #i113619# Pasting a chart into a spreadsheet is not notified
Diffstat (limited to 'oox/source/drawingml/chart')
-rw-r--r-- | oox/source/drawingml/chart/chartspaceconverter.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/oox/source/drawingml/chart/chartspaceconverter.cxx b/oox/source/drawingml/chart/chartspaceconverter.cxx index 414ad31cc65f..a4ec67b4c1f5 100644 --- a/oox/source/drawingml/chart/chartspaceconverter.cxx +++ b/oox/source/drawingml/chart/chartspaceconverter.cxx @@ -203,14 +203,11 @@ void ChartSpaceConverter::convertFromModel( const Reference< XShapes >& rxExtern } // pivot chart - if ( mrModel.mbPivotChart ) try - { - Reference< XPropertySet > xProps( getChartDocument(), UNO_QUERY_THROW ); - xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DisableDataTableDialog" ) ), makeAny( sal_True ) ); - xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DisableComplexChartTypes" ) ), makeAny( sal_True ) ); - } - catch ( Exception& ) + if ( mrModel.mbPivotChart ) { + PropertySet aProps( getChartDocument() ); + aProps.setProperty( PROP_DisableDataTableDialog , true ); + aProps.setProperty( PROP_DisableComplexChartTypes , true ); } } |