[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/office/kraft/reports
From: Klaas Freitag <freitag () suse ! de>
Date: 2006-09-18 19:27:55
Message-ID: 1158607675.460497.2563.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 586122 by freitag:
A more sophisticated document
M +69 -24 invoice.trml
--- trunk/playground/office/kraft/reports/invoice.trml #586121:586122
@@ -2,49 +2,94 @@
<!DOCTYPE document SYSTEM "rml_1_0.dtd">
<document filename="example_5.pdf">
<template pageSize="(21cm, 29.7cm)" leftMargin="2.0cm" rightMargin="2.0cm"
- topMargin="2.0cm" bottomMargin="2.0cm" title="test" author="test" \
allowSplitting="20"> + topMargin="2.0cm" bottomMargin="2.0cm" title="Kraft Document" \
+ author="http://kraft.kde.org" allowSplitting="20"
+ showBoundary="0">
<pageTemplate id="first">
<pageGraphics>
- <lines>2cm 3.2cm 19cm 3.2cm</lines>
- <drawCentredString x="105mm" y="3.4cm">www.printbox.be - 0477/76.18.56 - \
printbox.be</drawCentredString>
- <drawCentredString x="105mm" y="2.6cm">Tiny SPRL - rue Joseph Mathieu, \
28 - B-1300 Limal - BELGIQUE - info@tiny.be</drawCentredString>
- <drawCentredString x="105mm" y="2.0cm">RCN 95656 - TVA BE477.472.701 - \
IBAN: BE74 1262 0132 6907 - SWIFT: ARTEBEBB</drawCentredString> + <setFont \
name="Times-Roman" size="12" /> + <lineMode width="0.5" />
+ <lines>2cm 2.2cm 19cm 2.2cm</lines>
+ <fill color="darkgreen" />
+ <drawCentredString x="105mm" y="2.3cm">Landscaper Lurchie - \
http://www.lurchie-gardens.com</drawCentredString> + <setFont name="Times-Roman" \
size="10" /> + <fill color="black" />
+ <drawCentredString x="105mm" y="1.8cm">Wooden Castle - Kelso - \
Moxmuxshire CD5 8ZN</drawCentredString> + <drawCentredString x="105mm" \
y="1.4cm">Telephone 01232 3124229 - Fax 01232 3124230 </drawCentredString>
+ <image x="140mm" y="22cm" width="6cm" height="6cm" file="/tmp/lurchie.png"/>
+
</pageGraphics>
- <frame id="address" x1="11.2cm" y1="21.0cm" width="8cm" height="4.2cm"/>
- <frame id="column" x1="2.0cm" y1="7.0cm" width="17cm" height="14cm"/>
+ <frame id="address" x1="2cm" y1="21.0cm" width="8cm" height="4.2cm"/>
+ <frame id="details" x1="11cm" y1="20.8cm" width="8cm" height="1.5cm"/>
+ <frame id="column" x1="2.0cm" y1="3.0cm" width="17cm" height="18cm"/>
+
</pageTemplate>
+
+ <pageTemplate id="others">
+ <pageGraphics>
+ <setFont name="Times-Roman" size="12" />
+ <lineMode width="0.5" />
+ <lines>2cm 2.2cm 19cm 2.2cm</lines>
+ <fill color="darkgreen" />
+ <drawCentredString x="105mm" y="2.3cm">Landscaper Lurchie - \
http://www.lurchie-gardens.com</drawCentredString> + <setFont name="Times-Roman" \
size="10" /> + <fill color="black" />
+ <drawCentredString x="105mm" y="1.8cm">Wooden Castle - Kelso - \
Moxmuxshire CD5 8ZN</drawCentredString> + <drawCentredString x="105mm" \
y="1.4cm">Telephone 01232 3124229 - Fax 01232 3124230 </drawCentredString> + \
</pageGraphics> +
+ <frame id="content" x1="2.0cm" y1="3.0cm" width="17cm" height="24.5cm"/>
+ </pageTemplate>
</template>
<stylesheet>
<blockTableStyle id="products">
- <blockFont name="Helvetica-BoldOblique" size="24" start="0,0" stop="-1,0"/>
- <blockBackground colorName="grey" start="0,0" stop="-1,0"/>
- <blockTextColor colorName="white" start="0,0" stop="-1,0"/>
- <blockValign value="TOP"/>
- <blockAlignment value="LEFT"/>
- <lineStyle kind="LINEBELOW" colorName="black" start="0,0" stop="-1,0"/>
+ <blockFont name="Helvetica-BoldOblique" size="24" start="0,0" stop="-1,0"/>
+ <blockBackground colorName="lightgrey" start="0,0" stop="-1,0"/>
+ <blockTextColor colorName="white" start="0,0" stop="-1,0"/>
+ <blockValign value="TOP"/>
+ <blockAlignment value="LEFT"/>
- <lineStyle kind="LINEABOVE" colorName="black" start="-3,-3" stop="-1,-3"/>
- <lineStyle kind="LINEABOVE" colorName="black" start="-3,-1" stop="-1,-1"/>
+ <blockBottomPadding length="8mm" start="0,1" stop="-1,-1"/>
+ <blockTopPadding length="4mm" start="0,1" stop="-1,-1"/>
+
+ <lineStyle kind="LINEBELOW" colorName="black" start="0,0" stop="-1,0"/>
+
+ <lineStyle kind="LINEABOVE" colorName="black" start="-3,-3" stop="-1,-3"/>
+ <lineStyle kind="LINEABOVE" colorName="black" start="-3,-1" stop="-1,-1"/>
</blockTableStyle>
- <paraStyle name="conditions" fontName="Helvetica" fontSize="8" \
alignment="justify"/> +
+ <paraStyle name="conditions" fontName="Helvetica" fontSize="8" \
alignment="justify"/> +
+ <paraStyle name="text" fontSize="12" alignment="justify"/>
+ <paraStyle name="head" fontSize="12" alignment="justify"/>
+ <paraStyle name="details" fontSize="12" alignment="right"/>
+
</stylesheet>
<story>
<xpre><!-- ADDRESS --></xpre>
+
<nextFrame/>
- <para>
- <b><!-- DOCTYPE --></b>: <i>Devis impression sur textile</i>
- </para>
+ <!-- Details Frame -->
+ <para style="details"><!-- DATE --></para>
+ <para style="details">Document ID: <!-- DOCID --></para>
+
+ <nextFrame/>
+
+ <h1><!-- DOCTYPE --></h1>
<spacer length="1cm" width="1mm"/>
- <para>
+ <para style="text">
<!-- SALUT -->
</para>
<spacer length="5mm" width="1mm"/>
- <para>
+ <para style="text">
<!-- PRETEXT -->
</para>
<spacer length="1cm" width="1mm"/>
- <blockTable colWidths="8mm,12cm,1.0cm,1cm,2.5cm,2.5cm" style="products">
+
+ <setNextTemplate name="others" />
+
+ <blockTable colWidths="8mm,9cm,1.0cm,1cm,2.5cm,2.5cm" style="products" \
repeatRows="0"> <tr>
<td><para>Pos.</para></td>
<td><para>Text</para></td>
@@ -86,11 +131,11 @@
</tr>
</blockTable>
<spacer length="1cm" width="1mm"/>
- <para style="conditions">
+ <para style="text">
<!-- POSTTEXT -->
</para>
<spacer length="0.5cm" width="1mm"/>
- <para style="conditions">
+ <para style="text">
<!-- GOODBYE -->
</para>
</story>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic