Class: Ballmer::Presentation::Slide

Inherits:
Document::XMLPart show all
Defined in:
lib/ballmer/presentation/slide.rb

Overview

Load a slide up in thar.

Constant Summary collapse

CONTENT_TYPE =

Key used to look up slides from [Content-Types].xml.

"application/vnd.openxmlformats-officedocument.presentationml.slide+xml".freeze
REL_TYPE =

Key used to look up slides from .xml.rel documents

"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide".freeze

Instance Attribute Summary

Attributes inherited from Document::Part

#doc, #path

Instance Method Summary collapse

Methods inherited from Document::XMLPart

#commit, #edit_xml, #rels, #xml

Methods inherited from Document::Part

#commit, #initialize, #relative_path_from

Constructor Details

This class inherits a constructor from Ballmer::Document::Part

Instance Method Details

#notesObject



11
12
13
14
15
16
# File 'lib/ballmer/presentation/slide.rb', line 11

def notes
  # TODO - Move a type caster into rels based on content type like 
  # rels[Notes::REL_TYPE].first
  notes_path = rels.targets(Notes::REL_TYPE).first.expand_path(@path.dirname)
  Notes.new(@doc, notes_path)
end