forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r692404 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-toc.ft
Date Fri, 05 Sep 2008 10:17:44 GMT
Author: sjur
Date: Fri Sep  5 03:17:42 2008
New Revision: 692404

URL: http://svn.apache.org/viewvc?rev=692404&view=rev
Log:
Now also the TOC itself can get a user-specified font-family.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-toc.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-toc.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-toc.ft?rev=692404&r1=692403&r2=692404&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-toc.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-toc.ft
Fri Sep  5 03:17:42 2008
@@ -44,6 +44,7 @@
       version="1.0">
       <xsl:param name="defaultVariables" select="'test.html'"/>
       <xsl:param name="sans-serif" select="$defaultVariables/*/*[@name='output.pdf.fontFamily.sansSerif']/@value"
/>
+      <xsl:param name="serif" select="$defaultVariables/*/*[@name='output.pdf.fontFamily.serif']/@value"
/>
       <xsl:param name="TOCTitleFontFamily">
         <xsl:choose>
           <xsl:when test="$defaultVariables/*/*[@name='output.pdf.fontFamily.TOCTitleFontFamily']">
@@ -52,6 +53,14 @@
           <xsl:otherwise><xsl:value-of select="$sans-serif"/></xsl:otherwise>
         </xsl:choose>
       </xsl:param>
+      <xsl:param name="TOCFontFamily">
+        <xsl:choose>
+          <xsl:when test="$defaultVariables/*/*[@name='output.pdf.fontFamily.TOCFontFamily']">
+            <xsl:value-of select="$defaultVariables/*/*[@name='output.pdf.fontFamily.TOCFontFamily']/@value"/>
+          </xsl:when>
+          <xsl:otherwise><xsl:value-of select="$serif"/></xsl:otherwise>
+        </xsl:choose>
+      </xsl:param>
       <xsl:param name="max-depth" select="2"/>
       <xsl:param name="page-break-after" select="'true'"/>
       <xsl:include href="lm://pdf.transform.helper.pageBreaks"/>
@@ -71,8 +80,13 @@
               <!-- insert i18n stuff here -->
               <xsl:text>Table of contents</xsl:text>
             </fo:block>
-            <fo:block font-family="serif" font-size="12pt" space-after="5pt"
-              space-before="0pt" text-align="justify" width="7.5in">
+            <fo:block
+              font-family="{$TOCFontFamily}"
+              font-size="12pt"
+              space-after="5pt"
+              space-before="0pt"
+              text-align="justify"
+              width="7.5in">
               <xsl:if test="$page-break-after">
                 <xsl:attribute name="break-after">page</xsl:attribute>
               </xsl:if>



Mime
View raw message