odt2mediawiki.xsl: table cell color in cell attributes
Change-Id: I44f1969a227a811cdb740b387e30cf10994360b9 Reviewed-on: https://gerrit.libreoffice.org/15445 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
This commit is contained in:
committed by
David Tardon
parent
5e2708a5a8
commit
a323ec686a
@@ -534,7 +534,18 @@
|
|||||||
<with-param name="style-element" select="key('style-ref', $style-name)"/>
|
<with-param name="style-element" select="key('style-ref', $style-name)"/>
|
||||||
</call-template>
|
</call-template>
|
||||||
</if>
|
</if>
|
||||||
</variable>
|
<!-- Font color -->
|
||||||
|
<if test="text:p and count(*) = 1">
|
||||||
|
<if test="boolean(text:p/@text:style-name)">
|
||||||
|
<variable name="style-element" select="key('style-ref', text:p/@text:style-name)"/>
|
||||||
|
|
||||||
|
<call-template name="translate-style-property">
|
||||||
|
<with-param name="style-name" select="'color'"/>
|
||||||
|
<with-param name="style-property" select="$style-element/style:text-properties/@fo:color"/>
|
||||||
|
</call-template>
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
</variable>
|
||||||
|
|
||||||
<if test="string-length($style) > 0">
|
<if test="string-length($style) > 0">
|
||||||
<text> style="</text>
|
<text> style="</text>
|
||||||
@@ -702,27 +713,38 @@
|
|||||||
select="($alignment mod (2 * $RIGHT_BIT)) - ($alignment mod ($RIGHT_BIT)) != 0"/>
|
select="($alignment mod (2 * $RIGHT_BIT)) - ($alignment mod ($RIGHT_BIT)) != 0"/>
|
||||||
|
|
||||||
<variable name="style">
|
<variable name="style">
|
||||||
<if test="name(parent::*) != 'table:table-cell'">
|
<choose>
|
||||||
<choose>
|
<when test="name(parent::*) != 'table:table-cell'">
|
||||||
<when test="$center">
|
<choose>
|
||||||
<text>text-align:center;</text>
|
<when test="$center">
|
||||||
</when>
|
<text>text-align:center;</text>
|
||||||
<when test="$right">
|
</when>
|
||||||
<text>text-align:right;</text>
|
<when test="$right">
|
||||||
</when>
|
<text>text-align:right;</text>
|
||||||
</choose>
|
</when>
|
||||||
</if>
|
</choose>
|
||||||
<if test="boolean(@text:style-name)">
|
<if test="boolean(@text:style-name)">
|
||||||
<variable name="style-element" select="key('style-ref', @text:style-name)"/>
|
<variable name="style-element" select="key('style-ref', @text:style-name)"/>
|
||||||
|
|
||||||
<call-template name="translate-style-property">
|
<call-template name="translate-style-property">
|
||||||
<with-param name="style-name" select="'color'"/>
|
<with-param name="style-name" select="'color'"/>
|
||||||
<with-param name="style-property" select="$style-element/style:text-properties/@fo:color"/>
|
<with-param name="style-property" select="$style-element/style:text-properties/@fo:color"/>
|
||||||
</call-template>
|
</call-template>
|
||||||
</if>
|
</if>
|
||||||
|
</when>
|
||||||
|
<otherwise>
|
||||||
|
<if test="count(../text:p) > 1 and boolean(@text:style-name)">
|
||||||
|
<variable name="style-element" select="key('style-ref', @text:style-name)"/>
|
||||||
|
|
||||||
|
<call-template name="translate-style-property">
|
||||||
|
<with-param name="style-name" select="'color'"/>
|
||||||
|
<with-param name="style-property" select="$style-element/style:text-properties/@fo:color"/>
|
||||||
|
</call-template>
|
||||||
|
</if>
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
</variable>
|
</variable>
|
||||||
|
|
||||||
|
|
||||||
<if test="string-length($style) > 0">
|
<if test="string-length($style) > 0">
|
||||||
<text><div style="</text>
|
<text><div style="</text>
|
||||||
<value-of select="$style"/>
|
<value-of select="$style"/>
|
||||||
@@ -800,7 +822,6 @@
|
|||||||
<value-of select="$NL"/>
|
<value-of select="$NL"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
== Preformatted text ==
|
== Preformatted text ==
|
||||||
-->
|
-->
|
||||||
|
Reference in New Issue
Block a user