diff options
author | Christian Lippka <christian.lippka@sun.com> | 2009-11-16 15:03:54 +0100 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2009-11-16 15:03:54 +0100 |
commit | 2b926e382b97914720e1974de27067b270d25ed0 (patch) | |
tree | fb3835a5389597afac472a23abed51828ce49fd1 /xmloff | |
parent | e92917d1bc75f095222ec757f0006b8ef6883a9b (diff) |
#i82435# enable drop of image link embedded
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 65aad96bad86..c4c86abb7eef 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -2994,7 +2994,18 @@ void SdXMLPluginShapeContext::EndElement() else { // in case we have a media object - xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "MediaURL" ) ), uno::makeAny( maHref ) ); + + OUString sTempRef; + + // check for package URL + if( GetImport().IsPackageURL( maHref ) ) + { + sTempRef = OUString( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.Package:" ) ); + } + + sTempRef += maHref; + + xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "MediaURL" ) ), uno::makeAny( sTempRef ) ); for( sal_Int32 nParam = 0; nParam < maParams.getLength(); ++nParam ) { |