openxml-docx 0.10.6 → 0.11.0.rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/Gemfile +7 -1
  4. data/Gemfile.lock +33 -30
  5. data/README.md +34 -8
  6. data/bin/console +14 -0
  7. data/bin/setup +8 -0
  8. data/lib/openxml/docx.rb +5 -2
  9. data/lib/openxml/docx/element.rb +9 -0
  10. data/lib/openxml/docx/elements.rb +2 -2
  11. data/lib/openxml/docx/elements/absolute_position_tab.rb +1 -1
  12. data/lib/openxml/docx/elements/background.rb +3 -2
  13. data/lib/openxml/docx/elements/bidi_embed.rb +3 -1
  14. data/lib/openxml/docx/elements/bidi_override.rb +3 -1
  15. data/lib/openxml/docx/elements/book_fold_printing.rb +1 -1
  16. data/lib/openxml/docx/elements/book_fold_printing_sheets.rb +1 -1
  17. data/lib/openxml/docx/elements/book_fold_reverse_printing.rb +1 -1
  18. data/lib/openxml/docx/elements/break.rb +1 -1
  19. data/lib/openxml/docx/elements/carriage_return.rb +1 -1
  20. data/lib/openxml/docx/elements/compatibility_setting.rb +3 -1
  21. data/lib/openxml/docx/elements/compatibility_settings.rb +3 -1
  22. data/lib/openxml/docx/elements/content_part.rb +1 -1
  23. data/lib/openxml/docx/elements/control.rb +1 -1
  24. data/lib/openxml/docx/elements/dirty.rb +1 -1
  25. data/lib/openxml/docx/elements/drawing.rb +4 -1
  26. data/lib/openxml/docx/elements/embed_bold.rb +1 -1
  27. data/lib/openxml/docx/elements/embed_bold_italic.rb +1 -1
  28. data/lib/openxml/docx/elements/embed_italic.rb +1 -1
  29. data/lib/openxml/docx/elements/embed_regular.rb +1 -1
  30. data/lib/openxml/docx/elements/embed_system_fonts.rb +1 -1
  31. data/lib/openxml/docx/elements/embed_true_type_fonts.rb +1 -1
  32. data/lib/openxml/docx/elements/even_and_odd_headers.rb +1 -1
  33. data/lib/openxml/docx/elements/family.rb +1 -1
  34. data/lib/openxml/docx/elements/font.rb +3 -1
  35. data/lib/openxml/docx/elements/font_alternate_name.rb +1 -1
  36. data/lib/openxml/docx/elements/font_character_set.rb +1 -1
  37. data/lib/openxml/docx/elements/font_panose_one.rb +1 -1
  38. data/lib/openxml/docx/elements/font_pitch.rb +1 -1
  39. data/lib/openxml/docx/elements/font_sig.rb +1 -1
  40. data/lib/openxml/docx/elements/grid_column.rb +1 -1
  41. data/lib/openxml/docx/elements/group_shape.rb +3 -1
  42. data/lib/openxml/docx/elements/last_rendered_page_break.rb +1 -1
  43. data/lib/openxml/docx/elements/long_day.rb +1 -1
  44. data/lib/openxml/docx/elements/long_month.rb +1 -1
  45. data/lib/openxml/docx/elements/long_year.rb +1 -1
  46. data/lib/openxml/docx/elements/markup_compatibility_alternate_content.rb +4 -1
  47. data/lib/openxml/docx/elements/markup_compatibility_choice.rb +3 -1
  48. data/lib/openxml/docx/elements/markup_compatibility_fallback.rb +4 -1
  49. data/lib/openxml/docx/elements/nonbreaking_hyphen.rb +1 -1
  50. data/lib/openxml/docx/elements/optional_hyphen.rb +1 -1
  51. data/lib/openxml/docx/elements/page_number.rb +1 -1
  52. data/lib/openxml/docx/elements/paragraph.rb +3 -1
  53. data/lib/openxml/docx/elements/ruby.rb +2 -1
  54. data/lib/openxml/docx/elements/run.rb +3 -1
  55. data/lib/openxml/docx/elements/save_subset_fonts.rb +1 -1
  56. data/lib/openxml/docx/elements/section_properties.rb +4 -1
  57. data/lib/openxml/docx/elements/short_day.rb +1 -1
  58. data/lib/openxml/docx/elements/short_month.rb +1 -1
  59. data/lib/openxml/docx/elements/short_year.rb +1 -1
  60. data/lib/openxml/docx/elements/symbol.rb +1 -1
  61. data/lib/openxml/docx/elements/tab.rb +1 -1
  62. data/lib/openxml/docx/elements/table.rb +3 -1
  63. data/lib/openxml/docx/elements/table_cell.rb +3 -1
  64. data/lib/openxml/docx/elements/table_grid.rb +3 -1
  65. data/lib/openxml/docx/elements/table_row.rb +3 -1
  66. data/lib/openxml/docx/elements/text.rb +1 -1
  67. data/lib/openxml/docx/elements/textbox_content.rb +4 -1
  68. data/lib/openxml/docx/elements/title_page.rb +1 -1
  69. data/lib/openxml/docx/elements/vml_container.rb +3 -1
  70. data/lib/openxml/docx/elements/word_processing_drawing_anchor.rb +3 -1
  71. data/lib/openxml/docx/elements/word_processing_drawing_effect_extent.rb +1 -1
  72. data/lib/openxml/docx/elements/word_processing_drawing_extent.rb +1 -1
  73. data/lib/openxml/docx/elements/word_processing_drawing_inline.rb +3 -1
  74. data/lib/openxml/docx/elements/word_processing_drawing_nv_graphic_frame_properties.rb +3 -1
  75. data/lib/openxml/docx/elements/word_processing_drawing_object_nv_properties.rb +1 -1
  76. data/lib/openxml/docx/elements/word_processing_drawing_position_h.rb +3 -1
  77. data/lib/openxml/docx/elements/word_processing_drawing_position_offset.rb +1 -1
  78. data/lib/openxml/docx/elements/word_processing_drawing_position_v.rb +3 -1
  79. data/lib/openxml/docx/elements/word_processing_drawing_simple_position.rb +1 -1
  80. data/lib/openxml/docx/elements/word_processing_drawing_wrap_coordinate.rb +1 -1
  81. data/lib/openxml/docx/elements/word_processing_drawing_wrap_none.rb +1 -1
  82. data/lib/openxml/docx/elements/word_processing_drawing_wrap_polygon.rb +3 -1
  83. data/lib/openxml/docx/elements/word_processing_drawing_wrap_square.rb +1 -1
  84. data/lib/openxml/docx/elements/word_processing_drawing_wrap_through.rb +3 -1
  85. data/lib/openxml/docx/elements/word_processing_drawing_wrap_tight.rb +3 -1
  86. data/lib/openxml/docx/elements/word_processing_drawing_wrap_top_and_bottom.rb +1 -1
  87. data/lib/openxml/docx/elements/word_processing_groups_group_shape_properties.rb +3 -1
  88. data/lib/openxml/docx/elements/word_processing_groups_nv_shape_drawing_properties.rb +3 -1
  89. data/lib/openxml/docx/elements/word_processing_shapes_body_properties.rb +3 -1
  90. data/lib/openxml/docx/elements/word_processing_shapes_nv_drawing_properties.rb +3 -1
  91. data/lib/openxml/docx/elements/word_processing_shapes_shape.rb +4 -1
  92. data/lib/openxml/docx/elements/word_processing_shapes_shape_properties.rb +3 -1
  93. data/lib/openxml/docx/elements/word_processing_shapes_textual_contents.rb +3 -1
  94. data/lib/openxml/docx/elements/wordprocessing_shape_group.rb +3 -1
  95. data/lib/openxml/docx/{property_builder.rb → has_properties.rb} +13 -2
  96. data/lib/openxml/docx/properties/border.rb +2 -2
  97. data/lib/openxml/docx/properties/color.rb +1 -1
  98. data/lib/openxml/docx/properties/complex_property.rb +3 -1
  99. data/lib/openxml/docx/properties/container_property.rb +3 -1
  100. data/lib/openxml/docx/properties/shading.rb +2 -2
  101. data/lib/openxml/docx/properties/table_border.rb +2 -2
  102. data/lib/openxml/docx/properties/table_cell_border.rb +2 -2
  103. data/lib/openxml/docx/properties/underline.rb +1 -1
  104. data/lib/openxml/docx/section.rb +1 -1
  105. data/lib/openxml/docx/style.rb +3 -2
  106. data/lib/openxml/docx/version.rb +1 -1
  107. data/lib/openxml/vml.rb +1 -2
  108. data/lib/openxml/vml/elements.rb +2 -2
  109. data/lib/openxml/vml/elements/group.rb +3 -1
  110. data/lib/openxml/vml/elements/rectangle.rb +3 -1
  111. data/lib/openxml/vml/elements/rounded_rectangle.rb +3 -1
  112. data/openxml-docx.gemspec +29 -22
  113. metadata +47 -347
  114. data/lib/openxml/docx/attribute_builder.rb +0 -327
  115. data/lib/openxml/docx/elements/container.rb +0 -37
  116. data/lib/openxml/docx/elements/element.rb +0 -65
  117. data/lib/openxml/drawingml.rb +0 -17
  118. data/lib/openxml/drawingml/elements.rb +0 -13
  119. data/lib/openxml/drawingml/elements/adjust_values_list.rb +0 -11
  120. data/lib/openxml/drawingml/elements/blip.rb +0 -18
  121. data/lib/openxml/drawingml/elements/blip_fill.rb +0 -14
  122. data/lib/openxml/drawingml/elements/children_extents.rb +0 -14
  123. data/lib/openxml/drawingml/elements/children_offset.rb +0 -14
  124. data/lib/openxml/drawingml/elements/extension.rb +0 -13
  125. data/lib/openxml/drawingml/elements/extension_list.rb +0 -11
  126. data/lib/openxml/drawingml/elements/extents.rb +0 -14
  127. data/lib/openxml/drawingml/elements/fill_rectangle.rb +0 -16
  128. data/lib/openxml/drawingml/elements/graphic.rb +0 -10
  129. data/lib/openxml/drawingml/elements/graphic_data.rb +0 -12
  130. data/lib/openxml/drawingml/elements/graphic_frame_locks.rb +0 -17
  131. data/lib/openxml/drawingml/elements/head_end.rb +0 -28
  132. data/lib/openxml/drawingml/elements/no_autofit.rb +0 -10
  133. data/lib/openxml/drawingml/elements/no_fill.rb +0 -10
  134. data/lib/openxml/drawingml/elements/non_visual_drawing_properties.rb +0 -17
  135. data/lib/openxml/drawingml/elements/non_visual_picture_drawing_properties.rb +0 -12
  136. data/lib/openxml/drawingml/elements/non_visual_picture_properties.rb +0 -10
  137. data/lib/openxml/drawingml/elements/non_visual_shape_drawing_properties.rb +0 -12
  138. data/lib/openxml/drawingml/elements/offset.rb +0 -14
  139. data/lib/openxml/drawingml/elements/outline.rb +0 -36
  140. data/lib/openxml/drawingml/elements/picture.rb +0 -10
  141. data/lib/openxml/drawingml/elements/picture_locks.rb +0 -23
  142. data/lib/openxml/drawingml/elements/picture_shape_properties.rb +0 -13
  143. data/lib/openxml/drawingml/elements/preset_geometry.rb +0 -210
  144. data/lib/openxml/drawingml/elements/preset_text_warp.rb +0 -25
  145. data/lib/openxml/drawingml/elements/round.rb +0 -10
  146. data/lib/openxml/drawingml/elements/shape_guide.rb +0 -40
  147. data/lib/openxml/drawingml/elements/solid_fill.rb +0 -10
  148. data/lib/openxml/drawingml/elements/source_rectangle.rb +0 -16
  149. data/lib/openxml/drawingml/elements/srgb_color.rb +0 -14
  150. data/lib/openxml/drawingml/elements/stretch.rb +0 -10
  151. data/lib/openxml/drawingml/elements/tail_end.rb +0 -28
  152. data/lib/openxml/drawingml/elements/transform_effect.rb +0 -18
  153. data/spec/elements/absolute_position_tab_spec.rb +0 -58
  154. data/spec/elements/background_spec.rb +0 -52
  155. data/spec/elements/bidi_embed_spec.rb +0 -35
  156. data/spec/elements/bidi_override_spec.rb +0 -35
  157. data/spec/elements/book_fold_printing_sheets_spec.rb +0 -27
  158. data/spec/elements/book_fold_printing_spec.rb +0 -19
  159. data/spec/elements/book_fold_reverse_printing_spec.rb +0 -19
  160. data/spec/elements/break_spec.rb +0 -34
  161. data/spec/elements/carriage_return_spec.rb +0 -12
  162. data/spec/elements/compatibility_setting_spec.rb +0 -41
  163. data/spec/elements/compatibility_settings_spec.rb +0 -8
  164. data/spec/elements/content_part_spec.rb +0 -18
  165. data/spec/elements/control_spec.rb +0 -41
  166. data/spec/elements/deleted_text_spec.rb +0 -24
  167. data/spec/elements/dirty_spec.rb +0 -12
  168. data/spec/elements/drawing_spec.rb +0 -11
  169. data/spec/elements/drawingml/adjust_values_list_spec.rb +0 -8
  170. data/spec/elements/drawingml/blip_fill_spec.rb +0 -44
  171. data/spec/elements/drawingml/blip_spec.rb +0 -47
  172. data/spec/elements/drawingml/extension_list_spec.rb +0 -8
  173. data/spec/elements/drawingml/extension_spec.rb +0 -19
  174. data/spec/elements/drawingml/extents_spec.rb +0 -33
  175. data/spec/elements/drawingml/fill_rectangle_spec.rb +0 -76
  176. data/spec/elements/drawingml/graphic_data_spec.rb +0 -19
  177. data/spec/elements/drawingml/graphic_frame_locks_spec.rb +0 -107
  178. data/spec/elements/drawingml/graphic_spec.rb +0 -8
  179. data/spec/elements/drawingml/head_end_spec.rb +0 -48
  180. data/spec/elements/drawingml/no_autofit_spec.rb +0 -8
  181. data/spec/elements/drawingml/no_fill_spec.rb +0 -8
  182. data/spec/elements/drawingml/non_visual_drawing_properties_spec.rb +0 -68
  183. data/spec/elements/drawingml/non_visual_picture_drawing_properties_spec.rb +0 -23
  184. data/spec/elements/drawingml/non_visual_picture_properties_spec.rb +0 -8
  185. data/spec/elements/drawingml/non_visual_shape_drawing_properties_spec.rb +0 -24
  186. data/spec/elements/drawingml/offset_spec.rb +0 -42
  187. data/spec/elements/drawingml/outline_spec.rb +0 -64
  188. data/spec/elements/drawingml/picture_locks_spec.rb +0 -122
  189. data/spec/elements/drawingml/picture_shape_properties_spec.rb +0 -21
  190. data/spec/elements/drawingml/picture_spec.rb +0 -8
  191. data/spec/elements/drawingml/preset_geometry_spec.rb +0 -19
  192. data/spec/elements/drawingml/preset_text_warp_spec.rb +0 -36
  193. data/spec/elements/drawingml/round_spec.rb +0 -8
  194. data/spec/elements/drawingml/shape_guide_spec.rb +0 -53
  195. data/spec/elements/drawingml/solid_fill_spec.rb +0 -8
  196. data/spec/elements/drawingml/source_rectangle_spec.rb +0 -76
  197. data/spec/elements/drawingml/srgb_color_spec.rb +0 -19
  198. data/spec/elements/drawingml/stretch_spec.rb +0 -8
  199. data/spec/elements/drawingml/tail_end_spec.rb +0 -47
  200. data/spec/elements/drawingml/transform_effect_spec.rb +0 -102
  201. data/spec/elements/embed_system_fonts_spec.rb +0 -19
  202. data/spec/elements/embed_true_type_fonts_spec.rb +0 -19
  203. data/spec/elements/even_and_odd_headers_spec.rb +0 -23
  204. data/spec/elements/font_alternate_name_spec.rb +0 -19
  205. data/spec/elements/font_character_set_spec.rb +0 -19
  206. data/spec/elements/font_panose_one_spec.rb +0 -19
  207. data/spec/elements/font_pitch_spec.rb +0 -21
  208. data/spec/elements/font_sig_spec.rb +0 -74
  209. data/spec/elements/grid_column_spec.rb +0 -15
  210. data/spec/elements/group_shape_spec.rb +0 -11
  211. data/spec/elements/last_rendered_page_break_spec.rb +0 -12
  212. data/spec/elements/long_day_spec.rb +0 -12
  213. data/spec/elements/long_month_spec.rb +0 -12
  214. data/spec/elements/long_year_spec.rb +0 -12
  215. data/spec/elements/markup_compatibility_alternate_content_spec.rb +0 -11
  216. data/spec/elements/markup_compatibility_choice_spec.rb +0 -22
  217. data/spec/elements/markup_compatibility_fallback_spec.rb +0 -11
  218. data/spec/elements/nonbreaking_hyphen_spec.rb +0 -12
  219. data/spec/elements/optional_hyphen_spec.rb +0 -12
  220. data/spec/elements/page_number_spec.rb +0 -12
  221. data/spec/elements/paragraph_spec.rb +0 -60
  222. data/spec/elements/ruby_spec.rb +0 -66
  223. data/spec/elements/run_spec.rb +0 -15
  224. data/spec/elements/save_subset_fonts_spec.rb +0 -19
  225. data/spec/elements/section_properties_spec.rb +0 -12
  226. data/spec/elements/short_day_spec.rb +0 -12
  227. data/spec/elements/short_month_spec.rb +0 -12
  228. data/spec/elements/short_year_spec.rb +0 -12
  229. data/spec/elements/symbol_spec.rb +0 -31
  230. data/spec/elements/tab_spec.rb +0 -12
  231. data/spec/elements/table_cell_spec.rb +0 -15
  232. data/spec/elements/table_grid_spec.rb +0 -17
  233. data/spec/elements/table_row_spec.rb +0 -18
  234. data/spec/elements/table_spec.rb +0 -21
  235. data/spec/elements/text_spec.rb +0 -24
  236. data/spec/elements/textbox_content_spec.rb +0 -8
  237. data/spec/elements/title_page_spec.rb +0 -23
  238. data/spec/elements/vml/group_spec.rb +0 -534
  239. data/spec/elements/vml/rectangle_spec.rb +0 -729
  240. data/spec/elements/vml/rounded_rectangle_spec.rb +0 -784
  241. data/spec/elements/vml_container_spec.rb +0 -11
  242. data/spec/elements/word_processing_drawing_anchor_spec.rb +0 -122
  243. data/spec/elements/word_processing_drawing_effect_extent_spec.rb +0 -77
  244. data/spec/elements/word_processing_drawing_extent_spec.rb +0 -34
  245. data/spec/elements/word_processing_drawing_nv_graphic_frame_properties_spec.rb +0 -11
  246. data/spec/elements/word_processing_drawing_object_nv_properties_spec.rb +0 -67
  247. data/spec/elements/word_processing_drawing_position_h_spec.rb +0 -22
  248. data/spec/elements/word_processing_drawing_position_v_spec.rb +0 -22
  249. data/spec/elements/word_processing_drawing_simple_position_spec.rb +0 -44
  250. data/spec/elements/word_processing_drawing_wrap_coordinate_spec.rb +0 -40
  251. data/spec/elements/word_processing_drawing_wrap_none_spec.rb +0 -12
  252. data/spec/elements/word_processing_drawing_wrap_polygon_spec.rb +0 -23
  253. data/spec/elements/word_processing_drawing_wrap_square_spec.rb +0 -65
  254. data/spec/elements/word_processing_drawing_wrap_through_spec.rb +0 -43
  255. data/spec/elements/word_processing_drawing_wrap_tight_spec.rb +0 -43
  256. data/spec/elements/word_processing_drawing_wrap_top_and_bottom_spec.rb +0 -30
  257. data/spec/elements/word_processing_groups_group_shape_properties_spec.rb +0 -21
  258. data/spec/elements/word_processing_groups_nv_shape_drawing_properties_spec.rb +0 -8
  259. data/spec/elements/word_processing_shapes_body_properties_spec.rb +0 -232
  260. data/spec/elements/word_processing_shapes_nv_drawing_properties_spec.rb +0 -64
  261. data/spec/elements/word_processing_shapes_shape_properties_spec.rb +0 -22
  262. data/spec/elements/word_processing_shapes_shape_spec.rb +0 -23
  263. data/spec/elements/word_processing_shapes_textual_content_spec.rb +0 -23
  264. data/spec/elements/wordprocessing_shape_group_spec.rb +0 -12
  265. data/spec/package_spec.rb +0 -36
  266. data/spec/parts/document_spec.rb +0 -95
  267. data/spec/parts/footer_spec.rb +0 -33
  268. data/spec/parts/header_spec.rb +0 -33
  269. data/spec/parts/settings_spec.rb +0 -19
  270. data/spec/parts/styles_spec.rb +0 -27
  271. data/spec/properties/alignment_spec.rb +0 -58
  272. data/spec/properties/auto_adjust_right_indent_spec.rb +0 -23
  273. data/spec/properties/auto_space_de_spec.rb +0 -23
  274. data/spec/properties/auto_space_dn_spec.rb +0 -23
  275. data/spec/properties/bidi_spec.rb +0 -22
  276. data/spec/properties/bold_spec.rb +0 -22
  277. data/spec/properties/border_spec.rb +0 -82
  278. data/spec/properties/cant_split_spec.rb +0 -22
  279. data/spec/properties/caps_spec.rb +0 -22
  280. data/spec/properties/character_spacing_spec.rb +0 -26
  281. data/spec/properties/color_spec.rb +0 -29
  282. data/spec/properties/column_spec.rb +0 -30
  283. data/spec/properties/columns_spec.rb +0 -164
  284. data/spec/properties/complex_bold_spec.rb +0 -22
  285. data/spec/properties/complex_font_size_spec.rb +0 -24
  286. data/spec/properties/complex_italics_spec.rb +0 -22
  287. data/spec/properties/complex_script_formatting_spec.rb +0 -22
  288. data/spec/properties/compress_punctuation_spec.rb +0 -32
  289. data/spec/properties/conditional_formatting_spec.rb +0 -64
  290. data/spec/properties/contextual_spacing_spec.rb +0 -22
  291. data/spec/properties/div_id_spec.rb +0 -17
  292. data/spec/properties/document_grid_spec.rb +0 -37
  293. data/spec/properties/double_strikethrough_spec.rb +0 -23
  294. data/spec/properties/east_asian_layout_spec.rb +0 -55
  295. data/spec/properties/effect_spec.rb +0 -43
  296. data/spec/properties/emboss_spec.rb +0 -22
  297. data/spec/properties/emphasis_spec.rb +0 -37
  298. data/spec/properties/even_and_odd_headers_spec.rb +0 -22
  299. data/spec/properties/expansion_spec.rb +0 -34
  300. data/spec/properties/font_size_spec.rb +0 -24
  301. data/spec/properties/font_spec.rb +0 -70
  302. data/spec/properties/footer_reference_spec.rb +0 -32
  303. data/spec/properties/form_protection_spec.rb +0 -22
  304. data/spec/properties/frame_spec.rb +0 -101
  305. data/spec/properties/grid_after_spec.rb +0 -26
  306. data/spec/properties/grid_before_spec.rb +0 -26
  307. data/spec/properties/grid_span_spec.rb +0 -24
  308. data/spec/properties/header_reference_spec.rb +0 -32
  309. data/spec/properties/header_spec.rb +0 -17
  310. data/spec/properties/headers_spec.rb +0 -39
  311. data/spec/properties/hidden_spec.rb +0 -22
  312. data/spec/properties/hidden_style_spec.rb +0 -22
  313. data/spec/properties/hidden_text_spec.rb +0 -22
  314. data/spec/properties/hide_mark_spec.rb +0 -22
  315. data/spec/properties/highlight_spec.rb +0 -97
  316. data/spec/properties/imprint_spec.rb +0 -22
  317. data/spec/properties/indentation_spec.rb +0 -100
  318. data/spec/properties/italics_spec.rb +0 -22
  319. data/spec/properties/keep_lines_spec.rb +0 -22
  320. data/spec/properties/keep_next_spec.rb +0 -22
  321. data/spec/properties/kerning_spec.rb +0 -24
  322. data/spec/properties/kinsoku_spec.rb +0 -32
  323. data/spec/properties/language_spec.rb +0 -20
  324. data/spec/properties/latent_styles_exception_spec.rb +0 -68
  325. data/spec/properties/latent_styles_spec.rb +0 -323
  326. data/spec/properties/line_numbering_spec.rb +0 -43
  327. data/spec/properties/linked_style_spec.rb +0 -17
  328. data/spec/properties/manual_width_spec.rb +0 -30
  329. data/spec/properties/math_spec.rb +0 -22
  330. data/spec/properties/mirror_indent_spec.rb +0 -22
  331. data/spec/properties/next_style_spec.rb +0 -17
  332. data/spec/properties/no_proof_spec.rb +0 -23
  333. data/spec/properties/no_wrap_spec.rb +0 -22
  334. data/spec/properties/numbering_spec.rb +0 -37
  335. data/spec/properties/outline_level_spec.rb +0 -20
  336. data/spec/properties/outline_spec.rb +0 -23
  337. data/spec/properties/overflow_punctuation_spec.rb +0 -23
  338. data/spec/properties/page_borders_spec.rb +0 -129
  339. data/spec/properties/page_break_before_spec.rb +0 -22
  340. data/spec/properties/page_margins_spec.rb +0 -64
  341. data/spec/properties/page_numbering_spec.rb +0 -54
  342. data/spec/properties/page_size_spec.rb +0 -43
  343. data/spec/properties/paper_source_spec.rb +0 -30
  344. data/spec/properties/paragraph_borders_spec.rb +0 -66
  345. data/spec/properties/paragraph_style_spec.rb +0 -12
  346. data/spec/properties/parent_style_spec.rb +0 -17
  347. data/spec/properties/personal_compose_spec.rb +0 -23
  348. data/spec/properties/personal_reply_spec.rb +0 -23
  349. data/spec/properties/personal_spec.rb +0 -23
  350. data/spec/properties/phonetic_guide_alignment_spec.rb +0 -42
  351. data/spec/properties/phonetic_guide_base_font_size_spec.rb +0 -25
  352. data/spec/properties/phonetic_guide_font_size_raise_spec.rb +0 -25
  353. data/spec/properties/phonetic_guide_font_size_spec.rb +0 -25
  354. data/spec/properties/phonetic_guide_language_spec.rb +0 -12
  355. data/spec/properties/position_spec.rb +0 -26
  356. data/spec/properties/primary_style_spec.rb +0 -22
  357. data/spec/properties/right_to_left_spec.rb +0 -22
  358. data/spec/properties/rtl_gutter_spec.rb +0 -23
  359. data/spec/properties/run_style_spec.rb +0 -12
  360. data/spec/properties/section_type_spec.rb +0 -33
  361. data/spec/properties/semi_hidden_spec.rb +0 -22
  362. data/spec/properties/shading_spec.rb +0 -64
  363. data/spec/properties/shadow_property_spec.rb +0 -23
  364. data/spec/properties/small_caps_spec.rb +0 -22
  365. data/spec/properties/snap_to_grid_spec.rb +0 -32
  366. data/spec/properties/spacing_spec.rb +0 -67
  367. data/spec/properties/spec_vanish_spec.rb +0 -22
  368. data/spec/properties/strikethrough_spec.rb +0 -23
  369. data/spec/properties/style_aliases_spec.rb +0 -22
  370. data/spec/properties/style_auto_redefinition_spec.rb +0 -22
  371. data/spec/properties/style_lock_spec.rb +0 -22
  372. data/spec/properties/style_name_spec.rb +0 -17
  373. data/spec/properties/supress_auto_hyphens_spec.rb +0 -22
  374. data/spec/properties/supress_line_numbers_spec.rb +0 -22
  375. data/spec/properties/supress_overlap_spec.rb +0 -22
  376. data/spec/properties/tab_spec.rb +0 -45
  377. data/spec/properties/table_border_spec.rb +0 -119
  378. data/spec/properties/table_borders_spec.rb +0 -41
  379. data/spec/properties/table_caption_spec.rb +0 -17
  380. data/spec/properties/table_cell_border_spec.rb +0 -119
  381. data/spec/properties/table_cell_borders_spec.rb +0 -40
  382. data/spec/properties/table_cell_cell_margin_spec.rb +0 -46
  383. data/spec/properties/table_cell_fit_text_spec.rb +0 -23
  384. data/spec/properties/table_cell_margin_spec.rb +0 -40
  385. data/spec/properties/table_cell_margins_spec.rb +0 -46
  386. data/spec/properties/table_cell_spacing_spec.rb +0 -21
  387. data/spec/properties/table_cell_width_spec.rb +0 -21
  388. data/spec/properties/table_description_spec.rb +0 -17
  389. data/spec/properties/table_header_spec.rb +0 -22
  390. data/spec/properties/table_indent_spec.rb +0 -43
  391. data/spec/properties/table_layout_spec.rb +0 -24
  392. data/spec/properties/table_look_spec.rb +0 -43
  393. data/spec/properties/table_overlap_spec.rb +0 -22
  394. data/spec/properties/table_p_pr_spec.rb +0 -68
  395. data/spec/properties/table_row_height_spec.rb +0 -20
  396. data/spec/properties/table_style_spec.rb +0 -17
  397. data/spec/properties/table_width_spec.rb +0 -21
  398. data/spec/properties/tabs_spec.rb +0 -39
  399. data/spec/properties/text_alignment_spec.rb +0 -33
  400. data/spec/properties/text_direction_spec.rb +0 -47
  401. data/spec/properties/textbox_tight_wrap_spec.rb +0 -33
  402. data/spec/properties/title_page_spec.rb +0 -22
  403. data/spec/properties/ui_priority_spec.rb +0 -22
  404. data/spec/properties/underline_spec.rb +0 -45
  405. data/spec/properties/unhide_when_used_spec.rb +0 -22
  406. data/spec/properties/valign_spec.rb +0 -19
  407. data/spec/properties/vertical_alignment_spec.rb +0 -26
  408. data/spec/properties/vertical_merge_spec.rb +0 -22
  409. data/spec/properties/vertical_text_alignment_spec.rb +0 -28
  410. data/spec/properties/wafter_spec.rb +0 -21
  411. data/spec/properties/wbefore_spec.rb +0 -21
  412. data/spec/properties/web_hidden_spec.rb +0 -22
  413. data/spec/properties/widow_control_spec.rb +0 -33
  414. data/spec/properties/word_wrap_spec.rb +0 -33
  415. data/spec/section_spec.rb +0 -48
  416. data/spec/spec_helper.rb +0 -16
  417. data/spec/style_spec.rb +0 -108
  418. data/spec/support/data/elements/break_element.xml +0 -4
  419. data/spec/support/data/elements/break_with_attributes_element.xml +0 -4
  420. data/spec/support/data/elements/grid_column_element.xml +0 -4
  421. data/spec/support/data/elements/paragraph_element.xml +0 -8
  422. data/spec/support/data/elements/paragraph_with_runs_element.xml +0 -14
  423. data/spec/support/data/elements/paragraph_with_section_properties_element.xml +0 -13
  424. data/spec/support/data/elements/run_element.xml +0 -8
  425. data/spec/support/data/elements/symbol_element.xml +0 -4
  426. data/spec/support/data/elements/table_cell_element.xml +0 -8
  427. data/spec/support/data/elements/table_element.xml +0 -18
  428. data/spec/support/data/elements/table_grid_element.xml +0 -6
  429. data/spec/support/data/elements/table_row_element.xml +0 -13
  430. data/spec/support/data/elements/text_element.xml +0 -4
  431. data/spec/support/data/parts/content_types_part.xml +0 -1
  432. data/spec/support/data/parts/document_with_children_part.xml +0 -2
  433. data/spec/support/data/parts/document_with_multiple_sections_part.xml +0 -24
  434. data/spec/support/data/parts/document_with_one_section_part.xml +0 -16
  435. data/spec/support/data/parts/empty_document_part.xml +0 -1
  436. data/spec/support/data/parts/empty_footer_part.xml +0 -1
  437. data/spec/support/data/parts/empty_header_part.xml +0 -1
  438. data/spec/support/data/parts/footer_with_children_part.xml +0 -1
  439. data/spec/support/data/parts/global_rels_part.xml +0 -1
  440. data/spec/support/data/parts/header_with_children_part.xml +0 -1
  441. data/spec/support/data/parts/rels_part.xml +0 -1
  442. data/spec/support/data/parts/settings_part.xml +0 -1
  443. data/spec/support/data/parts/styles_part.xml +0 -1
  444. data/spec/support/data/parts/styles_with_custom_style_part.xml +0 -20
  445. data/spec/support/data/styles/character_styles.xml +0 -15
  446. data/spec/support/data/styles/paragraph_styles.xml +0 -11
  447. data/spec/support/element_test_macros.rb +0 -242
  448. data/spec/support/part_test_macros.rb +0 -27
  449. data/spec/support/property_test_macros.rb +0 -177
  450. data/spec/support/style_test_macros.rb +0 -33
  451. data/spec/support/value_property_test_macros.rb +0 -69
@@ -1,729 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe OpenXml::Vml::Elements::Rectangle do
4
- include ElementTestMacros
5
-
6
- it_should_use tag: :rect, name: "rectangle"
7
-
8
-
9
- describe "Connector Type Attribute" do
10
- for_attribute(:connector_type, displays_as: :connectortype, with_namespace: :o) do
11
- %i(curved elbow none straight).each do |value|
12
- with_value(value) do
13
- it_should_assign_successfully
14
- it_should_output "<v:rect o:connectortype=\"#{value}\"/>"
15
- end
16
- end
17
-
18
- with_values([:funky, 5, "auto"]) do
19
- it_should_raise_an_exception
20
- end
21
- end
22
- end
23
-
24
- describe "HR Align Attribute" do
25
- for_attribute(:hr_align, displays_as: :hralign, with_namespace: :o) do
26
- %i(center left right).each do |value|
27
- with_value(value) do
28
- it_should_assign_successfully
29
- it_should_output "<v:rect o:hralign=\"#{value}\"/>"
30
- end
31
- end
32
-
33
- with_values([:justified, 4, "overThere"]) do
34
- it_should_raise_an_exception
35
- end
36
- end
37
- end
38
-
39
- describe "Inset Mode Attribute" do
40
- for_attribute(:inset_mode, displays_as: :insetmode, with_namespace: :o) do
41
- with_value(:auto) do
42
- it_should_assign_successfully
43
- it_should_output "<v:rect o:insetmode=\"auto\"/>"
44
- end
45
-
46
- with_value(:custom) do
47
- it_should_assign_successfully
48
- it_should_output "<v:rect o:insetmode=\"custom\"/>"
49
- end
50
-
51
- with_values([:left, "right", 0]) do
52
- it_should_raise_an_exception
53
- end
54
- end
55
- end
56
-
57
- describe "Coordinate-based Attributes" do
58
- good_coord_values = [ "100,100", "-100,-100", "100,-100", "100, 100", "-100, -100", "100, -100" ]
59
- bad_coord_values = [ "100 100", "x:10,y:10", :over_there ]
60
-
61
- for_attribute(:coordinate_origin, displays_as: :coordorigin) do
62
- good_coord_values.each do |good_value|
63
- with_value(good_value) do
64
- it_should_assign_successfully
65
- it_should_output "<v:rect coordorigin=\"#{good_value}\"/>"
66
- end
67
- end
68
-
69
- with_values(bad_coord_values) do
70
- it_should_raise_an_exception
71
- end
72
- end
73
-
74
- for_attribute(:coordinate_size, displays_as: :coordsize) do
75
- good_coord_values.each do |good_value|
76
- with_value(good_value) do
77
- it_should_assign_successfully
78
- it_should_output "<v:rect coordsize=\"#{good_value}\"/>"
79
- end
80
- end
81
-
82
- with_values(bad_coord_values) do
83
- it_should_raise_an_exception
84
- end
85
- end
86
- end
87
-
88
- describe "Color-based Attributes" do
89
- good_color_values = [ "#FFFFFF", :red, "palateEntry [0]", "palateEntry" ]
90
- bad_color_values = [ 54, 0 ]
91
-
92
- for_attribute(:chroma_key, displays_as: :chromakey) do
93
- good_color_values.each do |good_value|
94
- with_value(good_value) do
95
- it_should_assign_successfully
96
- it_should_output "<v:rect chromakey=\"#{good_value}\"/>"
97
- end
98
- end
99
-
100
- with_values(bad_color_values) do
101
- it_should_raise_an_exception
102
- end
103
- end
104
-
105
- for_attribute(:fill_color, displays_as: :fillcolor) do
106
- good_color_values.each do |good_value|
107
- with_value(good_value) do
108
- it_should_assign_successfully
109
- it_should_output "<v:rect fillcolor=\"#{good_value}\"/>"
110
- end
111
- end
112
-
113
- with_values(bad_color_values) do
114
- it_should_raise_an_exception
115
- end
116
- end
117
-
118
- for_attribute(:stroke_color, displays_as: :strokecolor) do
119
- good_color_values.each do |good_value|
120
- with_value(good_value) do
121
- it_should_assign_successfully
122
- it_should_output "<v:rect strokecolor=\"#{good_value}\"/>"
123
- end
124
- end
125
-
126
- with_values(bad_color_values) do
127
- it_should_raise_an_exception
128
- end
129
- end
130
- end
131
-
132
- describe "Diagram Layout-based Attributes" do
133
- good_diagram_layout_values = (0..3)
134
- bad_diagram_layout_values = [ -1, 4, "Five is Right Out" ]
135
-
136
- for_attribute(:diagram_node_layout, displays_as: :dgmlayout, with_namespace: :o) do
137
- good_diagram_layout_values.each do |good_value|
138
- with_value(good_value) do
139
- it_should_assign_successfully
140
- it_should_output "<v:rect o:dgmlayout=\"#{good_value}\"/>"
141
- end
142
- end
143
-
144
- with_values(bad_diagram_layout_values) do
145
- it_should_raise_an_exception
146
- end
147
- end
148
-
149
- for_attribute(:diagram_node_recent_layout, displays_as: :dgmlayoutmru, with_namespace: :o) do
150
- good_diagram_layout_values.each do |good_value|
151
- with_value(good_value) do
152
- it_should_assign_successfully
153
- it_should_output "<v:rect o:dgmlayoutmru=\"#{good_value}\"/>"
154
- end
155
- end
156
-
157
- with_values(bad_diagram_layout_values) do
158
- it_should_raise_an_exception
159
- end
160
- end
161
- end
162
-
163
- describe "Integer-based Attributes" do
164
- good_integer_values = [1, -1, 0]
165
- bad_integer_values = [2.5, :five, "five"]
166
-
167
- for_attribute(:diagram_node_kind, displays_as: :dgmnodekind, with_namespace: :o) do
168
- good_integer_values.each do |good_value|
169
- with_value(good_value) do
170
- it_should_assign_successfully
171
- it_should_output "<v:rect o:dgmnodekind=\"#{good_value}\"/>"
172
- end
173
- end
174
-
175
- with_values(bad_integer_values) do
176
- it_should_raise_an_exception
177
- end
178
- end
179
-
180
- for_attribute(:hr_percent, displays_as: :hrpct, with_namespace: :o) do
181
- good_integer_values.each do |good_value|
182
- with_value(good_value) do
183
- it_should_assign_successfully
184
- it_should_output "<v:rect o:hrpct=\"#{good_value}\"/>"
185
- end
186
- end
187
-
188
- with_values(bad_integer_values) do
189
- it_should_raise_an_exception
190
- end
191
- end
192
-
193
- for_attribute(:regroup_id, displays_as: :regroupid, with_namespace: :o) do
194
- good_integer_values.each do |good_value|
195
- with_value(good_value) do
196
- it_should_assign_successfully
197
- it_should_output "<v:rect o:regroupid=\"#{good_value}\"/>"
198
- end
199
- end
200
-
201
- with_values(bad_integer_values) do
202
- it_should_raise_an_exception
203
- end
204
- end
205
- end
206
-
207
- describe "Black and White Mode-based Attributes" do
208
- good_bw_mode_values = %i(auto black blackTextAndLines color grayOutline grayScale hide highContrast inverseGray lightGrayscale undrawn white)
209
- bad_bw_mode_values = [:paintItBlack, 0, "rainbows"]
210
-
211
- for_attribute(:bw_mode, displays_as: :bwmode, with_namespace: :o) do
212
- good_bw_mode_values.each do |good_value|
213
- with_value(good_value) do
214
- it_should_assign_successfully
215
- it_should_output "<v:rect o:bwmode=\"#{good_value}\"/>"
216
- end
217
- end
218
-
219
- with_values(bad_bw_mode_values) do
220
- it_should_raise_an_exception
221
- end
222
- end
223
-
224
- for_attribute(:bw_normal, displays_as: :bwnormal, with_namespace: :o) do
225
- good_bw_mode_values.each do |good_value|
226
- with_value(good_value) do
227
- it_should_assign_successfully
228
- it_should_output "<v:rect o:bwnormal=\"#{good_value}\"/>"
229
- end
230
- end
231
-
232
- with_values(bad_bw_mode_values) do
233
- it_should_raise_an_exception
234
- end
235
- end
236
-
237
- for_attribute(:bw_pure, displays_as: :bwpure, with_namespace: :o) do
238
- good_bw_mode_values.each do |good_value|
239
- with_value(good_value) do
240
- it_should_assign_successfully
241
- it_should_output "<v:rect o:bwpure=\"#{good_value}\"/>"
242
- end
243
- end
244
-
245
- with_values(bad_bw_mode_values) do
246
- it_should_raise_an_exception
247
- end
248
- end
249
- end
250
-
251
- describe "String-based Attributes" do
252
- bad_string_values = [0, :nope, false]
253
-
254
- for_attribute(:alt) do
255
- with_value("String") do
256
- it_should_assign_successfully
257
- it_should_output "<v:rect alt=\"String\"/>"
258
- end
259
-
260
- with_value("000001f") do
261
- it_should_assign_successfully
262
- it_should_output "<v:rect alt=\"000001f\"/>"
263
- end
264
-
265
-
266
- with_values(bad_string_values) do
267
- it_should_raise_an_exception
268
- end
269
- end
270
-
271
- for_attribute(:css_class, displays_as: :class) do
272
- with_value("String") do
273
- it_should_assign_successfully
274
- it_should_output "<v:rect class=\"String\"/>"
275
- end
276
-
277
- with_values(bad_string_values) do
278
- it_should_raise_an_exception
279
- end
280
- end
281
-
282
- for_attribute(:href) do
283
- with_value("http://something.com") do
284
- it_should_assign_successfully
285
- it_should_output "<v:rect href=\"http://something.com\"/>"
286
- end
287
-
288
- with_values(bad_string_values) do
289
- it_should_raise_an_exception
290
- end
291
- end
292
-
293
- for_attribute(:id) do
294
- with_value("String") do
295
- it_should_assign_successfully
296
- it_should_output "<v:rect id=\"String\"/>"
297
- end
298
-
299
- with_values(bad_string_values) do
300
- it_should_raise_an_exception
301
- end
302
- end
303
-
304
- for_attribute(:opacity) do
305
- with_value("String") do
306
- it_should_assign_successfully
307
- it_should_output "<v:rect opacity=\"String\"/>"
308
- end
309
-
310
- with_value("0.5") do
311
- it_should_assign_successfully
312
- it_should_output "<v:rect opacity=\"0.5\"/>"
313
- end
314
-
315
- with_values(bad_string_values) do
316
- it_should_raise_an_exception
317
- end
318
- end
319
-
320
- for_attribute(:stroke_weight, displays_as: :strokeweight) do
321
- with_value("String") do
322
- it_should_assign_successfully
323
- it_should_output "<v:rect strokeweight=\"String\"/>"
324
- end
325
-
326
- with_value("000001f") do
327
- it_should_assign_successfully
328
- it_should_output "<v:rect strokeweight=\"000001f\"/>"
329
- end
330
-
331
- with_values(bad_string_values) do
332
- it_should_raise_an_exception
333
- end
334
- end
335
-
336
- for_attribute(:style) do
337
- with_value("String") do
338
- it_should_assign_successfully
339
- it_should_output "<v:rect style=\"String\"/>"
340
- end
341
-
342
- with_values(bad_string_values) do
343
- it_should_raise_an_exception
344
- end
345
- end
346
-
347
- for_attribute(:target) do
348
- with_value("String") do
349
- it_should_assign_successfully
350
- it_should_output "<v:rect target=\"String\"/>"
351
- end
352
-
353
- with_values(bad_string_values) do
354
- it_should_raise_an_exception
355
- end
356
- end
357
-
358
- for_attribute(:title) do
359
- with_value("String") do
360
- it_should_assign_successfully
361
- it_should_output "<v:rect title=\"String\"/>"
362
- end
363
-
364
- with_values(bad_string_values) do
365
- it_should_raise_an_exception
366
- end
367
- end
368
-
369
- for_attribute(:wrap_coordinates, displays_as: :wrapcoords) do
370
- with_value("String") do
371
- it_should_assign_successfully
372
- it_should_output "<v:rect wrapcoords=\"String\"/>"
373
- end
374
-
375
- with_value("0,0,100,100") do
376
- it_should_assign_successfully
377
- it_should_output "<v:rect wrapcoords=\"0,0,100,100\"/>"
378
- end
379
-
380
- with_values(bad_string_values) do
381
- it_should_raise_an_exception
382
- end
383
- end
384
-
385
- for_attribute(:border_bottom_color, displays_as: :borderbottomcolor, with_namespace: :o) do
386
- with_value("String") do
387
- it_should_assign_successfully
388
- it_should_output "<v:rect o:borderbottomcolor=\"String\"/>"
389
- end
390
-
391
- with_values(bad_string_values) do
392
- it_should_raise_an_exception
393
- end
394
- end
395
-
396
- for_attribute(:border_left_color, displays_as: :borderleftcolor, with_namespace: :o) do
397
- with_value("String") do
398
- it_should_assign_successfully
399
- it_should_output "<v:rect o:borderleftcolor=\"String\"/>"
400
- end
401
-
402
- with_values(bad_string_values) do
403
- it_should_raise_an_exception
404
- end
405
- end
406
-
407
- for_attribute(:border_right_color, displays_as: :borderrightcolor, with_namespace: :o) do
408
- with_value("String") do
409
- it_should_assign_successfully
410
- it_should_output "<v:rect o:borderrightcolor=\"String\"/>"
411
- end
412
-
413
- with_values(bad_string_values) do
414
- it_should_raise_an_exception
415
- end
416
- end
417
-
418
- for_attribute(:border_top_color, displays_as: :bordertopcolor, with_namespace: :o) do
419
- with_value("String") do
420
- it_should_assign_successfully
421
- it_should_output "<v:rect o:bordertopcolor=\"String\"/>"
422
- end
423
-
424
- with_values(bad_string_values) do
425
- it_should_raise_an_exception
426
- end
427
- end
428
-
429
- for_attribute(:optional_string, displays_as: :spid, with_namespace: :o) do
430
- with_value("String") do
431
- it_should_assign_successfully
432
- it_should_output "<v:rect o:spid=\"String\"/>"
433
- end
434
-
435
- with_values(bad_string_values) do
436
- it_should_raise_an_exception
437
- end
438
- end
439
-
440
- for_attribute(:optional_number, displays_as: :spt, with_namespace: :o) do
441
- with_value("NumberAsString") do
442
- it_should_assign_successfully
443
- it_should_output "<v:rect o:spt=\"NumberAsString\"/>"
444
- end
445
-
446
- with_values(bad_string_values) do
447
- it_should_raise_an_exception
448
- end
449
- end
450
- end
451
-
452
- describe "(Explicitly) True/False-based Attributes" do
453
- good_tf_values = [true, false]
454
- bad_tf_values = ["yes", "no", "on", "off", 5]
455
-
456
- for_attribute(:filled) do
457
- good_tf_values.each do |good_value|
458
- with_value(good_value) do
459
- it_should_assign_successfully
460
- it_should_output "<v:rect filled=\"#{good_value}\"/>"
461
- end
462
- end
463
-
464
- with_values(bad_tf_values) do
465
- it_should_raise_an_exception
466
- end
467
- end
468
-
469
- for_attribute(:inset_pen, displays_as: :insetpen) do
470
- good_tf_values.each do |good_value|
471
- with_value(good_value) do
472
- it_should_assign_successfully
473
- it_should_output "<v:rect insetpen=\"#{good_value}\"/>"
474
- end
475
- end
476
-
477
- with_values(bad_tf_values) do
478
- it_should_raise_an_exception
479
- end
480
- end
481
-
482
- for_attribute(:print) do
483
- good_tf_values.each do |good_value|
484
- with_value(good_value) do
485
- it_should_assign_successfully
486
- it_should_output "<v:rect print=\"#{good_value}\"/>"
487
- end
488
- end
489
-
490
- with_values(bad_tf_values) do
491
- it_should_raise_an_exception
492
- end
493
- end
494
-
495
- for_attribute(:stroked) do
496
- good_tf_values.each do |good_value|
497
- with_value(good_value) do
498
- it_should_assign_successfully
499
- it_should_output "<v:rect stroked=\"#{good_value}\"/>"
500
- end
501
- end
502
-
503
- with_values(bad_tf_values) do
504
- it_should_raise_an_exception
505
- end
506
- end
507
-
508
- for_attribute(:allow_in_cell, displays_as: :allowincell, with_namespace: :o) do
509
- good_tf_values.each do |good_value|
510
- with_value(good_value) do
511
- it_should_assign_successfully
512
- it_should_output "<v:rect o:allowincell=\"#{good_value}\"/>"
513
- end
514
- end
515
- with_values(bad_tf_values) do
516
- it_should_raise_an_exception
517
- end
518
- end
519
-
520
- for_attribute(:allow_overlap, displays_as: :allowoverlap, with_namespace: :o) do
521
- good_tf_values.each do |good_value|
522
- with_value(good_value) do
523
- it_should_assign_successfully
524
- it_should_output "<v:rect o:allowoverlap=\"#{good_value}\"/>"
525
- end
526
- end
527
-
528
- with_values(bad_tf_values) do
529
- it_should_raise_an_exception
530
- end
531
- end
532
-
533
- for_attribute(:bullet, with_namespace: :o) do
534
- good_tf_values.each do |good_value|
535
- with_value(good_value) do
536
- it_should_assign_successfully
537
- it_should_output "<v:rect o:bullet=\"#{good_value}\"/>"
538
- end
539
- end
540
-
541
- with_values(bad_tf_values) do
542
- it_should_raise_an_exception
543
- end
544
- end
545
-
546
- for_attribute(:button, with_namespace: :o) do
547
- good_tf_values.each do |good_value|
548
- with_value(good_value) do
549
- it_should_assign_successfully
550
- it_should_output "<v:rect o:button=\"#{good_value}\"/>"
551
- end
552
- end
553
-
554
- with_values(bad_tf_values) do
555
- it_should_raise_an_exception
556
- end
557
- end
558
-
559
- for_attribute(:clip, with_namespace: :o) do
560
- good_tf_values.each do |good_value|
561
- with_value(good_value) do
562
- it_should_assign_successfully
563
- it_should_output "<v:rect o:clip=\"#{good_value}\"/>"
564
- end
565
- end
566
-
567
- with_values(bad_tf_values) do
568
- it_should_raise_an_exception
569
- end
570
- end
571
-
572
- for_attribute(:clip_to_wrap, displays_as: :cliptowrap, with_namespace: :o) do
573
- good_tf_values.each do |good_value|
574
- with_value(good_value) do
575
- it_should_assign_successfully
576
- it_should_output "<v:rect o:cliptowrap=\"#{good_value}\"/>"
577
- end
578
- end
579
-
580
- with_values(bad_tf_values) do
581
- it_should_raise_an_exception
582
- end
583
- end
584
-
585
- for_attribute(:double_click_notify, displays_as: :doubleclicknotify, with_namespace: :o) do
586
- good_tf_values.each do |good_value|
587
- with_value(good_value) do
588
- it_should_assign_successfully
589
- it_should_output "<v:rect o:doubleclicknotify=\"#{good_value}\"/>"
590
- end
591
- end
592
-
593
- with_values(bad_tf_values) do
594
- it_should_raise_an_exception
595
- end
596
- end
597
-
598
- for_attribute(:force_dash, displays_as: :forcedash, with_namespace: :o) do
599
- good_tf_values.each do |good_value|
600
- with_value(good_value) do
601
- it_should_assign_successfully
602
- it_should_output "<v:rect o:forcedash=\"#{good_value}\"/>"
603
- end
604
- end
605
-
606
- with_values(bad_tf_values) do
607
- it_should_raise_an_exception
608
- end
609
- end
610
-
611
- for_attribute(:hr, with_namespace: :o) do
612
- good_tf_values.each do |good_value|
613
- with_value(good_value) do
614
- it_should_assign_successfully
615
- it_should_output "<v:rect o:hr=\"#{good_value}\"/>"
616
- end
617
- end
618
-
619
- with_values(bad_tf_values) do
620
- it_should_raise_an_exception
621
- end
622
- end
623
-
624
- for_attribute(:hr_no_shade, displays_as: :hrnoshade, with_namespace: :o) do
625
- good_tf_values.each do |good_value|
626
- with_value(good_value) do
627
- it_should_assign_successfully
628
- it_should_output "<v:rect o:hrnoshade=\"#{good_value}\"/>"
629
- end
630
- end
631
-
632
- with_values(bad_tf_values) do
633
- it_should_raise_an_exception
634
- end
635
- end
636
-
637
- for_attribute(:hr_standard, displays_as: :hrstd, with_namespace: :o) do
638
- good_tf_values.each do |good_value|
639
- with_value(good_value) do
640
- it_should_assign_successfully
641
- it_should_output "<v:rect o:hrstd=\"#{good_value}\"/>"
642
- end
643
- end
644
-
645
- with_values(bad_tf_values) do
646
- it_should_raise_an_exception
647
- end
648
- end
649
-
650
- for_attribute(:ole, with_namespace: :o) do
651
- good_tf_values.each do |good_value|
652
- with_value(good_value) do
653
- it_should_assign_successfully
654
- it_should_output "<v:rect o:ole=\"#{good_value}\"/>"
655
- end
656
- end
657
-
658
- with_values(bad_tf_values) do
659
- it_should_raise_an_exception
660
- end
661
- end
662
-
663
- for_attribute(:ole_icon, displays_as: :oleicon, with_namespace: :o) do
664
- good_tf_values.each do |good_value|
665
- with_value(good_value) do
666
- it_should_assign_successfully
667
- it_should_output "<v:rect o:oleicon=\"#{good_value}\"/>"
668
- end
669
- end
670
-
671
- with_values(bad_tf_values) do
672
- it_should_raise_an_exception
673
- end
674
- end
675
-
676
- for_attribute(:hide_extra_handles, displays_as: :oned, with_namespace: :o) do
677
- good_tf_values.each do |good_value|
678
- with_value(good_value) do
679
- it_should_assign_successfully
680
- it_should_output "<v:rect o:oned=\"#{good_value}\"/>"
681
- end
682
- end
683
-
684
- with_values(bad_tf_values) do
685
- it_should_raise_an_exception
686
- end
687
- end
688
-
689
- for_attribute(:prefer_relative, displays_as: :preferrelative, with_namespace: :o) do
690
- good_tf_values.each do |good_value|
691
- with_value(good_value) do
692
- it_should_assign_successfully
693
- it_should_output "<v:rect o:preferrelative=\"#{good_value}\"/>"
694
- end
695
- end
696
-
697
- with_values(bad_tf_values) do
698
- it_should_raise_an_exception
699
- end
700
- end
701
-
702
- for_attribute(:user_drawn, displays_as: :userdrawn, with_namespace: :o) do
703
- good_tf_values.each do |good_value|
704
- with_value(good_value) do
705
- it_should_assign_successfully
706
- it_should_output "<v:rect o:userdrawn=\"#{good_value}\"/>"
707
- end
708
- end
709
-
710
- with_values(bad_tf_values) do
711
- it_should_raise_an_exception
712
- end
713
- end
714
-
715
- for_attribute(:user_hidden, displays_as: :userhidden, with_namespace: :o) do
716
- good_tf_values.each do |good_value|
717
- with_value(good_value) do
718
- it_should_assign_successfully
719
- it_should_output "<v:rect o:userhidden=\"#{good_value}\"/>"
720
- end
721
- end
722
-
723
- with_values(bad_tf_values) do
724
- it_should_raise_an_exception
725
- end
726
- end
727
- end
728
-
729
- end