Add the functionality to change the fontcolor in reports

bzr revid: sbh@tinyerp.com-20090130124132-ovb71qn6je371kio
This commit is contained in:
Sbh (Open ERP) 2009-01-30 18:11:32 +05:30
parent a24529399d
commit 89e5473075
2 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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: