tdf#113696 Add mimetype also to fallback graphic
Change-Id: I6eb7bb66aa688b5668d0eacd2ec7131bec2b6955 Reviewed-on: https://gerrit.libreoffice.org/45585 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
parent
3c7b177978
commit
f20ba8466b
1 changed files with 8 additions and 0 deletions
|
@ -2393,6 +2393,14 @@ void XMLShapeExport::ImpExportGraphicObjectShape(
|
|||
mrExport.AddAttribute(XML_NAMESPACE_XLINK, XML_SHOW, XML_EMBED );
|
||||
mrExport.AddAttribute(XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONLOAD );
|
||||
}
|
||||
|
||||
uno::Reference<io::XInputStream> xInputStream(
|
||||
mrExport.GetEmbeddedGraphicObjectStream(aReplacementUrl));
|
||||
OUString aMimeType(
|
||||
comphelper::GraphicMimeTypeHelper::GetMimeTypeForImageStream(xInputStream));
|
||||
if (!aMimeType.isEmpty())
|
||||
GetExport().AddAttribute(XML_NAMESPACE_LO_EXT, "mime-type", aMimeType);
|
||||
|
||||
SvXMLElementExport aOBJ(mrExport, XML_NAMESPACE_DRAW, XML_IMAGE, true, true);
|
||||
|
||||
// optional office:binary-data
|
||||
|
|
Loading…
Reference in a new issue