diff options
author | Olivier Hallot <ohallot@collabora.co.uk> | 2016-11-10 19:27:26 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2016-11-11 19:48:59 +0000 |
commit | 383f9c4105ba03f86aa722b4881e7f690e017baa (patch) | |
tree | f682d0b68351387a7b87ceb63f48c0aa971e4a9a /source/online_transform.xsl | |
parent | 02139162f541bb56ddbaf0a2d6142256a0454372 (diff) |
Cleanups and debug info for online help
Add display of help page filename on top right
Normalize media files (part)
Change-Id: Ib6123efde1113adeb1470565a036e605a9d82b7e
Reviewed-on: https://gerrit.libreoffice.org/30765
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'source/online_transform.xsl')
-rw-r--r-- | source/online_transform.xsl | 53 |
1 files changed, 10 insertions, 43 deletions
diff --git a/source/online_transform.xsl b/source/online_transform.xsl index b5f11579c4..42e5def05e 100644 --- a/source/online_transform.xsl +++ b/source/online_transform.xsl @@ -111,7 +111,7 @@ <!-- parts of help and image urls --> <!--<xsl:variable name="help_url_prefix" select="'vnd.sun.star.help://'"/>--> <xsl:variable name="help_url_prefix" select="''"/> -<xsl:variable name="img_url_prefix" select="concat('/media',$imgtheme,'/')"/> +<xsl:variable name="img_url_prefix" select="concat('media',$imgtheme,'/')"/> <!-- <xsl:variable name="img_url_prefix" select="concat('vnd.libreoffice.image://',$imgtheme,'/')"/> --> <!--<xsl:variable name="urlpost" select=""/>--> <xsl:variable name="urlpost" select="concat('?Language=',$lang,$am,'System=',$System,$am,'UseDB=no')"/> @@ -121,11 +121,12 @@ <xsl:variable name="css" select="'default.css'"/> +<xsl:variable name="csslink" select="concat($urlpre,$css)"/> <!-- images for notes, tips and warnings --> -<xsl:variable name="note_img" select="concat($img_url_prefix,'/helpimg/note.png')"/> -<xsl:variable name="tip_img" select="concat($img_url_prefix,'/helpimg/tip.png')"/> -<xsl:variable name="warning_img" select="concat($img_url_prefix,'/helpimg/warning.png')"/> +<xsl:variable name="note_img" select="concat($img_url_prefix,'helpimg/note.png')"/> +<xsl:variable name="tip_img" select="concat($img_url_prefix,'helpimg/tip.png')"/> +<xsl:variable name="warning_img" select="concat($img_url_prefix,'helpimg/warning.png')"/> <!--<xsl:variable name="note_img" select="concat($img_url_prefix,$lang,'res/helpimg/note.png')"/> <xsl:variable name="tip_img" select="concat($img_url_prefix,'res/helpimg/tip.png')"/> <xsl:variable name="warning_img" select="concat($img_url_prefix,'res/helpimg/warning.png')"/>--> @@ -137,43 +138,9 @@ <!-- Create the document skeleton --> <xsl:template match="/"> - <!--<xsl:variable name="csslink" select="concat($urlpre,'/',$urlpost)"/>--> - <xsl:variable name="csslink" select="concat($urlpre,'default.css')"/> -<!--<![CDATA[<!DOCTYPE html>]]>--> - <html> - <head> - <title><xsl:value-of select="$title"/></title> - <link href="{$csslink}" rel="Stylesheet" type="text/css" /> - <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> - </head> - <body lang="{$lang}"> - <div id="DisplayArea" style="position: fixed;bottom: 5px;right: 5px; overflow:auto; width: 70%;height: 90%;"> - <xsl:apply-templates select="/helpdocument/body"/> - </div> - <div id="BottomLeft" style="position: fixed;bottom: 5px;left: 5px; overflow:auto; width: 30%;height: 90%;"> - <p>Index will be put here</p> - </div> - <div id="TopRight" style="position: fixed;top: 5px;right: 5px;"> - <p> Top Right Area</p> - </div> - <div id="TopLeft" style="display:none; position: fixed;top: 5px;left: 5px;"> - <table> - <tr> - <td class="topmenu"><a href="text/scalc/main0000.xhp">Calc</a></td> - <td class="topmenu"><a href="text/swriter/main0000.xhp">Writer</a></td> - <td class="topmenu"><a href="text/simpress/main0000.xhp">Impress</a></td> - <td class="topmenu"><a href="text/sdraw/main0000.xhp">Draw</a></td> - <td class="topmenu"><a href="text/schart/main0000.xhp">Chart</a></td> - <td class="topmenu"><a href="text/sbasic/shared/main0601.xhp">Basic</a></td> - <td class="topmenu"><a href="text/smath/main0000.xhp">Math</a></td> - <td class="topmenu"><a href="text/shared/explorer/database/main.xhp">Base</a></td> - <td class="topmenu"><a href="text/shared/guide/main.xhp">Guide</a></td> - </tr> - </table> - <div id="xmfile"><p class="infopage">This page is: <xsl:value-of select="$filename"/></p></div> - </div> - </body> - </html> + <div id="DisplayArea"> + <xsl:apply-templates select="/helpdocument/body"/> + </div> </xsl:template> <!-- AHELP --> @@ -280,7 +247,7 @@ </xsl:template> <!-- FILENAME --> -<xsl:template match="filename" /> +<xsl:template match="filename"/> <!-- HISTORY --> <xsl:template match="history" /> @@ -688,7 +655,7 @@ <!-- <p>href: <xsl:value-of select="$href"/></p> <p>anchor: <xsl:value-of select="$anchor"/></p> <p>document: <xsl:value-of select="$doc"/></p>--> - <p>image source: <xsl:value-of select="$imgsrc"/></p> + <p class="bug">image source: <xsl:value-of select="$imgsrc"/></p> <div class="{$type}"> <table border="0" class="{$type}" cellspacing="0" cellpadding="5"> <tr> |