svn commit: r430420 - in /incubator/ofbiz/trunk: applications/accounting/widget/AccountingScreens.xml 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: r430420 - in /incubator/ofbiz/trunk: applications/accounting/widget/AccountingScreens.xml framework/common/webcommon/includes/simple.fo.ftl

jacopoc
Author: jacopoc
Date: Thu Aug 10 09:16:35 2006
New Revision: 430420

URL: http://svn.apache.org/viewvc?rev=430420&view=rev
Log:
Implemented option to render the widget pdf report as portrait or landscape.

Modified:
    incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml
    incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl

Modified: incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml?rev=430420&r1=430419&r2=430420&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml Thu Aug 10 09:16:35 2006
@@ -290,6 +290,7 @@
                 <set field="titleProperty" value="PageTitleListAccounts"/>
                 <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
                 <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="1000"/>
+                <set field="pageLayoutName" value="simple-landscape"/>
             </actions>
             <widgets>
                 <decorator-screen name="FoDecorator" location="component://common/widget/CommonScreens.xml">

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?rev=430420&r1=430419&r2=430420&view=diff
==============================================================================
--- incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl (original)
+++ incubator/ofbiz/trunk/framework/common/webcommon/includes/simple.fo.ftl Thu Aug 10 09:16:35 2006
@@ -19,16 +19,25 @@
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
     <fo:layout-master-set>
-        <fo:simple-page-master master-name="main-page"
-            margin-top="0.3in" margin-bottom="0.3in"
-            margin-left="0.4in" margin-right="0.3in">
-          <fo:region-body margin-top="1in" margin-bottom="0.5in"/>
+        <fo:simple-page-master master-name="simple-portrait"
+              page-width="8.5in" page-height="11in"
+              margin-top="0.3in" margin-bottom="0.3in"
+              margin-left="0.4in" margin-right="0.3in">
+            <fo:region-body margin-top="1in" margin-bottom="0.5in"/>
+            <fo:region-after extent="0.5in" />
+            <fo:region-before extent="1in"/>
+        </fo:simple-page-master>
+        <fo:simple-page-master master-name="simple-landscape"
+              page-width="11in" page-height="8.5in"
+              margin-top="0.3in" margin-bottom="0.3in"
+              margin-left="0.4in" margin-right="0.3in">
+            <fo:region-body margin-top="1in" margin-bottom="0.5in"/>
             <fo:region-after extent="0.5in" />
             <fo:region-before extent="1in"/>
         </fo:simple-page-master>
     </fo:layout-master-set>
   
-    <fo:page-sequence master-reference="main-page" font-size="9pt">
+    <fo:page-sequence master-reference="${pageLayoutName?default("simple-portrait")}" font-size="9pt">
         <#-- Header -->
         <fo:static-content flow-name="xsl-region-before" font-size="8pt">
             <fo:table>