summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/animationimport.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-11-11 12:27:46 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-11-11 12:38:54 +0000
commit518e1999c4a77e6a8fb7ddf02568461d0343bb9a (patch)
treece881743a4c1878065e6089ff68e99df21b31b05 /xmloff/source/draw/animationimport.cxx
parenta7e469a286d73440479393f33c05797621d553e8 (diff)
tdf#67544 Embed slide transition sound in the presentation
This is only the filter part, UI is still missing Change-Id: Ic2ee0196c6b501abb244397cb14bb70626b45ae8 Reviewed-on: https://gerrit.libreoffice.org/30772 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmloff/source/draw/animationimport.cxx')
-rw-r--r--xmloff/source/draw/animationimport.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx
index 13e67c357b80..2b350ef379f0 100644
--- a/xmloff/source/draw/animationimport.cxx
+++ b/xmloff/source/draw/animationimport.cxx
@@ -101,6 +101,15 @@ OUString SAL_CALL AnimationsImport_getImplementationName() throw()
return OUString( "xmloff::AnimationsImport" );
}
+static ::rtl::OUString
+lcl_GetMediaReference(SvXMLImport const& rImport, ::rtl::OUString const& rURL)
+{
+ if (rImport.IsPackageURL(rURL))
+ return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.Package:")) + rURL;
+
+ return rImport.GetAbsoluteReference(rURL);
+}
+
namespace xmloff
{
@@ -860,7 +869,7 @@ void AnimationNodeContext::init_node( const css::uno::Reference< css::xml::sax:
if( nNodeType == AnimationNodeType::AUDIO )
{
Reference< XAudio > xAudio( mxNode, UNO_QUERY_THROW );
- xAudio->setSource( makeAny( GetImport().GetAbsoluteReference( rValue ) ) );
+ xAudio->setSource( makeAny(lcl_GetMediaReference(GetImport(), rValue)) );
break;
}
SAL_FALLTHROUGH;