Add the functionality to change the fontcolor in reports
bzr revid: sbh@tinyerp.com-20090130124132-ovb71qn6je371kio
This commit is contained in:
parent
a24529399d
commit
89e5473075
|
@ -498,6 +498,7 @@
|
|||
<xsl:call-template name="make_alignment" />
|
||||
<xsl:call-template name="make_background" />
|
||||
<xsl:call-template name="make_space_beforeafter" />
|
||||
<xsl:call-template name="make_fontcolor" />
|
||||
</paraStyle>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -670,6 +671,17 @@
|
|||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="make_fontcolor">
|
||||
<xsl:variable name="textColor">
|
||||
<xsl:value-of select="style:properties/@fo:color"/>
|
||||
</xsl:variable>
|
||||
<xsl:if test="not($textColor='') and boolean(style:properties/@fo:color)">
|
||||
<xsl:attribute name="textColor">
|
||||
<xsl:value-of select="$textColor" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
This stylesheet is part of:
|
||||
PyOpenOffice Version 0.4
|
||||
|
|
|
@ -499,6 +499,7 @@
|
|||
<xsl:call-template name="make_alignment" />
|
||||
<xsl:call-template name="make_background" />
|
||||
<xsl:call-template name="make_space_beforeafter" />
|
||||
<xsl:call-template name="make_fontcolor" />
|
||||
</paraStyle>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -670,6 +671,16 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
<xsl:template name="make_fontcolor">
|
||||
<xsl:variable name="textColor">
|
||||
<xsl:value-of select="style:properties/@fo:color"/>
|
||||
</xsl:variable>
|
||||
<xsl:if test="not($textColor='') and boolean(style:properties/@fo:color)">
|
||||
<xsl:attribute name="textColor">
|
||||
<xsl:value-of select="$textColor" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
This stylesheet is part of:
|
||||
|
|
Loading…
Reference in New Issue