svn commit: r479624 - /incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r479624 - /incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl

jacopoc
Author: jacopoc
Date: Mon Nov 27 06:10:47 2006
New Revision: 479624

URL: http://svn.apache.org/viewvc?view=rev&rev=479624
Log:
Now the font size of header, footer and body of simple fo.ftl template can be set in the screen definition.
For example, in the action tag of a screen definition:
<set field="headerFontSize" value="10pt"/>
<set field="bodyFontSize" value="12pt"/>
<set field="footerFontSize" value="9pt"/>

The default is 8pt for all.



Modified:
    incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl

Modified: incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl?view=diff&rev=479624&r1=479623&r2=479624
==============================================================================
--- incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl (original)
+++ incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl Mon Nov 27 06:10:47 2006
@@ -44,7 +44,7 @@
              in the left side cell we put the logo
              in the right side cell we put the title, username and date
         -->
-        <fo:static-content flow-name="xsl-region-before" font-size="8pt">
+        <fo:static-content flow-name="xsl-region-before" font-size="${headerFontSize?default("8pt")}">
             <fo:table>
                 <fo:table-column column-number="1" column-width="proportional-column-width(50)"/>
                 <fo:table-column column-number="2" column-width="proportional-column-width(50)"/>
@@ -86,12 +86,12 @@
         </fo:static-content>
         
         <#-- Footer -->
-        <fo:static-content flow-name="xsl-region-after" font-size="8pt">
+        <fo:static-content flow-name="xsl-region-after" font-size="${footerFontSize?default("8pt")}">
             <fo:block text-align="center" border-top="thin solid black" padding="3pt">${uiLabelMap.CommonPage} <fo:page-number/> ${uiLabelMap.CommonOf} <fo:page-number-citation ref-id="theEnd"/></fo:block>
         </fo:static-content>
       
         <#-- Body -->
-        <fo:flow flow-name="xsl-region-body">
+        <fo:flow flow-name="xsl-region-body" font-size="${bodyFontSize?default("8pt")}">
 ${sections.render("body")}
             <fo:block id="theEnd"/>
         </fo:flow>