origami 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,43 @@
1
+ =begin
2
+
3
+ This file is part of Origami, PDF manipulation framework for Ruby
4
+ Copyright (C) 2017 Guillaume Delugré.
5
+
6
+ Origami is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ Origami is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with Origami. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ =end
20
+
21
+ module Origami
22
+
23
+ module XDP
24
+
25
+ module Packet
26
+
27
+ #
28
+ # The _sourceSet_ packet contains ADO database queries, used to describe data
29
+ # binding to ADO data sources.
30
+ #
31
+ class SourceSet < XFA::Element
32
+ mime_type 'text/xml'
33
+
34
+ def initialize
35
+ super("sourceSet")
36
+
37
+ add_attribute 'xmlns', 'http://www.xfa.org/schema/xfa-source-set/2.8/'
38
+ end
39
+ end
40
+
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,44 @@
1
+ =begin
2
+
3
+ This file is part of Origami, PDF manipulation framework for Ruby
4
+ Copyright (C) 2017 Guillaume Delugré.
5
+
6
+ Origami is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ Origami is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with Origami. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ =end
20
+
21
+ module Origami
22
+
23
+ module XDP
24
+
25
+ module Packet
26
+
27
+ #
28
+ # The _stylesheet_ packet encloses a single XSLT stylesheet.
29
+ #
30
+ class StyleSheet < XFA::Element
31
+ mime_type 'text/css'
32
+
33
+ def initialize(id)
34
+ super("xsl:stylesheet")
35
+
36
+ add_attribute 'version', '1.0'
37
+ add_attribute 'xmlns:xsl', 'http://www.w3.org/1999/XSL/Transform'
38
+ add_attribute 'id', id.to_s
39
+ end
40
+ end
41
+
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,2059 @@
1
+ =begin
2
+
3
+ This file is part of Origami, PDF manipulation framework for Ruby
4
+ Copyright (C) 2017 Guillaume Delugré.
5
+
6
+ Origami is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ Origami is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with Origami. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ =end
20
+
21
+ module Origami
22
+
23
+ module XDP
24
+
25
+ module Packet
26
+
27
+ #
28
+ # This packet contains the form template.
29
+ #
30
+ class Template < XFA::Element
31
+ mime_type 'application/x-xfa-template'
32
+
33
+ class Boolean < XFA::Element
34
+ xfa_attribute 'id'
35
+ xfa_attribute 'name'
36
+ xfa_attribute 'use'
37
+ xfa_attribute 'usehref'
38
+
39
+ NO = 0
40
+ YES = 1
41
+
42
+ def initialize(bool = nil)
43
+ super('boolean')
44
+
45
+ self.text = bool
46
+ end
47
+ end
48
+
49
+ class Date < XFA::Element
50
+ xfa_attribute 'id'
51
+ xfa_attribute 'name'
52
+ xfa_attribute 'use'
53
+ xfa_attribute 'usehref'
54
+
55
+ def initialize(date = nil)
56
+ super('date')
57
+
58
+ self.text = date
59
+ end
60
+ end
61
+
62
+ class DateTime < XFA::Element
63
+ xfa_attribute 'id'
64
+ xfa_attribute 'name'
65
+ xfa_attribute 'use'
66
+ xfa_attribute 'usehref'
67
+
68
+ def initialize(datetime = nil)
69
+ super('dateTime')
70
+
71
+ self.text = datetime
72
+ end
73
+ end
74
+
75
+ class Decimal < XFA::Element
76
+ xfa_attribute 'fracDigits'
77
+ xfa_attribute 'id'
78
+ xfa_attribute 'leadDigits'
79
+ xfa_attribute 'name'
80
+ xfa_attribute 'use'
81
+ xfa_attribute 'usehref'
82
+
83
+ def initialize(number = nil)
84
+ super('decimal')
85
+
86
+ self.text = number
87
+ end
88
+ end
89
+
90
+ class ExData < XFA::Element
91
+ xfa_attribute 'contentType'
92
+ xfa_attribute 'href'
93
+ xfa_attribute 'id'
94
+ xfa_attribute 'maxLength'
95
+ xfa_attribute 'name'
96
+ xfa_attribute 'rid'
97
+ xfa_attribute 'transferEncoding'
98
+ xfa_attribute 'use'
99
+ xfa_attribute 'usehref'
100
+
101
+ def initialize(data = nil)
102
+ super('exData')
103
+
104
+ self.text = data
105
+ end
106
+ end
107
+
108
+ class Float < XFA::Element
109
+ xfa_attribute 'id'
110
+ xfa_attribute 'name'
111
+ xfa_attribute 'use'
112
+ xfa_attribute 'usehref'
113
+
114
+ def initialize(float = nil)
115
+ super('float')
116
+
117
+ self.text = float
118
+ end
119
+ end
120
+
121
+ class Image < XFA::Element
122
+ xfa_attribute 'aspect'
123
+ xfa_attribute 'contentType'
124
+ xfa_attribute 'href'
125
+ xfa_attribute 'id'
126
+ xfa_attribute 'name'
127
+ xfa_attribute 'transferEncoding'
128
+ xfa_attribute 'use'
129
+ xfa_attribute 'usehref'
130
+
131
+ def initialize(data = nil)
132
+ super('image')
133
+
134
+ self.text = data
135
+ end
136
+ end
137
+
138
+ class Integer < XFA::Element
139
+ xfa_attribute 'id'
140
+ xfa_attribute 'name'
141
+ xfa_attribute 'use'
142
+ xfa_attribute 'usehref'
143
+
144
+ def initialize(int = nil)
145
+ super('integer')
146
+
147
+ self.text = int
148
+ end
149
+ end
150
+
151
+ class Text < XFA::Element
152
+ xfa_attribute 'id'
153
+ xfa_attribute 'maxChars'
154
+ xfa_attribute 'name'
155
+ xfa_attribute 'rid'
156
+ xfa_attribute 'use'
157
+ xfa_attribute 'usehref'
158
+
159
+ def initialize(text = "")
160
+ super('text')
161
+
162
+ self.text = text
163
+ end
164
+ end
165
+
166
+ class Time < XFA::Element
167
+ xfa_attribute 'id'
168
+ xfa_attribute 'name'
169
+ xfa_attribute 'use'
170
+ xfa_attribute 'usehref'
171
+
172
+ def initialize(time = nil)
173
+ super('time')
174
+
175
+ self.text = time
176
+ end
177
+ end
178
+
179
+ class Extras < XFA::Element
180
+ xfa_attribute 'id'
181
+ xfa_attribute 'name'
182
+ xfa_attribute 'use'
183
+ xfa_attribute 'usehref'
184
+
185
+ xfa_node 'boolean', Template::Boolean
186
+ xfa_node 'date', Template::Date
187
+ xfa_node 'dateTime', Template::DateTime
188
+ xfa_node 'decimal', Template::Decimal
189
+ xfa_node 'exData', Template::ExData
190
+ xfa_node 'extras', Template::Extras
191
+ xfa_node 'float', Template::Float
192
+ xfa_node 'image', Template::Image
193
+ xfa_node 'integer', Template::Integer
194
+ xfa_node 'text', Template::Text
195
+ xfa_node 'time', Template::Time
196
+
197
+ def initialize
198
+ super('extras')
199
+ end
200
+ end
201
+
202
+ class Speak < XFA::Element
203
+ xfa_attribute 'disable'
204
+ xfa_attribute 'id'
205
+ xfa_attribute 'priority'
206
+ xfa_attribute 'rid'
207
+ xfa_attribute 'use'
208
+ xfa_attribute 'usehref'
209
+
210
+ def initialize(text = "")
211
+ super('speak')
212
+
213
+ self.text = text
214
+ end
215
+ end
216
+
217
+ class ToolTip < XFA::Element
218
+ xfa_attribute 'id'
219
+ xfa_attribute 'rid'
220
+ xfa_attribute 'use'
221
+ xfa_attribute 'usehref'
222
+
223
+ def initialize(text = "")
224
+ super('toolTip')
225
+
226
+ self.text = text
227
+ end
228
+ end
229
+
230
+ class Assist < XFA::Element
231
+ xfa_attribute 'id'
232
+ xfa_attribute 'role'
233
+ xfa_attribute 'use'
234
+ xfa_attribute 'usehref'
235
+
236
+ xfa_node 'speak', Template::Speak, 0..1
237
+ xfa_node 'toolTip', Template::ToolTip, 0..1
238
+
239
+ def initialize
240
+ super('assist')
241
+ end
242
+ end
243
+
244
+ class Picture < XFA::Element
245
+ xfa_attribute 'id'
246
+ xfa_attribute 'use'
247
+ xfa_attribute 'usehref'
248
+
249
+ def initialize(data = nil)
250
+ super('picture')
251
+
252
+ self.text = data
253
+ end
254
+ end
255
+
256
+ class Bind < XFA::Element
257
+ xfa_attribute 'match'
258
+ xfa_attribute 'ref'
259
+
260
+ xfa_node 'picture', Template::Picture, 0..1
261
+
262
+ def initialize
263
+ super('bind')
264
+ end
265
+ end
266
+
267
+ class Bookend < XFA::Element
268
+ xfa_attribute 'id'
269
+ xfa_attribute 'leader'
270
+ xfa_attribute 'trailer'
271
+ xfa_attribute 'use'
272
+ xfa_attribute 'usehref'
273
+
274
+ def initialize
275
+ super('bookend')
276
+ end
277
+ end
278
+
279
+ class Color < XFA::Element
280
+ xfa_attribute 'cSpace'
281
+ xfa_attribute 'id'
282
+ xfa_attribute 'use'
283
+ xfa_attribute 'usehref'
284
+ xfa_attribute 'value'
285
+
286
+ xfa_node 'extras', Template::Extras, 0..1
287
+
288
+ def initialize
289
+ super('color')
290
+
291
+ self.cSpace = "SRGB"
292
+ end
293
+ end
294
+
295
+ class Corner < XFA::Element
296
+ xfa_attribute 'id'
297
+ xfa_attribute 'inverted'
298
+ xfa_attribute 'join'
299
+ xfa_attribute 'presence'
300
+ xfa_attribute 'radius'
301
+ xfa_attribute 'stroke'
302
+ xfa_attribute 'thickness'
303
+ xfa_attribute 'use'
304
+ xfa_attribute 'usehref'
305
+
306
+ xfa_node 'color', Template::Color, 0..1
307
+ xfa_node 'extras', Template::Extras, 0..1
308
+
309
+ def initialize
310
+ super('corner')
311
+ end
312
+ end
313
+
314
+ class Edge < XFA::Element
315
+ xfa_attribute 'cap'
316
+ xfa_attribute 'id'
317
+ xfa_attribute 'presence'
318
+ xfa_attribute 'stroke'
319
+ xfa_attribute 'thickness'
320
+ xfa_attribute 'use'
321
+ xfa_attribute 'usehref'
322
+
323
+ xfa_node 'color', Template::Color, 0..1
324
+ xfa_node 'extras', Template::Extras, 0..1
325
+
326
+ def initialize
327
+ super('edge')
328
+ end
329
+ end
330
+
331
+ class Linear < XFA::Element
332
+ xfa_attribute 'id'
333
+ xfa_attribute 'type'
334
+ xfa_attribute 'use'
335
+ xfa_attribute 'usehref'
336
+
337
+ xfa_node 'color', Template::Color, 0..1
338
+ xfa_node 'extras', Template::Extras, 0..1
339
+
340
+ def initialize
341
+ super('linear')
342
+ end
343
+ end
344
+
345
+ class Pattern < XFA::Element
346
+ xfa_attribute 'id'
347
+ xfa_attribute 'type'
348
+ xfa_attribute 'use'
349
+ xfa_attribute 'usehref'
350
+
351
+ xfa_node 'color', Template::Color, 0..1
352
+ xfa_node 'extras', Template::Extras, 0..1
353
+
354
+ def initialize
355
+ super('pattern')
356
+ end
357
+ end
358
+
359
+ class Radial < XFA::Element
360
+ xfa_attribute 'id'
361
+ xfa_attribute 'type'
362
+ xfa_attribute 'use'
363
+ xfa_attribute 'usehref'
364
+
365
+ xfa_node 'color', Template::Color, 0..1
366
+ xfa_node 'extras', Template::Extras, 0..1
367
+
368
+ def initialize
369
+ super('radial')
370
+ end
371
+ end
372
+
373
+ class Solid < XFA::Element
374
+ xfa_attribute 'id'
375
+ xfa_attribute 'use'
376
+ xfa_attribute 'usehref'
377
+
378
+ xfa_node 'extras', Template::Extras, 0..1
379
+
380
+ def initialize
381
+ super('solid')
382
+ end
383
+ end
384
+
385
+ class Stipple < XFA::Element
386
+ xfa_attribute 'id'
387
+ xfa_attribute 'rate'
388
+ xfa_attribute 'use'
389
+ xfa_attribute 'usehref'
390
+
391
+ xfa_node 'color', Template::Color, 0..1
392
+ xfa_node 'extras', Template::Extras, 0..1
393
+
394
+ def initialize
395
+ super('stipple')
396
+ end
397
+ end
398
+
399
+ class Fill < XFA::Element
400
+ xfa_attribute 'id'
401
+ xfa_attribute 'presence'
402
+ xfa_attribute 'use'
403
+ xfa_attribute 'usehref'
404
+
405
+ xfa_node 'color', Template::Color, 0..1
406
+ xfa_node 'extras', Template::Extras, 0..1
407
+ xfa_node 'linear', Template::Linear, 0..1
408
+ xfa_node 'pattern', Template::Pattern, 0..1
409
+ xfa_node 'radial', Template::Radial, 0..1
410
+ xfa_node 'solid', Template::Solid, 0..1
411
+ xfa_node 'stipple', Template::Stipple, 0..1
412
+
413
+ def initialize
414
+ super('fill')
415
+ end
416
+ end
417
+
418
+ class Margin < XFA::Element
419
+ xfa_attribute 'bottomInset'
420
+ xfa_attribute 'id'
421
+ xfa_attribute 'leftInset'
422
+ xfa_attribute 'rightInset'
423
+ xfa_attribute 'topInset'
424
+ xfa_attribute 'use'
425
+ xfa_attribute 'usehref'
426
+
427
+ xfa_node 'extras', Template::Extras, 0..1
428
+
429
+ def initialize
430
+ super('margin')
431
+ end
432
+ end
433
+
434
+ class Border < XFA::Element
435
+ xfa_attribute 'break'
436
+ xfa_attribute 'hand'
437
+ xfa_attribute 'id'
438
+ xfa_attribute 'presence'
439
+ xfa_attribute 'relevant'
440
+ xfa_attribute 'use'
441
+ xfa_attribute 'usehref'
442
+
443
+ xfa_node 'corner', Template::Corner, 0..4
444
+ xfa_node 'edge', Template::Edge, 0..4
445
+ xfa_node 'extras', Template::Extras, 0..1
446
+ xfa_node 'fill', Template::Fill, 0..1
447
+ xfa_node 'margin', Template::Margin, 0..1
448
+
449
+ def initialize
450
+ super('border')
451
+ end
452
+ end
453
+
454
+ class Break < XFA::Element
455
+ xfa_attribute 'after'
456
+ xfa_attribute 'afterTarget'
457
+ xfa_attribute 'before'
458
+ xfa_attribute 'beforeTarget'
459
+ xfa_attribute 'bookendLeader'
460
+ xfa_attribute 'bookendTrailer'
461
+ xfa_attribute 'id'
462
+ xfa_attribute 'overflowLeader'
463
+ xfa_attribute 'overflowTarget'
464
+ xfa_attribute 'overflowTrailer'
465
+ xfa_attribute 'startNew'
466
+ xfa_attribute 'use'
467
+ xfa_attribute 'usehref'
468
+
469
+ xfa_node 'extras', Template::Extras, 0..1
470
+
471
+ def initialize
472
+ super('break')
473
+ end
474
+ end
475
+
476
+ class Message < XFA::Element
477
+ xfa_attribute 'id'
478
+ xfa_attribute 'use'
479
+ xfa_attribute 'usehref'
480
+
481
+ xfa_node 'text', Template::Text
482
+
483
+ def initialize
484
+ super('message')
485
+ end
486
+ end
487
+
488
+ class Script < XFA::Element
489
+ xfa_attribute 'binding'
490
+ xfa_attribute 'contentType'
491
+ xfa_attribute 'id'
492
+ xfa_attribute 'name'
493
+ xfa_attribute 'runAt'
494
+ xfa_attribute 'use'
495
+ xfa_attribute 'usehref'
496
+
497
+ def initialize(script = "")
498
+ super('script')
499
+
500
+ self.text = script
501
+ end
502
+ end
503
+
504
+ class JavaScript < Script
505
+ def initialize(script = "")
506
+ super(script)
507
+
508
+ self.contentType = 'application/x-javascript'
509
+ end
510
+ end
511
+
512
+ class FormCalcScript < Script
513
+ def initialize(script = "")
514
+ super(script)
515
+
516
+ self.contentType = 'application/x-formcalc'
517
+ end
518
+ end
519
+
520
+ class Calculate < XFA::Element
521
+ xfa_attribute 'id'
522
+ xfa_attribute 'override'
523
+ xfa_attribute 'use'
524
+ xfa_attribute 'usehref'
525
+
526
+ xfa_node 'extras', Template::Extras, 0..1
527
+ xfa_node 'message', Template::Message, 0..1
528
+ xfa_node 'script', Template::Script, 0..1
529
+
530
+ def initialize
531
+ super('calculate')
532
+ end
533
+ end
534
+
535
+ class Desc < XFA::Element
536
+ xfa_attribute 'id'
537
+ xfa_attribute 'use'
538
+ xfa_attribute 'usehref'
539
+
540
+ xfa_node 'boolean', Template::Boolean
541
+ xfa_node 'date', Template::Date
542
+ xfa_node 'dateTime', Template::DateTime
543
+ xfa_node 'decimal', Template::Decimal
544
+ xfa_node 'exData', Template::ExData
545
+ xfa_node 'float', Template::Float
546
+ xfa_node 'image', Template::Image
547
+ xfa_node 'integer', Template::Integer
548
+ xfa_node 'text', Template::Text
549
+ xfa_node 'time', Template::Time
550
+
551
+ def initialize
552
+ super('desc')
553
+ end
554
+ end
555
+
556
+ class Keep < XFA::Element
557
+ xfa_attribute 'id'
558
+ xfa_attribute 'intact'
559
+ xfa_attribute 'next'
560
+ xfa_attribute 'previous'
561
+ xfa_attribute 'use'
562
+ xfa_attribute 'usehref'
563
+
564
+ xfa_node 'extras', Template::Extras, 0..1
565
+
566
+ NONE = "none"
567
+ CONTENTAREA = "contentArea"
568
+ PAGEAREA = "pageArea"
569
+
570
+ def initialize
571
+ super('keep')
572
+ end
573
+ end
574
+
575
+ class Occur < XFA::Element
576
+ xfa_attribute 'id'
577
+ xfa_attribute 'initial'
578
+ xfa_attribute 'max'
579
+ xfa_attribute 'min'
580
+ xfa_attribute 'use'
581
+ xfa_attribute 'usehref'
582
+
583
+ xfa_node 'extras', Template::Extras, 0..1
584
+
585
+ def initialize
586
+ super('occur')
587
+ end
588
+ end
589
+
590
+ class Overflow < XFA::Element
591
+ xfa_attribute 'id'
592
+ xfa_attribute 'leader'
593
+ xfa_attribute 'target'
594
+ xfa_attribute 'trailer'
595
+ xfa_attribute 'use'
596
+ xfa_attribute 'usehref'
597
+
598
+ def initialize
599
+ super('overflow')
600
+ end
601
+ end
602
+
603
+ class Medium < XFA::Element
604
+ xfa_attribute 'id'
605
+ xfa_attribute 'imagingBBox'
606
+ xfa_attribute 'long'
607
+ xfa_attribute 'orientation'
608
+ xfa_attribute 'short'
609
+ xfa_attribute 'stock'
610
+ xfa_attribute 'trayIn'
611
+ xfa_attribute 'trayOut'
612
+ xfa_attribute 'use'
613
+ xfa_attribute 'usehref'
614
+
615
+ def initialize
616
+ super('medium')
617
+ end
618
+ end
619
+
620
+ class Font < XFA::Element
621
+ xfa_attribute 'baselineShift'
622
+ xfa_attribute 'fontHorizontalScale'
623
+ xfa_attribute 'fontVerticalScale'
624
+ xfa_attribute 'id'
625
+ xfa_attribute 'kerningMode'
626
+ xfa_attribute 'letterSpacing'
627
+ xfa_attribute 'lineThrough'
628
+ xfa_attribute 'lineThroughPeriod'
629
+ xfa_attribute 'overline'
630
+ xfa_attribute 'overlinePeriod'
631
+ xfa_attribute 'posture'
632
+ xfa_attribute 'size'
633
+ xfa_attribute 'typeface'
634
+ xfa_attribute 'underline'
635
+ xfa_attribute 'underlinePeriod'
636
+ xfa_attribute 'use'
637
+ xfa_attribute 'usehref'
638
+ xfa_attribute 'weight'
639
+
640
+ xfa_node 'extras', Template::Extras, 0..1
641
+ xfa_node 'fill', Template::Fill, 0..1
642
+
643
+ def initialize
644
+ super('font')
645
+ end
646
+ end
647
+
648
+ class Hyphenation < XFA::Element
649
+ xfa_attribute 'excludeAllCaps'
650
+ xfa_attribute 'excludeInitialCap'
651
+ xfa_attribute 'hyphenate'
652
+ xfa_attribute 'id'
653
+ xfa_attribute 'pushCharacterCount'
654
+ xfa_attribute 'remainCharacterCount'
655
+ xfa_attribute 'use'
656
+ xfa_attribute 'usehref'
657
+ xfa_attribute 'wordCharacterCount'
658
+
659
+ def initialize
660
+ super('hyphenation')
661
+ end
662
+ end
663
+
664
+ class Para < XFA::Element
665
+ xfa_attribute 'hAlign'
666
+ xfa_attribute 'id'
667
+ xfa_attribute 'lineHeight'
668
+ xfa_attribute 'marginLeft'
669
+ xfa_attribute 'marginRight'
670
+ xfa_attribute 'orphans'
671
+ xfa_attribute 'preserve'
672
+ xfa_attribute 'radixOffset'
673
+ xfa_attribute 'spaceAbove'
674
+ xfa_attribute 'spaceBelow'
675
+ xfa_attribute 'tabDefault'
676
+ xfa_attribute 'tabStops'
677
+ xfa_attribute 'textIndent'
678
+ xfa_attribute 'use'
679
+ xfa_attribute 'usehref'
680
+ xfa_attribute 'vAlign'
681
+ xfa_attribute 'widows'
682
+
683
+ xfa_node 'hyphenation', Template::Hyphenation, 0..1
684
+
685
+ def initialize
686
+ super('para')
687
+ end
688
+ end
689
+
690
+ class Arc < XFA::Element
691
+ xfa_attribute 'circular'
692
+ xfa_attribute 'hand'
693
+ xfa_attribute 'id'
694
+ xfa_attribute 'startAngle'
695
+ xfa_attribute 'sweepAngle'
696
+ xfa_attribute 'use'
697
+ xfa_attribute 'usehref'
698
+
699
+ xfa_node 'edge', Template::Edge, 0..1
700
+ xfa_node 'fill', Template::Fill, 0..1
701
+
702
+ def initialize
703
+ super('arc')
704
+ end
705
+ end
706
+
707
+ class Line < XFA::Element
708
+ xfa_attribute 'hand'
709
+ xfa_attribute 'id'
710
+ xfa_attribute 'slope'
711
+ xfa_attribute 'use'
712
+ xfa_attribute 'usehref'
713
+
714
+ xfa_node 'edge', Template::Edge, 0..1
715
+
716
+ def initialize
717
+ super('line')
718
+ end
719
+ end
720
+
721
+ class Rectangle < XFA::Element
722
+ xfa_attribute 'hand'
723
+ xfa_attribute 'id'
724
+ xfa_attribute 'use'
725
+ xfa_attribute 'usehref'
726
+
727
+ xfa_node 'corner', Template::Corner, 0..4
728
+ xfa_node 'edge', Template::Edge, 0..4
729
+ xfa_node 'fill', Template::Fill, 0..4
730
+
731
+ def initialize
732
+ super('rectangle')
733
+ end
734
+ end
735
+
736
+ class Value < XFA::Element
737
+ xfa_attribute 'id'
738
+ xfa_attribute 'override'
739
+ xfa_attribute 'relevant'
740
+ xfa_attribute 'use'
741
+ xfa_attribute 'usehref'
742
+
743
+ xfa_node 'arc', Template::Arc, 0..1
744
+ xfa_node 'boolean', Template::Boolean, 0..1
745
+ xfa_node 'date', Template::Date, 0..1
746
+ xfa_node 'dateTime', Template::DateTime, 0..1
747
+ xfa_node 'decimal', Template::Decimal, 0..1
748
+ xfa_node 'exData', Template::ExData, 0..1
749
+ xfa_node 'float', Template::Float, 0..1
750
+ xfa_node 'image', Template::Image, 0..1
751
+ xfa_node 'integer', Template::Integer, 0..1
752
+ xfa_node 'line', Template::Line, 0..1
753
+ xfa_node 'rectangle', Template::Rectangle, 0..1
754
+ xfa_node 'text', Template::Text, 0..1
755
+ xfa_node 'time', Template::Time, 0..1
756
+
757
+ def initialize
758
+ super('value')
759
+ end
760
+ end
761
+
762
+ class Caption < XFA::Element
763
+ xfa_attribute 'id'
764
+ xfa_attribute 'placement'
765
+ xfa_attribute 'presence'
766
+ xfa_attribute 'reserve'
767
+ xfa_attribute 'use'
768
+ xfa_attribute 'usehref'
769
+
770
+ xfa_node 'extras', Template::Extras, 0..1
771
+ xfa_node 'font', Template::Font, 0..1
772
+ xfa_node 'margin', Template::Margin, 0..1
773
+ xfa_node 'para', Template::Para, 0..1
774
+ xfa_node 'value', Template::Value, 0..1
775
+
776
+ def initialize
777
+ super('caption')
778
+ end
779
+ end
780
+
781
+ class Traverse < XFA::Element
782
+ xfa_attribute 'id'
783
+ xfa_attribute 'operation'
784
+ xfa_attribute 'ref'
785
+ xfa_attribute 'use'
786
+ xfa_attribute 'usehref'
787
+
788
+ xfa_node 'extras', Template::Extras, 0..1
789
+ xfa_node 'script', Template::Script, 0..1
790
+
791
+ def initialize
792
+ super('traverse')
793
+ end
794
+ end
795
+
796
+ class Traversal < XFA::Element
797
+ xfa_attribute 'id'
798
+ xfa_attribute 'use'
799
+ xfa_attribute 'usehref'
800
+
801
+ xfa_node 'extras', Template::Extras, 0..1
802
+
803
+ xfa_node 'traverse', Template::Traverse
804
+
805
+ def initialize
806
+ super('traversal')
807
+ end
808
+ end
809
+
810
+ class Certificate < XFA::Element
811
+ xfa_attribute 'id'
812
+ xfa_attribute 'name'
813
+ xfa_attribute 'use'
814
+ xfa_attribute 'usehref'
815
+
816
+ def initialize(b64data = nil)
817
+ super('certificate')
818
+
819
+ self.text = b64data
820
+ end
821
+ end
822
+
823
+ class Encrypt < XFA::Element
824
+ xfa_attribute 'id'
825
+ xfa_attribute 'use'
826
+ xfa_attribute 'usehref'
827
+
828
+ xfa_node 'certificate', Template::Certificate, 0..1
829
+
830
+ def initialize
831
+ super('encrypt')
832
+ end
833
+ end
834
+
835
+ class Barcode < XFA::Element
836
+ xfa_attribute 'charEncoding'
837
+ xfa_attribute 'checksum'
838
+ xfa_attribute 'dataColumnCount'
839
+ xfa_attribute 'dataLength'
840
+ xfa_attribute 'dataPrep'
841
+ xfa_attribute 'dataRowCount'
842
+ xfa_attribute 'endChar'
843
+ xfa_attribute 'errorConnectionLevel'
844
+ xfa_attribute 'id'
845
+ xfa_attribute 'moduleHeight'
846
+ xfa_attribute 'moduleWidth'
847
+ xfa_attribute 'printCheckDigit'
848
+ xfa_attribute 'rowColumnRatio'
849
+ xfa_attribute 'startChar'
850
+ xfa_attribute 'textLocation'
851
+ xfa_attribute 'truncate'
852
+ xfa_attribute 'type'
853
+ xfa_attribute 'upsMode'
854
+ xfa_attribute 'use'
855
+ xfa_attribute 'usehref'
856
+ xfa_attribute 'wideNarrowRatio'
857
+
858
+ xfa_node 'encrypt', Template::Encrypt, 0..1
859
+ xfa_node 'extras', Template::Extras, 0..1
860
+
861
+ def initialize
862
+ super('barcode')
863
+ end
864
+ end
865
+
866
+ class Button < XFA::Element
867
+ xfa_attribute 'highlight'
868
+ xfa_attribute 'id'
869
+ xfa_attribute 'use'
870
+ xfa_attribute 'usehref'
871
+
872
+ xfa_node 'extras', Template::Extras, 0..1
873
+
874
+ def initialize
875
+ super('button')
876
+ end
877
+ end
878
+
879
+ class CheckButton < XFA::Element
880
+ xfa_attribute 'id'
881
+ xfa_attribute 'mark'
882
+ xfa_attribute 'shape'
883
+ xfa_attribute 'size'
884
+ xfa_attribute 'use'
885
+ xfa_attribute 'usehref'
886
+
887
+ xfa_node 'border', Template::Border, 0..1
888
+ xfa_node 'extras', Template::Extras, 0..1
889
+ xfa_node 'margin', Template::Margin, 0..1
890
+
891
+ def initialize
892
+ super('checkButton')
893
+ end
894
+ end
895
+
896
+ class ChoiceList < XFA::Element
897
+ xfa_attribute 'commitOn'
898
+ xfa_attribute 'id'
899
+ xfa_attribute 'open'
900
+ xfa_attribute 'textEntry'
901
+ xfa_attribute 'use'
902
+ xfa_attribute 'usehref'
903
+
904
+ xfa_node 'border', Template::Border, 0..1
905
+ xfa_node 'extras', Template::Extras, 0..1
906
+ xfa_node 'margin', Template::Margin, 0..1
907
+
908
+ def initialize
909
+ super('choiceList')
910
+ end
911
+ end
912
+
913
+ class Comb < XFA::Element
914
+ xfa_attribute 'id'
915
+ xfa_attribute 'numberOfCells'
916
+ xfa_attribute 'use'
917
+ xfa_attribute 'usehref'
918
+
919
+ def initialize
920
+ super('comb')
921
+ end
922
+ end
923
+
924
+ class DateTimeEdit < XFA::Element
925
+ xfa_attribute 'hScrollPolicy'
926
+ xfa_attribute 'id'
927
+ xfa_attribute 'picker'
928
+ xfa_attribute 'use'
929
+ xfa_attribute 'usehref'
930
+
931
+ xfa_node 'border', Template::Border, 0..1
932
+ xfa_node 'comb', Template::Comb, 0..1
933
+ xfa_node 'extras', Template::Extras, 0..1
934
+ xfa_node 'margin', Template::Margin, 0..1
935
+
936
+ def initialize
937
+ super('dateTimeEdit')
938
+ end
939
+ end
940
+
941
+ class DefaultUI < XFA::Element
942
+ xfa_attribute 'id'
943
+ xfa_attribute 'use'
944
+ xfa_attribute 'usehref'
945
+
946
+ xfa_node 'extras', Template::Extras, 0..1
947
+
948
+ def initialize
949
+ super('defaultUi')
950
+ end
951
+ end
952
+
953
+ class ImageEdit < XFA::Element
954
+ xfa_attribute 'data'
955
+ xfa_attribute 'id'
956
+ xfa_attribute 'use'
957
+ xfa_attribute 'usehref'
958
+
959
+ xfa_node 'border', Template::Border, 0..1
960
+ xfa_node 'extras', Template::Extras, 0..1
961
+ xfa_node 'margin', Template::Margin, 0..1
962
+
963
+ def initialize
964
+ super('imageEdit')
965
+ end
966
+ end
967
+
968
+ class NumericEdit < XFA::Element
969
+ xfa_attribute 'hScrollPolicy'
970
+ xfa_attribute 'id'
971
+ xfa_attribute 'use'
972
+ xfa_attribute 'usehref'
973
+
974
+ xfa_node 'border', Template::Border, 0..1
975
+ xfa_node 'comb', Template::Comb, 0..1
976
+ xfa_node 'extras', Template::Extras, 0..1
977
+ xfa_node 'margin', Template::Margin, 0..1
978
+
979
+ def initialize
980
+ super('numericEdit')
981
+ end
982
+ end
983
+
984
+ class PasswordEdit < XFA::Element
985
+ xfa_attribute 'hScrollPolicy'
986
+ xfa_attribute 'id'
987
+ xfa_attribute 'passwordChar'
988
+ xfa_attribute 'use'
989
+ xfa_attribute 'usehref'
990
+
991
+ xfa_node 'border', Template::Border, 0..1
992
+ xfa_node 'extras', Template::Extras, 0..1
993
+ xfa_node 'margin', Template::Margin, 0..1
994
+
995
+ def initialize
996
+ super('passwordEdit')
997
+ end
998
+ end
999
+
1000
+ class AppearanceFilter < XFA::Element
1001
+ xfa_attribute 'id'
1002
+ xfa_attribute 'type'
1003
+ xfa_attribute 'use'
1004
+ xfa_attribute 'usehref'
1005
+
1006
+ def initialize(name = "")
1007
+ super('appearanceFilter')
1008
+
1009
+ self.text = name
1010
+ end
1011
+ end
1012
+
1013
+ class Issuers < XFA::Element
1014
+ xfa_attribute 'id'
1015
+ xfa_attribute 'type'
1016
+ xfa_attribute 'use'
1017
+ xfa_attribute 'usehref'
1018
+
1019
+ xfa_node 'certificate', Template::Certificate
1020
+
1021
+ def initialize
1022
+ super('issuers')
1023
+ end
1024
+ end
1025
+
1026
+ class KeyUsage < XFA::Element
1027
+ xfa_attribute 'crlSign'
1028
+ xfa_attribute 'dataEncipherment'
1029
+ xfa_attribute 'decipherOnly'
1030
+ xfa_attribute 'digitalSignature'
1031
+ xfa_attribute 'encipherOnly'
1032
+ xfa_attribute 'id'
1033
+ xfa_attribute 'keyAgreement'
1034
+ xfa_attribute 'keyCertSign'
1035
+ xfa_attribute 'keyEncipherment'
1036
+ xfa_attribute 'nonRepudiation'
1037
+ xfa_attribute 'type'
1038
+ xfa_attribute 'use'
1039
+ xfa_attribute 'usehref'
1040
+
1041
+ def initialize
1042
+ super('keyUsage')
1043
+ end
1044
+ end
1045
+
1046
+ class OID < XFA::Element
1047
+ xfa_attribute 'id'
1048
+ xfa_attribute 'name'
1049
+ xfa_attribute 'use'
1050
+ xfa_attribute 'usehref'
1051
+
1052
+ def initialize(oid = "")
1053
+ super('oid')
1054
+
1055
+ self.text = oid
1056
+ end
1057
+ end
1058
+
1059
+ class OIDs < XFA::Element
1060
+ xfa_attribute 'id'
1061
+ xfa_attribute 'type'
1062
+ xfa_attribute 'use'
1063
+ xfa_attribute 'usehref'
1064
+
1065
+ xfa_node 'oid', Template::OID
1066
+
1067
+ def initialize
1068
+ super('oids')
1069
+ end
1070
+ end
1071
+
1072
+ class Signing < XFA::Element
1073
+ xfa_attribute 'id'
1074
+ xfa_attribute 'type'
1075
+ xfa_attribute 'use'
1076
+ xfa_attribute 'usehref'
1077
+
1078
+ xfa_node 'certificate', Template::Certificate
1079
+
1080
+ def initialize
1081
+ super('signing')
1082
+ end
1083
+ end
1084
+
1085
+ class SubjectDN < XFA::Element
1086
+ xfa_attribute 'delimiter'
1087
+ xfa_attribute 'id'
1088
+ xfa_attribute 'name'
1089
+ xfa_attribute 'use'
1090
+ xfa_attribute 'usehref'
1091
+
1092
+ def initialize(data = "")
1093
+ super('subjectDN')
1094
+
1095
+ self.text = data
1096
+ end
1097
+ end
1098
+
1099
+ class SubjectDNs < XFA::Element
1100
+ xfa_attribute 'id'
1101
+ xfa_attribute 'type'
1102
+ xfa_attribute 'use'
1103
+ xfa_attribute 'usehref'
1104
+
1105
+ xfa_node 'subjectDN', Template::SubjectDN, 0..1
1106
+
1107
+ def initialize
1108
+ super('subjectDNs')
1109
+ end
1110
+ end
1111
+
1112
+ class Certificates < XFA::Element
1113
+ xfa_attribute 'credentialServerPolicy'
1114
+ xfa_attribute 'id'
1115
+ xfa_attribute 'url'
1116
+ xfa_attribute 'urlPolicy'
1117
+ xfa_attribute 'use'
1118
+ xfa_attribute 'usehref'
1119
+
1120
+ xfa_node 'issuers', Template::Issuers, 0..1
1121
+ xfa_node 'keyUsage', Template::KeyUsage, 0..1
1122
+ xfa_node 'oids', Template::OIDs, 0..1
1123
+ xfa_node 'signing', Template::Signing, 0..1
1124
+ xfa_node 'subjectDNs', Template::SubjectDNs, 0..1
1125
+
1126
+ def initialize
1127
+ super('certificates')
1128
+ end
1129
+ end
1130
+
1131
+ class DigestMethod < XFA::Element
1132
+ xfa_attribute 'id'
1133
+ xfa_attribute 'use'
1134
+ xfa_attribute 'usehref'
1135
+
1136
+ def initialize(method = "")
1137
+ super('digestMethod')
1138
+
1139
+ self.text = method
1140
+ end
1141
+ end
1142
+
1143
+ class DigestMethods < XFA::Element
1144
+ xfa_attribute 'id'
1145
+ xfa_attribute 'type'
1146
+ xfa_attribute 'use'
1147
+ xfa_attribute 'usehref'
1148
+
1149
+ xfa_node 'digestMethod', Template::DigestMethod
1150
+
1151
+ def initialize
1152
+ super('digestMethods')
1153
+ end
1154
+ end
1155
+
1156
+ class Encoding < XFA::Element
1157
+ xfa_attribute 'id'
1158
+ xfa_attribute 'use'
1159
+ xfa_attribute 'usehref'
1160
+
1161
+ def initialize(encoding = "")
1162
+ super('encoding')
1163
+
1164
+ self.text = encoding
1165
+ end
1166
+ end
1167
+
1168
+ class Encodings < XFA::Element
1169
+ xfa_attribute 'id'
1170
+ xfa_attribute 'type'
1171
+ xfa_attribute 'use'
1172
+ xfa_attribute 'usehref'
1173
+
1174
+ xfa_node 'encoding', Template::Encoding
1175
+
1176
+ def initialize
1177
+ super('encodings')
1178
+ end
1179
+ end
1180
+
1181
+ class Handler < XFA::Element
1182
+ xfa_attribute 'id'
1183
+ xfa_attribute 'type'
1184
+ xfa_attribute 'use'
1185
+ xfa_attribute 'usehref'
1186
+
1187
+ def initialize(handler = "")
1188
+ super('handler')
1189
+
1190
+ self.text = handler
1191
+ end
1192
+ end
1193
+
1194
+ class LockDocument < XFA::Element
1195
+ xfa_attribute 'id'
1196
+ xfa_attribute 'type'
1197
+ xfa_attribute 'use'
1198
+ xfa_attribute 'usehref'
1199
+
1200
+ def initialize(lock = "default")
1201
+ super('lockDocument')
1202
+
1203
+ self.text = lock
1204
+ end
1205
+ end
1206
+
1207
+ class MDP < XFA::Element
1208
+ xfa_attribute 'id'
1209
+ xfa_attribute 'permissions'
1210
+ xfa_attribute 'signatureType'
1211
+ xfa_attribute 'use'
1212
+ xfa_attribute 'usehref'
1213
+
1214
+ def initialize
1215
+ super('mdp')
1216
+ end
1217
+ end
1218
+
1219
+ class Reason < XFA::Element
1220
+ xfa_attribute 'id'
1221
+ xfa_attribute 'name'
1222
+ xfa_attribute 'use'
1223
+ xfa_attribute 'usehref'
1224
+
1225
+ def initialize(reason = "")
1226
+ super('reason')
1227
+
1228
+ self.text = reason
1229
+ end
1230
+ end
1231
+
1232
+ class Reasons < XFA::Element
1233
+ xfa_attribute 'id'
1234
+ xfa_attribute 'type'
1235
+ xfa_attribute 'use'
1236
+ xfa_attribute 'usehref'
1237
+
1238
+ xfa_node 'reason', Template::Reason
1239
+
1240
+ def initialize
1241
+ super('reasons')
1242
+ end
1243
+ end
1244
+
1245
+ class TimeStamp < XFA::Element
1246
+ xfa_attribute 'id'
1247
+ xfa_attribute 'server'
1248
+ xfa_attribute 'type'
1249
+ xfa_attribute 'use'
1250
+ xfa_attribute 'usehref'
1251
+
1252
+ def initialize
1253
+ super('timeStamp')
1254
+ end
1255
+ end
1256
+
1257
+ class Filter < XFA::Element
1258
+ xfa_attribute 'addRevocationInfo'
1259
+ xfa_attribute 'id'
1260
+ xfa_attribute 'name'
1261
+ xfa_attribute 'use'
1262
+ xfa_attribute 'usehref'
1263
+ xfa_attribute 'version'
1264
+
1265
+ xfa_node 'appearanceFilter', Template::AppearanceFilter, 0..1
1266
+ xfa_node 'certificates', Template::Certificates, 0..1
1267
+ xfa_node 'digestMethods', Template::DigestMethods, 0..1
1268
+ xfa_node 'encodings', Template::Encodings, 0..1
1269
+ xfa_node 'handler', Template::Handler, 0..1
1270
+ xfa_node 'lockDocument', Template::LockDocument, 0..1
1271
+ xfa_node 'mdp', Template::MDP, 0..1
1272
+ xfa_node 'reasons', Template::Reasons, 0..1
1273
+ xfa_node 'timeStamp', Template::TimeStamp, 0..1
1274
+
1275
+ def initialize
1276
+ super('filter')
1277
+ end
1278
+ end
1279
+
1280
+ class Ref < XFA::Element
1281
+ xfa_attribute 'id'
1282
+ xfa_attribute 'use'
1283
+ xfa_attribute 'usehref'
1284
+
1285
+ def initialize(somexpr = nil)
1286
+ super('ref')
1287
+
1288
+ self.text = somexpr
1289
+ end
1290
+ end
1291
+
1292
+ class Manifest < XFA::Element
1293
+ xfa_attribute 'action'
1294
+ xfa_attribute 'id'
1295
+ xfa_attribute 'name'
1296
+ xfa_attribute 'use'
1297
+ xfa_attribute 'usehref'
1298
+
1299
+ xfa_node 'extras', Template::Extras, 0..1
1300
+
1301
+ xfa_node 'ref', Template::Ref, 0..1
1302
+
1303
+ def initialize
1304
+ super('manifest')
1305
+ end
1306
+ end
1307
+
1308
+ class Signature < XFA::Element
1309
+ xfa_attribute 'id'
1310
+ xfa_attribute 'type'
1311
+ xfa_attribute 'use'
1312
+ xfa_attribute 'usehref'
1313
+
1314
+ xfa_node 'border', Template::Border, 0..1
1315
+ xfa_node 'extras', Template::Extras, 0..1
1316
+ xfa_node 'filter', Template::Filter, 0..1
1317
+ xfa_node 'manifest', Template::Manifest, 0..1
1318
+ xfa_node 'margin', Template::Margin, 0..1
1319
+
1320
+ def initialize
1321
+ super('signature')
1322
+ end
1323
+ end
1324
+
1325
+ class TextEdit < XFA::Element
1326
+ xfa_attribute 'allowRichText'
1327
+ xfa_attribute 'hScrollPolicy'
1328
+ xfa_attribute 'id'
1329
+ xfa_attribute 'multiLine'
1330
+ xfa_attribute 'use'
1331
+ xfa_attribute 'usehref'
1332
+ xfa_attribute 'vScrollPolicy'
1333
+
1334
+ xfa_node 'border', Template::Border, 0..1
1335
+ xfa_node 'comb', Template::Comb, 0..1
1336
+ xfa_node 'extras', Template::Extras, 0..1
1337
+ xfa_node 'margin', Template::Margin, 0..1
1338
+
1339
+ def initialize
1340
+ super('textEdit')
1341
+ end
1342
+ end
1343
+
1344
+ class UI < XFA::Element
1345
+ xfa_attribute 'id'
1346
+ xfa_attribute 'use'
1347
+ xfa_attribute 'usehref'
1348
+
1349
+ xfa_node 'extras', Template::Extras, 0..1
1350
+ xfa_node 'picture', Template::Picture, 0..1
1351
+ xfa_node 'barcode', Template::Barcode, 0..1
1352
+ xfa_node 'button', Template::Button, 0..1
1353
+ xfa_node 'checkButton', Template::CheckButton, 0..1
1354
+ xfa_node 'choiceList', Template::ChoiceList, 0..1
1355
+ xfa_node 'dateTimeEdit', Template::DateTimeEdit, 0..1
1356
+ xfa_node 'defaultUi', Template::DefaultUI, 0..1
1357
+ xfa_node 'imageEdit', Template::ImageEdit, 0..1
1358
+ xfa_node 'numericEdit', Template::NumericEdit, 0..1
1359
+ xfa_node 'passwordEdit', Template::PasswordEdit, 0..1
1360
+ xfa_node 'signature', Template::Signature, 0..1
1361
+ xfa_node 'textEdit', Template::TextEdit, 0..1
1362
+
1363
+ def initialize
1364
+ super('ui')
1365
+ end
1366
+ end
1367
+
1368
+ class SetProperty < XFA::Element
1369
+ xfa_attribute 'connection'
1370
+ xfa_attribute 'ref'
1371
+ xfa_attribute 'target'
1372
+
1373
+ def initialize
1374
+ super('setProperty')
1375
+ end
1376
+ end
1377
+
1378
+ class Draw < XFA::Element
1379
+ xfa_attribute 'anchorType'
1380
+ xfa_attribute 'colSpan'
1381
+ xfa_attribute 'h'
1382
+ xfa_attribute 'id'
1383
+ xfa_attribute 'locale'
1384
+ xfa_attribute 'maxH'
1385
+ xfa_attribute 'maxW'
1386
+ xfa_attribute 'minH'
1387
+ xfa_attribute 'minW'
1388
+ xfa_attribute 'name'
1389
+ xfa_attribute 'presence'
1390
+ xfa_attribute 'relevant'
1391
+ xfa_attribute 'rotate'
1392
+ xfa_attribute 'use'
1393
+ xfa_attribute 'usehref'
1394
+ xfa_attribute 'w'
1395
+ xfa_attribute 'x'
1396
+ xfa_attribute 'y'
1397
+
1398
+ xfa_node 'assist', Template::Assist, 0..1
1399
+ xfa_node 'border', Template::Border, 0..1
1400
+ xfa_node 'caption', Template::Caption, 0..1
1401
+ xfa_node 'desc', Template::Desc, 0..1
1402
+ xfa_node 'extras', Template::Extras, 0..1
1403
+ xfa_node 'font', Template::Font, 0..1
1404
+ xfa_node 'keep', Template::Keep, 0..1
1405
+ xfa_node 'margin', Template::Margin, 0..1
1406
+ xfa_node 'para', Template::Para, 0..1
1407
+ xfa_node 'traversal', Template::Traversal, 0..1
1408
+ xfa_node 'ui', Template::UI, 0..1
1409
+ xfa_node 'value', Template::Value, 0..1
1410
+
1411
+ xfa_node 'setProperty', Template::SetProperty
1412
+
1413
+ def initialize
1414
+ super('draw')
1415
+ end
1416
+ end
1417
+
1418
+ class Validate < XFA::Element
1419
+ xfa_attribute 'formatTest'
1420
+ xfa_attribute 'id'
1421
+ xfa_attribute 'nullTest'
1422
+ xfa_attribute 'scriptTest'
1423
+ xfa_attribute 'use'
1424
+ xfa_attribute 'usehref'
1425
+
1426
+ xfa_node 'extras', Template::Extras, 0..1
1427
+ xfa_node 'message', Template::Message, 0..1
1428
+ xfa_node 'picture', Template::Picture, 0..1
1429
+ xfa_node 'script', Template::Script, 0..1
1430
+
1431
+ def initialize
1432
+ super('validate')
1433
+ end
1434
+ end
1435
+
1436
+ class Connect < XFA::Element
1437
+ xfa_attribute 'connection'
1438
+ xfa_attribute 'id'
1439
+ xfa_attribute 'ref'
1440
+ xfa_attribute 'usage'
1441
+ xfa_attribute 'use'
1442
+ xfa_attribute 'usehref'
1443
+
1444
+ xfa_node 'picture', Template::Picture, 0..1
1445
+
1446
+ def initialize
1447
+ super('connect')
1448
+ end
1449
+ end
1450
+
1451
+ class Execute < XFA::Element
1452
+ xfa_attribute 'connection'
1453
+ xfa_attribute 'executeType'
1454
+ xfa_attribute 'id'
1455
+ xfa_attribute 'runAt'
1456
+ xfa_attribute 'use'
1457
+ xfa_attribute 'usehref'
1458
+
1459
+ def initialize
1460
+ super('execute')
1461
+ end
1462
+ end
1463
+
1464
+ class SignData < XFA::Element
1465
+ xfa_attribute 'id'
1466
+ xfa_attribute 'operation'
1467
+ xfa_attribute 'ref'
1468
+ xfa_attribute 'target'
1469
+ xfa_attribute 'use'
1470
+ xfa_attribute 'usehref'
1471
+
1472
+ xfa_node 'filter', Template::Filter, 0..1
1473
+ xfa_node 'manifest', Template::Manifest, 0..1
1474
+
1475
+ def initialize
1476
+ super('signData')
1477
+ end
1478
+ end
1479
+
1480
+ class Submit < XFA::Element
1481
+ xfa_attribute 'embedPDF'
1482
+ xfa_attribute 'format'
1483
+ xfa_attribute 'id'
1484
+ xfa_attribute 'target'
1485
+ xfa_attribute 'textEncoding'
1486
+ xfa_attribute 'use'
1487
+ xfa_attribute 'usehref'
1488
+ xfa_attribute 'xdpContent'
1489
+
1490
+ xfa_node 'encrypt', Template::Encrypt, 0..1
1491
+
1492
+ xfa_node 'signData', Template::SignData
1493
+
1494
+ def initialize
1495
+ super('submit')
1496
+ end
1497
+ end
1498
+
1499
+ class Event < XFA::Element
1500
+ xfa_attribute 'activity'
1501
+ xfa_attribute 'id'
1502
+ xfa_attribute 'listen'
1503
+ xfa_attribute 'name'
1504
+ xfa_attribute 'ref'
1505
+ xfa_attribute 'use'
1506
+ xfa_attribute 'usehref'
1507
+
1508
+ xfa_node 'extras', Template::Extras, 0..1
1509
+ xfa_node 'execute', Template::Execute, 0..1
1510
+ xfa_node 'script', Template::Script, 0..1
1511
+ xfa_node 'signData', Template::SignData, 0..1
1512
+ xfa_node 'submit', Template::Submit, 0..1
1513
+
1514
+ def initialize
1515
+ super('event')
1516
+ end
1517
+ end
1518
+
1519
+ class Format < XFA::Element
1520
+ xfa_attribute 'id'
1521
+ xfa_attribute 'use'
1522
+ xfa_attribute 'usehref'
1523
+
1524
+ xfa_node 'extras', Template::Extras, 0..1
1525
+ xfa_node 'picture', Template::Picture, 0..1
1526
+
1527
+ def initialize
1528
+ super('format')
1529
+ end
1530
+ end
1531
+
1532
+ class Items < XFA::Element
1533
+ xfa_attribute 'id'
1534
+ xfa_attribute 'name'
1535
+ xfa_attribute 'presence'
1536
+ xfa_attribute 'ref'
1537
+ xfa_attribute 'save'
1538
+ xfa_attribute 'use'
1539
+ xfa_attribute 'usehref'
1540
+
1541
+ xfa_node 'boolean', Template::Boolean
1542
+ xfa_node 'date', Template::Date
1543
+ xfa_node 'dateTime', Template::DateTime
1544
+ xfa_node 'decimal', Template::Decimal
1545
+ xfa_node 'exData', Template::ExData
1546
+ xfa_node 'float', Template::Float
1547
+ xfa_node 'image', Template::Image
1548
+ xfa_node 'integer', Template::Integer
1549
+ xfa_node 'text', Template::Text
1550
+ xfa_node 'time', Template::Time
1551
+
1552
+ def initialize
1553
+ super('items')
1554
+ end
1555
+ end
1556
+
1557
+ class BindItems < XFA::Element
1558
+ xfa_attribute 'connection'
1559
+ xfa_attribute 'labelRef'
1560
+ xfa_attribute 'ref'
1561
+ xfa_attribute 'valueRef'
1562
+
1563
+ def initialize
1564
+ super('bindItems')
1565
+ end
1566
+ end
1567
+
1568
+ class Field < XFA::Element
1569
+ xfa_attribute 'access'
1570
+ xfa_attribute 'accessKey'
1571
+ xfa_attribute 'anchorType'
1572
+ xfa_attribute 'colSpan'
1573
+ xfa_attribute 'h'
1574
+ xfa_attribute 'id'
1575
+ xfa_attribute 'locale'
1576
+ xfa_attribute 'maxH'
1577
+ xfa_attribute 'maxW'
1578
+ xfa_attribute 'minH'
1579
+ xfa_attribute 'minW'
1580
+ xfa_attribute 'name'
1581
+ xfa_attribute 'presence'
1582
+ xfa_attribute 'relevant'
1583
+ xfa_attribute 'rotate'
1584
+ xfa_attribute 'use'
1585
+ xfa_attribute 'usehref'
1586
+ xfa_attribute 'w'
1587
+ xfa_attribute 'x'
1588
+ xfa_attribute 'y'
1589
+
1590
+ xfa_node 'assist', Template::Assist, 0..1
1591
+ xfa_node 'bind', Template::Bind, 0..1
1592
+ xfa_node 'border', Template::Border, 0..1
1593
+ xfa_node 'calculate', Template::Calculate, 0..1
1594
+ xfa_node 'caption', Template::Caption, 0..1
1595
+ xfa_node 'desc', Template::Desc, 0..1
1596
+ xfa_node 'extras', Template::Extras, 0..1
1597
+ xfa_node 'font', Template::Font, 0..1
1598
+ xfa_node 'format', Template::Format, 0..1
1599
+ xfa_node 'items', Template::Items, 0..2
1600
+ xfa_node 'keep', Template::Keep, 0..1
1601
+ xfa_node 'margin', Template::Margin, 0..1
1602
+ xfa_node 'para', Template::Para, 0..1
1603
+ xfa_node 'traversal', Template::Traversal, 0..1
1604
+ xfa_node 'ui', Template::UI, 0..1
1605
+ xfa_node 'validate', Template::Validate, 0..1
1606
+ xfa_node 'value', Template::Value, 0..1
1607
+
1608
+ xfa_node 'bindItems', Template::BindItems
1609
+ xfa_node 'connect', Template::Connect
1610
+ xfa_node 'event', Template::Event
1611
+ xfa_node 'setProperty', Template::SetProperty
1612
+
1613
+ def initialize
1614
+ super('field')
1615
+ end
1616
+ end
1617
+
1618
+
1619
+ class ExclGroup < XFA::Element
1620
+ xfa_attribute 'access'
1621
+ xfa_attribute 'accessKey'
1622
+ xfa_attribute 'anchorType'
1623
+ xfa_attribute 'colSpan'
1624
+ xfa_attribute 'h'
1625
+ xfa_attribute 'id'
1626
+ xfa_attribute 'layout'
1627
+ xfa_attribute 'maxH'
1628
+ xfa_attribute 'maxW'
1629
+ xfa_attribute 'minH'
1630
+ xfa_attribute 'minW'
1631
+ xfa_attribute 'name'
1632
+ xfa_attribute 'presence'
1633
+ xfa_attribute 'relevant'
1634
+ xfa_attribute 'use'
1635
+ xfa_attribute 'usehref'
1636
+ xfa_attribute 'w'
1637
+ xfa_attribute 'x'
1638
+ xfa_attribute 'y'
1639
+
1640
+ xfa_node 'assist', Template::Assist, 0..1
1641
+ xfa_node 'bind', Template::Bind, 0..1
1642
+ xfa_node 'border', Template::Border, 0..1
1643
+ xfa_node 'calculate', Template::Calculate, 0..1
1644
+ xfa_node 'caption', Template::Caption, 0..1
1645
+ xfa_node 'desc', Template::Desc, 0..1
1646
+ xfa_node 'extras', Template::Extras, 0..1
1647
+ xfa_node 'margin', Template::Margin, 0..1
1648
+ xfa_node 'para', Template::Para, 0..1
1649
+ xfa_node 'traversal', Template::Traversal, 0..1
1650
+ xfa_node 'validate', Template::Validate, 0..1
1651
+
1652
+ xfa_node 'connect', Template::Connect
1653
+ xfa_node 'event', Template::Event
1654
+ xfa_node 'field', Template::Field
1655
+ xfa_node 'setProperty', Template::SetProperty
1656
+
1657
+ def initialize
1658
+ super('exclGroup')
1659
+ end
1660
+ end
1661
+
1662
+ class BreakAfter < XFA::Element
1663
+ xfa_attribute 'id'
1664
+ xfa_attribute 'leader'
1665
+ xfa_attribute 'startNew'
1666
+ xfa_attribute 'target'
1667
+ xfa_attribute 'targetType'
1668
+ xfa_attribute 'trailer'
1669
+ xfa_attribute 'use'
1670
+ xfa_attribute 'usehref'
1671
+
1672
+ xfa_node 'script', Template::Script, 0..1
1673
+
1674
+ def initialize
1675
+ super('breakAfter')
1676
+ end
1677
+ end
1678
+
1679
+ class BreakBefore < XFA::Element
1680
+ xfa_attribute 'id'
1681
+ xfa_attribute 'leader'
1682
+ xfa_attribute 'startNew'
1683
+ xfa_attribute 'target'
1684
+ xfa_attribute 'targetType'
1685
+ xfa_attribute 'trailer'
1686
+ xfa_attribute 'use'
1687
+ xfa_attribute 'usehref'
1688
+
1689
+ xfa_node 'script', Template::Script, 0..1
1690
+
1691
+ def initialize
1692
+ super('breakBefore')
1693
+ end
1694
+ end
1695
+
1696
+ class Subform < XFA::Element ; end
1697
+ class SubformSet < XFA::Element
1698
+ xfa_attribute 'id'
1699
+ xfa_attribute 'name'
1700
+ xfa_attribute 'relation'
1701
+ xfa_attribute 'relevant'
1702
+ xfa_attribute 'use'
1703
+ xfa_attribute 'usehref'
1704
+
1705
+ xfa_node 'bookend', Template::Bookend, 0..1
1706
+ xfa_node 'break', Template::Break, 0..1
1707
+ xfa_node 'desc', Template::Desc, 0..1
1708
+ xfa_node 'extras', Template::Extras, 0..1
1709
+ xfa_node 'occur', Template::Occur, 0..1
1710
+ xfa_node 'overflow', Template::Overflow, 0..1
1711
+
1712
+ xfa_node 'breakAfter', Template::BreakAfter
1713
+ xfa_node 'breakBefore', Template::BreakBefore
1714
+ xfa_node 'subform', Template::Subform
1715
+ xfa_node 'subformSet', Template::SubformSet
1716
+
1717
+ def initialize
1718
+ super('subformSet')
1719
+ end
1720
+ end
1721
+
1722
+ class Area < XFA::Element
1723
+ xfa_attribute 'colSpan'
1724
+ xfa_attribute 'id'
1725
+ xfa_attribute 'name'
1726
+ xfa_attribute 'relevant'
1727
+ xfa_attribute 'use'
1728
+ xfa_attribute 'usehref'
1729
+ xfa_attribute 'x'
1730
+ xfa_attribute 'y'
1731
+
1732
+ xfa_node 'desc', Template::Desc, 0..1
1733
+ xfa_node 'extras', Template::Extras, 0..1
1734
+
1735
+ xfa_node 'area', Template::Area
1736
+ xfa_node 'draw', Template::Draw
1737
+ xfa_node 'exclGroup', Template::ExclGroup
1738
+ xfa_node 'field', Template::Field
1739
+ xfa_node 'subform', Template::Subform
1740
+ xfa_node 'subformSet', Template::SubformSet
1741
+
1742
+ def initialize
1743
+ super('area')
1744
+ end
1745
+ end
1746
+
1747
+ class ContentArea < XFA::Element
1748
+ xfa_attribute 'h'
1749
+ xfa_attribute 'id'
1750
+ xfa_attribute 'name'
1751
+ xfa_attribute 'relevant'
1752
+ xfa_attribute 'use'
1753
+ xfa_attribute 'usehref'
1754
+ xfa_attribute 'w'
1755
+ xfa_attribute 'x'
1756
+ xfa_attribute 'y'
1757
+
1758
+ xfa_node 'desc', Template::Desc, 0..1
1759
+ xfa_node 'extras', Template::Extras, 0..1
1760
+
1761
+ def initialize
1762
+ super('contentArea')
1763
+ end
1764
+ end
1765
+
1766
+ class PageArea < XFA::Element
1767
+ xfa_attribute 'blankOrNotBlank'
1768
+ xfa_attribute 'id'
1769
+ xfa_attribute 'initialNumber'
1770
+ xfa_attribute 'name'
1771
+ xfa_attribute 'numbered'
1772
+ xfa_attribute 'oddOrEven'
1773
+ xfa_attribute 'pagePosition'
1774
+ xfa_attribute 'relevant'
1775
+ xfa_attribute 'use'
1776
+ xfa_attribute 'usehref'
1777
+
1778
+ xfa_node 'desc', Template::Desc, 0..1
1779
+ xfa_node 'extras', Template::Extras, 0..1
1780
+ xfa_node 'medium', Template::Medium, 0..1
1781
+ xfa_node 'occur', Template::Occur, 0..1
1782
+
1783
+ xfa_node 'area', Template::Area
1784
+ xfa_node 'contentArea', Template::ContentArea
1785
+ xfa_node 'draw', Template::Draw
1786
+ xfa_node 'exclGroup', Template::ExclGroup
1787
+ xfa_node 'field', Template::Field
1788
+ xfa_node 'subform', Template::Subform
1789
+
1790
+ def initialize
1791
+ super('pageArea')
1792
+ end
1793
+ end
1794
+
1795
+ class PageSet < XFA::Element
1796
+ xfa_attribute 'id'
1797
+ xfa_attribute 'name'
1798
+ xfa_attribute 'relation'
1799
+ xfa_attribute 'relevant'
1800
+ xfa_attribute 'use'
1801
+ xfa_attribute 'usehref'
1802
+
1803
+ xfa_node 'extras', Template::Extras, 0..1
1804
+ xfa_node 'occur', Template::Occur, 0..1
1805
+
1806
+ xfa_node 'pageArea', Template::PageArea
1807
+ xfa_node 'pageSet', Template::PageSet
1808
+
1809
+ ORDERED_OCCURENCE = "orderedOccurence"
1810
+ DUPLEX_PAGINATED = "duplexPaginated"
1811
+ SIMPLEX_PAGINATED = "simplexPaginated"
1812
+
1813
+ def initialize
1814
+ super('pageSet')
1815
+ end
1816
+ end
1817
+
1818
+ class Variables < XFA::Element
1819
+ xfa_attribute 'id'
1820
+ xfa_attribute 'use'
1821
+ xfa_attribute 'usehref'
1822
+
1823
+ xfa_node 'boolean', Template::Boolean
1824
+ xfa_node 'date', Template::Date
1825
+ xfa_node 'dateTime', Template::DateTime
1826
+ xfa_node 'decimal', Template::Decimal
1827
+ xfa_node 'exData', Template::ExData
1828
+ xfa_node 'float', Template::Float
1829
+ xfa_node 'image', Template::Image
1830
+ xfa_node 'integer', Template::Integer
1831
+ xfa_node 'manifest', Template::Manifest
1832
+ xfa_node 'script', Template::Script
1833
+ xfa_node 'text', Template::Text
1834
+ xfa_node 'time', Template::Time
1835
+
1836
+ def initialize
1837
+ super('variables')
1838
+ end
1839
+ end
1840
+
1841
+ class ExObject < XFA::Element
1842
+ xfa_attribute 'archive'
1843
+ xfa_attribute 'classId'
1844
+ xfa_attribute 'codeBase'
1845
+ xfa_attribute 'codeType'
1846
+ xfa_attribute 'id'
1847
+ xfa_attribute 'name'
1848
+ xfa_attribute 'use'
1849
+ xfa_attribute 'usehref'
1850
+
1851
+ xfa_node 'extras', Template::Extras, 0..1
1852
+
1853
+ xfa_node 'boolean', Template::Boolean
1854
+ xfa_node 'date', Template::Date
1855
+ xfa_node 'dateTime', Template::DateTime
1856
+ xfa_node 'decimal', Template::Decimal
1857
+ xfa_node 'exData', Template::ExData
1858
+ xfa_node 'exObject', Template::ExObject
1859
+ xfa_node 'float', Template::Float
1860
+ xfa_node 'image', Template::Image
1861
+ xfa_node 'integer', Template::Integer
1862
+ xfa_node 'text', Template::Text
1863
+ xfa_node 'time', Template::Time
1864
+
1865
+ def initialize
1866
+ super('exObject')
1867
+ end
1868
+ end
1869
+
1870
+ class Proto < XFA::Element
1871
+ xfa_node 'appearanceFilter', Template::AppearanceFilter
1872
+ xfa_node 'arc', Template::Arc
1873
+ xfa_node 'area', Template::Area
1874
+ xfa_node 'assist', Template::Assist
1875
+ xfa_node 'barcode', Template::Barcode
1876
+ xfa_node 'bindItems', Template::BindItems
1877
+ xfa_node 'bookend', Template::Bookend
1878
+ xfa_node 'boolean', Template::Boolean
1879
+ xfa_node 'border', Template::Border
1880
+ xfa_node 'break', Template::Break
1881
+ xfa_node 'breakAfter', Template::BreakAfter
1882
+ xfa_node 'breakBefore', Template::BreakBefore
1883
+ xfa_node 'button', Template::Button
1884
+ xfa_node 'calculate', Template::Calculate
1885
+ xfa_node 'caption', Template::Caption
1886
+ xfa_node 'certificate', Template::Certificate
1887
+ xfa_node 'certificates', Template::Certificates
1888
+ xfa_node 'checkButton', Template::CheckButton
1889
+ xfa_node 'choiceList', Template::ChoiceList
1890
+ xfa_node 'color', Template::Color
1891
+ xfa_node 'comb', Template::Comb
1892
+ xfa_node 'connect', Template::Connect
1893
+ xfa_node 'contentArea', Template::ContentArea
1894
+ xfa_node 'corner', Template::Corner
1895
+ xfa_node 'date', Template::Date
1896
+ xfa_node 'dateTime', Template::DateTime
1897
+ xfa_node 'dateTimeEdit', Template::DateTimeEdit
1898
+ xfa_node 'decimal', Template::Decimal
1899
+ xfa_node 'defaultUi', Template::DefaultUI
1900
+ xfa_node 'desc', Template::Desc
1901
+ xfa_node 'digestMethod', Template::DigestMethod
1902
+ xfa_node 'digestMethods', Template::DigestMethods
1903
+ xfa_node 'draw', Template::Draw
1904
+ xfa_node 'edge', Template::Edge
1905
+ xfa_node 'encoding', Template::Encoding
1906
+ xfa_node 'encodings', Template::Encodings
1907
+ xfa_node 'encrypt', Template::Encrypt
1908
+ xfa_node 'event', Template::Event
1909
+ xfa_node 'exData', Template::ExData
1910
+ xfa_node 'exObject', Template::ExObject
1911
+ xfa_node 'exclGroup', Template::ExclGroup
1912
+ xfa_node 'execute', Template::Execute
1913
+ xfa_node 'extras', Template::Extras
1914
+ xfa_node 'field', Template::Field
1915
+ xfa_node 'fill', Template::Fill
1916
+ xfa_node 'filter', Template::Filter
1917
+ xfa_node 'float', Template::Float
1918
+ xfa_node 'font', Template::Font
1919
+ xfa_node 'format', Template::Format
1920
+ xfa_node 'handler', Template::Handler
1921
+ xfa_node 'hyphenation', Template::Hyphenation
1922
+ xfa_node 'image', Template::Image
1923
+ xfa_node 'imageEdit', Template::ImageEdit
1924
+ xfa_node 'integer', Template::Integer
1925
+ xfa_node 'issuers', Template::Issuers
1926
+ xfa_node 'items', Template::Items
1927
+ xfa_node 'keep', Template::Keep
1928
+ xfa_node 'keyUsage', Template::KeyUsage
1929
+ xfa_node 'line', Template::Line
1930
+ xfa_node 'linear', Template::Linear
1931
+ xfa_node 'lockDocument', Template::LockDocument
1932
+ xfa_node 'manifest', Template::Manifest
1933
+ xfa_node 'margin', Template::Margin
1934
+ xfa_node 'mdp', Template::MDP
1935
+ xfa_node 'medium', Template::Medium
1936
+ xfa_node 'message', Template::Message
1937
+ xfa_node 'numericEdit', Template::NumericEdit
1938
+ xfa_node 'occur', Template::Occur
1939
+ xfa_node 'oid', Template::OID
1940
+ xfa_node 'oids', Template::OIDs
1941
+ xfa_node 'overflow', Template::Overflow
1942
+ xfa_node 'pageArea', Template::PageArea
1943
+ xfa_node 'pageSet', Template::PageSet
1944
+ xfa_node 'para', Template::Para
1945
+ xfa_node 'passwordEdit', Template::PasswordEdit
1946
+ xfa_node 'pattern', Template::Pattern
1947
+ xfa_node 'picture', Template::Picture
1948
+ xfa_node 'radial', Template::Radial
1949
+ xfa_node 'reason', Template::Reason
1950
+ xfa_node 'reasons', Template::Reasons
1951
+ xfa_node 'rectangle', Template::Rectangle
1952
+ xfa_node 'ref', Template::Ref
1953
+ xfa_node 'script', Template::Script
1954
+ xfa_node 'setProperty', Template::SetProperty
1955
+ xfa_node 'signData', Template::SignData
1956
+ xfa_node 'signature', Template::Signature
1957
+ xfa_node 'signing', Template::Signing
1958
+ xfa_node 'solid', Template::Solid
1959
+ xfa_node 'speak', Template::Speak
1960
+ xfa_node 'stipple', Template::Stipple
1961
+ xfa_node 'subform', Template::Subform
1962
+ xfa_node 'subformSet', Template::SubformSet
1963
+ xfa_node 'subjectDN', Template::SubjectDN
1964
+ xfa_node 'subjectDNs', Template::SubjectDNs
1965
+ xfa_node 'submit', Template::Submit
1966
+ xfa_node 'text', Template::Text
1967
+ xfa_node 'textEdit', Template::TextEdit
1968
+ xfa_node 'time', Template::Time
1969
+ xfa_node 'timeStamp', Template::TimeStamp
1970
+ xfa_node 'toolTip', Template::ToolTip
1971
+ xfa_node 'traversal', Template::Traversal
1972
+ xfa_node 'traverse', Template::Traverse
1973
+ xfa_node 'ui', Template::UI
1974
+ xfa_node 'validate', Template::Validate
1975
+ xfa_node 'value', Template::Value
1976
+ xfa_node 'variables', Template::Variables
1977
+
1978
+ def initialize
1979
+ super('proto')
1980
+ end
1981
+ end
1982
+
1983
+ class Subform < XFA::Element
1984
+ xfa_attribute 'access'
1985
+ xfa_attribute 'allowMacro'
1986
+ xfa_attribute 'anchorType'
1987
+ xfa_attribute 'colSpan'
1988
+ xfa_attribute 'columnWidths'
1989
+ xfa_attribute 'h'
1990
+ xfa_attribute 'id'
1991
+ xfa_attribute 'layout'
1992
+ xfa_attribute 'locale'
1993
+ xfa_attribute 'maxH'
1994
+ xfa_attribute 'maxW'
1995
+ xfa_attribute 'minH'
1996
+ xfa_attribute 'minW'
1997
+ xfa_attribute 'name'
1998
+ xfa_attribute 'presence'
1999
+ xfa_attribute 'relevant'
2000
+ xfa_attribute 'restoreState'
2001
+ xfa_attribute 'scope'
2002
+ xfa_attribute 'use'
2003
+ xfa_attribute 'usehref'
2004
+ xfa_attribute 'w'
2005
+ xfa_attribute 'x'
2006
+ xfa_attribute 'y'
2007
+
2008
+ xfa_node 'assist', Template::Assist, 0..1
2009
+ xfa_node 'bind', Template::Bind, 0..1
2010
+ xfa_node 'bookend', Template::Bookend, 0..1
2011
+ xfa_node 'border', Template::Border, 0..1
2012
+ xfa_node 'break', Template::Break, 0..1
2013
+ xfa_node 'calculate', Template::Calculate, 0..1
2014
+ xfa_node 'desc', Template::Desc, 0..1
2015
+ xfa_node 'extras', Template::Extras, 0..1
2016
+ xfa_node 'keep', Template::Keep, 0..1
2017
+ xfa_node 'margin', Template::Margin, 0..1
2018
+ xfa_node 'occur', Template::Occur, 0..1
2019
+ xfa_node 'overflow', Template::Overflow, 0..1
2020
+ xfa_node 'pageSet', Template::PageSet, 0..1
2021
+ xfa_node 'para', Template::Para, 0..1
2022
+ xfa_node 'traversal', Template::Traversal, 0..1
2023
+ xfa_node 'validate', Template::Validate, 0..1
2024
+ xfa_node 'variables', Template::Variables, 0..1
2025
+
2026
+ xfa_node 'area', Template::Area
2027
+ xfa_node 'breakAfter', Template::BreakAfter
2028
+ xfa_node 'breakBefore', Template::BreakBefore
2029
+ xfa_node 'connect', Template::Connect
2030
+ xfa_node 'draw', Template::Draw
2031
+ xfa_node 'event', Template::Event
2032
+ xfa_node 'exObject', Template::ExObject
2033
+ xfa_node 'exclGroup', Template::ExclGroup
2034
+ xfa_node 'field', Template::Field
2035
+ xfa_node 'proto', Template::Proto
2036
+ xfa_node 'setProperty', Template::SetProperty
2037
+ xfa_node 'subform', Template::Subform
2038
+ xfa_node 'subformSet', Template::SubformSet
2039
+
2040
+ def initialize
2041
+ super('subform')
2042
+ end
2043
+ end
2044
+
2045
+ xfa_attribute 'baseProfile'
2046
+ xfa_node 'extras', Template::Extras, 0..1
2047
+
2048
+ xfa_node 'subform', Template::Subform
2049
+
2050
+ def initialize
2051
+ super("template")
2052
+
2053
+ add_attribute 'xmlns:xfa', 'http://www.xfa.org/schema/xfa-template/3.0/'
2054
+ end
2055
+ end
2056
+
2057
+ end
2058
+ end
2059
+ end