Class: RubyPoint::Slide

Inherits:
File show all
Defined in:
lib/rubypoint/slide/slide.rb

Defined Under Namespace

Classes: Rel

Instance Attribute Summary collapse

Attributes inherited from File

#doc, #file_path

Attributes inherited from Element

#objects, #parent, #presentation

Instance Method Summary collapse

Methods inherited from File

#<<, #write

Methods inherited from Element

class_attributes

Constructor Details

#initialize(presentation, file = nil) ⇒ Slide

Returns a new instance of Slide.



5
6
7
8
# File 'lib/rubypoint/slide/slide.rb', line 5

def initialize(presentation, file=nil)
  @presentation = presentation
  file ? init_from_file(file) : init_from_new
end

Instance Attribute Details

#rel_idObject

Returns the value of attribute rel_id.



3
4
5
# File 'lib/rubypoint/slide/slide.rb', line 3

def rel_id
  @rel_id
end

#slide_idObject

Returns the value of attribute slide_id.



3
4
5
# File 'lib/rubypoint/slide/slide.rb', line 3

def slide_id
  @slide_id
end

Instance Method Details

#raw_xmlObject



10
11
12
13
14
15
# File 'lib/rubypoint/slide/slide.rb', line 10

def raw_xml
  raw = <<EOF
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" mc:Ignorable="mv" mc:PreserveAttributes="mv:*" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="#{self.slide_id}" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr></p:spTree></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sld>
EOF
end