forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r482135 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common.fv
Date Mon, 04 Dec 2006 11:12:06 GMT
Author: thorsten
Date: Mon Dec  4 03:12:06 2006
New Revision: 482135

URL: http://svn.apache.org/viewvc?view=rev&rev=482135
Log:
Adding fo example to the common theme

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common.fv

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common.fv
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common.fv?view=diff&rev=482135&r1=482134&r2=482135
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common.fv (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common.fv Mon Dec
 4 03:12:06 2006
@@ -22,6 +22,97 @@
   <!-- The following variables are used to contact data models and/or contracts. -->
   <jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
   <jx:set var="getRequestExtension" value="#{$cocoon/parameters/getRequestExtension}"
/>
+  <forrest:view type="fo" hooksXpath="/">
+    <forrest:contract name="content"
+      dataURI="cocoon://#{$getRequest}.xml">
+      <forrest:property name="config">
+        <!-- Settings specific to PDF output. -->
+        <!-- 
+        Supported page sizes are a0, a1, a2, a3, a4, a5, executive,
+        folio, legal, ledger, letter, quarto, tabloid (default letter).
+        Supported page orientations are portrait, landscape (default
+        portrait).
+        Supported text alignments are left, right, justify (default left).
+        -->
+        <page size="letter" orientation="portrait"
+          text-align="left" background-color="#ffffff"/>
+        
+        <!-- 
+        Pattern of the page numbering in the footer - Default is "Page x".
+        first occurrence of '1' digit represents the current page number,
+        second occurrence of '1' digit represents the total page number,
+        anything else is considered as the static part of the numbering pattern.
+        Examples : x is the current page number, y the total page number.
+        <page-numbering-format>none</page-numbering-format> Do not displays the
page numbering
+        <page-numbering-format>1</page-numbering-format> Displays "x"
+        <page-numbering-format>p1.</page-numbering-format> Displays "px."
+        <page-numbering-format>Page 1/1</page-numbering-format> Displays "Page
x/y"
+        <page-numbering-format>(1-1)</page-numbering-format> Displays "(x-y)"
+        -->
+        <page-numbering-format>Page 1</page-numbering-format>
+        <!-- Configure the TOC, i.e. the Table of Contents.
+        @max-depth
+        how many "section" levels need to be included in the
+        generated Table of Contents (TOC). 
+        @min-sections
+        Minimum required to create a TOC.
+        @location ("page","menu","page,menu", "none")
+        Where to show the TOC.
+        -->
+        <toc max-depth="2" min-sections="1" location="page"/>
+        
+        
+        <!-- Heading types can be clean|underlined|boxed  -->
+        <headings type="boxed" color="#4a6d8c"/>
+        <!--
+        Margins can be specified for top, bottom, inner, and outer
+        edges. If double-sided="false", the inner edge is always left
+        and the outer is always right. If double-sided="true", the
+        inner edge will be left on odd pages, right on even pages,
+        the outer edge vice versa.
+        Specified below are the default settings.
+        -->
+        <margins double-sided="false">
+          <top>1in</top>
+          <bottom>1in</bottom>
+          <inner>1.25in</inner>
+          <outer>1in</outer>
+        </margins>
+        
+        <!--
+        Print the URL text next to all links going outside the file
+        -->
+        <show-external-urls>false</show-external-urls>
+        
+        <!--
+        Disable the copyright footer on each page of the PDF.
+        A footer is composed for each page. By default, a "credit" with role=pdf
+        will be used, as explained below. Otherwise a copyright statement
+        will be generated. This latter can be disabled.
+        -->
+        <disable-copyright-footer>
+          false</disable-copyright-footer>
+        <colors>
+          <color name="code" value="#CFDCED"/>
+          <color name="highlight" value="#ffff00"/>
+          <color name="fixme" value="#cc6600"/>
+          <color name="note" value="#006699"/>
+          <color name="warning" value="#990000"/>
+          <color name="table" value="#7099C5"/>
+          <color name="table-cell" value="#f0f0ff"/>
+          <color name="body" value="#ffffff" link="#0F3660"
+            vlink="#009999" hlink="#000066"/>
+        </colors>
+        
+        <!-- The following are used to construct a copyright statement -->
+        <disable-copyright-footer>
+          false</disable-copyright-footer>
+        <year>2006</year>
+        <vendor>ACME</vendor>
+        <url>http://ACME.org</url>
+      </forrest:property>
+    </forrest:contract>
+  </forrest:view>
   <forrest:view type="html" hooksXpath="/html/body">
     <!-- 
         @type defines this structurer to html.



Mime
View raw message