tdf#33831 swext: mention images by name in the mediawiki export

odt files with pictures exported in mediawiki format now contain references to each image

Change-Id: Idd73da997e2fe983899dd4514d3c393b3607a52d
Reviewed-on: https://gerrit.libreoffice.org/38160
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
Arianna Masciolini 2017-05-29 17:10:40 +02:00 committed by Miklos Vajna
parent 1955bb1172
commit a8124c2eaf

View file

@ -1017,6 +1017,8 @@
<text>[[</text> <text>[[</text>
<call-template name="mk-image-name"> <call-template name="mk-image-name">
<with-param name="image" select="$image"/> <with-param name="image" select="$image"/>
<with-param name="frame" select="."/>
<with-param name="extension" select="'.png'"/>
</call-template> </call-template>
<text>|thumb</text> <text>|thumb</text>
</variable> </variable>
@ -1038,6 +1040,7 @@
<text>[[</text> <text>[[</text>
<call-template name="mk-image-name"> <call-template name="mk-image-name">
<with-param name="image" select="."/> <with-param name="image" select="."/>
<with-param name="frame" select="parent::node()"/>
</call-template> </call-template>
</variable> </variable>
@ -1155,7 +1158,9 @@
<template name="mk-image-name"> <template name="mk-image-name">
<param name="image"/> <param name="image"/>
<param name="frame"/>
<param name="extension"/>
<variable name="base-name"> <variable name="base-name">
<call-template name="mk-base-name"> <call-template name="mk-base-name">
<with-param name="href" select="$image/@xlink:href"/> <with-param name="href" select="$image/@xlink:href"/>
@ -1166,6 +1171,8 @@
<value-of select="'Image:'"/> <value-of select="'Image:'"/>
</if> </if>
<value-of select="$base-name"/> <value-of select="$base-name"/>
<value-of select="$frame/@draw:name"/>
<value-of select="'.png'"/>
</template> </template>
<template name="mk-base-name"> <template name="mk-base-name">