| Class | Origami::Page |
| In: |
sources/parser/page.rb
|
| Parent: | Dictionary |
| Resources | = | Resources.new.pre_build |
| P | = | self if is_indirect? |
| O | = | action |
| C | = | action |
Add an Annotation to the Page.
# File sources/parser/page.rb, line 208
208: def add_annot(annotation)
209:
210: unless annotation.is_a?(Annotation::Annotation)
211: raise TypeError, "An Annotation object must be passed."
212: end
213:
214: self.Annots ||= Array.new
215: self.Annots << annotation
216:
217: annotation.P = self if is_indirect?
218:
219: end
# File sources/parser/page.rb, line 233
233: def onClose(action)
234:
235: unless action.is_a?(Action::Action)
236: raise TypeError, "An Action object must be passed."
237: end
238:
239: self.AA ||= PageAdditionalActions.new
240: self.AA.C = action
241:
242: end
# File sources/parser/page.rb, line 221
221: def onOpen(action)
222:
223: unless action.is_a?(Action::Action)
224: raise TypeError, "An Action object must be passed."
225: end
226:
227: self.AA ||= PageAdditionalActions.new
228: self.AA.O = action
229:
230: self
231: end