ruby_slides 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +46 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/example/example.pptx +0 -0
  13. data/example/ruby.png +0 -0
  14. data/lib/ruby_slides/compression.rb +25 -0
  15. data/lib/ruby_slides/presentation.rb +105 -0
  16. data/lib/ruby_slides/slide/chart.rb +41 -0
  17. data/lib/ruby_slides/slide/introduction.rb +36 -0
  18. data/lib/ruby_slides/slide/pictorial.rb +54 -0
  19. data/lib/ruby_slides/slide/picture_description.rb +63 -0
  20. data/lib/ruby_slides/slide/table.rb +32 -0
  21. data/lib/ruby_slides/slide/text_picture_split.rb +59 -0
  22. data/lib/ruby_slides/slide/textual.rb +32 -0
  23. data/lib/ruby_slides/util.rb +39 -0
  24. data/lib/ruby_slides/version.rb +3 -0
  25. data/lib/ruby_slides/views/app.xml.erb +51 -0
  26. data/lib/ruby_slides/views/chart_ele.xml.erb +196 -0
  27. data/lib/ruby_slides/views/chart_rel.xml.erb +5 -0
  28. data/lib/ruby_slides/views/chart_slide.xml.erb +118 -0
  29. data/lib/ruby_slides/views/content_type.xml.erb +33 -0
  30. data/lib/ruby_slides/views/introduction_rel.xml.erb +4 -0
  31. data/lib/ruby_slides/views/introduction_slide.xml.erb +74 -0
  32. data/lib/ruby_slides/views/pictorial_rel.xml.erb +5 -0
  33. data/lib/ruby_slides/views/pictorial_slide.xml.erb +87 -0
  34. data/lib/ruby_slides/views/picture_description_rels.xml.erb +5 -0
  35. data/lib/ruby_slides/views/picture_description_slide.xml.erb +115 -0
  36. data/lib/ruby_slides/views/presentation.xml.erb +124 -0
  37. data/lib/ruby_slides/views/presentation.xml.rel.erb +12 -0
  38. data/lib/ruby_slides/views/table_rel.xml.erb +4 -0
  39. data/lib/ruby_slides/views/table_slide.xml.erb +137 -0
  40. data/lib/ruby_slides/views/text_picture_split_rel.xml.erb +5 -0
  41. data/lib/ruby_slides/views/text_picture_split_slide.xml.erb +114 -0
  42. data/lib/ruby_slides/views/textual_rel.xml.erb +4 -0
  43. data/lib/ruby_slides/views/textual_slide.xml.erb +78 -0
  44. data/lib/ruby_slides.rb +17 -0
  45. data/ruby_slides.gemspec +30 -0
  46. data/template/_rels/.rels +6 -0
  47. data/template/docProps/core.xml +7 -0
  48. data/template/ppt/_rels/.keep +0 -0
  49. data/template/ppt/charts/.keep +0 -0
  50. data/template/ppt/media/.keep +0 -0
  51. data/template/ppt/presProps.xml +14 -0
  52. data/template/ppt/slideLayouts/_rels/slideLayout1.xml.rels +2 -0
  53. data/template/ppt/slideLayouts/_rels/slideLayout10.xml.rels +2 -0
  54. data/template/ppt/slideLayouts/_rels/slideLayout11.xml.rels +2 -0
  55. data/template/ppt/slideLayouts/_rels/slideLayout2.xml.rels +2 -0
  56. data/template/ppt/slideLayouts/_rels/slideLayout3.xml.rels +2 -0
  57. data/template/ppt/slideLayouts/_rels/slideLayout4.xml.rels +2 -0
  58. data/template/ppt/slideLayouts/_rels/slideLayout5.xml.rels +2 -0
  59. data/template/ppt/slideLayouts/_rels/slideLayout6.xml.rels +2 -0
  60. data/template/ppt/slideLayouts/_rels/slideLayout7.xml.rels +2 -0
  61. data/template/ppt/slideLayouts/_rels/slideLayout8.xml.rels +2 -0
  62. data/template/ppt/slideLayouts/_rels/slideLayout9.xml.rels +2 -0
  63. data/template/ppt/slideLayouts/slideLayout1.xml +237 -0
  64. data/template/ppt/slideLayouts/slideLayout10.xml +2 -0
  65. data/template/ppt/slideLayouts/slideLayout11.xml +2 -0
  66. data/template/ppt/slideLayouts/slideLayout2.xml +165 -0
  67. data/template/ppt/slideLayouts/slideLayout3.xml +2 -0
  68. data/template/ppt/slideLayouts/slideLayout4.xml +2 -0
  69. data/template/ppt/slideLayouts/slideLayout5.xml +2 -0
  70. data/template/ppt/slideLayouts/slideLayout6.xml +2 -0
  71. data/template/ppt/slideLayouts/slideLayout7.xml +2 -0
  72. data/template/ppt/slideLayouts/slideLayout8.xml +2 -0
  73. data/template/ppt/slideLayouts/slideLayout9.xml +2 -0
  74. data/template/ppt/slideMasters/_rels/slideMaster1.xml.rels +2 -0
  75. data/template/ppt/slideMasters/slideMaster1.xml +505 -0
  76. data/template/ppt/slides/_rels/.keep +0 -0
  77. data/template/ppt/tableStyles.xml +2 -0
  78. data/template/ppt/theme/theme1.xml +2 -0
  79. data/template/ppt/viewProps.xml +32 -0
  80. metadata +193 -0
@@ -0,0 +1,115 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">
3
+ <p:cSld>
4
+ <p:spTree>
5
+ <p:nvGrpSpPr>
6
+ <p:cNvPr id="1" name=""/>
7
+ <p:cNvGrpSpPr/>
8
+ <p:nvPr/>
9
+ </p:nvGrpSpPr>
10
+ <p:grpSpPr>
11
+ <a:xfrm>
12
+ <a:off x="0" y="0"/>
13
+ <a:ext cx="0" cy="0"/>
14
+ <a:chOff x="0" y="0"/>
15
+ <a:chExt cx="0" cy="0"/>
16
+ </a:xfrm>
17
+ </p:grpSpPr>
18
+ <p:sp>
19
+ <p:nvSpPr>
20
+ <p:cNvPr id="2" name="Title 1"/>
21
+ <p:cNvSpPr>
22
+ <a:spLocks noGrp="1"/>
23
+ </p:cNvSpPr>
24
+ <p:nvPr>
25
+ <p:ph type="title"/>
26
+ </p:nvPr>
27
+ </p:nvSpPr>
28
+ <p:spPr/>
29
+ <p:txBody>
30
+ <a:bodyPr/>
31
+ <a:lstStyle/>
32
+ <a:p>
33
+ <a:r>
34
+ <a:rPr lang="en-US" dirty="0" smtClean="0"/>
35
+ <a:t><%= title %></a:t>
36
+ </a:r>
37
+ <a:endParaRPr lang="en-US" dirty="0"/>
38
+ </a:p>
39
+ </p:txBody>
40
+ </p:sp>
41
+ <p:pic>
42
+ <p:nvPicPr>
43
+ <p:cNvPr id="5" name="Picture Placeholder 4"/>
44
+ <p:cNvPicPr>
45
+ <a:picLocks noGrp="1" noChangeAspect="1"/>
46
+ </p:cNvPicPr>
47
+ <p:nvPr>
48
+ <p:ph type="pic" idx="1"/>
49
+ </p:nvPr>
50
+ </p:nvPicPr>
51
+ <p:blipFill>
52
+ <a:blip r:embed="rId2">
53
+ <a:extLst>
54
+ <a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
55
+ <a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>
56
+ </a:ext>
57
+ </a:extLst>
58
+ </a:blip>
59
+ <a:stretch>
60
+ <a:fillRect/>
61
+ </a:stretch>
62
+ </p:blipFill>
63
+ <% if coords.any? %>
64
+ <p:spPr>
65
+ <a:xfrm>
66
+ <a:off x="<%= coords[:x].to_s %>" y="<%= coords[:y].to_s %>"/>
67
+ <a:ext cx="<%= coords[:cx].to_s %>" cy="<%= coords[:cy].to_s %>"/>
68
+ </a:xfrm>
69
+ <a:prstGeom prst="rect">
70
+ <a:avLst/>
71
+ </a:prstGeom>
72
+ </p:spPr>
73
+ <% else %>
74
+ <p:spPr/>
75
+ <% end %>
76
+ </p:pic>
77
+ <p:sp>
78
+ <p:nvSpPr>
79
+ <p:cNvPr id="4" name="Text Placeholder 4"/>
80
+ <p:cNvSpPr>
81
+ <a:spLocks noGrp="1"/>
82
+ </p:cNvSpPr>
83
+ <p:nvPr>
84
+ <p:ph type="body" sz="half" idx="2"/>
85
+ </p:nvPr>
86
+ </p:nvSpPr>
87
+ <p:spPr/>
88
+ <p:txBody>
89
+ <a:bodyPr/>
90
+ <a:lstStyle/>
91
+ <% content.each_with_index do |c, index| %>
92
+ <a:p>
93
+ <a:r>
94
+ <a:rPr lang="en-US" dirty="0" smtClean="0"/>
95
+ <a:t><%= c %></a:t>
96
+ </a:r>
97
+ <% if content.length == (index + 1) %>
98
+ <a:endParaRPr lang="en-US"/>
99
+ <% end %>
100
+ </a:p>
101
+ <% end %>
102
+ </p:txBody>
103
+ </p:sp>
104
+
105
+ </p:spTree>
106
+ <p:extLst>
107
+ <p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
108
+ <p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1435759726"/>
109
+ </p:ext>
110
+ </p:extLst>
111
+ </p:cSld>
112
+ <p:clrMapOvr>
113
+ <a:masterClrMapping/>
114
+ </p:clrMapOvr>
115
+ </p:sld>
@@ -0,0 +1,124 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <p:presentation saveSubsetFonts="1" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
3
+ <p:sldMasterIdLst>
4
+ <p:sldMasterId id="2147483648" r:id="rId1"/>
5
+ </p:sldMasterIdLst>
6
+ <p:sldIdLst>
7
+ <% slides.each_with_index do |slide, index| %>
8
+ <p:sldId id="<%= 255 + (index+1) %>" r:id="rId<%= (index + 1) + 5 %>"/>
9
+ <% end %>
10
+ </p:sldIdLst>
11
+ <p:sldSz cx="9144000" cy="6858000" type="screen4x3"/>
12
+ <p:notesSz cx="6858000" cy="9144000"/>
13
+ <p:defaultTextStyle>
14
+ <a:defPPr>
15
+ <a:defRPr lang="en-US"/>
16
+ </a:defPPr>
17
+ <a:lvl1pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="0" rtl="0">
18
+ <a:defRPr kern="1200" sz="1800">
19
+ <a:solidFill>
20
+ <a:schemeClr val="tx1"/>
21
+ </a:solidFill>
22
+ <a:latin typeface="+mn-lt"/>
23
+ <a:ea typeface="+mn-ea"/>
24
+ <a:cs typeface="+mn-cs"/>
25
+ </a:defRPr>
26
+ </a:lvl1pPr>
27
+ <a:lvl2pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="457200" rtl="0">
28
+ <a:defRPr kern="1200" sz="1800">
29
+ <a:solidFill>
30
+ <a:schemeClr val="tx1"/>
31
+ </a:solidFill>
32
+ <a:latin typeface="+mn-lt"/>
33
+ <a:ea typeface="+mn-ea"/>
34
+ <a:cs typeface="+mn-cs"/>
35
+ </a:defRPr>
36
+ </a:lvl2pPr>
37
+ <a:lvl3pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="914400" rtl="0">
38
+ <a:defRPr kern="1200" sz="1800">
39
+ <a:solidFill>
40
+ <a:schemeClr val="tx1"/>
41
+ </a:solidFill>
42
+ <a:latin typeface="+mn-lt"/>
43
+ <a:ea typeface="+mn-ea"/>
44
+ <a:cs typeface="+mn-cs"/>
45
+ </a:defRPr>
46
+ </a:lvl3pPr>
47
+ <a:lvl4pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="1371600" rtl="0">
48
+ <a:defRPr kern="1200" sz="1800">
49
+ <a:solidFill>
50
+ <a:schemeClr val="tx1"/>
51
+ </a:solidFill>
52
+ <a:latin typeface="+mn-lt"/>
53
+ <a:ea typeface="+mn-ea"/>
54
+ <a:cs typeface="+mn-cs"/>
55
+ </a:defRPr>
56
+ </a:lvl4pPr>
57
+ <a:lvl5pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="1828800" rtl="0">
58
+ <a:defRPr kern="1200" sz="1800">
59
+ <a:solidFill>
60
+ <a:schemeClr val="tx1"/>
61
+ </a:solidFill>
62
+ <a:latin typeface="+mn-lt"/>
63
+ <a:ea typeface="+mn-ea"/>
64
+ <a:cs typeface="+mn-cs"/>
65
+ </a:defRPr>
66
+ </a:lvl5pPr>
67
+ <a:lvl6pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="2286000" rtl="0">
68
+ <a:defRPr kern="1200" sz="1800">
69
+ <a:solidFill>
70
+ <a:schemeClr val="tx1"/>
71
+ </a:solidFill>
72
+ <a:latin typeface="+mn-lt"/>
73
+ <a:ea typeface="+mn-ea"/>
74
+ <a:cs typeface="+mn-cs"/>
75
+ </a:defRPr>
76
+ </a:lvl6pPr>
77
+ <a:lvl7pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="2743200" rtl="0">
78
+ <a:defRPr kern="1200" sz="1800">
79
+ <a:solidFill>
80
+ <a:schemeClr val="tx1"/>
81
+ </a:solidFill>
82
+ <a:latin typeface="+mn-lt"/>
83
+ <a:ea typeface="+mn-ea"/>
84
+ <a:cs typeface="+mn-cs"/>
85
+ </a:defRPr>
86
+ </a:lvl7pPr>
87
+ <a:lvl8pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="3200400" rtl="0">
88
+ <a:defRPr kern="1200" sz="1800">
89
+ <a:solidFill>
90
+ <a:schemeClr val="tx1"/>
91
+ </a:solidFill>
92
+ <a:latin typeface="+mn-lt"/>
93
+ <a:ea typeface="+mn-ea"/>
94
+ <a:cs typeface="+mn-cs"/>
95
+ </a:defRPr>
96
+ </a:lvl8pPr>
97
+ <a:lvl9pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="3657600" rtl="0">
98
+ <a:defRPr kern="1200" sz="1800">
99
+ <a:solidFill>
100
+ <a:schemeClr val="tx1"/>
101
+ </a:solidFill>
102
+ <a:latin typeface="+mn-lt"/>
103
+ <a:ea typeface="+mn-ea"/>
104
+ <a:cs typeface="+mn-cs"/>
105
+ </a:defRPr>
106
+ </a:lvl9pPr>
107
+ </p:defaultTextStyle>
108
+ <p:extLst>
109
+ <p:ext uri="{EFAFB233-063F-42B5-8137-9DF3F51BA10A}">
110
+ <p15:sldGuideLst xmlns:p15="http://schemas.microsoft.com/office/powerpoint/2012/main">
111
+ <p15:guide id="1" orient="horz" pos="2160">
112
+ <p15:clr>
113
+ <a:srgbClr val="A4A3A4"/>
114
+ </p15:clr>
115
+ </p15:guide>
116
+ <p15:guide id="2" pos="2880">
117
+ <p15:clr>
118
+ <a:srgbClr val="A4A3A4"/>
119
+ </p15:clr>
120
+ </p15:guide>
121
+ </p15:sldGuideLst>
122
+ </p:ext>
123
+ </p:extLst>
124
+ </p:presentation>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
3
+ <Relationship Id="rId1" Target="slideMasters/slideMaster1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"/>
4
+ <Relationship Id="rId2" Target="presProps.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps"/>
5
+ <Relationship Id="rId3" Target="viewProps.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps"/>
6
+ <Relationship Id="rId4" Target="theme/theme1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"/>
7
+ <Relationship Id="rId5" Target="tableStyles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"/>
8
+ <% slides.each_with_index do |slide, index| %>
9
+ <% id = 5 + (index+1) %>
10
+ <Relationship Id="rId<%= id %>" Target="slides/slide<%= index+1 %>.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide"/>
11
+ <% end %>
12
+ </Relationships>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
3
+ <Relationship Id="rId1" Target="../slideLayouts/slideLayout1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"/>
4
+ </Relationships>
@@ -0,0 +1,137 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
3
+ <p:cSld>
4
+ <p:spTree>
5
+ <p:nvGrpSpPr>
6
+ <p:cNvPr id="1" name=""/>
7
+ <p:cNvGrpSpPr/>
8
+ <p:nvPr/>
9
+ </p:nvGrpSpPr>
10
+ <p:grpSpPr>
11
+ <a:xfrm>
12
+ <a:off x="0" y="0"/>
13
+ <a:ext cx="0" cy="0"/>
14
+ <a:chOff x="0" y="0"/>
15
+ <a:chExt cx="0" cy="0"/>
16
+ </a:xfrm>
17
+ </p:grpSpPr>
18
+ <p:sp>
19
+ <p:nvSpPr>
20
+ <p:cNvPr id="2" name="Title 1"/>
21
+ <p:cNvSpPr>
22
+ <a:spLocks noGrp="1"/>
23
+ </p:cNvSpPr>
24
+ <p:nvPr>
25
+ <p:ph type="title"/>
26
+ </p:nvPr>
27
+ </p:nvSpPr>
28
+ <p:spPr/>
29
+ <p:txBody>
30
+ <a:bodyPr/>
31
+ <a:lstStyle/>
32
+ <a:p>
33
+ <a:r>
34
+ <a:rPr dirty="0" lang="en-US" smtClean="0"/>
35
+ <a:t><%= title %></a:t>
36
+ </a:r>
37
+ <a:endParaRPr dirty="0" lang="en-US"/>
38
+ </a:p>
39
+ </p:txBody>
40
+ </p:sp>
41
+ <p:graphicFrame>
42
+ <p:nvGraphicFramePr>
43
+ <p:cNvPr id="87" name="Table 2"/>
44
+ <p:cNvGraphicFramePr/>
45
+ <p:nvPr/>
46
+ </p:nvGraphicFramePr>
47
+ <p:xfrm>
48
+ <a:off x="2066760" y="2365560"/>
49
+ <a:ext cx="5075280" cy="2159280"/>
50
+ </p:xfrm>
51
+ <a:graphic>
52
+ <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table">
53
+ <a:tbl>
54
+ <a:tblPr/>
55
+ <a:tblGrid>
56
+ <% content.count.times do %>
57
+ <a:gridCol w="1268640"/>
58
+ <% end %>
59
+ </a:tblGrid>
60
+ <% content.each do |row| %>
61
+ <a:tr h="719640">
62
+ <% row.each do |cell| %>
63
+ <a:tc>
64
+ <a:txBody>
65
+ <a:bodyPr lIns="90000" rIns="90000" tIns="46800" bIns="46800"/>
66
+ <a:p>
67
+ <a:r>
68
+ <a:rPr b="0" lang="en-US" sz="1800" spc="-1" strike="noStrike">
69
+ <a:solidFill>
70
+ <a:srgbClr val="000000"/>
71
+ </a:solidFill>
72
+ <a:uFill>
73
+ <a:solidFill>
74
+ <a:srgbClr val="ffffff"/>
75
+ </a:solidFill>
76
+ </a:uFill>
77
+ <a:latin typeface="Arial"/>
78
+ </a:rPr>
79
+ <a:t><%= cell %></a:t>
80
+ </a:r>
81
+ <a:endParaRPr b="0" lang="en-US" sz="1800" spc="-1" strike="noStrike">
82
+ <a:solidFill>
83
+ <a:srgbClr val="000000"/>
84
+ </a:solidFill>
85
+ <a:uFill>
86
+ <a:solidFill>
87
+ <a:srgbClr val="ffffff"/>
88
+ </a:solidFill>
89
+ </a:uFill>
90
+ <a:latin typeface="Arial"/>
91
+ </a:endParaRPr>
92
+ </a:p>
93
+ </a:txBody>
94
+ <a:tcPr marL="90000" marR="90000">
95
+ <a:lnL w="720">
96
+ <a:solidFill>
97
+ <a:srgbClr val="ffffff"/>
98
+ </a:solidFill>
99
+ </a:lnL>
100
+ <a:lnR w="720">
101
+ <a:solidFill>
102
+ <a:srgbClr val="ffffff"/>
103
+ </a:solidFill>
104
+ </a:lnR>
105
+ <a:lnT w="720">
106
+ <a:solidFill>
107
+ <a:srgbClr val="ffffff"/>
108
+ </a:solidFill>
109
+ </a:lnT>
110
+ <a:lnB w="720">
111
+ <a:solidFill>
112
+ <a:srgbClr val="ffffff"/>
113
+ </a:solidFill>
114
+ </a:lnB>
115
+ <a:solidFill>
116
+ <a:srgbClr val="b3b3b3"/>
117
+ </a:solidFill>
118
+ </a:tcPr>
119
+ </a:tc>
120
+ <% end %>
121
+ </a:tr>
122
+ <% end %>
123
+ </a:tbl>
124
+ </a:graphicData>
125
+ </a:graphic>
126
+ </p:graphicFrame>
127
+ </p:spTree>
128
+ <p:extLst>
129
+ <p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
130
+ <p14:creationId val="1231192379" xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"/>
131
+ </p:ext>
132
+ </p:extLst>
133
+ </p:cSld>
134
+ <p:clrMapOvr>
135
+ <a:masterClrMapping/>
136
+ </p:clrMapOvr>
137
+ </p:sld>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
3
+ <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout<%= index %>.xml" />
4
+ <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/<%= image_name %>" />
5
+ </Relationships>
@@ -0,0 +1,114 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">
3
+ <p:cSld>
4
+ <p:spTree>
5
+ <p:nvGrpSpPr>
6
+ <p:cNvPr id="1" name=""/>
7
+ <p:cNvGrpSpPr/>
8
+ <p:nvPr/>
9
+ </p:nvGrpSpPr>
10
+ <p:grpSpPr>
11
+ <a:xfrm>
12
+ <a:off x="0" y="0"/>
13
+ <a:ext cx="0" cy="0"/>
14
+ <a:chOff x="0" y="0"/>
15
+ <a:chExt cx="0" cy="0"/>
16
+ </a:xfrm>
17
+ </p:grpSpPr>
18
+ <p:sp>
19
+ <p:nvSpPr>
20
+ <p:cNvPr id="2" name="Title 1"/>
21
+ <p:cNvSpPr>
22
+ <a:spLocks noGrp="1"/>
23
+ </p:cNvSpPr>
24
+ <p:nvPr>
25
+ <p:ph type="title"/>
26
+ </p:nvPr>
27
+ </p:nvSpPr>
28
+ <p:spPr/>
29
+ <p:txBody>
30
+ <a:bodyPr/>
31
+ <a:lstStyle/>
32
+ <a:p>
33
+ <a:r>
34
+ <a:rPr lang="en-US" dirty="0" smtClean="0"/>
35
+ <a:t><%= title %></a:t>
36
+ </a:r>
37
+ <a:endParaRPr lang="en-US" dirty="0"/>
38
+ </a:p>
39
+ </p:txBody>
40
+ </p:sp>
41
+ <p:sp>
42
+ <p:nvSpPr>
43
+ <p:cNvPr id="3" name="Content Placeholder 2"/>
44
+ <p:cNvSpPr>
45
+ <a:spLocks noGrp="1"/>
46
+ </p:cNvSpPr>
47
+ <p:nvPr>
48
+ <p:ph sz="half" idx="1"/>
49
+ </p:nvPr>
50
+ </p:nvSpPr>
51
+ <p:spPr/>
52
+ <p:txBody>
53
+ <a:bodyPr/>
54
+ <a:lstStyle/>
55
+ <% content.each_with_index do |c, index| %>
56
+ <a:p>
57
+ <a:r>
58
+ <a:rPr lang="en-US" dirty="0" smtClean="0"/>
59
+ <a:t><%= c %></a:t>
60
+ </a:r>
61
+ <% if content.length == (index + 1) %>
62
+ <a:endParaRPr lang="en-US"/>
63
+ <% end %>
64
+ </a:p>
65
+ <% end %>
66
+ </p:txBody>
67
+ </p:sp>
68
+ <p:pic>
69
+ <p:nvPicPr>
70
+ <p:cNvPr id="4" name="Content Placeholder 3"/>
71
+ <p:cNvPicPr>
72
+ <a:picLocks noGrp="1" noChangeAspect="1"/>
73
+ </p:cNvPicPr>
74
+ <p:nvPr>
75
+ <p:ph sz="half" idx="2"/>
76
+ </p:nvPr>
77
+ </p:nvPicPr>
78
+ <p:blipFill>
79
+ <a:blip r:embed="rId2">
80
+ <a:extLst>
81
+ <a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
82
+ <a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>
83
+ </a:ext>
84
+ </a:extLst>
85
+ </a:blip>
86
+ <a:stretch>
87
+ <a:fillRect/>
88
+ </a:stretch>
89
+ </p:blipFill>
90
+ <% if coords.any? %>
91
+ <p:spPr>
92
+ <a:xfrm>
93
+ <a:off x="<%= coords[:x].to_s %>" y="<%= coords[:y].to_s %>"/>
94
+ <a:ext cx="<%= coords[:cx].to_s %>" cy="<%= coords[:cy].to_s %>"/>
95
+ </a:xfrm>
96
+ <a:prstGeom prst="rect">
97
+ <a:avLst/>
98
+ </a:prstGeom>
99
+ </p:spPr>
100
+ <% else %>
101
+ <p:spPr/>
102
+ <% end %>
103
+ </p:pic>
104
+ </p:spTree>
105
+ <p:extLst>
106
+ <p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
107
+ <p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1435759726"/>
108
+ </p:ext>
109
+ </p:extLst>
110
+ </p:cSld>
111
+ <p:clrMapOvr>
112
+ <a:masterClrMapping/>
113
+ </p:clrMapOvr>
114
+ </p:sld>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
3
+ <Relationship Id="rId1" Target="../slideLayouts/slideLayout<%= index %>.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"/>
4
+ </Relationships>
@@ -0,0 +1,78 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
3
+ <p:cSld>
4
+ <p:spTree>
5
+ <p:nvGrpSpPr>
6
+ <p:cNvPr id="1" name=""/>
7
+ <p:cNvGrpSpPr/>
8
+ <p:nvPr/>
9
+ </p:nvGrpSpPr>
10
+ <p:grpSpPr>
11
+ <a:xfrm>
12
+ <a:off x="0" y="0"/>
13
+ <a:ext cx="0" cy="0"/>
14
+ <a:chOff x="0" y="0"/>
15
+ <a:chExt cx="0" cy="0"/>
16
+ </a:xfrm>
17
+ </p:grpSpPr>
18
+ <p:sp>
19
+ <p:nvSpPr>
20
+ <p:cNvPr id="2" name="Title 1"/>
21
+ <p:cNvSpPr>
22
+ <a:spLocks noGrp="1"/>
23
+ </p:cNvSpPr>
24
+ <p:nvPr>
25
+ <p:ph type="title"/>
26
+ </p:nvPr>
27
+ </p:nvSpPr>
28
+ <p:spPr/>
29
+ <p:txBody>
30
+ <a:bodyPr/>
31
+ <a:lstStyle/>
32
+ <a:p>
33
+ <a:r>
34
+ <a:rPr dirty="0" lang="en-US" smtClean="0"/>
35
+ <a:t><%= title %></a:t>
36
+ </a:r>
37
+ <a:endParaRPr dirty="0" lang="en-US"/>
38
+ </a:p>
39
+ </p:txBody>
40
+ </p:sp>
41
+ <p:sp>
42
+ <p:nvSpPr>
43
+ <p:cNvPr id="3" name="Content Placeholder 2"/>
44
+ <p:cNvSpPr>
45
+ <a:spLocks noGrp="1"/>
46
+ </p:cNvSpPr>
47
+ <p:nvPr>
48
+ <p:ph idx="1"/>
49
+ </p:nvPr>
50
+ </p:nvSpPr>
51
+ <p:spPr/>
52
+ <p:txBody>
53
+ <a:bodyPr/>
54
+ <a:lstStyle/>
55
+ <% content.each_with_index do |c, index| %>
56
+ <a:p>
57
+ <a:r>
58
+ <a:rPr dirty="0" lang="en-US" smtClean="0"/>
59
+ <a:t><%= c %></a:t>
60
+ </a:r>
61
+ <% if content.length == (index + 1) %>
62
+ <a:endParaRPr lang="en-US"/>
63
+ <% end %>
64
+ </a:p>
65
+ <% end %>
66
+ </p:txBody>
67
+ </p:sp>
68
+ </p:spTree>
69
+ <p:extLst>
70
+ <p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
71
+ <p14:creationId val="1231192379" xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"/>
72
+ </p:ext>
73
+ </p:extLst>
74
+ </p:cSld>
75
+ <p:clrMapOvr>
76
+ <a:masterClrMapping/>
77
+ </p:clrMapOvr>
78
+ </p:sld>
@@ -0,0 +1,17 @@
1
+ require "ruby_slides/version"
2
+ require "ruby_slides/util"
3
+ require "ruby_slides/slide/introduction"
4
+ require "ruby_slides/slide/pictorial"
5
+ require "ruby_slides/slide/picture_description"
6
+ require "ruby_slides/slide/text_picture_split"
7
+ require "ruby_slides/slide/textual"
8
+ require "ruby_slides/slide/table"
9
+ require "ruby_slides/slide/chart"
10
+ require "ruby_slides/compression"
11
+ require "ruby_slides/presentation"
12
+
13
+ module RubySlides
14
+ ROOT_PATH = File.expand_path("../..", __FILE__)
15
+ TEMPLATE_PATH = "#{ROOT_PATH}/template/"
16
+ VIEW_PATH = "#{ROOT_PATH}/lib/ruby_slides/views/"
17
+ end
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "ruby_slides/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ruby_slides"
8
+ spec.version = RubySlides::VERSION
9
+ spec.authors = ["Daniel Sousa"]
10
+ spec.email = ["mail@danielsousa.io"]
11
+
12
+ spec.summary = "RubySlides"
13
+ spec.description = "Create Powerpoint presentations in Ruby with elements like slides, text, images, tables and charts."
14
+ spec.homepage = "https://github.com/danielsousaio/ruby_slides"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.15"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.0"
27
+
28
+ spec.add_dependency 'rubyzip', '~> 1'
29
+ spec.add_dependency 'fastimage', '~> 1'
30
+ end
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
3
+ <Relationship Id="rId1" Target="ppt/presentation.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"/>
4
+ <Relationship Id="rId2" Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"/>
5
+ <Relationship Id="rId3" Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"/>
6
+ </Relationships>