omml 0.2.0 → 0.2.2

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 (276) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CLAUDE.md +20 -10
  4. data/TODO.uniwordfix/00-overview.md +29 -0
  5. data/TODO.uniwordfix/01-revert-contributor-changes.md +25 -0
  6. data/TODO.uniwordfix/02-models-base.md +55 -0
  7. data/TODO.uniwordfix/03-migrate-models.md +38 -0
  8. data/TODO.uniwordfix/04-autoload-conversion.md +52 -0
  9. data/TODO.uniwordfix/05-encapsulation-cleanup.md +67 -0
  10. data/TODO.uniwordfix/06-register-in-api.md +44 -0
  11. data/TODO.uniwordfix/07-spec-coverage.md +43 -0
  12. data/TODO.uniwordfix/08-spec-cross-context.md +63 -0
  13. data/TODO.uniwordfix/09-spec-cleanup.md +37 -0
  14. data/TODO.uniwordfix/10-claude-md-stale.md +34 -0
  15. data/lib/omml/configuration/adapter.rb +3 -4
  16. data/lib/omml/configuration/context_registry.rb +36 -2
  17. data/lib/omml/configuration/model_registry.rb +6 -2
  18. data/lib/omml/configuration/type_resolver.rb +0 -2
  19. data/lib/omml/configuration.rb +5 -5
  20. data/lib/omml/models/base.rb +16 -0
  21. data/lib/omml/models/ct_acc.rb +1 -3
  22. data/lib/omml/models/ct_acc_pr.rb +1 -3
  23. data/lib/omml/models/ct_anchor.rb +1 -3
  24. data/lib/omml/models/ct_attr.rb +1 -3
  25. data/lib/omml/models/ct_bar.rb +1 -3
  26. data/lib/omml/models/ct_bar_pr.rb +1 -3
  27. data/lib/omml/models/ct_bookmark.rb +0 -2
  28. data/lib/omml/models/ct_bookmark_range.rb +0 -2
  29. data/lib/omml/models/ct_border.rb +1 -3
  30. data/lib/omml/models/ct_border_box.rb +1 -3
  31. data/lib/omml/models/ct_border_box_pr.rb +1 -3
  32. data/lib/omml/models/ct_box.rb +1 -3
  33. data/lib/omml/models/ct_box_pr.rb +1 -3
  34. data/lib/omml/models/ct_br.rb +1 -3
  35. data/lib/omml/models/ct_break_bin.rb +1 -3
  36. data/lib/omml/models/ct_break_bin_sub.rb +1 -3
  37. data/lib/omml/models/ct_calendar_type.rb +1 -3
  38. data/lib/omml/models/ct_char.rb +1 -3
  39. data/lib/omml/models/ct_color.rb +1 -3
  40. data/lib/omml/models/ct_control.rb +1 -3
  41. data/lib/omml/models/ct_ctrl_pr.rb +1 -3
  42. data/lib/omml/models/ct_custom_xml_pr.rb +1 -3
  43. data/lib/omml/models/ct_custom_xml_run.rb +1 -3
  44. data/lib/omml/models/ct_d.rb +1 -3
  45. data/lib/omml/models/ct_d_pr.rb +1 -3
  46. data/lib/omml/models/ct_data_binding.rb +1 -3
  47. data/lib/omml/models/ct_decimal_number.rb +1 -3
  48. data/lib/omml/models/ct_drawing.rb +1 -3
  49. data/lib/omml/models/ct_east_asian_layout.rb +1 -3
  50. data/lib/omml/models/ct_effect_extent.rb +1 -3
  51. data/lib/omml/models/ct_em.rb +1 -3
  52. data/lib/omml/models/ct_empty.rb +1 -3
  53. data/lib/omml/models/ct_eq_arr.rb +1 -3
  54. data/lib/omml/models/ct_eq_arr_pr.rb +1 -3
  55. data/lib/omml/models/ct_f.rb +1 -3
  56. data/lib/omml/models/ct_f_pr.rb +1 -3
  57. data/lib/omml/models/ct_f_type.rb +1 -3
  58. data/lib/omml/models/ct_ff_check_box.rb +1 -3
  59. data/lib/omml/models/ct_ff_data.rb +1 -3
  60. data/lib/omml/models/ct_ff_help_text.rb +1 -3
  61. data/lib/omml/models/ct_ff_name.rb +1 -3
  62. data/lib/omml/models/ct_ff_status_text.rb +1 -3
  63. data/lib/omml/models/ct_ff_text_input.rb +1 -3
  64. data/lib/omml/models/ct_ff_text_type.rb +1 -3
  65. data/lib/omml/models/ct_ffdd_list.rb +1 -3
  66. data/lib/omml/models/ct_fit_text.rb +1 -3
  67. data/lib/omml/models/ct_fld_char.rb +1 -3
  68. data/lib/omml/models/ct_fonts.rb +1 -3
  69. data/lib/omml/models/ct_ftn_edn_ref.rb +1 -3
  70. data/lib/omml/models/ct_func.rb +1 -3
  71. data/lib/omml/models/ct_func_pr.rb +1 -3
  72. data/lib/omml/models/ct_graphical_object.rb +1 -3
  73. data/lib/omml/models/ct_graphical_object_data.rb +1 -3
  74. data/lib/omml/models/ct_graphical_object_frame_locking.rb +1 -3
  75. data/lib/omml/models/ct_group_chr.rb +1 -3
  76. data/lib/omml/models/ct_group_chr_pr.rb +1 -3
  77. data/lib/omml/models/ct_highlight.rb +1 -3
  78. data/lib/omml/models/ct_hps_measure.rb +1 -3
  79. data/lib/omml/models/ct_hyperlink.rb +1 -3
  80. data/lib/omml/models/ct_inline.rb +1 -3
  81. data/lib/omml/models/ct_integer2.rb +1 -3
  82. data/lib/omml/models/ct_integer255.rb +1 -3
  83. data/lib/omml/models/ct_lang.rb +1 -3
  84. data/lib/omml/models/ct_language.rb +1 -3
  85. data/lib/omml/models/ct_lim_loc.rb +1 -3
  86. data/lib/omml/models/ct_lim_low.rb +1 -3
  87. data/lib/omml/models/ct_lim_low_pr.rb +1 -3
  88. data/lib/omml/models/ct_lim_upp.rb +1 -3
  89. data/lib/omml/models/ct_lim_upp_pr.rb +1 -3
  90. data/lib/omml/models/ct_lock.rb +1 -3
  91. data/lib/omml/models/ct_m.rb +1 -3
  92. data/lib/omml/models/ct_m_pr.rb +1 -3
  93. data/lib/omml/models/ct_macro_name.rb +1 -3
  94. data/lib/omml/models/ct_manual_break.rb +1 -3
  95. data/lib/omml/models/ct_markup.rb +1 -3
  96. data/lib/omml/models/ct_markup_range.rb +0 -2
  97. data/lib/omml/models/ct_math_pr.rb +1 -3
  98. data/lib/omml/models/ct_mc.rb +1 -3
  99. data/lib/omml/models/ct_mc_pr.rb +1 -3
  100. data/lib/omml/models/ct_mcs.rb +1 -3
  101. data/lib/omml/models/ct_move_bookmark.rb +0 -2
  102. data/lib/omml/models/ct_mr.rb +1 -3
  103. data/lib/omml/models/ct_nary.rb +1 -3
  104. data/lib/omml/models/ct_nary_pr.rb +1 -3
  105. data/lib/omml/models/ct_non_visual_drawing_props.rb +1 -3
  106. data/lib/omml/models/ct_non_visual_graphic_frame_properties.rb +1 -3
  107. data/lib/omml/models/ct_o_math.rb +1 -3
  108. data/lib/omml/models/ct_o_math_arg.rb +1 -3
  109. data/lib/omml/models/ct_o_math_arg_pr.rb +1 -3
  110. data/lib/omml/models/ct_o_math_jc.rb +1 -3
  111. data/lib/omml/models/ct_o_math_para.rb +1 -3
  112. data/lib/omml/models/ct_o_math_para_pr.rb +1 -3
  113. data/lib/omml/models/ct_object.rb +0 -2
  114. data/lib/omml/models/ct_office_art_extension.rb +1 -3
  115. data/lib/omml/models/ct_office_art_extension_list.rb +1 -3
  116. data/lib/omml/models/ct_on_off.rb +1 -3
  117. data/lib/omml/models/ct_p_tab.rb +1 -3
  118. data/lib/omml/models/ct_perm.rb +1 -3
  119. data/lib/omml/models/ct_perm_start.rb +0 -2
  120. data/lib/omml/models/ct_phant.rb +1 -3
  121. data/lib/omml/models/ct_phant_pr.rb +1 -3
  122. data/lib/omml/models/ct_picture.rb +0 -2
  123. data/lib/omml/models/ct_picture_base.rb +1 -3
  124. data/lib/omml/models/ct_placeholder.rb +1 -3
  125. data/lib/omml/models/ct_point2_d.rb +1 -3
  126. data/lib/omml/models/ct_pos_h.rb +1 -3
  127. data/lib/omml/models/ct_pos_v.rb +1 -3
  128. data/lib/omml/models/ct_positive_size2_d.rb +1 -3
  129. data/lib/omml/models/ct_proof_err.rb +1 -3
  130. data/lib/omml/models/ct_r.rb +1 -3
  131. data/lib/omml/models/ct_r_pr.rb +1 -3
  132. data/lib/omml/models/ct_r_pr_change.rb +0 -2
  133. data/lib/omml/models/ct_r_pr_original.rb +1 -3
  134. data/lib/omml/models/ct_rad.rb +1 -3
  135. data/lib/omml/models/ct_rad_pr.rb +1 -3
  136. data/lib/omml/models/ct_rel.rb +1 -3
  137. data/lib/omml/models/ct_rpr.rb +1 -3
  138. data/lib/omml/models/ct_ruby.rb +1 -3
  139. data/lib/omml/models/ct_ruby_align.rb +1 -3
  140. data/lib/omml/models/ct_ruby_content.rb +1 -3
  141. data/lib/omml/models/ct_ruby_pr.rb +1 -3
  142. data/lib/omml/models/ct_run_track_change.rb +0 -2
  143. data/lib/omml/models/ct_s_pre.rb +1 -3
  144. data/lib/omml/models/ct_s_pre_pr.rb +1 -3
  145. data/lib/omml/models/ct_s_sub.rb +1 -3
  146. data/lib/omml/models/ct_s_sub_pr.rb +1 -3
  147. data/lib/omml/models/ct_s_sub_sup.rb +1 -3
  148. data/lib/omml/models/ct_s_sub_sup_pr.rb +1 -3
  149. data/lib/omml/models/ct_s_sup.rb +1 -3
  150. data/lib/omml/models/ct_s_sup_pr.rb +1 -3
  151. data/lib/omml/models/ct_script.rb +1 -3
  152. data/lib/omml/models/ct_sdt_combo_box.rb +1 -3
  153. data/lib/omml/models/ct_sdt_content_run.rb +1 -3
  154. data/lib/omml/models/ct_sdt_date.rb +1 -3
  155. data/lib/omml/models/ct_sdt_date_mapping_type.rb +1 -3
  156. data/lib/omml/models/ct_sdt_doc_part.rb +1 -3
  157. data/lib/omml/models/ct_sdt_drop_down_list.rb +1 -3
  158. data/lib/omml/models/ct_sdt_end_pr.rb +1 -3
  159. data/lib/omml/models/ct_sdt_list_item.rb +1 -3
  160. data/lib/omml/models/ct_sdt_pr.rb +1 -3
  161. data/lib/omml/models/ct_sdt_run.rb +1 -3
  162. data/lib/omml/models/ct_sdt_text.rb +1 -3
  163. data/lib/omml/models/ct_shd.rb +1 -3
  164. data/lib/omml/models/ct_shp.rb +1 -3
  165. data/lib/omml/models/ct_signed_hps_measure.rb +1 -3
  166. data/lib/omml/models/ct_signed_twips_measure.rb +1 -3
  167. data/lib/omml/models/ct_simple_field.rb +1 -3
  168. data/lib/omml/models/ct_smart_tag_pr.rb +1 -3
  169. data/lib/omml/models/ct_smart_tag_run.rb +1 -3
  170. data/lib/omml/models/ct_spacing_rule.rb +1 -3
  171. data/lib/omml/models/ct_string.rb +1 -3
  172. data/lib/omml/models/ct_style.rb +1 -3
  173. data/lib/omml/models/ct_sym.rb +1 -3
  174. data/lib/omml/models/ct_text.rb +1 -3
  175. data/lib/omml/models/ct_text_effect.rb +1 -3
  176. data/lib/omml/models/ct_text_scale.rb +1 -3
  177. data/lib/omml/models/ct_top_bot.rb +1 -3
  178. data/lib/omml/models/ct_track_change.rb +0 -2
  179. data/lib/omml/models/ct_track_change_numbering.rb +0 -2
  180. data/lib/omml/models/ct_twips_measure.rb +1 -3
  181. data/lib/omml/models/ct_un_signed_integer.rb +1 -3
  182. data/lib/omml/models/ct_underline.rb +1 -3
  183. data/lib/omml/models/ct_vertical_align_run.rb +1 -3
  184. data/lib/omml/models/ct_wordprocessing_on_off.rb +1 -3
  185. data/lib/omml/models/ct_wrap_none.rb +1 -3
  186. data/lib/omml/models/ct_wrap_path.rb +1 -3
  187. data/lib/omml/models/ct_wrap_square.rb +1 -3
  188. data/lib/omml/models/ct_wrap_through.rb +1 -3
  189. data/lib/omml/models/ct_wrap_tight.rb +1 -3
  190. data/lib/omml/models/ct_wrap_top_bottom.rb +1 -3
  191. data/lib/omml/models/ct_x_align.rb +1 -3
  192. data/lib/omml/models/ct_y_align.rb +1 -3
  193. data/lib/omml/models/groups/eg_content_run_content.rb +1 -3
  194. data/lib/omml/models/groups/eg_math_content.rb +1 -3
  195. data/lib/omml/models/groups/eg_o_math_elements.rb +1 -3
  196. data/lib/omml/models/groups/eg_o_math_math_elements.rb +1 -3
  197. data/lib/omml/models/groups/eg_office_art_extension_list.rb +1 -3
  198. data/lib/omml/models/groups/eg_p_content.rb +1 -3
  199. data/lib/omml/models/groups/eg_r_pr.rb +1 -3
  200. data/lib/omml/models/groups/eg_r_pr_base.rb +1 -3
  201. data/lib/omml/models/groups/eg_r_pr_content.rb +1 -3
  202. data/lib/omml/models/groups/eg_r_pr_math.rb +1 -3
  203. data/lib/omml/models/groups/eg_range_markup_elements.rb +1 -3
  204. data/lib/omml/models/groups/eg_ruby_content.rb +1 -3
  205. data/lib/omml/models/groups/eg_run_inner_content.rb +1 -3
  206. data/lib/omml/models/groups/eg_run_level_elts.rb +1 -3
  207. data/lib/omml/models/groups/eg_script_style.rb +1 -3
  208. data/lib/omml/models/groups/eg_word_r_pr.rb +1 -3
  209. data/lib/omml/models/groups/eg_wrap_type.rb +1 -3
  210. data/lib/omml/models/groups.rb +0 -18
  211. data/lib/omml/models/o_math.rb +1 -3
  212. data/lib/omml/models/o_math_para.rb +1 -3
  213. data/lib/omml/models/registerable.rb +22 -0
  214. data/lib/omml/models/simple_types/enum_string.rb +5 -0
  215. data/lib/omml/models/simple_types/hex_binary.rb +0 -1
  216. data/lib/omml/models/simple_types/st_adj_coordinate.rb +2 -1
  217. data/lib/omml/models/simple_types/st_align_h.rb +0 -2
  218. data/lib/omml/models/simple_types/st_align_v.rb +0 -2
  219. data/lib/omml/models/simple_types/st_border.rb +0 -2
  220. data/lib/omml/models/simple_types/st_br_clear.rb +0 -2
  221. data/lib/omml/models/simple_types/st_br_type.rb +0 -2
  222. data/lib/omml/models/simple_types/st_break_bin.rb +0 -2
  223. data/lib/omml/models/simple_types/st_break_bin_sub.rb +0 -2
  224. data/lib/omml/models/simple_types/st_calendar_type.rb +0 -2
  225. data/lib/omml/models/simple_types/st_combine_brackets.rb +0 -2
  226. data/lib/omml/models/simple_types/st_coordinate.rb +0 -1
  227. data/lib/omml/models/simple_types/st_displaced_by_custom_xml.rb +0 -2
  228. data/lib/omml/models/simple_types/st_ed_grp.rb +0 -2
  229. data/lib/omml/models/simple_types/st_em.rb +0 -2
  230. data/lib/omml/models/simple_types/st_f_type.rb +0 -2
  231. data/lib/omml/models/simple_types/st_ff_text_type.rb +0 -2
  232. data/lib/omml/models/simple_types/st_fld_char_type.rb +0 -2
  233. data/lib/omml/models/simple_types/st_geom_guide_name.rb +0 -2
  234. data/lib/omml/models/simple_types/st_hex_color.rb +2 -1
  235. data/lib/omml/models/simple_types/st_highlight_color.rb +0 -2
  236. data/lib/omml/models/simple_types/st_hint.rb +0 -2
  237. data/lib/omml/models/simple_types/st_info_text_type.rb +0 -2
  238. data/lib/omml/models/simple_types/st_integer2.rb +0 -1
  239. data/lib/omml/models/simple_types/st_integer255.rb +0 -1
  240. data/lib/omml/models/simple_types/st_jc.rb +0 -2
  241. data/lib/omml/models/simple_types/st_lang.rb +2 -1
  242. data/lib/omml/models/simple_types/st_lim_loc.rb +0 -2
  243. data/lib/omml/models/simple_types/st_lock.rb +0 -2
  244. data/lib/omml/models/simple_types/st_on_off.rb +0 -2
  245. data/lib/omml/models/simple_types/st_p_tab_alignment.rb +0 -2
  246. data/lib/omml/models/simple_types/st_p_tab_leader.rb +0 -2
  247. data/lib/omml/models/simple_types/st_p_tab_relative_to.rb +0 -2
  248. data/lib/omml/models/simple_types/st_positive_coordinate.rb +0 -1
  249. data/lib/omml/models/simple_types/st_proof_err.rb +0 -2
  250. data/lib/omml/models/simple_types/st_rel_from_h.rb +0 -2
  251. data/lib/omml/models/simple_types/st_rel_from_v.rb +0 -2
  252. data/lib/omml/models/simple_types/st_ruby_align.rb +0 -2
  253. data/lib/omml/models/simple_types/st_script.rb +0 -2
  254. data/lib/omml/models/simple_types/st_sdt_date_mapping_type.rb +0 -2
  255. data/lib/omml/models/simple_types/st_shd.rb +0 -2
  256. data/lib/omml/models/simple_types/st_shp.rb +0 -2
  257. data/lib/omml/models/simple_types/st_spacing_rule.rb +0 -1
  258. data/lib/omml/models/simple_types/st_style.rb +0 -2
  259. data/lib/omml/models/simple_types/st_text_effect.rb +0 -2
  260. data/lib/omml/models/simple_types/st_text_scale.rb +0 -1
  261. data/lib/omml/models/simple_types/st_theme.rb +0 -2
  262. data/lib/omml/models/simple_types/st_theme_color.rb +0 -2
  263. data/lib/omml/models/simple_types/st_top_bot.rb +0 -2
  264. data/lib/omml/models/simple_types/st_underline.rb +0 -2
  265. data/lib/omml/models/simple_types/st_vertical_align_run.rb +0 -2
  266. data/lib/omml/models/simple_types/st_wrap_text.rb +0 -2
  267. data/lib/omml/models/simple_types/st_x_align.rb +0 -2
  268. data/lib/omml/models/simple_types/st_y_align.rb +0 -2
  269. data/lib/omml/models/simple_types/token.rb +5 -0
  270. data/lib/omml/models/simple_types/unsigned_int.rb +0 -1
  271. data/lib/omml/models/simple_types/unsigned_long.rb +0 -1
  272. data/lib/omml/models/simple_types.rb +0 -59
  273. data/lib/omml/models.rb +269 -177
  274. data/lib/omml/version.rb +1 -1
  275. data/lib/omml.rb +0 -8
  276. metadata +15 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTRuby < Lutaml::Model::Serializable
5
+ class CTRuby < Base
6
6
  attribute :ruby_pr, :ct_ruby_pr
7
7
  attribute :rt, :ct_ruby_content
8
8
  attribute :ruby_base, :ct_ruby_content
@@ -19,7 +19,5 @@ module Omml
19
19
  end
20
20
  end
21
21
  end
22
-
23
- Omml::Configuration.register_model(CTRuby)
24
22
  end
25
23
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTRubyAlign < Lutaml::Model::Serializable
5
+ class CTRubyAlign < Base
6
6
  attribute :val, :st_ruby_align
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTRubyAlign)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTRubyContent < Lutaml::Model::Serializable
5
+ class CTRubyContent < Base
6
6
  import_model_attributes :eg_ruby_content
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  import_model_mappings :eg_ruby_content
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTRubyContent)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTRubyPr < Lutaml::Model::Serializable
5
+ class CTRubyPr < Base
6
6
  attribute :ruby_align, :ct_ruby_align
7
7
  attribute :hps, :ct_hps_measure
8
8
  attribute :hps_raise, :ct_hps_measure
@@ -25,7 +25,5 @@ module Omml
25
25
  end
26
26
  end
27
27
  end
28
-
29
- Omml::Configuration.register_model(CTRubyPr)
30
28
  end
31
29
  end
@@ -17,7 +17,5 @@ module Omml
17
17
  import_model_mappings :eg_o_math_math_elements
18
18
  end
19
19
  end
20
-
21
- Omml::Configuration.register_model(CTRunTrackChange)
22
20
  end
23
21
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSPre < Lutaml::Model::Serializable
5
+ class CTSPre < Base
6
6
  attribute :s_pre_pr, :ct_s_pre_pr, collection: 0..1
7
7
  attribute :sub, :ct_o_math_arg
8
8
  attribute :sup, :ct_o_math_arg
@@ -22,7 +22,5 @@ module Omml
22
22
  end
23
23
  end
24
24
  end
25
-
26
- Omml::Configuration.register_model(CTSPre)
27
25
  end
28
26
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSPrePr < Lutaml::Model::Serializable
5
+ class CTSPrePr < Base
6
6
  attribute :ctrl_pr, :ct_ctrl_pr, collection: 0..1
7
7
 
8
8
  xml do
@@ -15,7 +15,5 @@ module Omml
15
15
  end
16
16
  end
17
17
  end
18
-
19
- Omml::Configuration.register_model(CTSPrePr)
20
18
  end
21
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSSub < Lutaml::Model::Serializable
5
+ class CTSSub < Base
6
6
  attribute :s_sub_pr, :ct_s_sub_pr, collection: 0..1
7
7
  attribute :e, :ct_o_math_arg
8
8
  attribute :sub, :ct_o_math_arg
@@ -19,7 +19,5 @@ module Omml
19
19
  end
20
20
  end
21
21
  end
22
-
23
- Omml::Configuration.register_model(CTSSub)
24
22
  end
25
23
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSSubPr < Lutaml::Model::Serializable
5
+ class CTSSubPr < Base
6
6
  attribute :ctrl_pr, :ct_ctrl_pr, collection: 0..1
7
7
 
8
8
  xml do
@@ -15,7 +15,5 @@ module Omml
15
15
  end
16
16
  end
17
17
  end
18
-
19
- Omml::Configuration.register_model(CTSSubPr)
20
18
  end
21
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSSubSup < Lutaml::Model::Serializable
5
+ class CTSSubSup < Base
6
6
  attribute :s_sub_sup_pr, :ct_s_sub_sup_pr, collection: 0..1
7
7
  attribute :e, :ct_o_math_arg
8
8
  attribute :sub, :ct_o_math_arg
@@ -22,7 +22,5 @@ module Omml
22
22
  end
23
23
  end
24
24
  end
25
-
26
- Omml::Configuration.register_model(CTSSubSup)
27
25
  end
28
26
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSSubSupPr < Lutaml::Model::Serializable
5
+ class CTSSubSupPr < Base
6
6
  attribute :aln_scr, :ct_on_off, collection: 0..1
7
7
  attribute :ctrl_pr, :ct_ctrl_pr, collection: 0..1
8
8
 
@@ -17,7 +17,5 @@ module Omml
17
17
  end
18
18
  end
19
19
  end
20
-
21
- Omml::Configuration.register_model(CTSSubSupPr)
22
20
  end
23
21
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSSup < Lutaml::Model::Serializable
5
+ class CTSSup < Base
6
6
  attribute :s_sup_pr, :ct_s_sup_pr, collection: 0..1
7
7
  attribute :e, :ct_o_math_arg
8
8
  attribute :sup, :ct_o_math_arg
@@ -19,7 +19,5 @@ module Omml
19
19
  end
20
20
  end
21
21
  end
22
-
23
- Omml::Configuration.register_model(CTSSup)
24
22
  end
25
23
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSSupPr < Lutaml::Model::Serializable
5
+ class CTSSupPr < Base
6
6
  attribute :ctrl_pr, :ct_ctrl_pr, collection: 0..1
7
7
 
8
8
  xml do
@@ -15,7 +15,5 @@ module Omml
15
15
  end
16
16
  end
17
17
  end
18
-
19
- Omml::Configuration.register_model(CTSSupPr)
20
18
  end
21
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTScript < Lutaml::Model::Serializable
5
+ class CTScript < Base
6
6
  attribute :val, :st_script
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTScript)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtComboBox < Lutaml::Model::Serializable
5
+ class CTSdtComboBox < Base
6
6
  attribute :list_item, :ct_sdt_list_item, collection: 0..Float::INFINITY
7
7
  attribute :last_value, :st_string
8
8
 
@@ -17,7 +17,5 @@ module Omml
17
17
  map_attribute :lastValue, to: :last_value
18
18
  end
19
19
  end
20
-
21
- Omml::Configuration.register_model(CTSdtComboBox)
22
20
  end
23
21
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtContentRun < Lutaml::Model::Serializable
5
+ class CTSdtContentRun < Base
6
6
  import_model_attributes :eg_p_content
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  import_model_mappings :eg_p_content
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTSdtContentRun)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtDate < Lutaml::Model::Serializable
5
+ class CTSdtDate < Base
6
6
  attribute :date_format, :ct_string, collection: 0..1
7
7
  attribute :lid, :ct_lang, collection: 0..1
8
8
  attribute :store_mapped_data_as, :ct_sdt_date_mapping_type,
@@ -24,7 +24,5 @@ module Omml
24
24
  map_attribute :fullDate, to: :full_date
25
25
  end
26
26
  end
27
-
28
- Omml::Configuration.register_model(CTSdtDate)
29
27
  end
30
28
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtDateMappingType < Lutaml::Model::Serializable
5
+ class CTSdtDateMappingType < Base
6
6
  attribute :val, :st_sdt_date_mapping_type
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTSdtDateMappingType)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtDocPart < Lutaml::Model::Serializable
5
+ class CTSdtDocPart < Base
6
6
  attribute :doc_part_gallery, :ct_string, collection: 0..1
7
7
  attribute :doc_part_category, :ct_string, collection: 0..1
8
8
  attribute :doc_part_unique, :ct_on_off, collection: 0..1
@@ -19,7 +19,5 @@ module Omml
19
19
  end
20
20
  end
21
21
  end
22
-
23
- Omml::Configuration.register_model(CTSdtDocPart)
24
22
  end
25
23
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtDropDownList < Lutaml::Model::Serializable
5
+ class CTSdtDropDownList < Base
6
6
  attribute :list_item, :ct_sdt_list_item, collection: 0..Float::INFINITY
7
7
  attribute :last_value, :st_string
8
8
 
@@ -17,7 +17,5 @@ module Omml
17
17
  map_attribute :lastValue, to: :last_value
18
18
  end
19
19
  end
20
-
21
- Omml::Configuration.register_model(CTSdtDropDownList)
22
20
  end
23
21
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtEndPr < Lutaml::Model::Serializable
5
+ class CTSdtEndPr < Base
6
6
  choice(min: 1, max: Float::INFINITY) do
7
7
  attribute :r_pr, :ct_r_pr, collection: 0..1
8
8
  end
@@ -15,7 +15,5 @@ module Omml
15
15
  map_element :rPr, to: :r_pr
16
16
  end
17
17
  end
18
-
19
- Omml::Configuration.register_model(CTSdtEndPr)
20
18
  end
21
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtListItem < Lutaml::Model::Serializable
5
+ class CTSdtListItem < Base
6
6
  attribute :display_text, :st_string
7
7
  attribute :value, :st_string
8
8
 
@@ -15,7 +15,5 @@ module Omml
15
15
  map_attribute :value, to: :value
16
16
  end
17
17
  end
18
-
19
- Omml::Configuration.register_model(CTSdtListItem)
20
18
  end
21
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtPr < Lutaml::Model::Serializable
5
+ class CTSdtPr < Base
6
6
  choice(min: 1, max: Float::INFINITY) do
7
7
  attribute :r_pr, :ct_r_pr, collection: 0..1
8
8
  attribute :alias, :ct_string, collection: 0..1
@@ -57,7 +57,5 @@ module Omml
57
57
  map_element :bibliography, to: :bibliography, render_empty: true
58
58
  end
59
59
  end
60
-
61
- Omml::Configuration.register_model(CTSdtPr)
62
60
  end
63
61
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtRun < Lutaml::Model::Serializable
5
+ class CTSdtRun < Base
6
6
  attribute :sdt_pr, :ct_sdt_pr, collection: 0..1
7
7
  attribute :sdt_end_pr, :ct_sdt_end_pr, collection: 0..1
8
8
  attribute :sdt_content, :ct_sdt_content_run, collection: 0..1
@@ -19,7 +19,5 @@ module Omml
19
19
  end
20
20
  end
21
21
  end
22
-
23
- Omml::Configuration.register_model(CTSdtRun)
24
22
  end
25
23
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSdtText < Lutaml::Model::Serializable
5
+ class CTSdtText < Base
6
6
  attribute :multi_line, :st_on_off
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :multiLine, to: :multi_line
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTSdtText)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTShd < Lutaml::Model::Serializable
5
+ class CTShd < Base
6
6
  attribute :val, :st_shd
7
7
  attribute :color, :st_hex_color
8
8
  attribute :theme_color, :st_theme_color
@@ -29,7 +29,5 @@ module Omml
29
29
  map_attribute :themeFillShade, to: :theme_fill_shade
30
30
  end
31
31
  end
32
-
33
- Omml::Configuration.register_model(CTShd)
34
32
  end
35
33
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTShp < Lutaml::Model::Serializable
5
+ class CTShp < Base
6
6
  attribute :val, :st_shp
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTShp)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSignedHpsMeasure < Lutaml::Model::Serializable
5
+ class CTSignedHpsMeasure < Base
6
6
  attribute :val, :st_signed_hps_measure
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTSignedHpsMeasure)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSignedTwipsMeasure < Lutaml::Model::Serializable
5
+ class CTSignedTwipsMeasure < Base
6
6
  attribute :val, :st_signed_twips_measure
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTSignedTwipsMeasure)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSimpleField < Lutaml::Model::Serializable
5
+ class CTSimpleField < Base
6
6
  attribute :fld_data, :ct_text, collection: 0..1
7
7
  import_model_attributes :eg_p_content
8
8
  attribute :instr, :st_string
@@ -23,7 +23,5 @@ module Omml
23
23
  map_attribute :dirty, to: :dirty
24
24
  end
25
25
  end
26
-
27
- Omml::Configuration.register_model(CTSimpleField)
28
26
  end
29
27
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSmartTagPr < Lutaml::Model::Serializable
5
+ class CTSmartTagPr < Base
6
6
  attribute :attr, :ct_attr, collection: 0..Float::INFINITY
7
7
 
8
8
  xml do
@@ -15,7 +15,5 @@ module Omml
15
15
  end
16
16
  end
17
17
  end
18
-
19
- Omml::Configuration.register_model(CTSmartTagPr)
20
18
  end
21
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSmartTagRun < Lutaml::Model::Serializable
5
+ class CTSmartTagRun < Base
6
6
  attribute :smart_tag_pr, :ct_smart_tag_pr, collection: 0..1
7
7
  import_model_attributes :eg_p_content
8
8
  attribute :uri, :st_string
@@ -21,7 +21,5 @@ module Omml
21
21
  map_attribute :element, to: :element
22
22
  end
23
23
  end
24
-
25
- Omml::Configuration.register_model(CTSmartTagRun)
26
24
  end
27
25
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSpacingRule < Lutaml::Model::Serializable
5
+ class CTSpacingRule < Base
6
6
  attribute :val, :st_spacing_rule
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTSpacingRule)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTString < Lutaml::Model::Serializable
5
+ class CTString < Base
6
6
  attribute :val, :st_string
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTString)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTStyle < Lutaml::Model::Serializable
5
+ class CTStyle < Base
6
6
  attribute :val, :st_style
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTStyle)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTSym < Lutaml::Model::Serializable
5
+ class CTSym < Base
6
6
  attribute :font, :st_string
7
7
  attribute :char, :st_short_hex_number
8
8
 
@@ -15,7 +15,5 @@ module Omml
15
15
  map_attribute :char, to: :char
16
16
  end
17
17
  end
18
-
19
- Omml::Configuration.register_model(CTSym)
20
18
  end
21
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTText < Lutaml::Model::Serializable
5
+ class CTText < Base
6
6
  attribute :content, :st_string
7
7
  attribute :space, ::Lutaml::Xml::W3c::XmlSpaceType
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :space, to: :space
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTText)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTTextEffect < Lutaml::Model::Serializable
5
+ class CTTextEffect < Base
6
6
  attribute :val, :st_text_effect
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTTextEffect)
18
16
  end
19
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Omml
4
4
  module Models
5
- class CTTextScale < Lutaml::Model::Serializable
5
+ class CTTextScale < Base
6
6
  attribute :val, :st_text_scale
7
7
 
8
8
  xml do
@@ -13,7 +13,5 @@ module Omml
13
13
  map_attribute :val, to: :val
14
14
  end
15
15
  end
16
-
17
- Omml::Configuration.register_model(CTTextScale)
18
16
  end
19
17
  end