diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-03-22 00:21:04 -0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-08-07 17:52:30 +0200 |
commit | 73bf8469d4a443617935dae6a245d9b327e74a95 (patch) | |
tree | d403abf4712af468920821fd3783394e576137cf /help3xsl/online_transform.xsl | |
parent | 93ebf037016819613322ef1c39951a3de893ec14 (diff) |
Add vnd.oasis.opendocument.* objects in new help
Add capability to link ODF files in help page as objects
Files are stored in media/files/ folder
Example in func_imsin.xhp
Change-Id: I4704e3cc235fd31251f3a4dba403e62f2ef1de0e
Reviewed-on: https://gerrit.libreoffice.org/51721
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 467f093a9b..6127ca924c 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -1099,6 +1099,24 @@ <audio src="{$data}" type="{@type}" controls="'1'"></audio> </div> </xsl:when> + <xsl:when test="@type='application/vnd.oasis.opendocument.spreadsheet'"> + <a class="objectfiles" href="{concat($target,@data)}"><img src="{concat($target,'media/navigation/libo-calc.svg')}" width="25px" height="30px"></img></a> + </xsl:when> + <xsl:when test="@type='application/vnd.oasis.opendocument.text'"> + <a class="objectfiles" href="{concat($target,@data)}"><img src="{concat($target,'media/navigation/libo-writer.svg')}" width="25px" height="30px"></img></a> + </xsl:when> + <xsl:when test="@type='application/vnd.oasis.opendocument.presentation'"> + <a class="objectfiles" href="{concat($target,@data)}"><img src="{concat($target,'media/navigation/libo-impress.svg')}" width="25px" height="30px"></img></a> + </xsl:when> + <xsl:when test="@type='application/vnd.oasis.opendocument.drawing'"> + <a class="objectfiles" href="{concat($target,@data)}"><img src="{concat($target,'media/navigation/libo-draw.svg')}" width="25px" height="30px"></img></a> + </xsl:when> + <xsl:when test="@type='application/vnd.oasis.opendocument.formula'"> + <a class="objectfiles" href="{concat($target,@data)}"><img src="{concat($target,'media/navigation/libo-math.svg')}" width="25px" height="30px"></img></a> + </xsl:when> + <xsl:when test="@type='application/vnd.oasis.opendocument.database'"> + <a class="objectfiles" href="{concat($target,@data)}"><img src="{concat($target,'media/navigation/libo-base.svg')}" width="25px" height="30px"></img></a> + </xsl:when> <xsl:otherwise> <object width="{$width}" height="{$height}" data="{$data}" type="{@type}"></object> </xsl:otherwise> |