diff options
author | Thomas Benisch <tbe@openoffice.org> | 2010-11-09 17:27:08 +0100 |
---|---|---|
committer | Thomas Benisch <tbe@openoffice.org> | 2010-11-09 17:27:08 +0100 |
commit | 9d38207079222ccbf991f2177ac3ff483a2d60e3 (patch) | |
tree | aa3cba45d4efe0781eea984e15a714f8a9823cba /sd/source/ui/view/sdview3.cxx | |
parent | 650b5147051166d400bc5278c0a74e55505fd59e (diff) |
chartextensibility: #i113619# Pasting a chart into a spreadsheet is not notified
Diffstat (limited to 'sd/source/ui/view/sdview3.cxx')
-rwxr-xr-x[-rw-r--r--] | sd/source/ui/view/sdview3.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx index 53c0d3636d82..fd709dc22038 100644..100755 --- a/sd/source/ui/view/sdview3.cxx +++ b/sd/source/ui/view/sdview3.cxx @@ -1006,6 +1006,27 @@ BOOL View::InsertData( const TransferableDataHelper& rDataHelper, if( pImageMap ) pObj->InsertUserData( new SdIMapInfo( *pImageMap ) ); + if ( pObj && pObj->IsChart() ) + { + bool bDisableDataTableDialog = false; + svt::EmbeddedObjectRef::TryRunningState( xObj ); + uno::Reference< beans::XPropertySet > xProps( xObj->getComponent(), uno::UNO_QUERY ); + if ( xProps.is() && + ( xProps->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DisableDataTableDialog" ) ) ) >>= bDisableDataTableDialog ) && + bDisableDataTableDialog ) + { + xProps->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DisableDataTableDialog" ) ), + uno::makeAny( sal_False ) ); + xProps->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DisableComplexChartTypes" ) ), + uno::makeAny( sal_False ) ); + uno::Reference< util::XModifiable > xModifiable( xProps, uno::UNO_QUERY ); + if ( xModifiable.is() ) + { + xModifiable->setModified( sal_True ); + } + } + } + bReturn = TRUE; } } |