File: address-style.xml

package info (click to toggle)
pxp 1.2.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,844 kB
  • sloc: ml: 28,666; xml: 2,597; makefile: 822; sh: 691
file content (361 lines) | stat: -rw-r--r-- 10,676 bytes parent folder | download | duplicates (6)
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $Id: address-style.xml,v 1.2 2001/07/02 22:50:26 gerd Exp $ -->

<!DOCTYPE application SYSTEM "ds-style.dtd" [
<!ENTITY h1.font  '-*-helvetica-bold-r-*-*-18-*-*-*-*-*-*-*'>
<!ENTITY h2.font  '-*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*'>
<!ENTITY h3.font  '-*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*'>
<!ENTITY dfl.font '-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*'>
<!ENTITY dfl.bold.font '-*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*'>
<!ENTITY in.font  '-*-lucidatypewriter-medium-r-*-*-12-*-*-*-*-*-*-*'>

<!ENTITY bg.button 'lightblue'>
<!ENTITY bg.hilfe  '#E0E0E0'>
<!ENTITY fg.hilfe  'black'>

<!ENTITY headline
  '<vbox>
     <label font="&h2.font;" fgcolor="darkgreen">More about person...</label>
     <vspace height="2mm"/>
     <hbox>
        <hbox bgcolor="black">
           <hspace width="18cm"/>
           <vbox><vspace height="2px"/></vbox>
        </hbox>
        <hspace width="5mm"/>
     </hbox>
     <vspace height="3mm"/>
   </vbox>'>

<!ENTITY help.headline
  '<vbox>
     <label font="&h2.font;" fgcolor="darkgreen">Help</label>
     <vspace height="2mm"/>
     <hbox>
        <hbox bgcolor="black">
           <hspace width="18cm"/>
           <vbox><vspace height="2px"/></vbox>
        </hbox>
        <hspace width="5mm"/>
     </hbox>
     <vspace height="3mm"/>
   </vbox>'>

<!ENTITY info.headline
  '<vbox>
     <label font="&h2.font;" fgcolor="darkgreen">About xmlforms</label>
     <vspace height="2mm"/>
     <hbox>
        <hbox bgcolor="black">
           <hspace width="18cm"/>
           <vbox><vspace height="2px"/></vbox>
        </hbox>
        <hspace width="5mm"/>
     </hbox>
     <vspace height="3mm"/>
   </vbox>'>

<!ENTITY footline
  '<vbox>
     <hbox>
        <hbox bgcolor="black">
           <hspace width="18cm"/>
           <vbox><vspace height="2px"/></vbox>
        </hbox>
        <hspace width="5mm"/>
     </hbox>
     <vspace height="2mm"/>
     <hbox>
       <button bgcolor="&bg.button;" label="Previous" action="list-prev"/>
       <button bgcolor="&bg.button;" label="Next" action="list-next"/>
       <hspace width="0pt" fill="yes"/>
       <button bgcolor="&bg.button;" label="Home" goto="start-page"/>
       <hspace width="5mm"/>
      </hbox>
   </vbox>'>

<!ENTITY help.footline
  '<vbox>
     <hbox>
        <hbox bgcolor="black">
           <hspace width="18cm"/>
           <vbox><vspace height="2px"/></vbox>
        </hbox>
        <hspace width="5mm"/>
     </hbox>
     <vspace height="2mm"/>
     <hbox>
       <button bgcolor="&bg.button;" label="Back" action="hist-prev"/>
       <hspace width="0pt" fill="yes"/>
      </hbox>
   </vbox>'>

<!ENTITY info.footline '&help.footline;'>

]>

<!-- ***************************************************************** -->
<!-- ************************               ************************** -->
<!-- ************************ Starting page ************************** -->
<!-- ************************               ************************** -->
<!-- ***************************************************************** -->

<application start="start-page"
             font="&dfl.font;"
>

  <mask name="start-page">
    <vspace height="5mm"/>
    <hbox>
      <hspace width="5mm"/>
      <vbox>
	<vbox font="&h1.font;">
	  <label>A sample xmlforms application:</label>
	  <label>Address editor</label>
	</vbox>
	<vspace height="1cm"/>
	<vbox>
	  <hbox>
	    <hbox width="6cm" halign="right">
	      <label>Name:</label>
	    </hbox>
	    <entry font="&in.font;" textwidth="40" slot="person.name"/>
	  </hbox>
	  <hbox>
	    <hbox width="6cm" halign="right">
	      <label>Postal address:</label>
	    </hbox>
	    <textbox font="&in.font;" 
		     textwidth="40" 
		     textheight="5"
		     slot="person.address"/>
	  </hbox>
	  <hbox>
	    <hbox width="6cm" halign="right">
	      <label>Email:</label>
	    </hbox>
	    <entry font="&in.font;" textwidth="40" slot="person.email"/>
	  </hbox>
	  <hbox>
	    <hbox width="6cm" halign="right">
	      <label>Telephone number:</label>
	    </hbox>
	    <entry font="&in.font;" textwidth="20" slot="person.phone-number"/>
	  </hbox>
	</vbox>
	<vspace height="1cm"/>
	<hbox>
	  <hspace width="3cm"/>
	  <hbox width="8cm">
	    <vbox>
	      <button bgcolor="&bg.button;"
		      label="More about this person..."
		      goto="person-list"/>
	      <button bgcolor="&bg.button;"
		      label="Save"
		      action="save"/>
	    </vbox>
          </hbox>
          <hbox>
            <vbox>
              <button bgcolor="&bg.button;"
		      label="Info..."
		      goto="info"/>
	      <button bgcolor="&bg.button;"
		      label="Exit (without saving)"
		      action="exit"/>
            </vbox>
          </hbox>
	</hbox>
	<vspace height="0px" fill="yes"/>
	<hbox>
	  <hspace width="0px" fill="yes"/>
	</hbox>
      </vbox>
    </hbox>
  </mask>

  <!-- ***************************************************************** -->
  <!-- **********************               **************************** -->
  <!-- ********************** More about... **************************** -->
  <!-- **********************               **************************** -->
  <!-- ***************************************************************** -->

  <sequence name="person-list">
    <mask name="Department">
      <!-- ************************** HEADER ************************** -->
      <vspace height="5mm"/>
      <hbox>
	<hspace width="5mm"/>
	<vbox>
	  &headline;
	  <!-- ************************** CONTENT ************************* -->
	  <label font="&h1.font;">Department</label>
	  <vspace height="3mm"/>
	  <label>The person is working in this department:</label>
	  <hbox>
	    <hspace width="1cm"/>
	    <entry font="&in.font;"
		   textwidth="70"
		   slot="person.department"/>
	  </hbox>
	  <vspace height="3mm"/>
	  <label>The project he/she is working for:</label>
	  <hbox>
	    <hspace width="1cm"/>
	    <textbox font="&in.font;"
		     textwidth="70"
		     textheight="5"
		     slot="person.project"/>
	  </hbox>
	  <vspace height="3mm"/>
	  <button bgcolor="&bg.button;"
		  label="Help"
		  goto="help.department"/>
	  <!-- ************************************************************ -->
	</vbox>
      </hbox>
      <!-- ************************** FOOTER ************************** -->
      <vspace height="0px" fill="yes"/>
      <hbox>
	<hspace width="5mm"/>
	&footline;
      </hbox>
    </mask>


    <mask name="business-contacts">
      <!-- ************************** HEADER ************************** -->
      <vspace height="5mm"/>
      <hbox>
	<hspace width="5mm"/>
	<vbox>
	  &headline;
	  <!-- ************************** CONTENT ************************* -->
	  <label font="&h1.font;">Business Contacts</label>
	  <vspace height="3mm"/>
	  <label>Notes about contacts:</label>
	  <hbox>
	    <hspace width="1cm"/>
	    <textbox font="&in.font;"
		     textwidth="70"
		     textheight="10"
		     slot="person.contacts"/>
	  </hbox>
	  <vspace height="3mm"/>
	  <button bgcolor="&bg.button;"
		  label="Help"
		  goto="help.business-contacts"/>
	  <!-- ************************************************************ -->
	</vbox>
      </hbox>
      <!-- ************************** FOOTER ************************** -->
      <vspace height="0px" fill="yes"/>
      <hbox>
	<hspace width="5mm"/>
	&footline;
      </hbox>
    </mask>

  </sequence>

  <!-- ***************************************************************** -->
  <!-- *****************************       ***************************** -->
  <!-- ***************************** Help  ***************************** -->
  <!-- *****************************       ***************************** -->
  <!-- ***************************************************************** -->

  <mask name="help.department">
    <!-- ************************** HEADER ************************** -->
    <vspace height="5mm"/>
    <hbox>
      <hspace width="5mm"/>
      <vbox>
	&help.headline;
	<!-- ************************** CONTENT ************************* -->
	<label font="&h1.font;">Department</label>
	<vspace height="3mm"/>
        <textbox fgcolor="&fg.hilfe;"
		 bgcolor="&bg.hilfe;"
		 textheight="15"
		 textwidth="70"
>The help system should be designed to help you filling out your form, but
writing help texts is so stupid...
</textbox>
	<!-- ************************************************************ -->
      </vbox>
    </hbox>
    <!-- ************************** FOOTER ************************** -->
    <vspace height="0px" fill="yes"/>
    <hbox>
      <hspace width="5mm"/>
      &help.footline;
    </hbox>
  </mask>

  <mask name="help.business-contacts">
    <!-- ************************** HEADER ************************** -->
    <vspace height="5mm"/>
    <hbox>
      <hspace width="5mm"/>
      <vbox>
	&help.headline;
	<!-- ************************** CONTENT ************************* -->
	<label font="&h1.font;">Business Contacts</label>
	<vspace height="3mm"/>
        <textbox fgcolor="&fg.hilfe;"
		 bgcolor="&bg.hilfe;"
		 textheight="15"
		 textwidth="70"
>It is often helpful to remember the last telephone and/or email contacts
quickly.
</textbox>
	<!-- ************************************************************ -->
      </vbox>
    </hbox>
    <!-- ************************** FOOTER ************************** -->
    <vspace height="0px" fill="yes"/>
    <hbox>
      <hspace width="5mm"/>
      &help.footline;
    </hbox>
  </mask>

  <!-- ***************************************************************** -->
  <!-- ***************************************************************** -->
  <!-- ****************************** Info ***************************** -->
  <!-- ***************************************************************** -->
  <!-- ***************************************************************** -->

  <mask name="info">
    <!-- ************************** HEADER ************************** -->
    <vspace height="5mm"/>
    <hbox>
      <hspace width="5mm"/>
      <vbox>
	&info.headline;
	<!-- ************************** CONTENT ************************* -->
	<vspace height="3mm"/>
        <textbox fgcolor="&fg.hilfe;"
		 bgcolor="&bg.hilfe;"
		 textheight="15"
		 textwidth="70"
><![CDATA[About "xmlforms":
Version <unknown>,
written by Gerd Stolpmann

Contact: gerd@gerd-stolpmann.de
]]></textbox>
	<!-- ************************************************************ -->
      </vbox>
    </hbox>
    <!-- ************************** FOOTER ************************** -->
    <vspace height="0px" fill="yes"/>
    <hbox>
      <hspace width="5mm"/>
      &info.footline;
    </hbox>
  </mask>


</application>