summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/chart
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2010-11-24 11:32:32 +0100
committerThomas Benisch <tbe@openoffice.org>2010-11-24 11:32:32 +0100
commitb0386b57360965453007a0c1165aa5b1f68f1076 (patch)
tree7e111a40ec97b5f17eb787abc734fb60a6f9fe4b /oox/source/drawingml/chart
parent4d9490fbac574c9a9159d0d26542a38507a1e920 (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.cxx11
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 );
}
}