summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-02-12 15:14:24 +0200
committerTor Lillqvist <tml@collabora.com>2019-02-12 15:30:41 +0200
commit14eea8a7ad790a96e070247d7561eb42febdf6f8 (patch)
tree6d2b57f043671df799c01b086f44e9a22b212e28 /oox
parent204c5d1746c0afc145f9b54b68c4a099f9f0e2bf (diff)
Fix build without HAVE_FEATURE_AVMEDIA (iOS at least)
Change-Id: I72d7c7478eba13db93cb88b86e911163c38b312b
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ppt/soundactioncontext.cxx4
-rw-r--r--oox/source/ppt/timetargetelementcontext.cxx7
2 files changed, 10 insertions, 1 deletions
diff --git a/oox/source/ppt/soundactioncontext.cxx b/oox/source/ppt/soundactioncontext.cxx
index 51b2c771867c..33f250a89d84 100644
--- a/oox/source/ppt/soundactioncontext.cxx
+++ b/oox/source/ppt/soundactioncontext.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include <oox/ppt/soundactioncontext.hxx>
#include <cppuhelper/exc_hlp.hxx>
@@ -56,6 +58,7 @@ namespace oox { namespace ppt {
if( mbHasStartSound )
{
OUString url;
+#if HAVE_FEATURE_AVMEDIA
if ( !msSndName.isEmpty() )
{
Reference<css::io::XInputStream>
@@ -66,6 +69,7 @@ namespace oox { namespace ppt {
xInputStream->closeInput();
}
}
+#endif
if ( !url.isEmpty() )
{
maSlideProperties.setProperty( PROP_Sound, url);
diff --git a/oox/source/ppt/timetargetelementcontext.cxx b/oox/source/ppt/timetargetelementcontext.cxx
index 0f17e4bf5be5..43f10ee05df9 100644
--- a/oox/source/ppt/timetargetelementcontext.cxx
+++ b/oox/source/ppt/timetargetelementcontext.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include "timetargetelementcontext.hxx"
#include <cppuhelper/exc_hlp.hxx>
@@ -125,8 +127,10 @@ namespace oox { namespace ppt {
return this;
case PPT_TOKEN( sndTgt ):
{
- OUString srcFile = drawingml::getEmbeddedWAVAudioFile(getRelations(), rAttribs);
mpTarget->mnType = XML_sndTgt;
+
+#if HAVE_FEATURE_AVMEDIA
+ OUString srcFile = drawingml::getEmbeddedWAVAudioFile(getRelations(), rAttribs);
Reference<css::io::XInputStream>
xInputStream = getFilter().openInputStream(srcFile);
@@ -135,6 +139,7 @@ namespace oox { namespace ppt {
::avmedia::EmbedMedia(getFilter().getModel(), srcFile, mpTarget->msValue, xInputStream);
xInputStream->closeInput();
}
+#endif
break;
}
case PPT_TOKEN( spTgt ):