Files
ofbiz-framework/framework/common/webcommon/includes/reportTemplate.fo.ftl
T
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00

89 lines
3.7 KiB
Plaintext

<#--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<#escape x as x?xml>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
<#-- inheritance -->
<#if defaultFontFamily?has_content>font-family="${defaultFontFamily}"</#if>
>
<fo:layout-master-set>
<fo:simple-page-master master-name="main-page"
page-width="8.5in" page-height="11in"
margin-top="0.4in" margin-bottom="0.4in"
margin-left="0.6in" margin-right="0.4in">
<#-- main body -->
<fo:region-body margin-top="1.2in" margin-bottom="0.4in"/>
<#-- the header -->
<fo:region-before extent="1.2in"/>
<#-- the footer -->
<fo:region-after extent="0.4in"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="main-page-landscape"
page-width="11in" page-height="8.5in"
margin-top="0.4in" margin-bottom="0.4in"
margin-left="0.6in" margin-right="0.4in">
<#-- main body -->
<fo:region-body margin-top="1.2in" margin-bottom="0.4in"/>
<#-- the header -->
<fo:region-before extent="1.2in"/>
<#-- the footer -->
<fo:region-after extent="0.4in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="${pageLayoutName?default("main-page")}">
<#-- Header -->
<#-- The elements it it are positioned using a table composed by one row
composed by two cells (each 50% of the total table that is 100% of the page):
in the left side cell the "topLeft" template is included
in the right side cell the "topRight" template is included
-->
<fo:static-content flow-name="xsl-region-before">
<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)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
${sections.render("topLeft")}
</fo:table-cell>
<fo:table-cell>
${sections.render("topRight")}
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:static-content>
<#-- the footer -->
<fo:static-content flow-name="xsl-region-after">
<fo:block font-size="10pt" text-align="center" space-before="10pt">
${uiLabelMap.CommonPage} <fo:page-number/> ${uiLabelMap.CommonOf} <fo:page-number-citation ref-id="theEnd"/>
</fo:block>
</fo:static-content>
<#-- the body -->
<fo:flow flow-name="xsl-region-body">
${sections.render("body")}
<fo:block id="theEnd"/> <#-- marks the end of the pages and used to identify page-number at the end -->
</fo:flow>
</fo:page-sequence>
</fo:root>
</#escape>