origami 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d1ff84fe2a78a359e39368afcefca18d5538136
4
- data.tar.gz: 4b471c0175c77ec5189c2579496e552a3c416f30
3
+ metadata.gz: 60c022db7697d6bbe5ca4f592eddd6bc4ea74a84
4
+ data.tar.gz: a4a7a8edab8bc927d28764232ef0ec7a19605122
5
5
  SHA512:
6
- metadata.gz: 4f5d904ad0125e4f78efc68d0d0fd1115d19d9fd3221162c2d95e27084bebc88bd221167ffe10f9396cf7abf67cf66d1983e8be625bd089ba0d5b9093220dc44
7
- data.tar.gz: 22a28b2c789e1614d757b8c1eb7fd39a10bb0f69ff3fba10aad1103dcbb25aebe2e5c1bab1b986e271e4041add4e653077a1801e2146623bf2488f1fba3c6275
6
+ metadata.gz: ce487c9bba392845dd43014724611e6a00caba76b8e4e053c665d549f183ae9ccd1e8a20240f6a37f801351586205d525beb2ba434045c11aafa354fe506c28b
7
+ data.tar.gz: 736fcda1249205ba66b137a62837224cc63a96b272aa265b03bad90a5172e07e731584181398541b08f384253110b907d33cd2ef1829c0802687a971d2073917
@@ -67,15 +67,15 @@ module Origami
67
67
  #
68
68
  def each_field
69
69
  return enum_for(__method__) do
70
- if self.form? and self.Catalog.AcroForm[:Fields].is_a?(Array)
71
- self.Catalog.AcroForm[:Fields].length
70
+ if self.form? and self.Catalog.AcroForm.Fields.is_a?(Array)
71
+ self.Catalog.AcroForm.Fields.length
72
72
  else
73
73
  0
74
74
  end
75
75
  end unless block_given?
76
76
 
77
- if self.form? and self.Catalog.AcroForm[:Fields].is_a?(Array)
78
- self.Catalog.AcroForm[:Fields].each do |field|
77
+ if self.form? and self.Catalog.AcroForm.Fields.is_a?(Array)
78
+ self.Catalog.AcroForm.Fields.each do |field|
79
79
  yield(field.solve)
80
80
  end
81
81
  end
@@ -88,6 +88,8 @@ module Origami
88
88
  self.each_field do |field|
89
89
  return field if field[:T].solve == name
90
90
  end
91
+
92
+ nil
91
93
  end
92
94
  end
93
95
 
@@ -170,11 +172,35 @@ module Origami
170
172
  end
171
173
 
172
174
  def pre_build #:nodoc:
173
- self.T ||= "undef#{::Array.new(5) {('0'.ord + rand(10)).chr}.join}"
175
+ unless self.key?(:T)
176
+ self.set_name "field#{self.object_id}"
177
+ end
174
178
 
175
179
  super
176
180
  end
177
181
 
182
+ #
183
+ # Sets the (partial) name of the field.
184
+ #
185
+ def set_name(field_name)
186
+ self.T = field_name
187
+ self
188
+ end
189
+
190
+ #
191
+ # Sets the (partial) name of the field.
192
+ #
193
+ def name=(field_name)
194
+ self.T = field_name
195
+ end
196
+
197
+ #
198
+ # Returns the (partial) name of the field.
199
+ #
200
+ def name
201
+ self.T
202
+ end
203
+
178
204
  def onKeyStroke(action)
179
205
  unless action.is_a?(Action)
180
206
  raise TypeError, "An Action object must be passed."
@@ -300,6 +300,19 @@ module Origami
300
300
  def self.RichMediaExecute(annotation, command, *params)
301
301
  Action::RichMediaExecute[annotation, command, *params]
302
302
  end
303
+
304
+ class SetOCGState < Action
305
+
306
+ module State
307
+ ON = :ON
308
+ OFF = :OFF
309
+ TOGGLE = :Toggle
310
+ end
311
+
312
+ field :S, :Type => Name, :Default => :SetOCGState, :Required => true
313
+ field :State, :Type => Array.of([Name, OptionalContent::Group]), :Required => true
314
+ field :PreserveRB, :Type => Boolean, :Default => true
315
+ end
303
316
  end
304
317
 
305
318
  end
@@ -424,7 +424,7 @@ module Origami
424
424
  field :SpiderInfo, :Type => WebCapture::SpiderInfo, :Version => "1.3"
425
425
  field :OutputIntents, :Type => Array.of(OutputIntent), :Version => "1.4"
426
426
  field :PieceInfo, :Type => Dictionary, :Version => "1.4"
427
- field :OCProperties, :Type => Dictionary, :Version => "1.5"
427
+ field :OCProperties, :Type => OptionalContent::Properties, :Version => "1.5"
428
428
  field :Perms, :Type => Dictionary, :Version => "1.5"
429
429
  field :Legal, :Type => Dictionary, :Version => "1.5"
430
430
  field :Requirements, :Type => Array.of(Requirement), :Version => "1.7"
@@ -292,7 +292,7 @@ module Origami
292
292
  def set_text_scale(scaling)
293
293
  load!
294
294
 
295
- if scale != @canvas.gs.text_state.scaling
295
+ if scaling != @canvas.gs.text_state.scaling
296
296
  @instructions << PDF::Instruction.new('Tz', scaling).render(@canvas)
297
297
  end
298
298
 
@@ -0,0 +1,183 @@
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 OptionalContent
24
+
25
+ class Usage < Dictionary
26
+ include StandardObject
27
+
28
+ class CreatorInfo < Dictionary
29
+ include StandardObject
30
+
31
+ field :Creator, :Type => String, :Required => true
32
+ field :Subtype, :Type => Name, :Required => true
33
+ end
34
+
35
+ class Language < Dictionary
36
+ include StandardObject
37
+
38
+ field :Lang, :Type => String, :Required => true
39
+ field :Preferred, :Type => Name, :Default => :OFF
40
+ end
41
+
42
+ class Export < Dictionary
43
+ include StandardObject
44
+
45
+ field :ExportState, :Type => Name, :Required => true
46
+ end
47
+
48
+ class Zoom < Dictionary
49
+ include StandardObject
50
+
51
+ field :min, :Type => Real, :Default => 0
52
+ field :max, :Type => Real, :Default => Float::INFINITY
53
+ end
54
+
55
+ class Print < Dictionary
56
+ include StandardObject
57
+
58
+ field :Subtype, :Type => Name
59
+ field :PrintState, :Type => Name
60
+ end
61
+
62
+ class View < Dictionary
63
+ include StandardObject
64
+
65
+ field :ViewState, :Type => Name, :Required => true
66
+ end
67
+
68
+ class User < Dictionary
69
+ include StandardObject
70
+
71
+ module Type
72
+ INDIVIDUAL = :Ind
73
+ TITLE = :Ttl
74
+ ORGANIZATION = :Org
75
+ end
76
+
77
+ field :Type, :Type => Name, :Required => true
78
+ field :Name, :Type => [ String, Array.of(String) ], :Required => true
79
+ end
80
+
81
+ class PageElement < Dictionary
82
+ include StandardObject
83
+
84
+ module Type
85
+ HEADER_FOOTER = :HF
86
+ FOREGROUND = :FG
87
+ BACKGROUND = :BG
88
+ LOGO = :L
89
+ end
90
+
91
+ field :Subtype, :Type => Name, :Required => true
92
+ end
93
+
94
+ field :CreatorInfo, :Type => CreatorInfo
95
+ field :Language, :Type => Language
96
+ field :Export, :Type => Export
97
+ field :Zoom, :Type => Zoom
98
+ field :Print, :Type => Print
99
+ field :View, :Type => View
100
+ field :User, :Type => User
101
+ field :PageElement, :Type => PageElement
102
+ end
103
+
104
+ class Group < Dictionary
105
+ include StandardObject
106
+
107
+ module Intent
108
+ VIEW = :View
109
+ DESIGN = :Design
110
+ end
111
+
112
+ field :Type, :Type => Name, :Required => true, :Default => :OCG
113
+ field :Name, :Type => String, :Required => true
114
+ field :Intent, :Type => [ Name, Array.of(Name) ]
115
+ field :Usage, :Type => Usage
116
+ end
117
+
118
+ class Membership < Dictionary
119
+ include StandardObject
120
+
121
+ module Policy
122
+ ALL_ON = :AllOn
123
+ ANY_ON = :AnyOn
124
+ ALL_OFF = :AllOff
125
+ ANY_OFF = :AnyOff
126
+ end
127
+
128
+ field :Type, :Type => Name, :Required => true, :Default => :OCMD
129
+ field :OCGs, :Type => [ Group, Array.of(Group) ]
130
+ field :P, :Type => Name, :Default => Policy::ANY_ON
131
+ field :VE, :Type => Array, :Version => "1.6"
132
+ end
133
+
134
+ class UsageApplication < Dictionary
135
+ include StandardObject
136
+
137
+ module Event
138
+ VIEW = :View
139
+ PRINT = :Print
140
+ EXPORT = :Export
141
+ end
142
+
143
+ field :Event, :Type => Name, :Required => true
144
+ field :OCGs, :Type => Array.of(Group), :Default => []
145
+ field :Category, :Type => Array.of(Name), :Required => true
146
+ end
147
+
148
+ class Configuration < Dictionary
149
+ include StandardObject
150
+
151
+ module State
152
+ ON = :On
153
+ OFF = :Off
154
+ UNCHANGED = :Unchanged
155
+ end
156
+
157
+ module Mode
158
+ ALL_PAGES = :AllPages
159
+ VISIBLE_PAGES = :VisiblePages
160
+ end
161
+
162
+ field :Name, :Type => String
163
+ field :Creator, :Type => String
164
+ field :BaseState, :Type => Name, :Default => State::ON
165
+ field :ON, :Type => Array.of(Group)
166
+ field :OFF, :Type => Array.of(Group)
167
+ field :Intent, :Type => [ Name, Array.of(Name) ]
168
+ field :AS, :Type => Array.of(UsageApplication)
169
+ field :Order, :Type => Array
170
+ field :ListMode, :Type => Name, :Default => Mode::ALL_PAGES
171
+ field :RBGroups, :Type => Array.of(Array.of(Group)), :Default => []
172
+ field :Locked, :Type => Array.of(Group), :Default => [], :Version => "1.6"
173
+ end
174
+
175
+ class Properties < Dictionary
176
+ include StandardObject
177
+
178
+ field :OCGs, :Type => Array.of(Group), :Required => true
179
+ field :D, :Type => Configuration, :Required => true
180
+ field :Configs, :Type => Array.of(Configuration)
181
+ end
182
+ end
183
+ end
@@ -174,7 +174,7 @@ module Origami
174
174
  def each_resource(type)
175
175
  target = self.is_a?(Resources) ? self : (self.Resources ||= Resources.new)
176
176
 
177
- rsrc = target[type] and target[type].solve
177
+ rsrc = (target[type] and target[type].solve)
178
178
 
179
179
  return enum_for(__method__, type) { rsrc.is_a?(Dictionary) ? rsrc.length : 0 } unless block_given?
180
180
  return unless rsrc.is_a?(Dictionary)
@@ -36,6 +36,7 @@ require 'origami/functions'
36
36
  require 'origami/page'
37
37
  require 'origami/font'
38
38
  require 'origami/graphics'
39
+ require 'origami/optionalcontent'
39
40
  require 'origami/destinations'
40
41
  require 'origami/filespec'
41
42
  require 'origami/xfa'
@@ -28,10 +28,10 @@ module Origami
28
28
 
29
29
  set_indirect(true)
30
30
 
31
+ self.set_name(id)
31
32
  self.H = Annotation::Widget::Highlight::INVERT
32
33
  self.Rect = [ x, y, x + width, y + height ]
33
34
  self.F = Annotation::Flags::PRINT
34
- self.T = id
35
35
 
36
36
  appstm = Annotation::AppearanceStream.new.setFilter(:FlateDecode)
37
37
  appstm.BBox = [ 0, 0, width, height ]
@@ -64,9 +64,9 @@ module Origami
64
64
 
65
65
  set_indirect(true)
66
66
 
67
+ self.set_name(id)
67
68
  self.Rect = [ x, y, x+width, y+height ]
68
69
  self.F = Annotation::Flags::PRINT
69
- self.T = id
70
70
  self.DA = '/F1 12 Tf 0 g'
71
71
 
72
72
  appstm = Annotation::AppearanceStream.new.setFilter(:FlateDecode)
@@ -19,5 +19,5 @@
19
19
  =end
20
20
 
21
21
  module Origami
22
- VERSION = "2.0.1"
22
+ VERSION = "2.0.2"
23
23
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
 
3
3
  This file is part of Origami, PDF manipulation framework for Ruby
4
- Copyright (C) 2016 Guillaume Delugré.
4
+ Copyright (C) 2017 Guillaume Delugré.
5
5
 
6
6
  Origami is free software: you can redistribute it and/or modify
7
7
  it under the terms of the GNU Lesser General Public License as published by
@@ -18,10 +18,30 @@
18
18
 
19
19
  =end
20
20
 
21
- require 'rexml/document'
22
-
23
21
  module Origami
24
22
 
23
+ autoload :XFA, "origami/xfa/xfa"
24
+
25
+ module XDP
26
+ autoload :Package, "origami/xfa/package"
27
+
28
+ module Packet
29
+ autoload :Config, "origami/xfa/config"
30
+ autoload :ConnectionSet, "origami/xfa/connectionset"
31
+ autoload :Datasets, "origami/xfa/datasets"
32
+ autoload :LocaleSet, "origami/xfa/localeset"
33
+ autoload :PDF, "origami/xfa/pdf"
34
+ autoload :Signature, "origami/xfa/signature"
35
+ autoload :SourceSet, "origami/xfa/sourceset"
36
+ autoload :StyleSheet, "origami/xfa/stylesheet"
37
+ autoload :Template, "origami/xfa/template"
38
+ autoload :XDC, "origami/xfa/xdc"
39
+ autoload :XFDF, "origami/xfa/xfdf"
40
+ autoload :XMPMeta, "origami/xfa/xmpmeta"
41
+ end
42
+
43
+ end
44
+
25
45
  class XFAStream < Stream
26
46
  # TODO
27
47
  end
@@ -39,2972 +59,4 @@ module Origami
39
59
  end
40
60
  end
41
61
 
42
- module XFA
43
- class XFAError < Error #:nodoc:
44
- end
45
-
46
- module ClassMethods
47
-
48
- def xfa_attribute(name)
49
- # Attribute getter.
50
- attr_getter = "attr_#{name}"
51
- remove_method(attr_getter) rescue NameError
52
- define_method(attr_getter) do
53
- self.attributes[name.to_s]
54
- end
55
-
56
- # Attribute setter.
57
- attr_setter = "attr_#{name}="
58
- remove_method(attr_setter) rescue NameError
59
- define_method(attr_setter) do |value|
60
- self.attributes[names.to_s] = value
61
- end
62
- end
63
-
64
- def xfa_node(name, type, _range = (0..Float::INFINITY))
65
-
66
- adder = "add_#{name}"
67
- remove_method(adder) rescue NameError
68
- define_method(adder) do |*attr|
69
- elt = self.add_element(type.new)
70
-
71
- unless attr.empty?
72
- attr.first.each do |k,v|
73
- elt.attributes[k.to_s] = v
74
- end
75
- end
76
-
77
- elt
78
- end
79
- end
80
-
81
- def mime_type(type)
82
- define_method("mime_type") { return type }
83
- end
84
- end
85
-
86
- def self.included(receiver)
87
- receiver.extend(ClassMethods)
88
- end
89
-
90
- class Element < REXML::Element
91
- include XFA
92
- end
93
- end
94
-
95
- module XDP
96
-
97
- module Packet
98
- #
99
- # This packet encloses the configuration settings.
100
- #
101
- class Config < XFA::Element
102
- mime_type 'text/xml'
103
-
104
- def initialize
105
- super("config")
106
-
107
- add_attribute 'xmlns:xfa', 'http://www.xfa.org/schema/xci/3.0/'
108
- end
109
-
110
- class URI < XFA::Element
111
- xfa_attribute 'desc'
112
- xfa_attribute 'lock'
113
-
114
- def initialize(uri = "")
115
- super('uri')
116
-
117
- self.text = uri
118
- end
119
- end
120
-
121
- class Debug < XFA::Element
122
- xfa_attribute 'desc'
123
- xfa_attribute 'lock'
124
-
125
- xfa_node 'uri', Config::URI, 0..1
126
-
127
- def initialize
128
- super('debug')
129
- end
130
- end
131
-
132
- class AdjustData < XFA::Element
133
- xfa_attribute 'desc'
134
- xfa_attribute 'lock'
135
-
136
- def initialize(coercion = "0")
137
- super('adjustData')
138
-
139
- self.text = coercion
140
- end
141
- end
142
-
143
- class Attributes < XFA::Element
144
- xfa_attribute 'desc'
145
- xfa_attribute 'lock'
146
-
147
- PRESERVE = "preserve"
148
- DELEGATE = "delegate"
149
- IGNORE = "ignore"
150
-
151
- def initialize(attr = PRESERVE)
152
- super('attributes')
153
-
154
- self.text = attr
155
- end
156
- end
157
-
158
- class IncrementalLoad < XFA::Element
159
- xfa_attribute 'desc'
160
- xfa_attribute 'lock'
161
-
162
- NONE = "none"
163
- FORWARDONLY = "forwardOnly"
164
-
165
- def initialize(incload = NONE)
166
- super('incrementalLoad')
167
-
168
- self.text = incload
169
- end
170
- end
171
-
172
- class Locale < XFA::Element
173
- xfa_attribute 'desc'
174
- xfa_attribute 'lock'
175
-
176
- def initialize(locale = "")
177
- super('locale')
178
-
179
- self.text = locale
180
- end
181
- end
182
-
183
- class LocaleSet < XFA::Element
184
- xfa_attribute 'desc'
185
- xfa_attribute 'lock'
186
-
187
- def initialize(uri = "")
188
- super('localeSet')
189
-
190
- self.text = uri
191
- end
192
- end
193
-
194
- class OutputXSL < XFA::Element
195
- xfa_attribute 'desc'
196
- xfa_attribute 'lock'
197
-
198
- xfa_node 'uri', Config::URI, 0..1
199
-
200
- def initialize
201
- super('outputXSL')
202
- end
203
- end
204
-
205
- class Range < XFA::Element
206
- xfa_attribute 'desc'
207
- xfa_attribute 'lock'
208
-
209
- def initialize(range = "")
210
- super('range')
211
-
212
- self.text = range
213
- end
214
- end
215
-
216
- class Record < XFA::Element
217
- xfa_attribute 'desc'
218
- xfa_attribute 'lock'
219
-
220
- def initialize(record = "")
221
- super('record')
222
-
223
- self.text = record
224
- end
225
- end
226
-
227
- class StartNode < XFA::Element
228
- xfa_attribute 'desc'
229
- xfa_attribute 'lock'
230
-
231
- def initialize(somexpr = "")
232
- super('startNode')
233
-
234
- self.text = somexpr
235
- end
236
- end
237
-
238
- class Window < XFA::Element
239
- xfa_attribute 'desc'
240
- xfa_attribute 'lock'
241
-
242
- def initialize(win = "0")
243
- super('window')
244
-
245
- self.text = win
246
- end
247
- end
248
-
249
- class XSL < XFA::Element
250
- xfa_attribute 'desc'
251
- xfa_attribute 'lock'
252
-
253
- xfa_node 'debug', Config::Debug, 0..1
254
- xfa_node 'uri', Config::URI, 0..1
255
-
256
- def initialize
257
- super('xsl')
258
- end
259
- end
260
-
261
- class ExcludeNS < XFA::Element
262
- xfa_attribute 'desc'
263
- xfa_attribute 'lock'
264
-
265
- def initialize(ns = "")
266
- super('excludeNS')
267
-
268
- self.text = ns
269
- end
270
- end
271
-
272
- class GroupParent < XFA::Element
273
- xfa_attribute 'desc'
274
- xfa_attribute 'lock'
275
-
276
- def initialize(parentname = "")
277
- super('groupParent')
278
-
279
- self.text = parentname
280
- end
281
- end
282
-
283
- class IfEmpty < XFA::Element
284
- xfa_attribute 'desc'
285
- xfa_attribute 'lock'
286
-
287
- DATAVALUE = "dataValue"
288
- DATAGROUP = "dataGroup"
289
- IGNORE = "ignore"
290
- REMOVE = "remove"
291
-
292
- def initialize(default = DATAVALUE)
293
- super('ifEmpty')
294
-
295
- self.text = default
296
- end
297
- end
298
-
299
- class NameAttr < XFA::Element
300
- xfa_attribute 'desc'
301
- xfa_attribute 'lock'
302
-
303
- def initialize(name)
304
- super('nameAttr')
305
-
306
- self.text = name
307
- end
308
- end
309
-
310
- class Picture < XFA::Element
311
- xfa_attribute 'desc'
312
- xfa_attribute 'lock'
313
-
314
- def initialize(clause = "")
315
- super('picture')
316
-
317
- self.text = clause
318
- end
319
- end
320
-
321
- class Presence < XFA::Element
322
- xfa_attribute 'desc'
323
- xfa_attribute 'lock'
324
-
325
- PRESERVE = "preserve"
326
- DISSOLVE = "dissolve"
327
- DISSOLVESTRUCTURE = "dissolveStructure"
328
- IGNORE = "ignore"
329
- REMOVE = "remove"
330
-
331
- def initialize(action = PRESERVE)
332
- super('presence')
333
-
334
- self.text = action
335
- end
336
- end
337
-
338
- class Rename < XFA::Element
339
- xfa_attribute 'desc'
340
- xfa_attribute 'lock'
341
-
342
- def initialize(nodename = "")
343
- super('rename')
344
-
345
- self.text = nodename
346
- end
347
- end
348
-
349
- class Whitespace < XFA::Element
350
- xfa_attribute 'desc'
351
- xfa_attribute 'lock'
352
-
353
- PRESERVE = "preserve"
354
- LTRIM = "ltrim"
355
- NORMALIZE = "normalize"
356
- RTRIM = "rtrim"
357
- TRIM = "trim"
358
-
359
- def initialize(action = PRESERVE)
360
- super('whitespace')
361
-
362
- self.text = action
363
- end
364
- end
365
-
366
- class Transform < XFA::Element
367
- xfa_attribute 'desc'
368
- xfa_attribute 'lock'
369
- xfa_attribute 'ref'
370
-
371
- xfa_node 'groupParent', Config::GroupParent, 0..1
372
- xfa_node 'ifEmpty', Config::IfEmpty, 0..1
373
- xfa_node 'nameAttr', Config::NameAttr, 0..1
374
- xfa_node 'picture', Config::Picture, 0..1
375
- xfa_node 'presence', Config::Presence, 0..1
376
- xfa_node 'rename', Config::Rename, 0..1
377
- xfa_node 'whitespace', Config::Whitespace, 0..1
378
- end
379
-
380
- class Data < XFA::Element
381
- xfa_attribute 'desc'
382
- xfa_attribute 'lock'
383
-
384
- xfa_node 'adjustData', Config::AdjustData, 0..1
385
- xfa_node 'attributes', Config::Attributes, 0..1
386
- xfa_node 'incrementalLoad', Config::IncrementalLoad, 0..1
387
- xfa_node 'outputXSL', Config::OutputXSL, 0..1
388
- xfa_node 'range', Config::Range, 0..1
389
- xfa_node 'record', Config::Record, 0..1
390
- xfa_node 'startNode', Config::StartNode, 0..1
391
- xfa_node 'uri', Config::URI, 0..1
392
- xfa_node 'window', Config::Window, 0..1
393
- xfa_node 'xsl', Config::XSL, 0..1
394
-
395
- xfa_node 'excludeNS', Config::ExcludeNS
396
- xfa_node 'transform', Config::Transform
397
-
398
- def initialize
399
- super('data')
400
- end
401
- end
402
-
403
- class Severity < XFA::Element
404
- xfa_attribute 'desc'
405
- xfa_attribute 'lock'
406
-
407
- IGNORE = "ignore"
408
- ERROR = "error"
409
- INFORMATION = "information"
410
- TRACE = "trace"
411
- WARNING = "warning"
412
-
413
- def initialize(level = IGNORE)
414
- super('severity')
415
-
416
- self.text = level
417
- end
418
- end
419
-
420
- class MsgId < XFA::Element
421
- xfa_attribute 'desc'
422
- xfa_attribute 'lock'
423
-
424
- def initialize(uid = "1")
425
- super('msgId')
426
-
427
- self.text = uid
428
- end
429
- end
430
-
431
- class Message < XFA::Element
432
- xfa_attribute 'desc'
433
- xfa_attribute 'lock'
434
-
435
- xfa_node 'msgId', Config::MsgId, 0..1
436
- xfa_node 'severity', Config::Severity, 0..1
437
-
438
- def initialize
439
- super('message')
440
- end
441
- end
442
-
443
- class Messaging < XFA::Element
444
- xfa_attribute 'desc'
445
- xfa_attribute 'lock'
446
-
447
- xfa_node 'message', Config::Message
448
-
449
- def initialize
450
- super('messaging')
451
- end
452
- end
453
-
454
- class SuppressBanner < XFA::Element
455
- xfa_attribute 'desc'
456
- xfa_attribute 'lock'
457
-
458
- ALLOWED = "0"
459
- DENIED = "1"
460
-
461
- def initialize(display = ALLOWED)
462
- super('suppressBanner')
463
-
464
- self.text = display
465
- end
466
- end
467
-
468
- class Base < XFA::Element
469
- xfa_attribute 'desc'
470
- xfa_attribute 'lock'
471
-
472
- def initialize(uri = "")
473
- super('base')
474
-
475
- self.text = uri
476
- end
477
- end
478
-
479
- class Relevant < XFA::Element
480
- xfa_attribute 'desc'
481
- xfa_attribute 'lock'
482
-
483
- def initialize(token = "")
484
- super('relevant')
485
-
486
- self.text = token
487
- end
488
- end
489
-
490
- class StartPage < XFA::Element
491
- xfa_attribute 'desc'
492
- xfa_attribute 'lock'
493
-
494
- def initialize(pagenum = "0")
495
- super('startPage')
496
-
497
- self.text = pagenum
498
- end
499
- end
500
-
501
- class Template < XFA::Element
502
- xfa_attribute 'desc'
503
- xfa_attribute 'lock'
504
-
505
- xfa_node 'base', Config::Base, 0..1
506
- xfa_node 'relevant', Config::Relevant, 0..1
507
- xfa_node 'startPage', Config::StartPage, 0..1
508
- xfa_node 'uri', Config::URI, 0..1
509
- xfa_node 'xsl', Config::XSL, 0..1
510
-
511
- def initialize
512
- super('template')
513
- end
514
- end
515
-
516
- class ValidationMessaging < XFA::Element
517
- xfa_attribute 'desc'
518
- xfa_attribute 'lock'
519
-
520
- ALL_INDIVIDUALLY = "allMessagesIndividually"
521
- ALL_TOGETHER = "allMessagesTogether"
522
- FIRST_ONLY = "firstMessageOnly"
523
- NONE = "noMessages"
524
-
525
- def initialize(validate = ALL_INDIVIDUALLY)
526
- super('validationMessaging')
527
-
528
- self.text = validate
529
- end
530
- end
531
-
532
- class VersionControl < XFA::Element
533
- xfa_attribute 'lock'
534
- xfa_attribute 'outputBelow'
535
- xfa_attribute 'sourceAbove'
536
- xfa_attribute 'sourceBelow'
537
-
538
- def initialize
539
- super('versionControl')
540
- end
541
- end
542
-
543
- class Mode < XFA::Element
544
- xfa_attribute 'desc'
545
- xfa_attribute 'lock'
546
-
547
- APPEND = "append"
548
- OVERWRITE = "overwrite"
549
-
550
- def initialize(mode = APPEND)
551
- super('mode')
552
-
553
- self.text = mode
554
- end
555
- end
556
-
557
- class Threshold < XFA::Element
558
- xfa_attribute 'desc'
559
- xfa_attribute 'lock'
560
-
561
- TRACE = "trace"
562
- ERROR = "error"
563
- INFORMATION = "information"
564
- WARN = "warn"
565
-
566
- def initialize(threshold = TRACE)
567
- super('threshold')
568
-
569
- self.text = threshold
570
- end
571
- end
572
-
573
- class To < XFA::Element
574
- xfa_attribute 'desc'
575
- xfa_attribute 'lock'
576
-
577
- NULL = "null"
578
- MEMORY = "memory"
579
- STD_ERR = "stderr"
580
- STD_OUT = "stdout"
581
- SYSTEM = "system"
582
- URI = "uri"
583
-
584
- def initialize(dest = NULL)
585
- super('to')
586
-
587
- self.text = dest
588
- end
589
- end
590
-
591
- class Log < XFA::Element
592
- xfa_attribute 'desc'
593
- xfa_attribute 'lock'
594
-
595
- xfa_node 'mode', Config::Mode, 0..1
596
- xfa_node 'threshold', Config::Threshold, 0..1
597
- xfa_node 'to', Config::To, 0..1
598
- xfa_node 'uri', Config::URI, 0..1
599
-
600
- def initialize
601
- super('log')
602
- end
603
- end
604
-
605
- class Common < XFA::Element
606
- xfa_attribute 'desc'
607
- xfa_attribute 'lock'
608
-
609
- xfa_node 'data', Config::Data, 0..1
610
- xfa_node 'locale', Config::Locale, 0..1
611
- xfa_node 'localeSet', Config::LocaleSet, 0..1
612
- xfa_node 'messaging', Config::Messaging, 0..1
613
- xfa_node 'suppressBanner', Config::SuppressBanner, 0..1
614
- xfa_node 'template', Config::Template, 0..1
615
- xfa_node 'validationMessaging', Config::ValidationMessaging, 0..1
616
- xfa_node 'versionControl', Config::VersionControl, 0..1
617
-
618
- xfa_node 'log', Config::Log
619
-
620
- def initialize
621
- super("common")
622
- end
623
- end
624
-
625
- end
626
-
627
- #
628
- # The _connectionSet_ packet describes the connections used to initiate or conduct web services.
629
- #
630
- class ConnectionSet < XFA::Element
631
- mime_type 'text/xml'
632
-
633
- def initialize
634
- super("connectionSet")
635
-
636
- add_attribute 'xmlns', 'http://www.xfa.org/schema/xfa-connection-set/2.8/'
637
- end
638
-
639
- class EffectiveInputPolicy < XFA::Element
640
- xfa_attribute 'id'
641
- xfa_attribute 'name'
642
- xfa_attribute 'use'
643
- xfa_attribute 'usehref'
644
-
645
- def initialize
646
- super('effectiveInputPolicy')
647
- end
648
- end
649
-
650
- class EffectiveOutputPolicy < XFA::Element
651
- xfa_attribute 'id'
652
- xfa_attribute 'name'
653
- xfa_attribute 'use'
654
- xfa_attribute 'usehref'
655
-
656
- def initialize
657
- super('effectiveOutputPolicy')
658
- end
659
- end
660
-
661
- class Operation < XFA::Element
662
- xfa_attribute 'id'
663
- xfa_attribute 'input'
664
- xfa_attribute 'name'
665
- xfa_attribute 'output'
666
- xfa_attribute 'use'
667
- xfa_attribute 'usehref'
668
-
669
- def initialize(name = "")
670
- super('operation')
671
-
672
- self.text = name
673
- end
674
- end
675
-
676
- class SOAPAction < XFA::Element
677
- xfa_attribute 'id'
678
- xfa_attribute 'name'
679
- xfa_attribute 'use'
680
- xfa_attribute 'usehref'
681
-
682
- def initialize(uri = "")
683
- super('soapAction')
684
-
685
- self.text = uri
686
- end
687
- end
688
-
689
- class SOAPAddress < XFA::Element
690
- xfa_attribute 'id'
691
- xfa_attribute 'name'
692
- xfa_attribute 'use'
693
- xfa_attribute 'usehref'
694
-
695
- def initialize(addr = "")
696
- super('soapAddress')
697
-
698
- self.text = addr
699
- end
700
- end
701
-
702
- class WSDLAddress < XFA::Element
703
- xfa_attribute 'id'
704
- xfa_attribute 'name'
705
- xfa_attribute 'use'
706
- xfa_attribute 'usehref'
707
-
708
- def initialize(addr = "")
709
- super('wsdlAddress')
710
-
711
- self.text = addr
712
- end
713
- end
714
-
715
- class WSDLConnection < XFA::Element
716
- xfa_attribute 'dataDescription'
717
- xfa_attribute 'name'
718
-
719
- xfa_node 'effectiveInputPolicy', ConnectionSet::EffectiveInputPolicy, 0..1
720
- xfa_node 'effectiveOutputPolicy', ConnectionSet::EffectiveOutputPolicy, 0..1
721
- xfa_node 'operation', ConnectionSet::Operation, 0..1
722
- xfa_node 'soapAction', ConnectionSet::SOAPAction, 0..1
723
- xfa_node 'soapAddress', ConnectionSet::SOAPAddress, 0..1
724
- xfa_node 'wsdlAddress', ConnectionSet::WSDLAddress, 0..1
725
-
726
- def initialize
727
- super('wsdlConnection')
728
- end
729
- end
730
-
731
- class URI < XFA::Element
732
- xfa_attribute 'id'
733
- xfa_attribute 'name'
734
- xfa_attribute 'use'
735
- xfa_attribute 'usehref'
736
-
737
- def initialize(uri = "")
738
- super('uri')
739
-
740
- self.text = uri
741
- end
742
- end
743
-
744
- class RootElement < XFA::Element
745
- xfa_attribute 'id'
746
- xfa_attribute 'name'
747
- xfa_attribute 'use'
748
- xfa_attribute 'usehref'
749
-
750
- def initialize(root = '')
751
- super('rootElement')
752
-
753
- self.text = root
754
- end
755
- end
756
-
757
- class XSDConnection < XFA::Element
758
- xfa_attribute 'dataDescription'
759
- xfa_attribute 'name'
760
-
761
- xfa_node 'rootElement', ConnectionSet::RootElement, 0..1
762
- xfa_node 'uri', ConnectionSet::URI, 0..1
763
-
764
- def initialize
765
- super('xsdConnection')
766
- end
767
- end
768
-
769
- class XMLConnection < XFA::Element
770
- xfa_attribute 'dataDescription'
771
- xfa_attribute 'name'
772
-
773
- xfa_node 'uri', ConnectionSet::URI, 0..1
774
-
775
- def initialize
776
- super('xmlConnection')
777
- end
778
- end
779
-
780
- xfa_node 'wsdlConnection', ConnectionSet::WSDLConnection
781
- xfa_node 'xmlConnection', ConnectionSet::XMLConnection
782
- xfa_node 'xsdConnection', ConnectionSet::XSDConnection
783
- end
784
-
785
- #
786
- # The _datasets_ element enclosed XML data content that may have originated from an XFA form and/or
787
- # may be intended to be consumed by an XFA form.
788
- #
789
- class Datasets < XFA::Element
790
- mime_type 'text/xml'
791
-
792
- class Data < XFA::Element
793
- def initialize
794
- super('xfa:data')
795
- end
796
- end
797
-
798
- def initialize
799
- super("xfa:datasets")
800
-
801
- add_attribute 'xmlns:xfa', 'http://www.xfa.org/schema/xfa-data/1.0/'
802
- end
803
- end
804
-
805
- #
806
- # The _localeSet_ packet encloses information about locales.
807
- #
808
- class LocaleSet < XFA::Element
809
- mime_type 'text/xml'
810
-
811
- def initialize
812
- super("localeSet")
813
-
814
- add_attribute 'xmlns', 'http://www.xfa.org/schema/xfa-locale-set/2.7/'
815
- end
816
- end
817
-
818
- #
819
- # An XDF _pdf_ element encloses a PDF packet.
820
- #
821
- class PDF < XFA::Element
822
- mime_type 'application/pdf'
823
- xfa_attribute :href
824
-
825
- def initialize
826
- super("pdf")
827
-
828
- add_attribute 'xmlns', 'http://ns.adobe.com/xdp/pdf/'
829
- end
830
-
831
- def enclose_pdf(pdfdata)
832
- require 'base64'
833
- b64data = Base64.encode64(pdfdata).chomp!
834
-
835
- doc = elements['document'] || add_element('document')
836
- chunk = doc.elements['chunk'] || doc.add_element('chunk')
837
-
838
- chunk.text = b64data
839
-
840
- self
841
- end
842
-
843
- def has_enclosed_pdf?
844
- chunk = elements['document/chunk']
845
-
846
- not chunk.nil? and not chunk.text.nil?
847
- end
848
-
849
- def remove_enclosed_pdf
850
- elements.delete('document') if has_enclosed_pdf?
851
- end
852
-
853
- def enclosed_pdf
854
- return nil unless has_enclosed_pdf?
855
-
856
- require 'base64'
857
- Base64.decode64(elements['document/chunk'].text)
858
- end
859
-
860
- end
861
-
862
- #
863
- # The _signature_ packet encloses a detached digital signature.
864
- #
865
- class Signature < XFA::Element
866
- mime_type ''
867
-
868
- def initialize
869
- super("signature")
870
-
871
- add_attribute 'xmlns', 'http://www.w3.org/2000/09/xmldsig#'
872
- end
873
- end
874
-
875
- #
876
- # The _sourceSet_ packet contains ADO database queries, used to describe data
877
- # binding to ADO data sources.
878
- #
879
- class SourceSet < XFA::Element
880
- mime_type 'text/xml'
881
-
882
- def initialize
883
- super("sourceSet")
884
-
885
- add_attribute 'xmlns', 'http://www.xfa.org/schema/xfa-source-set/2.8/'
886
- end
887
- end
888
-
889
- #
890
- # The _stylesheet_ packet encloses a single XSLT stylesheet.
891
- #
892
- class StyleSheet < XFA::Element
893
- mime_type 'text/css'
894
-
895
- def initialize(id)
896
- super("xsl:stylesheet")
897
-
898
- add_attribute 'version', '1.0'
899
- add_attribute 'xmlns:xsl', 'http://www.w3.org/1999/XSL/Transform'
900
- add_attribute 'id', id.to_s
901
- end
902
- end
903
-
904
- #
905
- # This packet contains the form template.
906
- #
907
- class Template < XFA::Element
908
- mime_type 'application/x-xfa-template'
909
-
910
- class Boolean < XFA::Element
911
- xfa_attribute 'id'
912
- xfa_attribute 'name'
913
- xfa_attribute 'use'
914
- xfa_attribute 'usehref'
915
-
916
- NO = 0
917
- YES = 1
918
-
919
- def initialize(bool = nil)
920
- super('boolean')
921
-
922
- self.text = bool
923
- end
924
- end
925
-
926
- class Date < XFA::Element
927
- xfa_attribute 'id'
928
- xfa_attribute 'name'
929
- xfa_attribute 'use'
930
- xfa_attribute 'usehref'
931
-
932
- def initialize(date = nil)
933
- super('date')
934
-
935
- self.text = date
936
- end
937
- end
938
-
939
- class DateTime < XFA::Element
940
- xfa_attribute 'id'
941
- xfa_attribute 'name'
942
- xfa_attribute 'use'
943
- xfa_attribute 'usehref'
944
-
945
- def initialize(datetime = nil)
946
- super('dateTime')
947
-
948
- self.text = datetime
949
- end
950
- end
951
-
952
- class Decimal < XFA::Element
953
- xfa_attribute 'fracDigits'
954
- xfa_attribute 'id'
955
- xfa_attribute 'leadDigits'
956
- xfa_attribute 'name'
957
- xfa_attribute 'use'
958
- xfa_attribute 'usehref'
959
-
960
- def initialize(number = nil)
961
- super('decimal')
962
-
963
- self.text = number
964
- end
965
- end
966
-
967
- class ExData < XFA::Element
968
- xfa_attribute 'contentType'
969
- xfa_attribute 'href'
970
- xfa_attribute 'id'
971
- xfa_attribute 'maxLength'
972
- xfa_attribute 'name'
973
- xfa_attribute 'rid'
974
- xfa_attribute 'transferEncoding'
975
- xfa_attribute 'use'
976
- xfa_attribute 'usehref'
977
-
978
- def initialize(data = nil)
979
- super('exData')
980
-
981
- self.text = data
982
- end
983
- end
984
-
985
- class Float < XFA::Element
986
- xfa_attribute 'id'
987
- xfa_attribute 'name'
988
- xfa_attribute 'use'
989
- xfa_attribute 'usehref'
990
-
991
- def initialize(float = nil)
992
- super('float')
993
-
994
- self.text = float
995
- end
996
- end
997
-
998
- class Image < XFA::Element
999
- xfa_attribute 'aspect'
1000
- xfa_attribute 'contentType'
1001
- xfa_attribute 'href'
1002
- xfa_attribute 'id'
1003
- xfa_attribute 'name'
1004
- xfa_attribute 'transferEncoding'
1005
- xfa_attribute 'use'
1006
- xfa_attribute 'usehref'
1007
-
1008
- def initialize(data = nil)
1009
- super('image')
1010
-
1011
- self.text = data
1012
- end
1013
- end
1014
-
1015
- class Integer < XFA::Element
1016
- xfa_attribute 'id'
1017
- xfa_attribute 'name'
1018
- xfa_attribute 'use'
1019
- xfa_attribute 'usehref'
1020
-
1021
- def initialize(int = nil)
1022
- super('integer')
1023
-
1024
- self.text = int
1025
- end
1026
- end
1027
-
1028
- class Text < XFA::Element
1029
- xfa_attribute 'id'
1030
- xfa_attribute 'maxChars'
1031
- xfa_attribute 'name'
1032
- xfa_attribute 'rid'
1033
- xfa_attribute 'use'
1034
- xfa_attribute 'usehref'
1035
-
1036
- def initialize(text = "")
1037
- super('text')
1038
-
1039
- self.text = text
1040
- end
1041
- end
1042
-
1043
- class Time < XFA::Element
1044
- xfa_attribute 'id'
1045
- xfa_attribute 'name'
1046
- xfa_attribute 'use'
1047
- xfa_attribute 'usehref'
1048
-
1049
- def initialize(time = nil)
1050
- super('time')
1051
-
1052
- self.text = time
1053
- end
1054
- end
1055
-
1056
- class Extras < XFA::Element
1057
- xfa_attribute 'id'
1058
- xfa_attribute 'name'
1059
- xfa_attribute 'use'
1060
- xfa_attribute 'usehref'
1061
-
1062
- xfa_node 'boolean', Template::Boolean
1063
- xfa_node 'date', Template::Date
1064
- xfa_node 'dateTime', Template::DateTime
1065
- xfa_node 'decimal', Template::Decimal
1066
- xfa_node 'exData', Template::ExData
1067
- xfa_node 'extras', Template::Extras
1068
- xfa_node 'float', Template::Float
1069
- xfa_node 'image', Template::Image
1070
- xfa_node 'integer', Template::Integer
1071
- xfa_node 'text', Template::Text
1072
- xfa_node 'time', Template::Time
1073
-
1074
- def initialize
1075
- super('extras')
1076
- end
1077
- end
1078
-
1079
- class Speak < XFA::Element
1080
- xfa_attribute 'disable'
1081
- xfa_attribute 'id'
1082
- xfa_attribute 'priority'
1083
- xfa_attribute 'rid'
1084
- xfa_attribute 'use'
1085
- xfa_attribute 'usehref'
1086
-
1087
- def initialize(text = "")
1088
- super('speak')
1089
-
1090
- self.text = text
1091
- end
1092
- end
1093
-
1094
- class ToolTip < XFA::Element
1095
- xfa_attribute 'id'
1096
- xfa_attribute 'rid'
1097
- xfa_attribute 'use'
1098
- xfa_attribute 'usehref'
1099
-
1100
- def initialize(text = "")
1101
- super('toolTip')
1102
-
1103
- self.text = text
1104
- end
1105
- end
1106
-
1107
- class Assist < XFA::Element
1108
- xfa_attribute 'id'
1109
- xfa_attribute 'role'
1110
- xfa_attribute 'use'
1111
- xfa_attribute 'usehref'
1112
-
1113
- xfa_node 'speak', Template::Speak, 0..1
1114
- xfa_node 'toolTip', Template::ToolTip, 0..1
1115
-
1116
- def initialize
1117
- super('assist')
1118
- end
1119
- end
1120
-
1121
- class Picture < XFA::Element
1122
- xfa_attribute 'id'
1123
- xfa_attribute 'use'
1124
- xfa_attribute 'usehref'
1125
-
1126
- def initialize(data = nil)
1127
- super('picture')
1128
-
1129
- self.text = data
1130
- end
1131
- end
1132
-
1133
- class Bind < XFA::Element
1134
- xfa_attribute 'match'
1135
- xfa_attribute 'ref'
1136
-
1137
- xfa_node 'picture', Template::Picture, 0..1
1138
-
1139
- def initialize
1140
- super('bind')
1141
- end
1142
- end
1143
-
1144
- class Bookend < XFA::Element
1145
- xfa_attribute 'id'
1146
- xfa_attribute 'leader'
1147
- xfa_attribute 'trailer'
1148
- xfa_attribute 'use'
1149
- xfa_attribute 'usehref'
1150
-
1151
- def initialize
1152
- super('bookend')
1153
- end
1154
- end
1155
-
1156
- class Color < XFA::Element
1157
- xfa_attribute 'cSpace'
1158
- xfa_attribute 'id'
1159
- xfa_attribute 'use'
1160
- xfa_attribute 'usehref'
1161
- xfa_attribute 'value'
1162
-
1163
- xfa_node 'extras', Template::Extras, 0..1
1164
-
1165
- def initialize
1166
- super('color')
1167
-
1168
- self.cSpace = "SRGB"
1169
- end
1170
- end
1171
-
1172
- class Corner < XFA::Element
1173
- xfa_attribute 'id'
1174
- xfa_attribute 'inverted'
1175
- xfa_attribute 'join'
1176
- xfa_attribute 'presence'
1177
- xfa_attribute 'radius'
1178
- xfa_attribute 'stroke'
1179
- xfa_attribute 'thickness'
1180
- xfa_attribute 'use'
1181
- xfa_attribute 'usehref'
1182
-
1183
- xfa_node 'color', Template::Color, 0..1
1184
- xfa_node 'extras', Template::Extras, 0..1
1185
-
1186
- def initialize
1187
- super('corner')
1188
- end
1189
- end
1190
-
1191
- class Edge < XFA::Element
1192
- xfa_attribute 'cap'
1193
- xfa_attribute 'id'
1194
- xfa_attribute 'presence'
1195
- xfa_attribute 'stroke'
1196
- xfa_attribute 'thickness'
1197
- xfa_attribute 'use'
1198
- xfa_attribute 'usehref'
1199
-
1200
- xfa_node 'color', Template::Color, 0..1
1201
- xfa_node 'extras', Template::Extras, 0..1
1202
-
1203
- def initialize
1204
- super('edge')
1205
- end
1206
- end
1207
-
1208
- class Linear < XFA::Element
1209
- xfa_attribute 'id'
1210
- xfa_attribute 'type'
1211
- xfa_attribute 'use'
1212
- xfa_attribute 'usehref'
1213
-
1214
- xfa_node 'color', Template::Color, 0..1
1215
- xfa_node 'extras', Template::Extras, 0..1
1216
-
1217
- def initialize
1218
- super('linear')
1219
- end
1220
- end
1221
-
1222
- class Pattern < XFA::Element
1223
- xfa_attribute 'id'
1224
- xfa_attribute 'type'
1225
- xfa_attribute 'use'
1226
- xfa_attribute 'usehref'
1227
-
1228
- xfa_node 'color', Template::Color, 0..1
1229
- xfa_node 'extras', Template::Extras, 0..1
1230
-
1231
- def initialize
1232
- super('pattern')
1233
- end
1234
- end
1235
-
1236
- class Radial < XFA::Element
1237
- xfa_attribute 'id'
1238
- xfa_attribute 'type'
1239
- xfa_attribute 'use'
1240
- xfa_attribute 'usehref'
1241
-
1242
- xfa_node 'color', Template::Color, 0..1
1243
- xfa_node 'extras', Template::Extras, 0..1
1244
-
1245
- def initialize
1246
- super('radial')
1247
- end
1248
- end
1249
-
1250
- class Solid < XFA::Element
1251
- xfa_attribute 'id'
1252
- xfa_attribute 'use'
1253
- xfa_attribute 'usehref'
1254
-
1255
- xfa_node 'extras', Template::Extras, 0..1
1256
-
1257
- def initialize
1258
- super('solid')
1259
- end
1260
- end
1261
-
1262
- class Stipple < XFA::Element
1263
- xfa_attribute 'id'
1264
- xfa_attribute 'rate'
1265
- xfa_attribute 'use'
1266
- xfa_attribute 'usehref'
1267
-
1268
- xfa_node 'color', Template::Color, 0..1
1269
- xfa_node 'extras', Template::Extras, 0..1
1270
-
1271
- def initialize
1272
- super('stipple')
1273
- end
1274
- end
1275
-
1276
- class Fill < XFA::Element
1277
- xfa_attribute 'id'
1278
- xfa_attribute 'presence'
1279
- xfa_attribute 'use'
1280
- xfa_attribute 'usehref'
1281
-
1282
- xfa_node 'color', Template::Color, 0..1
1283
- xfa_node 'extras', Template::Extras, 0..1
1284
- xfa_node 'linear', Template::Linear, 0..1
1285
- xfa_node 'pattern', Template::Pattern, 0..1
1286
- xfa_node 'radial', Template::Radial, 0..1
1287
- xfa_node 'solid', Template::Solid, 0..1
1288
- xfa_node 'stipple', Template::Stipple, 0..1
1289
-
1290
- def initialize
1291
- super('fill')
1292
- end
1293
- end
1294
-
1295
- class Margin < XFA::Element
1296
- xfa_attribute 'bottomInset'
1297
- xfa_attribute 'id'
1298
- xfa_attribute 'leftInset'
1299
- xfa_attribute 'rightInset'
1300
- xfa_attribute 'topInset'
1301
- xfa_attribute 'use'
1302
- xfa_attribute 'usehref'
1303
-
1304
- xfa_node 'extras', Template::Extras, 0..1
1305
-
1306
- def initialize
1307
- super('margin')
1308
- end
1309
- end
1310
-
1311
- class Border < XFA::Element
1312
- xfa_attribute 'break'
1313
- xfa_attribute 'hand'
1314
- xfa_attribute 'id'
1315
- xfa_attribute 'presence'
1316
- xfa_attribute 'relevant'
1317
- xfa_attribute 'use'
1318
- xfa_attribute 'usehref'
1319
-
1320
- xfa_node 'corner', Template::Corner, 0..4
1321
- xfa_node 'edge', Template::Edge, 0..4
1322
- xfa_node 'extras', Template::Extras, 0..1
1323
- xfa_node 'fill', Template::Fill, 0..1
1324
- xfa_node 'margin', Template::Margin, 0..1
1325
-
1326
- def initialize
1327
- super('border')
1328
- end
1329
- end
1330
-
1331
- class Break < XFA::Element
1332
- xfa_attribute 'after'
1333
- xfa_attribute 'afterTarget'
1334
- xfa_attribute 'before'
1335
- xfa_attribute 'beforeTarget'
1336
- xfa_attribute 'bookendLeader'
1337
- xfa_attribute 'bookendTrailer'
1338
- xfa_attribute 'id'
1339
- xfa_attribute 'overflowLeader'
1340
- xfa_attribute 'overflowTarget'
1341
- xfa_attribute 'overflowTrailer'
1342
- xfa_attribute 'startNew'
1343
- xfa_attribute 'use'
1344
- xfa_attribute 'usehref'
1345
-
1346
- xfa_node 'extras', Template::Extras, 0..1
1347
-
1348
- def initialize
1349
- super('break')
1350
- end
1351
- end
1352
-
1353
- class Message < XFA::Element
1354
- xfa_attribute 'id'
1355
- xfa_attribute 'use'
1356
- xfa_attribute 'usehref'
1357
-
1358
- xfa_node 'text', Template::Text
1359
-
1360
- def initialize
1361
- super('message')
1362
- end
1363
- end
1364
-
1365
- class Script < XFA::Element
1366
- xfa_attribute 'binding'
1367
- xfa_attribute 'contentType'
1368
- xfa_attribute 'id'
1369
- xfa_attribute 'name'
1370
- xfa_attribute 'runAt'
1371
- xfa_attribute 'use'
1372
- xfa_attribute 'usehref'
1373
-
1374
- def initialize(script = "")
1375
- super('script')
1376
-
1377
- self.text = script
1378
- end
1379
- end
1380
-
1381
- class JavaScript < Script
1382
- def initialize(script = "")
1383
- super(script)
1384
-
1385
- self.contentType = 'application/x-javascript'
1386
- end
1387
- end
1388
-
1389
- class FormCalcScript < Script
1390
- def initialize(script = "")
1391
- super(script)
1392
-
1393
- self.contentType = 'application/x-formcalc'
1394
- end
1395
- end
1396
-
1397
- class Calculate < XFA::Element
1398
- xfa_attribute 'id'
1399
- xfa_attribute 'override'
1400
- xfa_attribute 'use'
1401
- xfa_attribute 'usehref'
1402
-
1403
- xfa_node 'extras', Template::Extras, 0..1
1404
- xfa_node 'message', Template::Message, 0..1
1405
- xfa_node 'script', Template::Script, 0..1
1406
-
1407
- def initialize
1408
- super('calculate')
1409
- end
1410
- end
1411
-
1412
- class Desc < XFA::Element
1413
- xfa_attribute 'id'
1414
- xfa_attribute 'use'
1415
- xfa_attribute 'usehref'
1416
-
1417
- xfa_node 'boolean', Template::Boolean
1418
- xfa_node 'date', Template::Date
1419
- xfa_node 'dateTime', Template::DateTime
1420
- xfa_node 'decimal', Template::Decimal
1421
- xfa_node 'exData', Template::ExData
1422
- xfa_node 'float', Template::Float
1423
- xfa_node 'image', Template::Image
1424
- xfa_node 'integer', Template::Integer
1425
- xfa_node 'text', Template::Text
1426
- xfa_node 'time', Template::Time
1427
-
1428
- def initialize
1429
- super('desc')
1430
- end
1431
- end
1432
-
1433
- class Keep < XFA::Element
1434
- xfa_attribute 'id'
1435
- xfa_attribute 'intact'
1436
- xfa_attribute 'next'
1437
- xfa_attribute 'previous'
1438
- xfa_attribute 'use'
1439
- xfa_attribute 'usehref'
1440
-
1441
- xfa_node 'extras', Template::Extras, 0..1
1442
-
1443
- NONE = "none"
1444
- CONTENTAREA = "contentArea"
1445
- PAGEAREA = "pageArea"
1446
-
1447
- def initialize
1448
- super('keep')
1449
- end
1450
- end
1451
-
1452
- class Occur < XFA::Element
1453
- xfa_attribute 'id'
1454
- xfa_attribute 'initial'
1455
- xfa_attribute 'max'
1456
- xfa_attribute 'min'
1457
- xfa_attribute 'use'
1458
- xfa_attribute 'usehref'
1459
-
1460
- xfa_node 'extras', Template::Extras, 0..1
1461
-
1462
- def initialize
1463
- super('occur')
1464
- end
1465
- end
1466
-
1467
- class Overflow < XFA::Element
1468
- xfa_attribute 'id'
1469
- xfa_attribute 'leader'
1470
- xfa_attribute 'target'
1471
- xfa_attribute 'trailer'
1472
- xfa_attribute 'use'
1473
- xfa_attribute 'usehref'
1474
-
1475
- def initialize
1476
- super('overflow')
1477
- end
1478
- end
1479
-
1480
- class Medium < XFA::Element
1481
- xfa_attribute 'id'
1482
- xfa_attribute 'imagingBBox'
1483
- xfa_attribute 'long'
1484
- xfa_attribute 'orientation'
1485
- xfa_attribute 'short'
1486
- xfa_attribute 'stock'
1487
- xfa_attribute 'trayIn'
1488
- xfa_attribute 'trayOut'
1489
- xfa_attribute 'use'
1490
- xfa_attribute 'usehref'
1491
-
1492
- def initialize
1493
- super('medium')
1494
- end
1495
- end
1496
-
1497
- class Font < XFA::Element
1498
- xfa_attribute 'baselineShift'
1499
- xfa_attribute 'fontHorizontalScale'
1500
- xfa_attribute 'fontVerticalScale'
1501
- xfa_attribute 'id'
1502
- xfa_attribute 'kerningMode'
1503
- xfa_attribute 'letterSpacing'
1504
- xfa_attribute 'lineThrough'
1505
- xfa_attribute 'lineThroughPeriod'
1506
- xfa_attribute 'overline'
1507
- xfa_attribute 'overlinePeriod'
1508
- xfa_attribute 'posture'
1509
- xfa_attribute 'size'
1510
- xfa_attribute 'typeface'
1511
- xfa_attribute 'underline'
1512
- xfa_attribute 'underlinePeriod'
1513
- xfa_attribute 'use'
1514
- xfa_attribute 'usehref'
1515
- xfa_attribute 'weight'
1516
-
1517
- xfa_node 'extras', Template::Extras, 0..1
1518
- xfa_node 'fill', Template::Fill, 0..1
1519
-
1520
- def initialize
1521
- super('font')
1522
- end
1523
- end
1524
-
1525
- class Hyphenation < XFA::Element
1526
- xfa_attribute 'excludeAllCaps'
1527
- xfa_attribute 'excludeInitialCap'
1528
- xfa_attribute 'hyphenate'
1529
- xfa_attribute 'id'
1530
- xfa_attribute 'pushCharacterCount'
1531
- xfa_attribute 'remainCharacterCount'
1532
- xfa_attribute 'use'
1533
- xfa_attribute 'usehref'
1534
- xfa_attribute 'wordCharacterCount'
1535
-
1536
- def initialize
1537
- super('hyphenation')
1538
- end
1539
- end
1540
-
1541
- class Para < XFA::Element
1542
- xfa_attribute 'hAlign'
1543
- xfa_attribute 'id'
1544
- xfa_attribute 'lineHeight'
1545
- xfa_attribute 'marginLeft'
1546
- xfa_attribute 'marginRight'
1547
- xfa_attribute 'orphans'
1548
- xfa_attribute 'preserve'
1549
- xfa_attribute 'radixOffset'
1550
- xfa_attribute 'spaceAbove'
1551
- xfa_attribute 'spaceBelow'
1552
- xfa_attribute 'tabDefault'
1553
- xfa_attribute 'tabStops'
1554
- xfa_attribute 'textIndent'
1555
- xfa_attribute 'use'
1556
- xfa_attribute 'usehref'
1557
- xfa_attribute 'vAlign'
1558
- xfa_attribute 'widows'
1559
-
1560
- xfa_node 'hyphenation', Template::Hyphenation, 0..1
1561
-
1562
- def initialize
1563
- super('para')
1564
- end
1565
- end
1566
-
1567
- class Arc < XFA::Element
1568
- xfa_attribute 'circular'
1569
- xfa_attribute 'hand'
1570
- xfa_attribute 'id'
1571
- xfa_attribute 'startAngle'
1572
- xfa_attribute 'sweepAngle'
1573
- xfa_attribute 'use'
1574
- xfa_attribute 'usehref'
1575
-
1576
- xfa_node 'edge', Template::Edge, 0..1
1577
- xfa_node 'fill', Template::Fill, 0..1
1578
-
1579
- def initialize
1580
- super('arc')
1581
- end
1582
- end
1583
-
1584
- class Line < XFA::Element
1585
- xfa_attribute 'hand'
1586
- xfa_attribute 'id'
1587
- xfa_attribute 'slope'
1588
- xfa_attribute 'use'
1589
- xfa_attribute 'usehref'
1590
-
1591
- xfa_node 'edge', Template::Edge, 0..1
1592
-
1593
- def initialize
1594
- super('line')
1595
- end
1596
- end
1597
-
1598
- class Rectangle < XFA::Element
1599
- xfa_attribute 'hand'
1600
- xfa_attribute 'id'
1601
- xfa_attribute 'use'
1602
- xfa_attribute 'usehref'
1603
-
1604
- xfa_node 'corner', Template::Corner, 0..4
1605
- xfa_node 'edge', Template::Edge, 0..4
1606
- xfa_node 'fill', Template::Fill, 0..4
1607
-
1608
- def initialize
1609
- super('rectangle')
1610
- end
1611
- end
1612
-
1613
- class Value < XFA::Element
1614
- xfa_attribute 'id'
1615
- xfa_attribute 'override'
1616
- xfa_attribute 'relevant'
1617
- xfa_attribute 'use'
1618
- xfa_attribute 'usehref'
1619
-
1620
- xfa_node 'arc', Template::Arc, 0..1
1621
- xfa_node 'boolean', Template::Boolean, 0..1
1622
- xfa_node 'date', Template::Date, 0..1
1623
- xfa_node 'dateTime', Template::DateTime, 0..1
1624
- xfa_node 'decimal', Template::Decimal, 0..1
1625
- xfa_node 'exData', Template::ExData, 0..1
1626
- xfa_node 'float', Template::Float, 0..1
1627
- xfa_node 'image', Template::Image, 0..1
1628
- xfa_node 'integer', Template::Integer, 0..1
1629
- xfa_node 'line', Template::Line, 0..1
1630
- xfa_node 'rectangle', Template::Rectangle, 0..1
1631
- xfa_node 'text', Template::Text, 0..1
1632
- xfa_node 'time', Template::Time, 0..1
1633
-
1634
- def initialize
1635
- super('value')
1636
- end
1637
- end
1638
-
1639
- class Caption < XFA::Element
1640
- xfa_attribute 'id'
1641
- xfa_attribute 'placement'
1642
- xfa_attribute 'presence'
1643
- xfa_attribute 'reserve'
1644
- xfa_attribute 'use'
1645
- xfa_attribute 'usehref'
1646
-
1647
- xfa_node 'extras', Template::Extras, 0..1
1648
- xfa_node 'font', Template::Font, 0..1
1649
- xfa_node 'margin', Template::Margin, 0..1
1650
- xfa_node 'para', Template::Para, 0..1
1651
- xfa_node 'value', Template::Value, 0..1
1652
-
1653
- def initialize
1654
- super('caption')
1655
- end
1656
- end
1657
-
1658
- class Traverse < XFA::Element
1659
- xfa_attribute 'id'
1660
- xfa_attribute 'operation'
1661
- xfa_attribute 'ref'
1662
- xfa_attribute 'use'
1663
- xfa_attribute 'usehref'
1664
-
1665
- xfa_node 'extras', Template::Extras, 0..1
1666
- xfa_node 'script', Template::Script, 0..1
1667
-
1668
- def initialize
1669
- super('traverse')
1670
- end
1671
- end
1672
-
1673
- class Traversal < XFA::Element
1674
- xfa_attribute 'id'
1675
- xfa_attribute 'use'
1676
- xfa_attribute 'usehref'
1677
-
1678
- xfa_node 'extras', Template::Extras, 0..1
1679
-
1680
- xfa_node 'traverse', Template::Traverse
1681
-
1682
- def initialize
1683
- super('traversal')
1684
- end
1685
- end
1686
-
1687
- class Certificate < XFA::Element
1688
- xfa_attribute 'id'
1689
- xfa_attribute 'name'
1690
- xfa_attribute 'use'
1691
- xfa_attribute 'usehref'
1692
-
1693
- def initialize(b64data = nil)
1694
- super('certificate')
1695
-
1696
- self.text = b64data
1697
- end
1698
- end
1699
-
1700
- class Encrypt < XFA::Element
1701
- xfa_attribute 'id'
1702
- xfa_attribute 'use'
1703
- xfa_attribute 'usehref'
1704
-
1705
- xfa_node 'certificate', Template::Certificate, 0..1
1706
-
1707
- def initialize
1708
- super('encrypt')
1709
- end
1710
- end
1711
-
1712
- class Barcode < XFA::Element
1713
- xfa_attribute 'charEncoding'
1714
- xfa_attribute 'checksum'
1715
- xfa_attribute 'dataColumnCount'
1716
- xfa_attribute 'dataLength'
1717
- xfa_attribute 'dataPrep'
1718
- xfa_attribute 'dataRowCount'
1719
- xfa_attribute 'endChar'
1720
- xfa_attribute 'errorConnectionLevel'
1721
- xfa_attribute 'id'
1722
- xfa_attribute 'moduleHeight'
1723
- xfa_attribute 'moduleWidth'
1724
- xfa_attribute 'printCheckDigit'
1725
- xfa_attribute 'rowColumnRatio'
1726
- xfa_attribute 'startChar'
1727
- xfa_attribute 'textLocation'
1728
- xfa_attribute 'truncate'
1729
- xfa_attribute 'type'
1730
- xfa_attribute 'upsMode'
1731
- xfa_attribute 'use'
1732
- xfa_attribute 'usehref'
1733
- xfa_attribute 'wideNarrowRatio'
1734
-
1735
- xfa_node 'encrypt', Template::Encrypt, 0..1
1736
- xfa_node 'extras', Template::Extras, 0..1
1737
-
1738
- def initialize
1739
- super('barcode')
1740
- end
1741
- end
1742
-
1743
- class Button < XFA::Element
1744
- xfa_attribute 'highlight'
1745
- xfa_attribute 'id'
1746
- xfa_attribute 'use'
1747
- xfa_attribute 'usehref'
1748
-
1749
- xfa_node 'extras', Template::Extras, 0..1
1750
-
1751
- def initialize
1752
- super('button')
1753
- end
1754
- end
1755
-
1756
- class CheckButton < XFA::Element
1757
- xfa_attribute 'id'
1758
- xfa_attribute 'mark'
1759
- xfa_attribute 'shape'
1760
- xfa_attribute 'size'
1761
- xfa_attribute 'use'
1762
- xfa_attribute 'usehref'
1763
-
1764
- xfa_node 'border', Template::Border, 0..1
1765
- xfa_node 'extras', Template::Extras, 0..1
1766
- xfa_node 'margin', Template::Margin, 0..1
1767
-
1768
- def initialize
1769
- super('checkButton')
1770
- end
1771
- end
1772
-
1773
- class ChoiceList < XFA::Element
1774
- xfa_attribute 'commitOn'
1775
- xfa_attribute 'id'
1776
- xfa_attribute 'open'
1777
- xfa_attribute 'textEntry'
1778
- xfa_attribute 'use'
1779
- xfa_attribute 'usehref'
1780
-
1781
- xfa_node 'border', Template::Border, 0..1
1782
- xfa_node 'extras', Template::Extras, 0..1
1783
- xfa_node 'margin', Template::Margin, 0..1
1784
-
1785
- def initialize
1786
- super('choiceList')
1787
- end
1788
- end
1789
-
1790
- class Comb < XFA::Element
1791
- xfa_attribute 'id'
1792
- xfa_attribute 'numberOfCells'
1793
- xfa_attribute 'use'
1794
- xfa_attribute 'usehref'
1795
-
1796
- def initialize
1797
- super('comb')
1798
- end
1799
- end
1800
-
1801
- class DateTimeEdit < XFA::Element
1802
- xfa_attribute 'hScrollPolicy'
1803
- xfa_attribute 'id'
1804
- xfa_attribute 'picker'
1805
- xfa_attribute 'use'
1806
- xfa_attribute 'usehref'
1807
-
1808
- xfa_node 'border', Template::Border, 0..1
1809
- xfa_node 'comb', Template::Comb, 0..1
1810
- xfa_node 'extras', Template::Extras, 0..1
1811
- xfa_node 'margin', Template::Margin, 0..1
1812
-
1813
- def initialize
1814
- super('dateTimeEdit')
1815
- end
1816
- end
1817
-
1818
- class DefaultUI < XFA::Element
1819
- xfa_attribute 'id'
1820
- xfa_attribute 'use'
1821
- xfa_attribute 'usehref'
1822
-
1823
- xfa_node 'extras', Template::Extras, 0..1
1824
-
1825
- def initialize
1826
- super('defaultUi')
1827
- end
1828
- end
1829
-
1830
- class ImageEdit < XFA::Element
1831
- xfa_attribute 'data'
1832
- xfa_attribute 'id'
1833
- xfa_attribute 'use'
1834
- xfa_attribute 'usehref'
1835
-
1836
- xfa_node 'border', Template::Border, 0..1
1837
- xfa_node 'extras', Template::Extras, 0..1
1838
- xfa_node 'margin', Template::Margin, 0..1
1839
-
1840
- def initialize
1841
- super('imageEdit')
1842
- end
1843
- end
1844
-
1845
- class NumericEdit < XFA::Element
1846
- xfa_attribute 'hScrollPolicy'
1847
- xfa_attribute 'id'
1848
- xfa_attribute 'use'
1849
- xfa_attribute 'usehref'
1850
-
1851
- xfa_node 'border', Template::Border, 0..1
1852
- xfa_node 'comb', Template::Comb, 0..1
1853
- xfa_node 'extras', Template::Extras, 0..1
1854
- xfa_node 'margin', Template::Margin, 0..1
1855
-
1856
- def initialize
1857
- super('numericEdit')
1858
- end
1859
- end
1860
-
1861
- class PasswordEdit < XFA::Element
1862
- xfa_attribute 'hScrollPolicy'
1863
- xfa_attribute 'id'
1864
- xfa_attribute 'passwordChar'
1865
- xfa_attribute 'use'
1866
- xfa_attribute 'usehref'
1867
-
1868
- xfa_node 'border', Template::Border, 0..1
1869
- xfa_node 'extras', Template::Extras, 0..1
1870
- xfa_node 'margin', Template::Margin, 0..1
1871
-
1872
- def initialize
1873
- super('passwordEdit')
1874
- end
1875
- end
1876
-
1877
- class AppearanceFilter < XFA::Element
1878
- xfa_attribute 'id'
1879
- xfa_attribute 'type'
1880
- xfa_attribute 'use'
1881
- xfa_attribute 'usehref'
1882
-
1883
- def initialize(name = "")
1884
- super('appearanceFilter')
1885
-
1886
- self.text = name
1887
- end
1888
- end
1889
-
1890
- class Issuers < XFA::Element
1891
- xfa_attribute 'id'
1892
- xfa_attribute 'type'
1893
- xfa_attribute 'use'
1894
- xfa_attribute 'usehref'
1895
-
1896
- xfa_node 'certificate', Template::Certificate
1897
-
1898
- def initialize
1899
- super('issuers')
1900
- end
1901
- end
1902
-
1903
- class KeyUsage < XFA::Element
1904
- xfa_attribute 'crlSign'
1905
- xfa_attribute 'dataEncipherment'
1906
- xfa_attribute 'decipherOnly'
1907
- xfa_attribute 'digitalSignature'
1908
- xfa_attribute 'encipherOnly'
1909
- xfa_attribute 'id'
1910
- xfa_attribute 'keyAgreement'
1911
- xfa_attribute 'keyCertSign'
1912
- xfa_attribute 'keyEncipherment'
1913
- xfa_attribute 'nonRepudiation'
1914
- xfa_attribute 'type'
1915
- xfa_attribute 'use'
1916
- xfa_attribute 'usehref'
1917
-
1918
- def initialize
1919
- super('keyUsage')
1920
- end
1921
- end
1922
-
1923
- class OID < XFA::Element
1924
- xfa_attribute 'id'
1925
- xfa_attribute 'name'
1926
- xfa_attribute 'use'
1927
- xfa_attribute 'usehref'
1928
-
1929
- def initialize(oid = "")
1930
- super('oid')
1931
-
1932
- self.text = oid
1933
- end
1934
- end
1935
-
1936
- class OIDs < XFA::Element
1937
- xfa_attribute 'id'
1938
- xfa_attribute 'type'
1939
- xfa_attribute 'use'
1940
- xfa_attribute 'usehref'
1941
-
1942
- xfa_node 'oid', Template::OID
1943
-
1944
- def initialize
1945
- super('oids')
1946
- end
1947
- end
1948
-
1949
- class Signing < XFA::Element
1950
- xfa_attribute 'id'
1951
- xfa_attribute 'type'
1952
- xfa_attribute 'use'
1953
- xfa_attribute 'usehref'
1954
-
1955
- xfa_node 'certificate', Template::Certificate
1956
-
1957
- def initialize
1958
- super('signing')
1959
- end
1960
- end
1961
-
1962
- class SubjectDN < XFA::Element
1963
- xfa_attribute 'delimiter'
1964
- xfa_attribute 'id'
1965
- xfa_attribute 'name'
1966
- xfa_attribute 'use'
1967
- xfa_attribute 'usehref'
1968
-
1969
- def initialize(data = "")
1970
- super('subjectDN')
1971
-
1972
- self.text = data
1973
- end
1974
- end
1975
-
1976
- class SubjectDNs < XFA::Element
1977
- xfa_attribute 'id'
1978
- xfa_attribute 'type'
1979
- xfa_attribute 'use'
1980
- xfa_attribute 'usehref'
1981
-
1982
- xfa_node 'subjectDN', Template::SubjectDN, 0..1
1983
-
1984
- def initialize
1985
- super('subjectDNs')
1986
- end
1987
- end
1988
-
1989
- class Certificates < XFA::Element
1990
- xfa_attribute 'credentialServerPolicy'
1991
- xfa_attribute 'id'
1992
- xfa_attribute 'url'
1993
- xfa_attribute 'urlPolicy'
1994
- xfa_attribute 'use'
1995
- xfa_attribute 'usehref'
1996
-
1997
- xfa_node 'issuers', Template::Issuers, 0..1
1998
- xfa_node 'keyUsage', Template::KeyUsage, 0..1
1999
- xfa_node 'oids', Template::OIDs, 0..1
2000
- xfa_node 'signing', Template::Signing, 0..1
2001
- xfa_node 'subjectDNs', Template::SubjectDNs, 0..1
2002
-
2003
- def initialize
2004
- super('certificates')
2005
- end
2006
- end
2007
-
2008
- class DigestMethod < XFA::Element
2009
- xfa_attribute 'id'
2010
- xfa_attribute 'use'
2011
- xfa_attribute 'usehref'
2012
-
2013
- def initialize(method = "")
2014
- super('digestMethod')
2015
-
2016
- self.text = method
2017
- end
2018
- end
2019
-
2020
- class DigestMethods < XFA::Element
2021
- xfa_attribute 'id'
2022
- xfa_attribute 'type'
2023
- xfa_attribute 'use'
2024
- xfa_attribute 'usehref'
2025
-
2026
- xfa_node 'digestMethod', Template::DigestMethod
2027
-
2028
- def initialize
2029
- super('digestMethods')
2030
- end
2031
- end
2032
-
2033
- class Encoding < XFA::Element
2034
- xfa_attribute 'id'
2035
- xfa_attribute 'use'
2036
- xfa_attribute 'usehref'
2037
-
2038
- def initialize(encoding = "")
2039
- super('encoding')
2040
-
2041
- self.text = encoding
2042
- end
2043
- end
2044
-
2045
- class Encodings < XFA::Element
2046
- xfa_attribute 'id'
2047
- xfa_attribute 'type'
2048
- xfa_attribute 'use'
2049
- xfa_attribute 'usehref'
2050
-
2051
- xfa_node 'encoding', Template::Encoding
2052
-
2053
- def initialize
2054
- super('encodings')
2055
- end
2056
- end
2057
-
2058
- class Handler < XFA::Element
2059
- xfa_attribute 'id'
2060
- xfa_attribute 'type'
2061
- xfa_attribute 'use'
2062
- xfa_attribute 'usehref'
2063
-
2064
- def initialize(handler = "")
2065
- super('handler')
2066
-
2067
- self.text = handler
2068
- end
2069
- end
2070
-
2071
- class LockDocument < XFA::Element
2072
- xfa_attribute 'id'
2073
- xfa_attribute 'type'
2074
- xfa_attribute 'use'
2075
- xfa_attribute 'usehref'
2076
-
2077
- def initialize(lock = "default")
2078
- super('lockDocument')
2079
-
2080
- self.text = lock
2081
- end
2082
- end
2083
-
2084
- class MDP < XFA::Element
2085
- xfa_attribute 'id'
2086
- xfa_attribute 'permissions'
2087
- xfa_attribute 'signatureType'
2088
- xfa_attribute 'use'
2089
- xfa_attribute 'usehref'
2090
-
2091
- def initialize
2092
- super('mdp')
2093
- end
2094
- end
2095
-
2096
- class Reason < XFA::Element
2097
- xfa_attribute 'id'
2098
- xfa_attribute 'name'
2099
- xfa_attribute 'use'
2100
- xfa_attribute 'usehref'
2101
-
2102
- def initialize(reason = "")
2103
- super('reason')
2104
-
2105
- self.text = reason
2106
- end
2107
- end
2108
-
2109
- class Reasons < XFA::Element
2110
- xfa_attribute 'id'
2111
- xfa_attribute 'type'
2112
- xfa_attribute 'use'
2113
- xfa_attribute 'usehref'
2114
-
2115
- xfa_node 'reason', Template::Reason
2116
-
2117
- def initialize
2118
- super('reasons')
2119
- end
2120
- end
2121
-
2122
- class TimeStamp < XFA::Element
2123
- xfa_attribute 'id'
2124
- xfa_attribute 'server'
2125
- xfa_attribute 'type'
2126
- xfa_attribute 'use'
2127
- xfa_attribute 'usehref'
2128
-
2129
- def initialize
2130
- super('timeStamp')
2131
- end
2132
- end
2133
-
2134
- class Filter < XFA::Element
2135
- xfa_attribute 'addRevocationInfo'
2136
- xfa_attribute 'id'
2137
- xfa_attribute 'name'
2138
- xfa_attribute 'use'
2139
- xfa_attribute 'usehref'
2140
- xfa_attribute 'version'
2141
-
2142
- xfa_node 'appearanceFilter', Template::AppearanceFilter, 0..1
2143
- xfa_node 'certificates', Template::Certificates, 0..1
2144
- xfa_node 'digestMethods', Template::DigestMethods, 0..1
2145
- xfa_node 'encodings', Template::Encodings, 0..1
2146
- xfa_node 'handler', Template::Handler, 0..1
2147
- xfa_node 'lockDocument', Template::LockDocument, 0..1
2148
- xfa_node 'mdp', Template::MDP, 0..1
2149
- xfa_node 'reasons', Template::Reasons, 0..1
2150
- xfa_node 'timeStamp', Template::TimeStamp, 0..1
2151
-
2152
- def initialize
2153
- super('filter')
2154
- end
2155
- end
2156
-
2157
- class Ref < XFA::Element
2158
- xfa_attribute 'id'
2159
- xfa_attribute 'use'
2160
- xfa_attribute 'usehref'
2161
-
2162
- def initialize(somexpr = nil)
2163
- super('ref')
2164
-
2165
- self.text = somexpr
2166
- end
2167
- end
2168
-
2169
- class Manifest < XFA::Element
2170
- xfa_attribute 'action'
2171
- xfa_attribute 'id'
2172
- xfa_attribute 'name'
2173
- xfa_attribute 'use'
2174
- xfa_attribute 'usehref'
2175
-
2176
- xfa_node 'extras', Template::Extras, 0..1
2177
-
2178
- xfa_node 'ref', Template::Ref, 0..1
2179
-
2180
- def initialize
2181
- super('manifest')
2182
- end
2183
- end
2184
-
2185
- class Signature < XFA::Element
2186
- xfa_attribute 'id'
2187
- xfa_attribute 'type'
2188
- xfa_attribute 'use'
2189
- xfa_attribute 'usehref'
2190
-
2191
- xfa_node 'border', Template::Border, 0..1
2192
- xfa_node 'extras', Template::Extras, 0..1
2193
- xfa_node 'filter', Template::Filter, 0..1
2194
- xfa_node 'manifest', Template::Manifest, 0..1
2195
- xfa_node 'margin', Template::Margin, 0..1
2196
-
2197
- def initialize
2198
- super('signature')
2199
- end
2200
- end
2201
-
2202
- class TextEdit < XFA::Element
2203
- xfa_attribute 'allowRichText'
2204
- xfa_attribute 'hScrollPolicy'
2205
- xfa_attribute 'id'
2206
- xfa_attribute 'multiLine'
2207
- xfa_attribute 'use'
2208
- xfa_attribute 'usehref'
2209
- xfa_attribute 'vScrollPolicy'
2210
-
2211
- xfa_node 'border', Template::Border, 0..1
2212
- xfa_node 'comb', Template::Comb, 0..1
2213
- xfa_node 'extras', Template::Extras, 0..1
2214
- xfa_node 'margin', Template::Margin, 0..1
2215
-
2216
- def initialize
2217
- super('textEdit')
2218
- end
2219
- end
2220
-
2221
- class UI < XFA::Element
2222
- xfa_attribute 'id'
2223
- xfa_attribute 'use'
2224
- xfa_attribute 'usehref'
2225
-
2226
- xfa_node 'extras', Template::Extras, 0..1
2227
- xfa_node 'picture', Template::Picture, 0..1
2228
- xfa_node 'barcode', Template::Barcode, 0..1
2229
- xfa_node 'button', Template::Button, 0..1
2230
- xfa_node 'checkButton', Template::CheckButton, 0..1
2231
- xfa_node 'choiceList', Template::ChoiceList, 0..1
2232
- xfa_node 'dateTimeEdit', Template::DateTimeEdit, 0..1
2233
- xfa_node 'defaultUi', Template::DefaultUI, 0..1
2234
- xfa_node 'imageEdit', Template::ImageEdit, 0..1
2235
- xfa_node 'numericEdit', Template::NumericEdit, 0..1
2236
- xfa_node 'passwordEdit', Template::PasswordEdit, 0..1
2237
- xfa_node 'signature', Template::Signature, 0..1
2238
- xfa_node 'textEdit', Template::TextEdit, 0..1
2239
-
2240
- def initialize
2241
- super('ui')
2242
- end
2243
- end
2244
-
2245
- class SetProperty < XFA::Element
2246
- xfa_attribute 'connection'
2247
- xfa_attribute 'ref'
2248
- xfa_attribute 'target'
2249
-
2250
- def initialize
2251
- super('setProperty')
2252
- end
2253
- end
2254
-
2255
- class Draw < XFA::Element
2256
- xfa_attribute 'anchorType'
2257
- xfa_attribute 'colSpan'
2258
- xfa_attribute 'h'
2259
- xfa_attribute 'id'
2260
- xfa_attribute 'locale'
2261
- xfa_attribute 'maxH'
2262
- xfa_attribute 'maxW'
2263
- xfa_attribute 'minH'
2264
- xfa_attribute 'minW'
2265
- xfa_attribute 'name'
2266
- xfa_attribute 'presence'
2267
- xfa_attribute 'relevant'
2268
- xfa_attribute 'rotate'
2269
- xfa_attribute 'use'
2270
- xfa_attribute 'usehref'
2271
- xfa_attribute 'w'
2272
- xfa_attribute 'x'
2273
- xfa_attribute 'y'
2274
-
2275
- xfa_node 'assist', Template::Assist, 0..1
2276
- xfa_node 'border', Template::Border, 0..1
2277
- xfa_node 'caption', Template::Caption, 0..1
2278
- xfa_node 'desc', Template::Desc, 0..1
2279
- xfa_node 'extras', Template::Extras, 0..1
2280
- xfa_node 'font', Template::Font, 0..1
2281
- xfa_node 'keep', Template::Keep, 0..1
2282
- xfa_node 'margin', Template::Margin, 0..1
2283
- xfa_node 'para', Template::Para, 0..1
2284
- xfa_node 'traversal', Template::Traversal, 0..1
2285
- xfa_node 'ui', Template::UI, 0..1
2286
- xfa_node 'value', Template::Value, 0..1
2287
-
2288
- xfa_node 'setProperty', Template::SetProperty
2289
-
2290
- def initialize
2291
- super('draw')
2292
- end
2293
- end
2294
-
2295
- class Validate < XFA::Element
2296
- xfa_attribute 'formatTest'
2297
- xfa_attribute 'id'
2298
- xfa_attribute 'nullTest'
2299
- xfa_attribute 'scriptTest'
2300
- xfa_attribute 'use'
2301
- xfa_attribute 'usehref'
2302
-
2303
- xfa_node 'extras', Template::Extras, 0..1
2304
- xfa_node 'message', Template::Message, 0..1
2305
- xfa_node 'picture', Template::Picture, 0..1
2306
- xfa_node 'script', Template::Script, 0..1
2307
-
2308
- def initialize
2309
- super('validate')
2310
- end
2311
- end
2312
-
2313
- class Connect < XFA::Element
2314
- xfa_attribute 'connection'
2315
- xfa_attribute 'id'
2316
- xfa_attribute 'ref'
2317
- xfa_attribute 'usage'
2318
- xfa_attribute 'use'
2319
- xfa_attribute 'usehref'
2320
-
2321
- xfa_node 'picture', Template::Picture, 0..1
2322
-
2323
- def initialize
2324
- super('connect')
2325
- end
2326
- end
2327
-
2328
- class Execute < XFA::Element
2329
- xfa_attribute 'connection'
2330
- xfa_attribute 'executeType'
2331
- xfa_attribute 'id'
2332
- xfa_attribute 'runAt'
2333
- xfa_attribute 'use'
2334
- xfa_attribute 'usehref'
2335
-
2336
- def initialize
2337
- super('execute')
2338
- end
2339
- end
2340
-
2341
- class SignData < XFA::Element
2342
- xfa_attribute 'id'
2343
- xfa_attribute 'operation'
2344
- xfa_attribute 'ref'
2345
- xfa_attribute 'target'
2346
- xfa_attribute 'use'
2347
- xfa_attribute 'usehref'
2348
-
2349
- xfa_node 'filter', Template::Filter, 0..1
2350
- xfa_node 'manifest', Template::Manifest, 0..1
2351
-
2352
- def initialize
2353
- super('signData')
2354
- end
2355
- end
2356
-
2357
- class Submit < XFA::Element
2358
- xfa_attribute 'embedPDF'
2359
- xfa_attribute 'format'
2360
- xfa_attribute 'id'
2361
- xfa_attribute 'target'
2362
- xfa_attribute 'textEncoding'
2363
- xfa_attribute 'use'
2364
- xfa_attribute 'usehref'
2365
- xfa_attribute 'xdpContent'
2366
-
2367
- xfa_node 'encrypt', Template::Encrypt, 0..1
2368
-
2369
- xfa_node 'signData', Template::SignData
2370
-
2371
- def initialize
2372
- super('submit')
2373
- end
2374
- end
2375
-
2376
- class Event < XFA::Element
2377
- xfa_attribute 'activity'
2378
- xfa_attribute 'id'
2379
- xfa_attribute 'listen'
2380
- xfa_attribute 'name'
2381
- xfa_attribute 'ref'
2382
- xfa_attribute 'use'
2383
- xfa_attribute 'usehref'
2384
-
2385
- xfa_node 'extras', Template::Extras, 0..1
2386
- xfa_node 'execute', Template::Execute, 0..1
2387
- xfa_node 'script', Template::Script, 0..1
2388
- xfa_node 'signData', Template::SignData, 0..1
2389
- xfa_node 'submit', Template::Submit, 0..1
2390
-
2391
- def initialize
2392
- super('event')
2393
- end
2394
- end
2395
-
2396
- class Format < XFA::Element
2397
- xfa_attribute 'id'
2398
- xfa_attribute 'use'
2399
- xfa_attribute 'usehref'
2400
-
2401
- xfa_node 'extras', Template::Extras, 0..1
2402
- xfa_node 'picture', Template::Picture, 0..1
2403
-
2404
- def initialize
2405
- super('format')
2406
- end
2407
- end
2408
-
2409
- class Items < XFA::Element
2410
- xfa_attribute 'id'
2411
- xfa_attribute 'name'
2412
- xfa_attribute 'presence'
2413
- xfa_attribute 'ref'
2414
- xfa_attribute 'save'
2415
- xfa_attribute 'use'
2416
- xfa_attribute 'usehref'
2417
-
2418
- xfa_node 'boolean', Template::Boolean
2419
- xfa_node 'date', Template::Date
2420
- xfa_node 'dateTime', Template::DateTime
2421
- xfa_node 'decimal', Template::Decimal
2422
- xfa_node 'exData', Template::ExData
2423
- xfa_node 'float', Template::Float
2424
- xfa_node 'image', Template::Image
2425
- xfa_node 'integer', Template::Integer
2426
- xfa_node 'text', Template::Text
2427
- xfa_node 'time', Template::Time
2428
-
2429
- def initialize
2430
- super('items')
2431
- end
2432
- end
2433
-
2434
- class BindItems < XFA::Element
2435
- xfa_attribute 'connection'
2436
- xfa_attribute 'labelRef'
2437
- xfa_attribute 'ref'
2438
- xfa_attribute 'valueRef'
2439
-
2440
- def initialize
2441
- super('bindItems')
2442
- end
2443
- end
2444
-
2445
- class Field < XFA::Element
2446
- xfa_attribute 'access'
2447
- xfa_attribute 'accessKey'
2448
- xfa_attribute 'anchorType'
2449
- xfa_attribute 'colSpan'
2450
- xfa_attribute 'h'
2451
- xfa_attribute 'id'
2452
- xfa_attribute 'locale'
2453
- xfa_attribute 'maxH'
2454
- xfa_attribute 'maxW'
2455
- xfa_attribute 'minH'
2456
- xfa_attribute 'minW'
2457
- xfa_attribute 'name'
2458
- xfa_attribute 'presence'
2459
- xfa_attribute 'relevant'
2460
- xfa_attribute 'rotate'
2461
- xfa_attribute 'use'
2462
- xfa_attribute 'usehref'
2463
- xfa_attribute 'w'
2464
- xfa_attribute 'x'
2465
- xfa_attribute 'y'
2466
-
2467
- xfa_node 'assist', Template::Assist, 0..1
2468
- xfa_node 'bind', Template::Bind, 0..1
2469
- xfa_node 'border', Template::Border, 0..1
2470
- xfa_node 'calculate', Template::Calculate, 0..1
2471
- xfa_node 'caption', Template::Caption, 0..1
2472
- xfa_node 'desc', Template::Desc, 0..1
2473
- xfa_node 'extras', Template::Extras, 0..1
2474
- xfa_node 'font', Template::Font, 0..1
2475
- xfa_node 'format', Template::Format, 0..1
2476
- xfa_node 'items', Template::Items, 0..2
2477
- xfa_node 'keep', Template::Keep, 0..1
2478
- xfa_node 'margin', Template::Margin, 0..1
2479
- xfa_node 'para', Template::Para, 0..1
2480
- xfa_node 'traversal', Template::Traversal, 0..1
2481
- xfa_node 'ui', Template::UI, 0..1
2482
- xfa_node 'validate', Template::Validate, 0..1
2483
- xfa_node 'value', Template::Value, 0..1
2484
-
2485
- xfa_node 'bindItems', Template::BindItems
2486
- xfa_node 'connect', Template::Connect
2487
- xfa_node 'event', Template::Event
2488
- xfa_node 'setProperty', Template::SetProperty
2489
-
2490
- def initialize
2491
- super('field')
2492
- end
2493
- end
2494
-
2495
-
2496
- class ExclGroup < XFA::Element
2497
- xfa_attribute 'access'
2498
- xfa_attribute 'accessKey'
2499
- xfa_attribute 'anchorType'
2500
- xfa_attribute 'colSpan'
2501
- xfa_attribute 'h'
2502
- xfa_attribute 'id'
2503
- xfa_attribute 'layout'
2504
- xfa_attribute 'maxH'
2505
- xfa_attribute 'maxW'
2506
- xfa_attribute 'minH'
2507
- xfa_attribute 'minW'
2508
- xfa_attribute 'name'
2509
- xfa_attribute 'presence'
2510
- xfa_attribute 'relevant'
2511
- xfa_attribute 'use'
2512
- xfa_attribute 'usehref'
2513
- xfa_attribute 'w'
2514
- xfa_attribute 'x'
2515
- xfa_attribute 'y'
2516
-
2517
- xfa_node 'assist', Template::Assist, 0..1
2518
- xfa_node 'bind', Template::Bind, 0..1
2519
- xfa_node 'border', Template::Border, 0..1
2520
- xfa_node 'calculate', Template::Calculate, 0..1
2521
- xfa_node 'caption', Template::Caption, 0..1
2522
- xfa_node 'desc', Template::Desc, 0..1
2523
- xfa_node 'extras', Template::Extras, 0..1
2524
- xfa_node 'margin', Template::Margin, 0..1
2525
- xfa_node 'para', Template::Para, 0..1
2526
- xfa_node 'traversal', Template::Traversal, 0..1
2527
- xfa_node 'validate', Template::Validate, 0..1
2528
-
2529
- xfa_node 'connect', Template::Connect
2530
- xfa_node 'event', Template::Event
2531
- xfa_node 'field', Template::Field
2532
- xfa_node 'setProperty', Template::SetProperty
2533
-
2534
- def initialize
2535
- super('exclGroup')
2536
- end
2537
- end
2538
-
2539
- class BreakAfter < XFA::Element
2540
- xfa_attribute 'id'
2541
- xfa_attribute 'leader'
2542
- xfa_attribute 'startNew'
2543
- xfa_attribute 'target'
2544
- xfa_attribute 'targetType'
2545
- xfa_attribute 'trailer'
2546
- xfa_attribute 'use'
2547
- xfa_attribute 'usehref'
2548
-
2549
- xfa_node 'script', Template::Script, 0..1
2550
-
2551
- def initialize
2552
- super('breakAfter')
2553
- end
2554
- end
2555
-
2556
- class BreakBefore < XFA::Element
2557
- xfa_attribute 'id'
2558
- xfa_attribute 'leader'
2559
- xfa_attribute 'startNew'
2560
- xfa_attribute 'target'
2561
- xfa_attribute 'targetType'
2562
- xfa_attribute 'trailer'
2563
- xfa_attribute 'use'
2564
- xfa_attribute 'usehref'
2565
-
2566
- xfa_node 'script', Template::Script, 0..1
2567
-
2568
- def initialize
2569
- super('breakBefore')
2570
- end
2571
- end
2572
-
2573
- class Subform < XFA::Element ; end
2574
- class SubformSet < XFA::Element
2575
- xfa_attribute 'id'
2576
- xfa_attribute 'name'
2577
- xfa_attribute 'relation'
2578
- xfa_attribute 'relevant'
2579
- xfa_attribute 'use'
2580
- xfa_attribute 'usehref'
2581
-
2582
- xfa_node 'bookend', Template::Bookend, 0..1
2583
- xfa_node 'break', Template::Break, 0..1
2584
- xfa_node 'desc', Template::Desc, 0..1
2585
- xfa_node 'extras', Template::Extras, 0..1
2586
- xfa_node 'occur', Template::Occur, 0..1
2587
- xfa_node 'overflow', Template::Overflow, 0..1
2588
-
2589
- xfa_node 'breakAfter', Template::BreakAfter
2590
- xfa_node 'breakBefore', Template::BreakBefore
2591
- xfa_node 'subform', Template::Subform
2592
- xfa_node 'subformSet', Template::SubformSet
2593
-
2594
- def initialize
2595
- super('subformSet')
2596
- end
2597
- end
2598
-
2599
- class Area < XFA::Element
2600
- xfa_attribute 'colSpan'
2601
- xfa_attribute 'id'
2602
- xfa_attribute 'name'
2603
- xfa_attribute 'relevant'
2604
- xfa_attribute 'use'
2605
- xfa_attribute 'usehref'
2606
- xfa_attribute 'x'
2607
- xfa_attribute 'y'
2608
-
2609
- xfa_node 'desc', Template::Desc, 0..1
2610
- xfa_node 'extras', Template::Extras, 0..1
2611
-
2612
- xfa_node 'area', Template::Area
2613
- xfa_node 'draw', Template::Draw
2614
- xfa_node 'exclGroup', Template::ExclGroup
2615
- xfa_node 'field', Template::Field
2616
- xfa_node 'subform', Template::Subform
2617
- xfa_node 'subformSet', Template::SubformSet
2618
-
2619
- def initialize
2620
- super('area')
2621
- end
2622
- end
2623
-
2624
- class ContentArea < XFA::Element
2625
- xfa_attribute 'h'
2626
- xfa_attribute 'id'
2627
- xfa_attribute 'name'
2628
- xfa_attribute 'relevant'
2629
- xfa_attribute 'use'
2630
- xfa_attribute 'usehref'
2631
- xfa_attribute 'w'
2632
- xfa_attribute 'x'
2633
- xfa_attribute 'y'
2634
-
2635
- xfa_node 'desc', Template::Desc, 0..1
2636
- xfa_node 'extras', Template::Extras, 0..1
2637
-
2638
- def initialize
2639
- super('contentArea')
2640
- end
2641
- end
2642
-
2643
- class PageArea < XFA::Element
2644
- xfa_attribute 'blankOrNotBlank'
2645
- xfa_attribute 'id'
2646
- xfa_attribute 'initialNumber'
2647
- xfa_attribute 'name'
2648
- xfa_attribute 'numbered'
2649
- xfa_attribute 'oddOrEven'
2650
- xfa_attribute 'pagePosition'
2651
- xfa_attribute 'relevant'
2652
- xfa_attribute 'use'
2653
- xfa_attribute 'usehref'
2654
-
2655
- xfa_node 'desc', Template::Desc, 0..1
2656
- xfa_node 'extras', Template::Extras, 0..1
2657
- xfa_node 'medium', Template::Medium, 0..1
2658
- xfa_node 'occur', Template::Occur, 0..1
2659
-
2660
- xfa_node 'area', Template::Area
2661
- xfa_node 'contentArea', Template::ContentArea
2662
- xfa_node 'draw', Template::Draw
2663
- xfa_node 'exclGroup', Template::ExclGroup
2664
- xfa_node 'field', Template::Field
2665
- xfa_node 'subform', Template::Subform
2666
-
2667
- def initialize
2668
- super('pageArea')
2669
- end
2670
- end
2671
-
2672
- class PageSet < XFA::Element
2673
- xfa_attribute 'id'
2674
- xfa_attribute 'name'
2675
- xfa_attribute 'relation'
2676
- xfa_attribute 'relevant'
2677
- xfa_attribute 'use'
2678
- xfa_attribute 'usehref'
2679
-
2680
- xfa_node 'extras', Template::Extras, 0..1
2681
- xfa_node 'occur', Template::Occur, 0..1
2682
-
2683
- xfa_node 'pageArea', Template::PageArea
2684
- xfa_node 'pageSet', Template::PageSet
2685
-
2686
- ORDERED_OCCURENCE = "orderedOccurence"
2687
- DUPLEX_PAGINATED = "duplexPaginated"
2688
- SIMPLEX_PAGINATED = "simplexPaginated"
2689
-
2690
- def initialize
2691
- super('pageSet')
2692
- end
2693
- end
2694
-
2695
- class Variables < XFA::Element
2696
- xfa_attribute 'id'
2697
- xfa_attribute 'use'
2698
- xfa_attribute 'usehref'
2699
-
2700
- xfa_node 'boolean', Template::Boolean
2701
- xfa_node 'date', Template::Date
2702
- xfa_node 'dateTime', Template::DateTime
2703
- xfa_node 'decimal', Template::Decimal
2704
- xfa_node 'exData', Template::ExData
2705
- xfa_node 'float', Template::Float
2706
- xfa_node 'image', Template::Image
2707
- xfa_node 'integer', Template::Integer
2708
- xfa_node 'manifest', Template::Manifest
2709
- xfa_node 'script', Template::Script
2710
- xfa_node 'text', Template::Text
2711
- xfa_node 'time', Template::Time
2712
-
2713
- def initialize
2714
- super('variables')
2715
- end
2716
- end
2717
-
2718
- class ExObject < XFA::Element
2719
- xfa_attribute 'archive'
2720
- xfa_attribute 'classId'
2721
- xfa_attribute 'codeBase'
2722
- xfa_attribute 'codeType'
2723
- xfa_attribute 'id'
2724
- xfa_attribute 'name'
2725
- xfa_attribute 'use'
2726
- xfa_attribute 'usehref'
2727
-
2728
- xfa_node 'extras', Template::Extras, 0..1
2729
-
2730
- xfa_node 'boolean', Template::Boolean
2731
- xfa_node 'date', Template::Date
2732
- xfa_node 'dateTime', Template::DateTime
2733
- xfa_node 'decimal', Template::Decimal
2734
- xfa_node 'exData', Template::ExData
2735
- xfa_node 'exObject', Template::ExObject
2736
- xfa_node 'float', Template::Float
2737
- xfa_node 'image', Template::Image
2738
- xfa_node 'integer', Template::Integer
2739
- xfa_node 'text', Template::Text
2740
- xfa_node 'time', Template::Time
2741
-
2742
- def initialize
2743
- super('exObject')
2744
- end
2745
- end
2746
-
2747
- class Proto < XFA::Element
2748
- xfa_node 'appearanceFilter', Template::AppearanceFilter
2749
- xfa_node 'arc', Template::Arc
2750
- xfa_node 'area', Template::Area
2751
- xfa_node 'assist', Template::Assist
2752
- xfa_node 'barcode', Template::Barcode
2753
- xfa_node 'bindItems', Template::BindItems
2754
- xfa_node 'bookend', Template::Bookend
2755
- xfa_node 'boolean', Template::Boolean
2756
- xfa_node 'border', Template::Border
2757
- xfa_node 'break', Template::Break
2758
- xfa_node 'breakAfter', Template::BreakAfter
2759
- xfa_node 'breakBefore', Template::BreakBefore
2760
- xfa_node 'button', Template::Button
2761
- xfa_node 'calculate', Template::Calculate
2762
- xfa_node 'caption', Template::Caption
2763
- xfa_node 'certificate', Template::Certificate
2764
- xfa_node 'certificates', Template::Certificates
2765
- xfa_node 'checkButton', Template::CheckButton
2766
- xfa_node 'choiceList', Template::ChoiceList
2767
- xfa_node 'color', Template::Color
2768
- xfa_node 'comb', Template::Comb
2769
- xfa_node 'connect', Template::Connect
2770
- xfa_node 'contentArea', Template::ContentArea
2771
- xfa_node 'corner', Template::Corner
2772
- xfa_node 'date', Template::Date
2773
- xfa_node 'dateTime', Template::DateTime
2774
- xfa_node 'dateTimeEdit', Template::DateTimeEdit
2775
- xfa_node 'decimal', Template::Decimal
2776
- xfa_node 'defaultUi', Template::DefaultUI
2777
- xfa_node 'desc', Template::Desc
2778
- xfa_node 'digestMethod', Template::DigestMethod
2779
- xfa_node 'digestMethods', Template::DigestMethods
2780
- xfa_node 'draw', Template::Draw
2781
- xfa_node 'edge', Template::Edge
2782
- xfa_node 'encoding', Template::Encoding
2783
- xfa_node 'encodings', Template::Encodings
2784
- xfa_node 'encrypt', Template::Encrypt
2785
- xfa_node 'event', Template::Event
2786
- xfa_node 'exData', Template::ExData
2787
- xfa_node 'exObject', Template::ExObject
2788
- xfa_node 'exclGroup', Template::ExclGroup
2789
- xfa_node 'execute', Template::Execute
2790
- xfa_node 'extras', Template::Extras
2791
- xfa_node 'field', Template::Field
2792
- xfa_node 'fill', Template::Fill
2793
- xfa_node 'filter', Template::Filter
2794
- xfa_node 'float', Template::Float
2795
- xfa_node 'font', Template::Font
2796
- xfa_node 'format', Template::Format
2797
- xfa_node 'handler', Template::Handler
2798
- xfa_node 'hyphenation', Template::Hyphenation
2799
- xfa_node 'image', Template::Image
2800
- xfa_node 'imageEdit', Template::ImageEdit
2801
- xfa_node 'integer', Template::Integer
2802
- xfa_node 'issuers', Template::Issuers
2803
- xfa_node 'items', Template::Items
2804
- xfa_node 'keep', Template::Keep
2805
- xfa_node 'keyUsage', Template::KeyUsage
2806
- xfa_node 'line', Template::Line
2807
- xfa_node 'linear', Template::Linear
2808
- xfa_node 'lockDocument', Template::LockDocument
2809
- xfa_node 'manifest', Template::Manifest
2810
- xfa_node 'margin', Template::Margin
2811
- xfa_node 'mdp', Template::MDP
2812
- xfa_node 'medium', Template::Medium
2813
- xfa_node 'message', Template::Message
2814
- xfa_node 'numericEdit', Template::NumericEdit
2815
- xfa_node 'occur', Template::Occur
2816
- xfa_node 'oid', Template::OID
2817
- xfa_node 'oids', Template::OIDs
2818
- xfa_node 'overflow', Template::Overflow
2819
- xfa_node 'pageArea', Template::PageArea
2820
- xfa_node 'pageSet', Template::PageSet
2821
- xfa_node 'para', Template::Para
2822
- xfa_node 'passwordEdit', Template::PasswordEdit
2823
- xfa_node 'pattern', Template::Pattern
2824
- xfa_node 'picture', Template::Picture
2825
- xfa_node 'radial', Template::Radial
2826
- xfa_node 'reason', Template::Reason
2827
- xfa_node 'reasons', Template::Reasons
2828
- xfa_node 'rectangle', Template::Rectangle
2829
- xfa_node 'ref', Template::Ref
2830
- xfa_node 'script', Template::Script
2831
- xfa_node 'setProperty', Template::SetProperty
2832
- xfa_node 'signData', Template::SignData
2833
- xfa_node 'signature', Template::Signature
2834
- xfa_node 'signing', Template::Signing
2835
- xfa_node 'solid', Template::Solid
2836
- xfa_node 'speak', Template::Speak
2837
- xfa_node 'stipple', Template::Stipple
2838
- xfa_node 'subform', Template::Subform
2839
- xfa_node 'subformSet', Template::SubformSet
2840
- xfa_node 'subjectDN', Template::SubjectDN
2841
- xfa_node 'subjectDNs', Template::SubjectDNs
2842
- xfa_node 'submit', Template::Submit
2843
- xfa_node 'text', Template::Text
2844
- xfa_node 'textEdit', Template::TextEdit
2845
- xfa_node 'time', Template::Time
2846
- xfa_node 'timeStamp', Template::TimeStamp
2847
- xfa_node 'toolTip', Template::ToolTip
2848
- xfa_node 'traversal', Template::Traversal
2849
- xfa_node 'traverse', Template::Traverse
2850
- xfa_node 'ui', Template::UI
2851
- xfa_node 'validate', Template::Validate
2852
- xfa_node 'value', Template::Value
2853
- xfa_node 'variables', Template::Variables
2854
-
2855
- def initialize
2856
- super('proto')
2857
- end
2858
- end
2859
-
2860
- class Subform < XFA::Element
2861
- xfa_attribute 'access'
2862
- xfa_attribute 'allowMacro'
2863
- xfa_attribute 'anchorType'
2864
- xfa_attribute 'colSpan'
2865
- xfa_attribute 'columnWidths'
2866
- xfa_attribute 'h'
2867
- xfa_attribute 'id'
2868
- xfa_attribute 'layout'
2869
- xfa_attribute 'locale'
2870
- xfa_attribute 'maxH'
2871
- xfa_attribute 'maxW'
2872
- xfa_attribute 'minH'
2873
- xfa_attribute 'minW'
2874
- xfa_attribute 'name'
2875
- xfa_attribute 'presence'
2876
- xfa_attribute 'relevant'
2877
- xfa_attribute 'restoreState'
2878
- xfa_attribute 'scope'
2879
- xfa_attribute 'use'
2880
- xfa_attribute 'usehref'
2881
- xfa_attribute 'w'
2882
- xfa_attribute 'x'
2883
- xfa_attribute 'y'
2884
-
2885
- xfa_node 'assist', Template::Assist, 0..1
2886
- xfa_node 'bind', Template::Bind, 0..1
2887
- xfa_node 'bookend', Template::Bookend, 0..1
2888
- xfa_node 'border', Template::Border, 0..1
2889
- xfa_node 'break', Template::Break, 0..1
2890
- xfa_node 'calculate', Template::Calculate, 0..1
2891
- xfa_node 'desc', Template::Desc, 0..1
2892
- xfa_node 'extras', Template::Extras, 0..1
2893
- xfa_node 'keep', Template::Keep, 0..1
2894
- xfa_node 'margin', Template::Margin, 0..1
2895
- xfa_node 'occur', Template::Occur, 0..1
2896
- xfa_node 'overflow', Template::Overflow, 0..1
2897
- xfa_node 'pageSet', Template::PageSet, 0..1
2898
- xfa_node 'para', Template::Para, 0..1
2899
- xfa_node 'traversal', Template::Traversal, 0..1
2900
- xfa_node 'validate', Template::Validate, 0..1
2901
- xfa_node 'variables', Template::Variables, 0..1
2902
-
2903
- xfa_node 'area', Template::Area
2904
- xfa_node 'breakAfter', Template::BreakAfter
2905
- xfa_node 'breakBefore', Template::BreakBefore
2906
- xfa_node 'connect', Template::Connect
2907
- xfa_node 'draw', Template::Draw
2908
- xfa_node 'event', Template::Event
2909
- xfa_node 'exObject', Template::ExObject
2910
- xfa_node 'exclGroup', Template::ExclGroup
2911
- xfa_node 'field', Template::Field
2912
- xfa_node 'proto', Template::Proto
2913
- xfa_node 'setProperty', Template::SetProperty
2914
- xfa_node 'subform', Template::Subform
2915
- xfa_node 'subformSet', Template::SubformSet
2916
-
2917
- def initialize
2918
- super('subform')
2919
- end
2920
- end
2921
-
2922
- xfa_attribute 'baseProfile'
2923
- xfa_node 'extras', Template::Extras, 0..1
2924
-
2925
- xfa_node 'subform', Template::Subform
2926
-
2927
- def initialize
2928
- super("template")
2929
-
2930
- add_attribute 'xmlns:xfa', 'http://www.xfa.org/schema/xfa-template/3.0/'
2931
- end
2932
- end
2933
-
2934
- #
2935
- # The _xdc_ packet encloses application-specific XFA driver configuration instruction.
2936
- #
2937
- class XDC < XFA::Element
2938
- mime_type ''
2939
-
2940
- def initialize
2941
- super("xsl:xdc")
2942
-
2943
- add_attribute 'xmlns:xdc', 'http://www.xfa.org/schema/xdc/1.0/'
2944
- end
2945
- end
2946
-
2947
- #
2948
- # The _xfdf_ (annotations) packet enclosed collaboration annotations placed upon a PDF document.
2949
- #
2950
- class XFDF < XFA::Element
2951
- mime_type 'application/vnd.adobe.xfdf'
2952
-
2953
- def initialize
2954
- super("xfdf")
2955
-
2956
- add_attribute 'xmlns', 'http://ns.adobe.com/xfdf/'
2957
- add_attribute 'xml:space', 'preserve'
2958
- end
2959
- end
2960
-
2961
- #
2962
- # An _XMP_ packet contains XML representation of PDF metadata.
2963
- #
2964
- class XMPMeta < XFA::Element
2965
- mime_type 'application/rdf+xml'
2966
-
2967
- def initialize
2968
- super("xmpmeta")
2969
-
2970
- add_attribute 'xmlns', 'http://ns.adobe.com/xmpmeta/'
2971
- add_attribute 'xml:space', 'preserve'
2972
- end
2973
- end
2974
-
2975
- end
2976
-
2977
- class XDP < XFA::Element
2978
- xfa_attribute 'uuid'
2979
- xfa_attribute 'timeStamp'
2980
-
2981
- xfa_node 'config', Origami::XDP::Packet::Config, 0..1
2982
- xfa_node 'connectionSet', Origami::XDP::Packet::ConnectionSet, 0..1
2983
- xfa_node 'datasets', Origami::XDP::Packet::Datasets, 0..1
2984
- xfa_node 'localeSet', Origami::XDP::Packet::LocaleSet, 0..1
2985
- xfa_node 'pdf', Origami::XDP::Packet::PDF, 0..1
2986
- xfa_node 'sourceSet', Origami::XDP::Packet::SourceSet, 0..1
2987
- xfa_node 'styleSheet', Origami::XDP::Packet::StyleSheet, 0..1
2988
- xfa_node 'template', Origami::XDP::Packet::Template, 0..1
2989
- xfa_node 'xdc', Origami::XDP::Packet::XDC, 0..1
2990
- xfa_node 'xfdf', Origami::XDP::Packet::XFDF, 0..1
2991
- xfa_node 'xmpmeta', Origami::XDP::Packet::XMPMeta, 0..1
2992
-
2993
- def initialize
2994
- super('xdp:xdp')
2995
-
2996
- add_attribute 'xmlns:xdp', 'http://ns.adobe.com/xdp/'
2997
- end
2998
- end
2999
-
3000
- class Package < REXML::Document
3001
- def initialize(package = nil)
3002
- super(package || REXML::XMLDecl.new.to_s)
3003
-
3004
- add_element Origami::XDP::XDP.new if package.nil?
3005
- end
3006
- end
3007
-
3008
- end
3009
-
3010
62
  end