diff options
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/ppt/soundactioncontext.cxx | 4 | ||||
-rw-r--r-- | oox/source/ppt/timetargetelementcontext.cxx | 7 |
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 ): |