Class: UIC::Application::Presentation
- Inherits:
-
Presentation
- Object
- Presentation
- UIC::Application::Presentation
- Extended by:
- ElementBacked::ClassMethods
- Includes:
- ElementBacked
- Defined in:
- lib/ruic/presentation.rb
Overview
An Application::Presentation is a UIC::Presentation that is associated with a specific .uia
application.
In addition to normal Presentation methods it adds methods related to its presence in the application.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
Is the presentation initially active in the application?.
-
#id ⇒ String
The id of the presentation asset in the
.uia
. -
#src ⇒ String
The path to the presentation file.
Attributes included from ElementBacked
Attributes included from XMLFileBacked
Attributes included from FileBacked
Instance Method Summary collapse
-
#initialize(application, el) ⇒ Presentation
constructor
A new instance of Presentation.
-
#path_to(el, from = nil) ⇒ Object
Overrides Presentation#path_to to prefix all absolute paths with the #id.
Methods included from ElementBacked::ClassMethods
Methods inherited from Presentation
#aliases, #anchor_points, #asset_by_id, #assets, #at, #attribute_linked?, #behaviors, #cameras, #child_assets, #components, #effects, #errors, #errors?, #find, #generate_custom_classes, #get_attribute, #groups, #has_slide?, #hierarchy, #image_paths, #image_usage, #images, #layers, #lights, #master?, #materials, #models, #on_doc_loaded, #owning_component, #parent_asset, #paths, #rebuild_caches_from_document, #referenced_files, #replace_asset, #scene, #set_attribute, #slide_index, #slides_for, #texts, #to_xml, #unlink_attribute
Methods included from XMLFileBacked
#file=, #save!, #save_as, #to_xml
Methods included from FileBacked
#absolute_path, #file_found?, #filename, #relative_path, #save!, #save_as
Constructor Details
#initialize(application, el) ⇒ Presentation
Returns a new instance of Presentation.
672 673 674 675 676 |
# File 'lib/ruic/presentation.rb', line 672 def initialize(application,el) self.owner = application self.el = el super( application.absolute_path(src) ) end |
Instance Attribute Details
#active ⇒ Boolean
Returns Is the presentation initially active in the application?.
666 667 668 |
# File 'lib/ruic/presentation.rb', line 666 xmlattribute :active, ->(val){ val=="True" || val=="" } do |new_val| new_val ? 'True' : 'False' end |
#id ⇒ String
Returns the id of the presentation asset in the .uia
.
654 655 656 657 658 |
# File 'lib/ruic/presentation.rb', line 654 xmlattribute :id do |new_id| main_preso = app.main_presentation super(new_id) app.main_presentation=self if main_preso==self end |
#src ⇒ String
Returns the path to the presentation file.
662 |
# File 'lib/ruic/presentation.rb', line 662 xmlattribute :src |
Instance Method Details
#path_to(el, from = nil) ⇒ Object
Overrides Presentation#path_to to prefix all absolute paths with the #id
680 681 682 |
# File 'lib/ruic/presentation.rb', line 680 def path_to( el, from=nil ) from ? super : "#{id}:#{super}" end |