Class: RubyPoint::Slide
- Defined in:
- lib/rubypoint/slide/slide.rb
Defined Under Namespace
Classes: Rel
Instance Attribute Summary collapse
-
#rel_id ⇒ Object
Returns the value of attribute rel_id.
-
#slide_id ⇒ Object
Returns the value of attribute slide_id.
Attributes inherited from File
Attributes inherited from Element
#objects, #parent, #presentation
Instance Method Summary collapse
-
#initialize(presentation, file = nil) ⇒ Slide
constructor
A new instance of Slide.
- #raw_xml ⇒ Object
Methods inherited from File
Methods inherited from Element
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_id ⇒ Object
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_id ⇒ Object
Returns the value of attribute slide_id.
3 4 5 |
# File 'lib/rubypoint/slide/slide.rb', line 3 def end |
Instance Method Details
#raw_xml ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rubypoint/slide/slide.rb', line 10 def raw_xml raw = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<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>\n" end |