-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlayout.xml
196 lines (190 loc) · 10.8 KB
/
layout.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Pageformat width="160mm" height="380mm" />
<!-- fira sans is a free font by mozilla: https://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/ -->
<LoadFontfile name="FiraSans-Regular" filename="FiraSans-Regular.otf" />
<LoadFontfile name="FiraSansCondensed-Light" filename="firasanscondensed-light.otf" />
<LoadFontfile name="FiraSansCondensed-LightItalic" filename="firasanscondensed-lightitalic.otf" />
<DefineFontfamily name="title" fontsize="22" leading="26">
<Regular fontface="FiraSans-Regular"/>
</DefineFontfamily>
<DefineFontfamily name="text" fontsize="10" leading="12">
<Regular fontface="FiraSansCondensed-Light"/>
<Italic fontface="FiraSansCondensed-LightItalic"/>
</DefineFontfamily>
<Record element="data">
<PlaceObject>
<Textblock>
<Paragraph fontfamily="title">
<Value>Budget 2016</Value>
</Paragraph>
</Textblock>
</PlaceObject>
<PlaceObject>
<Table stretch="max" padding="2pt" width="14">
<Columns>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
</Columns>
<Tablehead>
<Tablerule/>
<Tr valign="top">
<Td><Paragraph><I><Value>Group</Value></I></Paragraph></Td>
<Td><Paragraph><I><Value></Value></I></Paragraph></Td>
<Td><Paragraph><I><Value>Article-<br/>number</Value></I></Paragraph></Td>
<Td><Paragraph><I><Value>Article-<br/>name</Value></I></Paragraph></Td>
<Td padding-left="12pt"><Paragraph><I><Value>Selling goal<br/>in pieces</Value></I></Paragraph></Td>
<Td align="left" padding-left="25pt"><Paragraph><I><Value>Budget<br/>in USD</Value></I></Paragraph></Td>
</Tr>
</Tablehead>
<ForAll select="group">
<SetVariable variable="groupname" select="@name"/>
<ForAll select="class">
<SetVariable variable="classpos" select="position()"/>
<SetVariable variable="classname" select="@name"></SetVariable>
<ForAll select="article">
<Switch>
<Case test="$classpos = 1 and position() = 1">
<Tablerule/>
</Case>
</Switch>
<Tr>
<Td><Paragraph><Value select="$groupname"></Value></Paragraph></Td>
<Td><Paragraph><Value select="$classname"></Value></Paragraph></Td>
<Td align="right" padding-right="46pt" ><Paragraph><Value select="@number"></Value></Paragraph></Td>
<Td><Paragraph><Value select="@name"></Value></Paragraph></Td>
<Td padding-right="40pt" align="right"><Paragraph><Value select="@selling"></Value></Paragraph></Td>
<Td align="right"><Paragraph><Value select="sd:format-number(@price,' ',',')"/><Value>,—</Value></Paragraph></Td>
</Tr>
<SetVariable variable="groupname" select=""/>
<SetVariable variable="classname" select=""/>
</ForAll>
</ForAll>
</ForAll>
<Tablerule/>
</Table>
</PlaceObject>
<!-- second version -->
<PlaceObject>
<Textblock>
<Paragraph fontfamily="title">
<Value>Budget 2016</Value>
</Paragraph>
</Textblock>
</PlaceObject>
<PlaceObject>
<Table stretch="max" padding="2pt" width="14">
<Columns>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
<Column width="1*"/>
</Columns>
<Tablehead>
<Tablerule rulewidth="1pt"/>
<Tr valign="top">
<Td><Paragraph><I><Value>Group</Value></I></Paragraph></Td>
<Td><Paragraph><I><Value></Value></I></Paragraph></Td>
<Td align="right" padding-right="30pt"><Paragraph><I><Value>Article-<br/>number</Value></I></Paragraph></Td>
<Td><Paragraph><I><Value>Article-<br/>name</Value></I></Paragraph></Td>
<Td padding-right="10pt" align="right"><Paragraph><I><Value>Selling goal<br/>in pieces</Value></I></Paragraph></Td>
<Td align="center" padding-left="25pt"><Paragraph><I><Value>Budget<br/>in USD</Value></I></Paragraph></Td>
</Tr>
<Tablerule rulewidth="1pt"/>
</Tablehead>
<ForAll select="group">
<SetVariable variable="grouppos" select="position()"/>
<SetVariable variable="groupname" select="@name"/>
<ForAll select="class">
<SetVariable variable="classpos" select="position()"/>
<SetVariable variable="classname" select="@name"></SetVariable>
<ForAll select="article">
<Switch>
<Case test="$classpos = 1 and $grouppos > 1 and position() = 1">
<Tablerule/>
</Case>
<Case test="$classpos > 1 and position() = 1" >
<Tablerule start="2"/>
</Case>
</Switch>
<Tr>
<Td><Paragraph><Value select="$groupname"></Value></Paragraph></Td>
<Td><Paragraph><Value select="$classname"></Value></Paragraph></Td>
<Td align="right" padding-right="30pt" ><Paragraph><Value select="@number"></Value></Paragraph></Td>
<Td><Paragraph><Value select="@name"></Value></Paragraph></Td>
<Td padding-right="10pt" align="right"><Paragraph><Value select="@selling"></Value></Paragraph></Td>
<Td align="right"><Paragraph><Value select="sd:format-number(@price,' ',',')"/><Value>,—</Value></Paragraph></Td>
</Tr>
<SetVariable variable="groupname" select=""/>
<SetVariable variable="classname" select=""/>
</ForAll>
</ForAll>
</ForAll>
<Tablerule rulewidth="1pt"/>
</Table>
</PlaceObject>
<!-- and a third version with colors -->
<PlaceObject>
<Textblock>
<Paragraph fontfamily="title">
<Value>Budget 2016</Value>
</Paragraph>
</Textblock>
</PlaceObject>
<DefineColor name="bg" value="#DDD"/>
<PlaceObject>
<Table stretch="max" padding="2pt" width="14">
<Columns>
<Column width="1*" backgroundcolor="bg"/>
<Column width="1*" backgroundcolor="bg"/>
<Column width="1*" backgroundcolor="bg"/>
<Column width="1*" backgroundcolor="bg"/>
<Column width="1*"/>
<Column width="1*"/>
</Columns>
<Tablehead>
<Tr align="center" backgroundcolor="black" valign="top">
<Td padding-left="3pt" align="left"><Paragraph color="white"><I><Value>Group</Value></I></Paragraph></Td>
<Td border-right="1pt" border-right-color="white"><Paragraph color="white"><I><Value></Value></I></Paragraph></Td>
<Td><Paragraph color="white"><I><Value>Article-<br/>number</Value></I></Paragraph></Td>
<Td><Paragraph color="white"><I><Value>Article-<br/>name</Value></I></Paragraph></Td>
<Td><Paragraph color="white"><I><Value>Selling goal<br/>in pieces</Value></I></Paragraph></Td>
<Td><Paragraph color="white"><I><Value>Budget<br/>in USD</Value></I></Paragraph></Td>
</Tr>
</Tablehead>
<ForAll select="group">
<SetVariable variable="grouppos" select="position()"/>
<SetVariable variable="groupname" select="@name"/>
<ForAll select="class">
<SetVariable variable="classpos" select="position()"/>
<SetVariable variable="classname" select="@name"></SetVariable>
<ForAll select="article">
<Switch>
<Case test="$classpos = 1 and $grouppos > 1 and position() = 1">
<Tablerule color="white" rulewidth="2pt"/>
</Case>
</Switch>
<Tr>
<Td border-right="1pt" border-right-color="white"><Paragraph><Value select="$groupname"></Value></Paragraph></Td>
<Td border-right="1pt" border-right-color="white"><Paragraph><Value select="$classname"></Value></Paragraph></Td>
<Td align="right" padding-right="30pt" ><Paragraph><Value select="@number"></Value></Paragraph></Td>
<Td><Paragraph><Value select="@name"></Value></Paragraph></Td>
<Td padding-right="10pt" align="right"><Paragraph><Value select="@selling"></Value></Paragraph></Td>
<Td align="right"><Paragraph><Value select="sd:format-number(@price,' ',',')"/><Value>,—</Value></Paragraph></Td>
</Tr>
<SetVariable variable="groupname" select=""/>
<SetVariable variable="classname" select=""/>
</ForAll>
</ForAll>
</ForAll>
</Table>
</PlaceObject>
</Record>
</Layout>