-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsheet_journal.dat
103 lines (87 loc) · 2.71 KB
/
sheet_journal.dat
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- This file contains the definition of the output sheet used for journal output.
The sheet is a spillover sheet, allowing it to be rendered repeatedly until
all of the journal entries have been output properly.
-->
<document signature="Hero Lab Data">
<!-- Table of journal entries
Make sure that we designate the table as having items of varying height.
That way, each journal entry can shrink or expand to contain the full extent
of its description text.
-->
<portal
id="oJournTbl"
style="outNormal">
<output_table
component="Journal"
showtemplate="oJrnPick"
showpicks="yes"
varyheight="yes">
</output_table>
</portal>
<!-- oJrnPick template
This template presents the content of each individual journal entry.
-->
<template
id="oJrnPick"
name="Output Journal Pick"
compset="Journal">
<portal
id="name"
style="outTitle">
<output_label>
<labeltext><![CDATA[
@text = field[jrnTitle].text & " - " & hero.actorname
]]></labeltext>
</output_label>
</portal>
<portal
id="info"
style="outNormal">
<output_label>
<labeltext><![CDATA[
var infotext as string
var spacing as string
spacing = "{vert 20}"
call JrnInfo
@text = infotext & field[jrnDescr].text
]]></labeltext>
</output_label>
</portal>
<position><![CDATA[
~both the name and info should span the full width
portal[name].width = width
portal[info].width = width
~update the height of the info portal based on the new width
perform portal[info].autoheight
~position the info beneath the name
perform portal[info].alignrel[ttob,name,8]
~our height is the extent of the bottommost portal
height = portal[info].bottom
]]></position>
</template>
<!-- oJournal layout
This layout contains only the table of journal entries.
-->
<layout
id="oJournal">
<portalref portal="oJournTbl"/>
<position><![CDATA[
~position and size the table to span the full layout
perform portal[oJournTbl].autoplace
]]></position>
</layout>
<!-- journal sheet
This sheet is a spillover sheet, so it will continue to be printed as long
as there remain journal entries that have not yet been printed. The sheet
consists of the single layout that renders the table of journal entries.
-->
<sheet
id="journal"
name="Journal"
spillover="yes">
<layoutref layout="oJournal"/>
<position><![CDATA[
]]></position>
</sheet>
</document>