openxml-drawingml 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +8 -8
  3. data/lib/openxml/drawingml.rb +11 -0
  4. data/lib/openxml/drawingml/elements.rb +1 -1
  5. data/lib/openxml/drawingml/elements/adjust_values_list.rb +2 -2
  6. data/lib/openxml/drawingml/elements/blip.rb +3 -3
  7. data/lib/openxml/drawingml/elements/blip_fill.rb +1 -2
  8. data/lib/openxml/drawingml/elements/children_extents.rb +2 -1
  9. data/lib/openxml/drawingml/elements/children_offset.rb +2 -1
  10. data/lib/openxml/drawingml/elements/extension.rb +2 -1
  11. data/lib/openxml/drawingml/elements/extension_list.rb +2 -2
  12. data/lib/openxml/drawingml/elements/extents.rb +2 -1
  13. data/lib/openxml/drawingml/elements/fill_rectangle.rb +2 -1
  14. data/lib/openxml/drawingml/elements/graphic.rb +4 -1
  15. data/lib/openxml/drawingml/elements/graphic_data.rb +3 -1
  16. data/lib/openxml/drawingml/elements/graphic_frame_locks.rb +3 -1
  17. data/lib/openxml/drawingml/elements/head_end.rb +3 -1
  18. data/lib/openxml/drawingml/elements/line_break.rb +89 -0
  19. data/lib/openxml/drawingml/elements/no_autofit.rb +2 -2
  20. data/lib/openxml/drawingml/elements/no_fill.rb +3 -1
  21. data/lib/openxml/drawingml/elements/non_visual_drawing_properties.rb +1 -1
  22. data/lib/openxml/drawingml/elements/non_visual_picture_drawing_properties.rb +1 -2
  23. data/lib/openxml/drawingml/elements/non_visual_picture_properties.rb +1 -2
  24. data/lib/openxml/drawingml/elements/non_visual_shape_drawing_properties.rb +1 -2
  25. data/lib/openxml/drawingml/elements/offset.rb +1 -1
  26. data/lib/openxml/drawingml/elements/outline.rb +2 -2
  27. data/lib/openxml/drawingml/elements/paragraph.rb +78 -0
  28. data/lib/openxml/drawingml/elements/picture.rb +1 -2
  29. data/lib/openxml/drawingml/elements/picture_locks.rb +1 -1
  30. data/lib/openxml/drawingml/elements/picture_shape_properties.rb +1 -2
  31. data/lib/openxml/drawingml/elements/preset_geometry.rb +2 -2
  32. data/lib/openxml/drawingml/elements/preset_text_warp.rb +1 -2
  33. data/lib/openxml/drawingml/elements/round.rb +4 -1
  34. data/lib/openxml/drawingml/elements/run.rb +85 -0
  35. data/lib/openxml/drawingml/elements/shape_guide.rb +1 -1
  36. data/lib/openxml/drawingml/elements/solid_fill.rb +3 -1
  37. data/lib/openxml/drawingml/elements/source_rectangle.rb +1 -1
  38. data/lib/openxml/drawingml/elements/srgb_color.rb +2 -1
  39. data/lib/openxml/drawingml/elements/stretch.rb +2 -2
  40. data/lib/openxml/drawingml/elements/tail_end.rb +3 -1
  41. data/lib/openxml/drawingml/elements/text.rb +21 -0
  42. data/lib/openxml/drawingml/elements/theme_elements.rb +4 -1
  43. data/lib/openxml/drawingml/elements/transform_effect.rb +1 -2
  44. data/lib/openxml/drawingml/parts.rb +10 -0
  45. data/lib/openxml/drawingml/parts/theme.rb +46 -0
  46. data/lib/openxml/drawingml/properties.rb +24 -0
  47. data/lib/openxml/drawingml/properties/audio_cd.rb +16 -0
  48. data/lib/openxml/drawingml/properties/audio_cd_end.rb +13 -0
  49. data/lib/openxml/drawingml/properties/audio_cd_start.rb +13 -0
  50. data/lib/openxml/drawingml/properties/audio_cd_time_property.rb +11 -0
  51. data/lib/openxml/drawingml/properties/audio_file.rb +13 -0
  52. data/lib/openxml/drawingml/properties/autofit_none.rb +11 -0
  53. data/lib/openxml/drawingml/properties/autofit_normal.rb +14 -0
  54. data/lib/openxml/drawingml/properties/autofit_shape.rb +11 -0
  55. data/lib/openxml/drawingml/properties/background_fill_style_list.rb +14 -0
  56. data/lib/openxml/drawingml/properties/blip.rb +27 -0
  57. data/lib/openxml/drawingml/properties/body_properties.rb +81 -0
  58. data/lib/openxml/drawingml/properties/bullet_color.rb +13 -0
  59. data/lib/openxml/drawingml/properties/bullet_color_text.rb +11 -0
  60. data/lib/openxml/drawingml/properties/bullet_font.rb +13 -0
  61. data/lib/openxml/drawingml/properties/bullet_font_text.rb +11 -0
  62. data/lib/openxml/drawingml/properties/bullet_size_percent.rb +20 -0
  63. data/lib/openxml/drawingml/properties/bullet_size_points.rb +20 -0
  64. data/lib/openxml/drawingml/properties/bullet_size_text.rb +11 -0
  65. data/lib/openxml/drawingml/properties/bullet_style_auto_numbered.rb +27 -0
  66. data/lib/openxml/drawingml/properties/bullet_style_blip.rb +12 -0
  67. data/lib/openxml/drawingml/properties/bullet_style_character.rb +13 -0
  68. data/lib/openxml/drawingml/properties/bullet_style_none.rb +11 -0
  69. data/lib/openxml/drawingml/properties/child_extent.rb +13 -0
  70. data/lib/openxml/drawingml/properties/child_offset.rb +13 -0
  71. data/lib/openxml/drawingml/properties/color_component_rgb.rb +17 -0
  72. data/lib/openxml/drawingml/properties/color_container_property.rb +17 -0
  73. data/lib/openxml/drawingml/properties/color_hex_rgb.rb +20 -0
  74. data/lib/openxml/drawingml/properties/color_hsl.rb +17 -0
  75. data/lib/openxml/drawingml/properties/color_mapping.rb +31 -0
  76. data/lib/openxml/drawingml/properties/color_mapping_override.rb +16 -0
  77. data/lib/openxml/drawingml/properties/color_mapping_override_map.rb +13 -0
  78. data/lib/openxml/drawingml/properties/color_mapping_override_master.rb +11 -0
  79. data/lib/openxml/drawingml/properties/color_preset_color.rb +51 -0
  80. data/lib/openxml/drawingml/properties/color_property.rb +40 -0
  81. data/lib/openxml/drawingml/properties/color_scheme.rb +29 -0
  82. data/lib/openxml/drawingml/properties/color_scheme_accent_five.rb +13 -0
  83. data/lib/openxml/drawingml/properties/color_scheme_accent_four.rb +13 -0
  84. data/lib/openxml/drawingml/properties/color_scheme_accent_one.rb +13 -0
  85. data/lib/openxml/drawingml/properties/color_scheme_accent_six.rb +13 -0
  86. data/lib/openxml/drawingml/properties/color_scheme_accent_three.rb +13 -0
  87. data/lib/openxml/drawingml/properties/color_scheme_accent_two.rb +13 -0
  88. data/lib/openxml/drawingml/properties/color_scheme_color.rb +25 -0
  89. data/lib/openxml/drawingml/properties/color_scheme_dark_one.rb +13 -0
  90. data/lib/openxml/drawingml/properties/color_scheme_dark_two.rb +13 -0
  91. data/lib/openxml/drawingml/properties/color_scheme_followed_hyperlink.rb +13 -0
  92. data/lib/openxml/drawingml/properties/color_scheme_hyperlink.rb +13 -0
  93. data/lib/openxml/drawingml/properties/color_scheme_light_one.rb +13 -0
  94. data/lib/openxml/drawingml/properties/color_scheme_light_two.rb +13 -0
  95. data/lib/openxml/drawingml/properties/color_system_color.rb +30 -0
  96. data/lib/openxml/drawingml/properties/color_xform_alpha.rb +19 -0
  97. data/lib/openxml/drawingml/properties/color_xform_alpha_modulation.rb +11 -0
  98. data/lib/openxml/drawingml/properties/color_xform_alpha_offset.rb +19 -0
  99. data/lib/openxml/drawingml/properties/color_xform_blue.rb +11 -0
  100. data/lib/openxml/drawingml/properties/color_xform_blue_modulation.rb +11 -0
  101. data/lib/openxml/drawingml/properties/color_xform_blue_offset.rb +11 -0
  102. data/lib/openxml/drawingml/properties/color_xform_complement.rb +11 -0
  103. data/lib/openxml/drawingml/properties/color_xform_gamma.rb +11 -0
  104. data/lib/openxml/drawingml/properties/color_xform_grayscale.rb +11 -0
  105. data/lib/openxml/drawingml/properties/color_xform_green.rb +11 -0
  106. data/lib/openxml/drawingml/properties/color_xform_green_modulation.rb +11 -0
  107. data/lib/openxml/drawingml/properties/color_xform_green_offset.rb +11 -0
  108. data/lib/openxml/drawingml/properties/color_xform_hue.rb +20 -0
  109. data/lib/openxml/drawingml/properties/color_xform_hue_modulation.rb +11 -0
  110. data/lib/openxml/drawingml/properties/color_xform_hue_offset.rb +11 -0
  111. data/lib/openxml/drawingml/properties/color_xform_inverse.rb +11 -0
  112. data/lib/openxml/drawingml/properties/color_xform_inverse_gamma.rb +11 -0
  113. data/lib/openxml/drawingml/properties/color_xform_luminance.rb +11 -0
  114. data/lib/openxml/drawingml/properties/color_xform_luminance_modulation.rb +11 -0
  115. data/lib/openxml/drawingml/properties/color_xform_luminance_offset.rb +11 -0
  116. data/lib/openxml/drawingml/properties/color_xform_red.rb +11 -0
  117. data/lib/openxml/drawingml/properties/color_xform_red_modulation.rb +11 -0
  118. data/lib/openxml/drawingml/properties/color_xform_red_offset.rb +11 -0
  119. data/lib/openxml/drawingml/properties/color_xform_saturation.rb +11 -0
  120. data/lib/openxml/drawingml/properties/color_xform_saturation_modulation.rb +11 -0
  121. data/lib/openxml/drawingml/properties/color_xform_saturation_offset.rb +11 -0
  122. data/lib/openxml/drawingml/properties/color_xform_shade.rb +19 -0
  123. data/lib/openxml/drawingml/properties/color_xform_tint.rb +19 -0
  124. data/lib/openxml/drawingml/properties/complex_script_font.rb +13 -0
  125. data/lib/openxml/drawingml/properties/connection.rb +11 -0
  126. data/lib/openxml/drawingml/properties/connection_end.rb +13 -0
  127. data/lib/openxml/drawingml/properties/connection_shape_locks.rb +24 -0
  128. data/lib/openxml/drawingml/properties/connection_start.rb +13 -0
  129. data/lib/openxml/drawingml/properties/custom_color.rb +13 -0
  130. data/lib/openxml/drawingml/properties/custom_color_list.rb +14 -0
  131. data/lib/openxml/drawingml/properties/custom_dash_style.rb +14 -0
  132. data/lib/openxml/drawingml/properties/custom_geometry.rb +18 -0
  133. data/lib/openxml/drawingml/properties/dash_stop.rb +14 -0
  134. data/lib/openxml/drawingml/properties/default_paragraph_properties.rb +13 -0
  135. data/lib/openxml/drawingml/properties/default_run_properties.rb +13 -0
  136. data/lib/openxml/drawingml/properties/default_shape_properties.rb +15 -0
  137. data/lib/openxml/drawingml/properties/east_asian_font.rb +13 -0
  138. data/lib/openxml/drawingml/properties/effect_dag.rb +20 -0
  139. data/lib/openxml/drawingml/properties/effect_list.rb +17 -0
  140. data/lib/openxml/drawingml/properties/effect_reference.rb +13 -0
  141. data/lib/openxml/drawingml/properties/effect_style.rb +18 -0
  142. data/lib/openxml/drawingml/properties/effect_style_list.rb +14 -0
  143. data/lib/openxml/drawingml/properties/embedded_sound_file.rb +14 -0
  144. data/lib/openxml/drawingml/properties/extension.rb +14 -0
  145. data/lib/openxml/drawingml/properties/extension_list.rb +14 -0
  146. data/lib/openxml/drawingml/properties/extent.rb +29 -0
  147. data/lib/openxml/drawingml/properties/external_media_file.rb +15 -0
  148. data/lib/openxml/drawingml/properties/extra_color_scheme.rb +14 -0
  149. data/lib/openxml/drawingml/properties/extra_color_scheme_list.rb +14 -0
  150. data/lib/openxml/drawingml/properties/fill_blip.rb +22 -0
  151. data/lib/openxml/drawingml/properties/fill_gradient.rb +24 -0
  152. data/lib/openxml/drawingml/properties/fill_group.rb +11 -0
  153. data/lib/openxml/drawingml/properties/fill_none.rb +11 -0
  154. data/lib/openxml/drawingml/properties/fill_pattern.rb +23 -0
  155. data/lib/openxml/drawingml/properties/fill_rectangle.rb +13 -0
  156. data/lib/openxml/drawingml/properties/fill_reference.rb +13 -0
  157. data/lib/openxml/drawingml/properties/fill_solid.rb +13 -0
  158. data/lib/openxml/drawingml/properties/fill_style_list.rb +19 -0
  159. data/lib/openxml/drawingml/properties/fill_to_rectangle.rb +13 -0
  160. data/lib/openxml/drawingml/properties/flat_text.rb +39 -0
  161. data/lib/openxml/drawingml/properties/font_collection_property.rb +16 -0
  162. data/lib/openxml/drawingml/properties/font_property.rb +29 -0
  163. data/lib/openxml/drawingml/properties/font_reference.rb +13 -0
  164. data/lib/openxml/drawingml/properties/font_scheme.rb +18 -0
  165. data/lib/openxml/drawingml/properties/format_scheme.rb +19 -0
  166. data/lib/openxml/drawingml/properties/geometry_guide.rb +14 -0
  167. data/lib/openxml/drawingml/properties/geometry_guide_list.rb +14 -0
  168. data/lib/openxml/drawingml/properties/gradient_line.rb +14 -0
  169. data/lib/openxml/drawingml/properties/gradient_path.rb +16 -0
  170. data/lib/openxml/drawingml/properties/gradient_stop.rb +13 -0
  171. data/lib/openxml/drawingml/properties/gradient_stop_list.rb +14 -0
  172. data/lib/openxml/drawingml/properties/graphic.rb +13 -0
  173. data/lib/openxml/drawingml/properties/graphic_data.rb +14 -0
  174. data/lib/openxml/drawingml/properties/graphic_frame_locks.rb +20 -0
  175. data/lib/openxml/drawingml/properties/group_shape_locks.rb +22 -0
  176. data/lib/openxml/drawingml/properties/group_transform.rb +16 -0
  177. data/lib/openxml/drawingml/properties/head_end.rb +13 -0
  178. data/lib/openxml/drawingml/properties/highlight.rb +13 -0
  179. data/lib/openxml/drawingml/properties/hyperlink_click.rb +13 -0
  180. data/lib/openxml/drawingml/properties/hyperlink_hover.rb +13 -0
  181. data/lib/openxml/drawingml/properties/hyperlink_mouse_over.rb +13 -0
  182. data/lib/openxml/drawingml/properties/hyperlink_property.rb +22 -0
  183. data/lib/openxml/drawingml/properties/integer_property.rb +12 -0
  184. data/lib/openxml/drawingml/properties/latin_font.rb +13 -0
  185. data/lib/openxml/drawingml/properties/level1_paragraph_properties.rb +13 -0
  186. data/lib/openxml/drawingml/properties/level2_paragraph_properties.rb +13 -0
  187. data/lib/openxml/drawingml/properties/level3_paragraph_properties.rb +13 -0
  188. data/lib/openxml/drawingml/properties/level4_paragraph_properties.rb +13 -0
  189. data/lib/openxml/drawingml/properties/level5_paragraph_properties.rb +13 -0
  190. data/lib/openxml/drawingml/properties/level6_paragraph_properties.rb +13 -0
  191. data/lib/openxml/drawingml/properties/level7_paragraph_properties.rb +13 -0
  192. data/lib/openxml/drawingml/properties/level8_paragraph_properties.rb +13 -0
  193. data/lib/openxml/drawingml/properties/level9_paragraph_properties.rb +13 -0
  194. data/lib/openxml/drawingml/properties/line_default.rb +13 -0
  195. data/lib/openxml/drawingml/properties/line_end_properties.rb +12 -0
  196. data/lib/openxml/drawingml/properties/line_join_bevel.rb +11 -0
  197. data/lib/openxml/drawingml/properties/line_join_miter.rb +31 -0
  198. data/lib/openxml/drawingml/properties/line_join_round.rb +11 -0
  199. data/lib/openxml/drawingml/properties/line_property.rb +43 -0
  200. data/lib/openxml/drawingml/properties/line_spacing.rb +16 -0
  201. data/lib/openxml/drawingml/properties/line_style_list.rb +14 -0
  202. data/lib/openxml/drawingml/properties/list_style.rb +24 -0
  203. data/lib/openxml/drawingml/properties/major_font.rb +13 -0
  204. data/lib/openxml/drawingml/properties/minor_font.rb +13 -0
  205. data/lib/openxml/drawingml/properties/object_defaults.rb +17 -0
  206. data/lib/openxml/drawingml/properties/offset.rb +29 -0
  207. data/lib/openxml/drawingml/properties/outline.rb +13 -0
  208. data/lib/openxml/drawingml/properties/outline_reference.rb +13 -0
  209. data/lib/openxml/drawingml/properties/paragraph_properties.rb +78 -0
  210. data/lib/openxml/drawingml/properties/path.rb +49 -0
  211. data/lib/openxml/drawingml/properties/path_list.rb +14 -0
  212. data/lib/openxml/drawingml/properties/percentage_property.rb +17 -0
  213. data/lib/openxml/drawingml/properties/picture_locks.rb +25 -0
  214. data/lib/openxml/drawingml/properties/positive_integer_property.rb +12 -0
  215. data/lib/openxml/drawingml/properties/positive_percentage_property.rb +17 -0
  216. data/lib/openxml/drawingml/properties/preset_dash_style.rb +16 -0
  217. data/lib/openxml/drawingml/properties/preset_geometry.rb +59 -0
  218. data/lib/openxml/drawingml/properties/preset_text_warp.rb +25 -0
  219. data/lib/openxml/drawingml/properties/quick_time_file.rb +17 -0
  220. data/lib/openxml/drawingml/properties/relative_rectangle_property.rb +13 -0
  221. data/lib/openxml/drawingml/properties/right_to_left.rb +11 -0
  222. data/lib/openxml/drawingml/properties/run_properties.rb +93 -0
  223. data/lib/openxml/drawingml/properties/scene_3d.rb +17 -0
  224. data/lib/openxml/drawingml/properties/shape_adjustment_list.rb +14 -0
  225. data/lib/openxml/drawingml/properties/shape_default.rb +13 -0
  226. data/lib/openxml/drawingml/properties/shape_locks.rb +25 -0
  227. data/lib/openxml/drawingml/properties/shape_properties.rb +46 -0
  228. data/lib/openxml/drawingml/properties/shape_style.rb +16 -0
  229. data/lib/openxml/drawingml/properties/simple_boolean_property.rb +16 -0
  230. data/lib/openxml/drawingml/properties/simple_property_container_property.rb +14 -0
  231. data/lib/openxml/drawingml/properties/source_rectangle.rb +13 -0
  232. data/lib/openxml/drawingml/properties/space_after.rb +22 -0
  233. data/lib/openxml/drawingml/properties/space_before.rb +22 -0
  234. data/lib/openxml/drawingml/properties/spacing_percent.rb +11 -0
  235. data/lib/openxml/drawingml/properties/spacing_points.rb +20 -0
  236. data/lib/openxml/drawingml/properties/stretch.rb +13 -0
  237. data/lib/openxml/drawingml/properties/style_matrix_reference_property.rb +20 -0
  238. data/lib/openxml/drawingml/properties/supplemental_font.rb +14 -0
  239. data/lib/openxml/drawingml/properties/symbol_font.rb +13 -0
  240. data/lib/openxml/drawingml/properties/tab_list.rb +14 -0
  241. data/lib/openxml/drawingml/properties/tab_stop.rb +29 -0
  242. data/lib/openxml/drawingml/properties/tail_end.rb +13 -0
  243. data/lib/openxml/drawingml/properties/text_body.rb +15 -0
  244. data/lib/openxml/drawingml/properties/text_default.rb +13 -0
  245. data/lib/openxml/drawingml/properties/theme_elements.rb +16 -0
  246. data/lib/openxml/drawingml/properties/tile.rb +35 -0
  247. data/lib/openxml/drawingml/properties/tile_rectangle.rb +13 -0
  248. data/lib/openxml/drawingml/properties/transform.rb +19 -0
  249. data/lib/openxml/drawingml/properties/underline.rb +13 -0
  250. data/lib/openxml/drawingml/properties/underline_fill.rb +20 -0
  251. data/lib/openxml/drawingml/properties/underline_fill_text.rb +11 -0
  252. data/lib/openxml/drawingml/properties/underline_text.rb +11 -0
  253. data/lib/openxml/drawingml/properties/value_property.rb +12 -0
  254. data/lib/openxml/drawingml/properties/video_file.rb +13 -0
  255. data/lib/openxml/drawingml/properties/wav_audio_file.rb +13 -0
  256. data/lib/openxml/drawingml/version.rb +1 -1
  257. data/openxml-drawingml.gemspec +3 -3
  258. metadata +222 -5
  259. data/lib/openxml/drawingml/element.rb +0 -9
@@ -0,0 +1,35 @@
1
+ module OpenXml
2
+ module DrawingML
3
+ module Properties
4
+ class Tile < OpenXml::Properties::ComplexProperty
5
+ namespace :a
6
+ tag :tile
7
+
8
+ RECTANGLE_ALIGNMENTS = %i{ b bl br ctr l r t tl tr }.freeze
9
+
10
+ attribute :alignment, displays_as: :algn, one_of: RECTANGLE_ALIGNMENTS
11
+ attribute :flip, one_of: %i{ none x xy y }
12
+ attribute :horizontal_ratio, displays_as: :sx, expects: :percentage
13
+ attribute :vertical_ratio, displays_as: :sy, expects: :percentage
14
+ attribute :horizontal_offset, displays_as: :tx, expects: :coordinate
15
+ attribute :vertical_offset, displays_as: :ty, expects: :coordinate
16
+
17
+ private
18
+
19
+ def coordinate(value)
20
+ message = "Invalid coordinate: should either be an integer (in EMUs) or include a unit"
21
+ raise ArgumentError, message unless integer?(value) || valid_coordinate?(value)
22
+ end
23
+
24
+ def valid_coordinate?(value)
25
+ value.is_a?(String) && value =~ /-?[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)/
26
+ end
27
+
28
+ def integer?(value)
29
+ value.is_a?(Integer)
30
+ end
31
+
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,13 @@
1
+ require "openxml/drawingml/properties/relative_rectangle_property"
2
+
3
+ module OpenXml
4
+ module DrawingML
5
+ module Properties
6
+ class TileRectangle < RelativeRectangleProperty
7
+ namespace :a
8
+ tag :tileRect
9
+
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ module OpenXml
2
+ module DrawingML
3
+ module Properties
4
+ class Transform < OpenXml::Properties::ComplexProperty
5
+ include OpenXml::ContainsProperties
6
+ namespace :a
7
+ tag :xfrm
8
+
9
+ attribute :rotation, displays_as: :rot, expects: :integer
10
+ attribute :flip_horizontal, displays_as: :flipH, expects: :boolean
11
+ attribute :flip_vertical, displays_as: :flipV, expects: :boolean
12
+
13
+ property :offset
14
+ property :extent
15
+
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,13 @@
1
+ require "openxml/drawingml/properties/line_property"
2
+
3
+ module OpenXml
4
+ module DrawingML
5
+ module Properties
6
+ class Underline < LineProperty
7
+ namespace :a
8
+ tag :uLn
9
+
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,20 @@
1
+ module OpenXml
2
+ module DrawingML
3
+ module Properties
4
+ class UnderlineFill < SimplePropertyContainerProperty
5
+ namespace :a
6
+ tag :uFill
7
+
8
+ property_choice do
9
+ value_property :no_fill, as: :fill_none
10
+ property :solid_fill, as: :fill_solid
11
+ property :gradient_fill, as: :fill_gradient
12
+ property :pattern_fill, as: :fill_pattern
13
+ property :blip_fill, as: :fill_blip
14
+ value_property :inherit_group_fill, as: :fill_group
15
+ end
16
+
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,11 @@
1
+ module OpenXml
2
+ module DrawingML
3
+ module Properties
4
+ class UnderlineFillText < SimpleBooleanProperty
5
+ namespace :a
6
+ tag :uFillTx
7
+
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module OpenXml
2
+ module DrawingML
3
+ module Properties
4
+ class UnderlineText < SimpleBooleanProperty
5
+ namespace :a
6
+ tag :uLnTx
7
+
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ module OpenXml
2
+ module DrawingML
3
+ module Properties
4
+ class ValueProperty < OpenXml::Properties::ValueProperty
5
+ private def value_attribute
6
+ "val"
7
+ end
8
+
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ require "openxml/drawingml/properties/external_media_file"
2
+
3
+ module OpenXml
4
+ module DrawingML
5
+ module Properties
6
+ class VideoFile < ExternalMediaFile
7
+ namespace :a
8
+ tag :videoFile
9
+
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require "openxml/drawingml/properties/embedded_sound_file"
2
+
3
+ module OpenXml
4
+ module DrawingML
5
+ module Properties
6
+ class WavAudioFile < EmbeddedSoundFile
7
+ namespace :a
8
+ tag :wavAudioFile
9
+
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module OpenXml
2
2
  module DrawingML
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -6,8 +6,8 @@ require "openxml/drawingml/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "openxml-drawingml"
8
8
  spec.version = OpenXml::DrawingML::VERSION
9
- spec.authors = ["Amos King", "Bob Lail"]
10
- spec.email = ["amos@binarynoggin.com", "bob.lailfamily@gmail.com"]
9
+ spec.authors = ["Amos King", "Bob Lail", "Matt Kobs"]
10
+ spec.email = ["amos@binarynoggin.com", "bob.lailfamily@gmail.com", "matt.kobs@gmail.com"]
11
11
 
12
12
  spec.description = %q{Build drawingml files for open xml formats}
13
13
  spec.summary = %q{Implements the Office Open XML spec for DrawingML}
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = "~> 2.0"
23
23
 
24
24
  spec.add_dependency "nokogiri"
25
- spec.add_dependency "openxml-package", "~> 0.2.9"
25
+ spec.add_dependency "openxml-package", "~> 0.3.2"
26
26
 
27
27
  spec.add_development_dependency "pry"
28
28
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openxml-drawingml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amos King
8
8
  - Bob Lail
9
+ - Matt Kobs
9
10
  autorequire:
10
11
  bindir: exe
11
12
  cert_chain: []
12
- date: 2017-06-13 00:00:00.000000000 Z
13
+ date: 2017-09-28 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: nokogiri
@@ -31,14 +32,14 @@ dependencies:
31
32
  requirements:
32
33
  - - "~>"
33
34
  - !ruby/object:Gem::Version
34
- version: 0.2.9
35
+ version: 0.3.2
35
36
  type: :runtime
36
37
  prerelease: false
37
38
  version_requirements: !ruby/object:Gem::Requirement
38
39
  requirements:
39
40
  - - "~>"
40
41
  - !ruby/object:Gem::Version
41
- version: 0.2.9
42
+ version: 0.3.2
42
43
  - !ruby/object:Gem::Dependency
43
44
  name: pry
44
45
  requirement: !ruby/object:Gem::Requirement
@@ -127,6 +128,7 @@ description: Build drawingml files for open xml formats
127
128
  email:
128
129
  - amos@binarynoggin.com
129
130
  - bob.lailfamily@gmail.com
131
+ - matt.kobs@gmail.com
130
132
  executables: []
131
133
  extensions: []
132
134
  extra_rdoc_files: []
@@ -142,7 +144,6 @@ files:
142
144
  - bin/setup
143
145
  - lib/openxml-drawingml.rb
144
146
  - lib/openxml/drawingml.rb
145
- - lib/openxml/drawingml/element.rb
146
147
  - lib/openxml/drawingml/elements.rb
147
148
  - lib/openxml/drawingml/elements/adjust_values_list.rb
148
149
  - lib/openxml/drawingml/elements/blip.rb
@@ -157,6 +158,7 @@ files:
157
158
  - lib/openxml/drawingml/elements/graphic_data.rb
158
159
  - lib/openxml/drawingml/elements/graphic_frame_locks.rb
159
160
  - lib/openxml/drawingml/elements/head_end.rb
161
+ - lib/openxml/drawingml/elements/line_break.rb
160
162
  - lib/openxml/drawingml/elements/no_autofit.rb
161
163
  - lib/openxml/drawingml/elements/no_fill.rb
162
164
  - lib/openxml/drawingml/elements/non_visual_drawing_properties.rb
@@ -165,20 +167,235 @@ files:
165
167
  - lib/openxml/drawingml/elements/non_visual_shape_drawing_properties.rb
166
168
  - lib/openxml/drawingml/elements/offset.rb
167
169
  - lib/openxml/drawingml/elements/outline.rb
170
+ - lib/openxml/drawingml/elements/paragraph.rb
168
171
  - lib/openxml/drawingml/elements/picture.rb
169
172
  - lib/openxml/drawingml/elements/picture_locks.rb
170
173
  - lib/openxml/drawingml/elements/picture_shape_properties.rb
171
174
  - lib/openxml/drawingml/elements/preset_geometry.rb
172
175
  - lib/openxml/drawingml/elements/preset_text_warp.rb
173
176
  - lib/openxml/drawingml/elements/round.rb
177
+ - lib/openxml/drawingml/elements/run.rb
174
178
  - lib/openxml/drawingml/elements/shape_guide.rb
175
179
  - lib/openxml/drawingml/elements/solid_fill.rb
176
180
  - lib/openxml/drawingml/elements/source_rectangle.rb
177
181
  - lib/openxml/drawingml/elements/srgb_color.rb
178
182
  - lib/openxml/drawingml/elements/stretch.rb
179
183
  - lib/openxml/drawingml/elements/tail_end.rb
184
+ - lib/openxml/drawingml/elements/text.rb
180
185
  - lib/openxml/drawingml/elements/theme_elements.rb
181
186
  - lib/openxml/drawingml/elements/transform_effect.rb
187
+ - lib/openxml/drawingml/parts.rb
188
+ - lib/openxml/drawingml/parts/theme.rb
189
+ - lib/openxml/drawingml/properties.rb
190
+ - lib/openxml/drawingml/properties/audio_cd.rb
191
+ - lib/openxml/drawingml/properties/audio_cd_end.rb
192
+ - lib/openxml/drawingml/properties/audio_cd_start.rb
193
+ - lib/openxml/drawingml/properties/audio_cd_time_property.rb
194
+ - lib/openxml/drawingml/properties/audio_file.rb
195
+ - lib/openxml/drawingml/properties/autofit_none.rb
196
+ - lib/openxml/drawingml/properties/autofit_normal.rb
197
+ - lib/openxml/drawingml/properties/autofit_shape.rb
198
+ - lib/openxml/drawingml/properties/background_fill_style_list.rb
199
+ - lib/openxml/drawingml/properties/blip.rb
200
+ - lib/openxml/drawingml/properties/body_properties.rb
201
+ - lib/openxml/drawingml/properties/bullet_color.rb
202
+ - lib/openxml/drawingml/properties/bullet_color_text.rb
203
+ - lib/openxml/drawingml/properties/bullet_font.rb
204
+ - lib/openxml/drawingml/properties/bullet_font_text.rb
205
+ - lib/openxml/drawingml/properties/bullet_size_percent.rb
206
+ - lib/openxml/drawingml/properties/bullet_size_points.rb
207
+ - lib/openxml/drawingml/properties/bullet_size_text.rb
208
+ - lib/openxml/drawingml/properties/bullet_style_auto_numbered.rb
209
+ - lib/openxml/drawingml/properties/bullet_style_blip.rb
210
+ - lib/openxml/drawingml/properties/bullet_style_character.rb
211
+ - lib/openxml/drawingml/properties/bullet_style_none.rb
212
+ - lib/openxml/drawingml/properties/child_extent.rb
213
+ - lib/openxml/drawingml/properties/child_offset.rb
214
+ - lib/openxml/drawingml/properties/color_component_rgb.rb
215
+ - lib/openxml/drawingml/properties/color_container_property.rb
216
+ - lib/openxml/drawingml/properties/color_hex_rgb.rb
217
+ - lib/openxml/drawingml/properties/color_hsl.rb
218
+ - lib/openxml/drawingml/properties/color_mapping.rb
219
+ - lib/openxml/drawingml/properties/color_mapping_override.rb
220
+ - lib/openxml/drawingml/properties/color_mapping_override_map.rb
221
+ - lib/openxml/drawingml/properties/color_mapping_override_master.rb
222
+ - lib/openxml/drawingml/properties/color_preset_color.rb
223
+ - lib/openxml/drawingml/properties/color_property.rb
224
+ - lib/openxml/drawingml/properties/color_scheme.rb
225
+ - lib/openxml/drawingml/properties/color_scheme_accent_five.rb
226
+ - lib/openxml/drawingml/properties/color_scheme_accent_four.rb
227
+ - lib/openxml/drawingml/properties/color_scheme_accent_one.rb
228
+ - lib/openxml/drawingml/properties/color_scheme_accent_six.rb
229
+ - lib/openxml/drawingml/properties/color_scheme_accent_three.rb
230
+ - lib/openxml/drawingml/properties/color_scheme_accent_two.rb
231
+ - lib/openxml/drawingml/properties/color_scheme_color.rb
232
+ - lib/openxml/drawingml/properties/color_scheme_dark_one.rb
233
+ - lib/openxml/drawingml/properties/color_scheme_dark_two.rb
234
+ - lib/openxml/drawingml/properties/color_scheme_followed_hyperlink.rb
235
+ - lib/openxml/drawingml/properties/color_scheme_hyperlink.rb
236
+ - lib/openxml/drawingml/properties/color_scheme_light_one.rb
237
+ - lib/openxml/drawingml/properties/color_scheme_light_two.rb
238
+ - lib/openxml/drawingml/properties/color_system_color.rb
239
+ - lib/openxml/drawingml/properties/color_xform_alpha.rb
240
+ - lib/openxml/drawingml/properties/color_xform_alpha_modulation.rb
241
+ - lib/openxml/drawingml/properties/color_xform_alpha_offset.rb
242
+ - lib/openxml/drawingml/properties/color_xform_blue.rb
243
+ - lib/openxml/drawingml/properties/color_xform_blue_modulation.rb
244
+ - lib/openxml/drawingml/properties/color_xform_blue_offset.rb
245
+ - lib/openxml/drawingml/properties/color_xform_complement.rb
246
+ - lib/openxml/drawingml/properties/color_xform_gamma.rb
247
+ - lib/openxml/drawingml/properties/color_xform_grayscale.rb
248
+ - lib/openxml/drawingml/properties/color_xform_green.rb
249
+ - lib/openxml/drawingml/properties/color_xform_green_modulation.rb
250
+ - lib/openxml/drawingml/properties/color_xform_green_offset.rb
251
+ - lib/openxml/drawingml/properties/color_xform_hue.rb
252
+ - lib/openxml/drawingml/properties/color_xform_hue_modulation.rb
253
+ - lib/openxml/drawingml/properties/color_xform_hue_offset.rb
254
+ - lib/openxml/drawingml/properties/color_xform_inverse.rb
255
+ - lib/openxml/drawingml/properties/color_xform_inverse_gamma.rb
256
+ - lib/openxml/drawingml/properties/color_xform_luminance.rb
257
+ - lib/openxml/drawingml/properties/color_xform_luminance_modulation.rb
258
+ - lib/openxml/drawingml/properties/color_xform_luminance_offset.rb
259
+ - lib/openxml/drawingml/properties/color_xform_red.rb
260
+ - lib/openxml/drawingml/properties/color_xform_red_modulation.rb
261
+ - lib/openxml/drawingml/properties/color_xform_red_offset.rb
262
+ - lib/openxml/drawingml/properties/color_xform_saturation.rb
263
+ - lib/openxml/drawingml/properties/color_xform_saturation_modulation.rb
264
+ - lib/openxml/drawingml/properties/color_xform_saturation_offset.rb
265
+ - lib/openxml/drawingml/properties/color_xform_shade.rb
266
+ - lib/openxml/drawingml/properties/color_xform_tint.rb
267
+ - lib/openxml/drawingml/properties/complex_script_font.rb
268
+ - lib/openxml/drawingml/properties/connection.rb
269
+ - lib/openxml/drawingml/properties/connection_end.rb
270
+ - lib/openxml/drawingml/properties/connection_shape_locks.rb
271
+ - lib/openxml/drawingml/properties/connection_start.rb
272
+ - lib/openxml/drawingml/properties/custom_color.rb
273
+ - lib/openxml/drawingml/properties/custom_color_list.rb
274
+ - lib/openxml/drawingml/properties/custom_dash_style.rb
275
+ - lib/openxml/drawingml/properties/custom_geometry.rb
276
+ - lib/openxml/drawingml/properties/dash_stop.rb
277
+ - lib/openxml/drawingml/properties/default_paragraph_properties.rb
278
+ - lib/openxml/drawingml/properties/default_run_properties.rb
279
+ - lib/openxml/drawingml/properties/default_shape_properties.rb
280
+ - lib/openxml/drawingml/properties/east_asian_font.rb
281
+ - lib/openxml/drawingml/properties/effect_dag.rb
282
+ - lib/openxml/drawingml/properties/effect_list.rb
283
+ - lib/openxml/drawingml/properties/effect_reference.rb
284
+ - lib/openxml/drawingml/properties/effect_style.rb
285
+ - lib/openxml/drawingml/properties/effect_style_list.rb
286
+ - lib/openxml/drawingml/properties/embedded_sound_file.rb
287
+ - lib/openxml/drawingml/properties/extension.rb
288
+ - lib/openxml/drawingml/properties/extension_list.rb
289
+ - lib/openxml/drawingml/properties/extent.rb
290
+ - lib/openxml/drawingml/properties/external_media_file.rb
291
+ - lib/openxml/drawingml/properties/extra_color_scheme.rb
292
+ - lib/openxml/drawingml/properties/extra_color_scheme_list.rb
293
+ - lib/openxml/drawingml/properties/fill_blip.rb
294
+ - lib/openxml/drawingml/properties/fill_gradient.rb
295
+ - lib/openxml/drawingml/properties/fill_group.rb
296
+ - lib/openxml/drawingml/properties/fill_none.rb
297
+ - lib/openxml/drawingml/properties/fill_pattern.rb
298
+ - lib/openxml/drawingml/properties/fill_rectangle.rb
299
+ - lib/openxml/drawingml/properties/fill_reference.rb
300
+ - lib/openxml/drawingml/properties/fill_solid.rb
301
+ - lib/openxml/drawingml/properties/fill_style_list.rb
302
+ - lib/openxml/drawingml/properties/fill_to_rectangle.rb
303
+ - lib/openxml/drawingml/properties/flat_text.rb
304
+ - lib/openxml/drawingml/properties/font_collection_property.rb
305
+ - lib/openxml/drawingml/properties/font_property.rb
306
+ - lib/openxml/drawingml/properties/font_reference.rb
307
+ - lib/openxml/drawingml/properties/font_scheme.rb
308
+ - lib/openxml/drawingml/properties/format_scheme.rb
309
+ - lib/openxml/drawingml/properties/geometry_guide.rb
310
+ - lib/openxml/drawingml/properties/geometry_guide_list.rb
311
+ - lib/openxml/drawingml/properties/gradient_line.rb
312
+ - lib/openxml/drawingml/properties/gradient_path.rb
313
+ - lib/openxml/drawingml/properties/gradient_stop.rb
314
+ - lib/openxml/drawingml/properties/gradient_stop_list.rb
315
+ - lib/openxml/drawingml/properties/graphic.rb
316
+ - lib/openxml/drawingml/properties/graphic_data.rb
317
+ - lib/openxml/drawingml/properties/graphic_frame_locks.rb
318
+ - lib/openxml/drawingml/properties/group_shape_locks.rb
319
+ - lib/openxml/drawingml/properties/group_transform.rb
320
+ - lib/openxml/drawingml/properties/head_end.rb
321
+ - lib/openxml/drawingml/properties/highlight.rb
322
+ - lib/openxml/drawingml/properties/hyperlink_click.rb
323
+ - lib/openxml/drawingml/properties/hyperlink_hover.rb
324
+ - lib/openxml/drawingml/properties/hyperlink_mouse_over.rb
325
+ - lib/openxml/drawingml/properties/hyperlink_property.rb
326
+ - lib/openxml/drawingml/properties/integer_property.rb
327
+ - lib/openxml/drawingml/properties/latin_font.rb
328
+ - lib/openxml/drawingml/properties/level1_paragraph_properties.rb
329
+ - lib/openxml/drawingml/properties/level2_paragraph_properties.rb
330
+ - lib/openxml/drawingml/properties/level3_paragraph_properties.rb
331
+ - lib/openxml/drawingml/properties/level4_paragraph_properties.rb
332
+ - lib/openxml/drawingml/properties/level5_paragraph_properties.rb
333
+ - lib/openxml/drawingml/properties/level6_paragraph_properties.rb
334
+ - lib/openxml/drawingml/properties/level7_paragraph_properties.rb
335
+ - lib/openxml/drawingml/properties/level8_paragraph_properties.rb
336
+ - lib/openxml/drawingml/properties/level9_paragraph_properties.rb
337
+ - lib/openxml/drawingml/properties/line_default.rb
338
+ - lib/openxml/drawingml/properties/line_end_properties.rb
339
+ - lib/openxml/drawingml/properties/line_join_bevel.rb
340
+ - lib/openxml/drawingml/properties/line_join_miter.rb
341
+ - lib/openxml/drawingml/properties/line_join_round.rb
342
+ - lib/openxml/drawingml/properties/line_property.rb
343
+ - lib/openxml/drawingml/properties/line_spacing.rb
344
+ - lib/openxml/drawingml/properties/line_style_list.rb
345
+ - lib/openxml/drawingml/properties/list_style.rb
346
+ - lib/openxml/drawingml/properties/major_font.rb
347
+ - lib/openxml/drawingml/properties/minor_font.rb
348
+ - lib/openxml/drawingml/properties/object_defaults.rb
349
+ - lib/openxml/drawingml/properties/offset.rb
350
+ - lib/openxml/drawingml/properties/outline.rb
351
+ - lib/openxml/drawingml/properties/outline_reference.rb
352
+ - lib/openxml/drawingml/properties/paragraph_properties.rb
353
+ - lib/openxml/drawingml/properties/path.rb
354
+ - lib/openxml/drawingml/properties/path_list.rb
355
+ - lib/openxml/drawingml/properties/percentage_property.rb
356
+ - lib/openxml/drawingml/properties/picture_locks.rb
357
+ - lib/openxml/drawingml/properties/positive_integer_property.rb
358
+ - lib/openxml/drawingml/properties/positive_percentage_property.rb
359
+ - lib/openxml/drawingml/properties/preset_dash_style.rb
360
+ - lib/openxml/drawingml/properties/preset_geometry.rb
361
+ - lib/openxml/drawingml/properties/preset_text_warp.rb
362
+ - lib/openxml/drawingml/properties/quick_time_file.rb
363
+ - lib/openxml/drawingml/properties/relative_rectangle_property.rb
364
+ - lib/openxml/drawingml/properties/right_to_left.rb
365
+ - lib/openxml/drawingml/properties/run_properties.rb
366
+ - lib/openxml/drawingml/properties/scene_3d.rb
367
+ - lib/openxml/drawingml/properties/shape_adjustment_list.rb
368
+ - lib/openxml/drawingml/properties/shape_default.rb
369
+ - lib/openxml/drawingml/properties/shape_locks.rb
370
+ - lib/openxml/drawingml/properties/shape_properties.rb
371
+ - lib/openxml/drawingml/properties/shape_style.rb
372
+ - lib/openxml/drawingml/properties/simple_boolean_property.rb
373
+ - lib/openxml/drawingml/properties/simple_property_container_property.rb
374
+ - lib/openxml/drawingml/properties/source_rectangle.rb
375
+ - lib/openxml/drawingml/properties/space_after.rb
376
+ - lib/openxml/drawingml/properties/space_before.rb
377
+ - lib/openxml/drawingml/properties/spacing_percent.rb
378
+ - lib/openxml/drawingml/properties/spacing_points.rb
379
+ - lib/openxml/drawingml/properties/stretch.rb
380
+ - lib/openxml/drawingml/properties/style_matrix_reference_property.rb
381
+ - lib/openxml/drawingml/properties/supplemental_font.rb
382
+ - lib/openxml/drawingml/properties/symbol_font.rb
383
+ - lib/openxml/drawingml/properties/tab_list.rb
384
+ - lib/openxml/drawingml/properties/tab_stop.rb
385
+ - lib/openxml/drawingml/properties/tail_end.rb
386
+ - lib/openxml/drawingml/properties/text_body.rb
387
+ - lib/openxml/drawingml/properties/text_default.rb
388
+ - lib/openxml/drawingml/properties/theme_elements.rb
389
+ - lib/openxml/drawingml/properties/tile.rb
390
+ - lib/openxml/drawingml/properties/tile_rectangle.rb
391
+ - lib/openxml/drawingml/properties/transform.rb
392
+ - lib/openxml/drawingml/properties/underline.rb
393
+ - lib/openxml/drawingml/properties/underline_fill.rb
394
+ - lib/openxml/drawingml/properties/underline_fill_text.rb
395
+ - lib/openxml/drawingml/properties/underline_text.rb
396
+ - lib/openxml/drawingml/properties/value_property.rb
397
+ - lib/openxml/drawingml/properties/video_file.rb
398
+ - lib/openxml/drawingml/properties/wav_audio_file.rb
182
399
  - lib/openxml/drawingml/version.rb
183
400
  - openxml-drawingml.gemspec
184
401
  homepage: https://github.com/openxml/openxml-drawingml