mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 01:12:16 +00:00
Added printing requirements
This commit is contained in:
104
z3c/rml/tests/input/rml-guide-example-11.rml
Normal file
104
z3c/rml/tests/input/rml-guide-example-11.rml
Normal file
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
|
||||
<!DOCTYPE document SYSTEM "../rml.dtd">
|
||||
<document filename="example_11.pdf">
|
||||
|
||||
<template>
|
||||
<pageTemplate id="main">
|
||||
<pageGraphics>
|
||||
</pageGraphics>
|
||||
<frame id="first" x1="72" y1="72" width="451" height="698"/>
|
||||
</pageTemplate>
|
||||
</template>
|
||||
|
||||
<stylesheet>
|
||||
<blockTableStyle id="myBlockTableStyle">
|
||||
<!-- Set fonts -->
|
||||
<blockFont name="Courier-Bold" size="10" start="0,1" stop="-1,-1"/>
|
||||
<blockFont name="Helvetica-BoldOblique" size="10" start="0,0" stop="3,0"/>
|
||||
|
||||
<!-- This sets a textColor for all the text in the table -->
|
||||
<blockTextColor colorName="black"/>
|
||||
|
||||
<!-- Another example of blockTextColor -->
|
||||
<blockTextColor colorName="green" start="2,2" stop="3,3"/>
|
||||
|
||||
<!-- This sets a blockAlignment for the whole table -->
|
||||
<blockAlignment value="CENTER"/>
|
||||
|
||||
<!-- These overrides the above -->
|
||||
<blockAlignment value="RIGHT" start="3,0" stop="3,-1"/>
|
||||
<blockAlignment value="LEFT" start="0,1" stop="0,-1"/>
|
||||
|
||||
<!-- This sets the vertical alignment for one row -->
|
||||
<blockValign value="TOP" start="0,0" stop="-1,0"/>
|
||||
|
||||
<!-- This sets the vertical alignment for one cell -->
|
||||
<blockValign value="MIDDLE" start="2,2" stop="2,2"/>
|
||||
|
||||
<!-- Use of linestyles -->
|
||||
<lineStyle kind="GRID" colorName="silver"/>
|
||||
<lineStyle kind="LINEBELOW" colorName="orangered" start="0,0"
|
||||
stop="-1,0" thickness="5"/>
|
||||
<lineStyle kind="LINEAFTER" colorName="maroon" start="1,1"
|
||||
stop="1,6" thickness="1"/>
|
||||
</blockTableStyle>
|
||||
</stylesheet>
|
||||
|
||||
<story>
|
||||
<title>Example 11 - lines and alignment in tables</title>
|
||||
<spacer length="1cm" />
|
||||
<blockTable
|
||||
style="myBlockTableStyle"
|
||||
rowHeights="2cm,2cm,2cm,2cm,2cm,2cm,2cm"
|
||||
colWidths="4cm,3cm,3cm,4cm">
|
||||
<tr>
|
||||
<td>(a=LEFT)(VA=TOP)</td>
|
||||
<td>(VA=TOP)</td>
|
||||
<td>(VA="TOP")</td>
|
||||
<td>(a=RIGHT)(VA=TOP)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>(a=LEFT)</td>
|
||||
<td>1,1</td>
|
||||
<td>Cell 2,1</td>
|
||||
<td>(a=RIGHT)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>(a=LEFT)</td>
|
||||
<td>1,2</td>
|
||||
<td>(VA=MIDDLE)</td>
|
||||
<td>(a=RIGHT)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>(a=LEFT)</td>
|
||||
<td>1,3</td>
|
||||
<td>(VA=MIDDLE)</td>
|
||||
<td>(VA=MDL)(a=RIGHT)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>(a=LEFT)</td>
|
||||
<td>1,4</td>
|
||||
<td>2,4</td>
|
||||
<td>(a=RIGHT)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>(a=LEFT)</td>
|
||||
<td>1,5</td>
|
||||
<td>2,5</td>
|
||||
<td>(a=RIGHT)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>(a=LEFT)</td>
|
||||
<td>1,6</td>
|
||||
<td>2,6</td>
|
||||
<td>(a=RIGHT)</td>
|
||||
</tr>
|
||||
</blockTable>
|
||||
|
||||
<spacer length="15" />
|
||||
<para>a=value for <i>blockAlignment</i></para>
|
||||
<para>VA=value for <i>blockValign</i></para>
|
||||
<para><i>MDLE=MIDDLE for VA in cells 3,2 and 3,3</i></para>
|
||||
|
||||
</story>
|
||||
</document>
|
||||
Reference in New Issue
Block a user