summaryrefslogtreecommitdiff
path: root/icon-themes/hicontrast/cmd/lc_vfixedline.png
blob: aea0f339ef5c757b793bd4b53d4ff97eece06dd9 (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 1a 00 00 00 1a 08 06 00 00 00 a9 4a 4c .PNG........IHDR..............JL
0020 ce 00 00 00 3a 49 44 41 54 78 5e 63 f8 ff ff 3f 5d f0 e0 b5 08 c6 18 32 16 e1 44 78 2c c2 89 86 ....:IDATx^c...?]......2..Dx,...
0040 7f d0 11 85 f0 58 44 14 1a 71 a9 6e 34 d5 8d a6 ba d1 54 37 9a ea 46 53 dd 68 aa a3 0b 06 00 e5 .....XD..q.n4.....T7..FS.h......
0060 ee 58 19 e9 58 5a 59 00 00 00 00 49 45 4e 44 ae 42 60 82 .X..XZY....IEND.B`.
ed3a207aef00be9ebe8ed422a8f63b14f917045e2 /swext parent423cfc2061babc90a61bbd97f38da13ba538396d (diff)
odt2mediawiki.xsl: reuse table cell code, check USE_DEFAULT_TABLE_CLASS, use current vbles
Change-Id: Iedaddf11604b13c7db1d2b588a5f205f691ea2b4 Reviewed-on: https://gerrit.libreoffice.org/15440 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/filter/odt2mediawiki.xsl233
1 files changed, 78 insertions, 155 deletions
diff --git a/swext/mediawiki/src/filter/odt2mediawiki.xsl b/swext/mediawiki/src/filter/odt2mediawiki.xsl
index d6806803f15d..54f60030740b 100644
--- a/swext/mediawiki/src/filter/odt2mediawiki.xsl
+++ b/swext/mediawiki/src/filter/odt2mediawiki.xsl
@@ -409,67 +409,26 @@
</template>
<template match="table:table-row">
- <variable name="style-name" select="table:table-cell[1]/@table:style-name"/>
- <variable name="total-style-name" select="count(table:table-cell/@table:style-name)"/>
- <variable name="total-equal-style-name" select="count(table:table-cell[@table:style-name=$style-name])"/>
- <variable name="style">
- <if test="$total-equal-style-name=$total-style-name">
- <variable name="style-element" select="key('style-ref', $style-name)"/>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'background-color'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:background-color"/>
- </call-template>
+ <text>|-</text>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'border'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:border"/>
- </call-template>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'border-top'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:border-top"/>
- </call-template>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'border-bottom'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:border-bottom"/>
- </call-template>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'border-left'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:border-left"/>
- </call-template>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'border-right'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:border-right"/>
- </call-template>
+ <if test="not($USE_DEFAULT_TABLE_CLASS) and boolean(table:table-cell[1]/@table:style-name)">
+ <variable name="style-name" select="table:table-cell[1]/@table:style-name"/>
+ <variable name="total-style-name" select="count(table:table-cell/@table:style-name)"/>
+ <variable name="total-equal-style-name" select="count(table:table-cell[@table:style-name=$style-name])"/>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'padding'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:padding"/>
- </call-template>
- <call-template name="translate-style-property">
- <with-param name="style-name" select="'padding-top'"/>
- <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:padding-top"/>
- </call-template>
- <call-template name="translate-style-property">