Kaydet (Commit) 9f89fce1 authored tarafından jan Iversen's avatar jan Iversen

oox, implement HAVE_FEATURE_AVMEDIA

iOS does not support avmedia, therefore HAVE_FEATURE_AVMEDIA
is set, however not all sources test for it.

Change-Id: Ia58fb8d7ab524b9763fd9fa3a7d3fa111cb85bb4
üst d495eccd
......@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <config_features.h>
#include <config_folders.h>
#include "rtl/bootstrap.hxx"
#include "oox/core/xmlfilterbase.hxx"
......@@ -968,7 +970,11 @@ void DrawingML::WriteMediaNonVisualProperties(const css::uno::Reference<css::dra
bool bEmbed = rURL.startsWith("vnd.sun.star.Package:");
// mime type
#if HAVE_FEATURE_AVMEDIA
OUString aMimeType(pMediaObj->getMediaProperties().getMimeType());
#else
OUString aMimeType("none");
#endif
if (aMimeType == "application/vnd.sun.star.media")
{
// try to set something better
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment