omml 0.2.1 → 0.2.3
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop_todo.yml +12 -6
- data/CLAUDE.md +19 -9
- data/Gemfile +0 -3
- data/TODO.uniwordfix/00-overview.md +29 -0
- data/TODO.uniwordfix/01-revert-contributor-changes.md +25 -0
- data/TODO.uniwordfix/02-models-base.md +55 -0
- data/TODO.uniwordfix/03-migrate-models.md +38 -0
- data/TODO.uniwordfix/04-autoload-conversion.md +52 -0
- data/TODO.uniwordfix/05-encapsulation-cleanup.md +67 -0
- data/TODO.uniwordfix/06-register-in-api.md +44 -0
- data/TODO.uniwordfix/07-spec-coverage.md +43 -0
- data/TODO.uniwordfix/08-spec-cross-context.md +63 -0
- data/TODO.uniwordfix/09-spec-cleanup.md +37 -0
- data/TODO.uniwordfix/10-claude-md-stale.md +34 -0
- data/lib/omml/configuration/context_registry.rb +36 -2
- data/lib/omml/configuration/model_registry.rb +6 -2
- data/lib/omml/configuration/type_resolver.rb +0 -2
- data/lib/omml/configuration.rb +5 -5
- data/lib/omml/models/base.rb +16 -0
- data/lib/omml/models/ct_acc.rb +1 -3
- data/lib/omml/models/ct_acc_pr.rb +1 -3
- data/lib/omml/models/ct_anchor.rb +1 -3
- data/lib/omml/models/ct_attr.rb +1 -3
- data/lib/omml/models/ct_bar.rb +1 -3
- data/lib/omml/models/ct_bar_pr.rb +1 -3
- data/lib/omml/models/ct_bookmark.rb +0 -2
- data/lib/omml/models/ct_bookmark_range.rb +0 -2
- data/lib/omml/models/ct_border.rb +1 -3
- data/lib/omml/models/ct_border_box.rb +1 -3
- data/lib/omml/models/ct_border_box_pr.rb +1 -3
- data/lib/omml/models/ct_box.rb +1 -3
- data/lib/omml/models/ct_box_pr.rb +1 -3
- data/lib/omml/models/ct_br.rb +2 -4
- data/lib/omml/models/ct_break_bin.rb +1 -3
- data/lib/omml/models/ct_break_bin_sub.rb +1 -3
- data/lib/omml/models/ct_calendar_type.rb +1 -3
- data/lib/omml/models/ct_char.rb +1 -3
- data/lib/omml/models/ct_color.rb +1 -3
- data/lib/omml/models/ct_control.rb +1 -3
- data/lib/omml/models/ct_ctrl_pr.rb +1 -3
- data/lib/omml/models/ct_custom_xml_pr.rb +1 -3
- data/lib/omml/models/ct_custom_xml_run.rb +1 -3
- data/lib/omml/models/ct_d.rb +1 -3
- data/lib/omml/models/ct_d_pr.rb +1 -3
- data/lib/omml/models/ct_data_binding.rb +1 -3
- data/lib/omml/models/ct_decimal_number.rb +1 -3
- data/lib/omml/models/ct_drawing.rb +1 -3
- data/lib/omml/models/ct_east_asian_layout.rb +1 -3
- data/lib/omml/models/ct_effect_extent.rb +1 -3
- data/lib/omml/models/ct_em.rb +1 -3
- data/lib/omml/models/ct_empty.rb +1 -3
- data/lib/omml/models/ct_eq_arr.rb +1 -3
- data/lib/omml/models/ct_eq_arr_pr.rb +1 -3
- data/lib/omml/models/ct_f.rb +1 -3
- data/lib/omml/models/ct_f_pr.rb +1 -3
- data/lib/omml/models/ct_f_type.rb +1 -3
- data/lib/omml/models/ct_ff_check_box.rb +1 -3
- data/lib/omml/models/ct_ff_data.rb +1 -3
- data/lib/omml/models/ct_ff_help_text.rb +1 -3
- data/lib/omml/models/ct_ff_name.rb +1 -3
- data/lib/omml/models/ct_ff_status_text.rb +1 -3
- data/lib/omml/models/ct_ff_text_input.rb +1 -3
- data/lib/omml/models/ct_ff_text_type.rb +1 -3
- data/lib/omml/models/ct_ffdd_list.rb +1 -3
- data/lib/omml/models/ct_fit_text.rb +1 -3
- data/lib/omml/models/ct_fld_char.rb +1 -3
- data/lib/omml/models/ct_fonts.rb +1 -3
- data/lib/omml/models/ct_ftn_edn_ref.rb +1 -3
- data/lib/omml/models/ct_func.rb +1 -3
- data/lib/omml/models/ct_func_pr.rb +1 -3
- data/lib/omml/models/ct_graphical_object.rb +1 -3
- data/lib/omml/models/ct_graphical_object_data.rb +1 -3
- data/lib/omml/models/ct_graphical_object_frame_locking.rb +1 -3
- data/lib/omml/models/ct_group_chr.rb +1 -3
- data/lib/omml/models/ct_group_chr_pr.rb +1 -3
- data/lib/omml/models/ct_highlight.rb +1 -3
- data/lib/omml/models/ct_hps_measure.rb +1 -3
- data/lib/omml/models/ct_hyperlink.rb +1 -3
- data/lib/omml/models/ct_inline.rb +1 -3
- data/lib/omml/models/ct_integer2.rb +1 -3
- data/lib/omml/models/ct_integer255.rb +1 -3
- data/lib/omml/models/ct_lang.rb +1 -3
- data/lib/omml/models/ct_language.rb +1 -3
- data/lib/omml/models/ct_lim_loc.rb +1 -3
- data/lib/omml/models/ct_lim_low.rb +1 -3
- data/lib/omml/models/ct_lim_low_pr.rb +1 -3
- data/lib/omml/models/ct_lim_upp.rb +1 -3
- data/lib/omml/models/ct_lim_upp_pr.rb +1 -3
- data/lib/omml/models/ct_lock.rb +1 -3
- data/lib/omml/models/ct_m.rb +1 -3
- data/lib/omml/models/ct_m_pr.rb +1 -3
- data/lib/omml/models/ct_macro_name.rb +1 -3
- data/lib/omml/models/ct_manual_break.rb +1 -3
- data/lib/omml/models/ct_markup.rb +1 -3
- data/lib/omml/models/ct_markup_range.rb +0 -2
- data/lib/omml/models/ct_math_pr.rb +1 -3
- data/lib/omml/models/ct_mc.rb +1 -3
- data/lib/omml/models/ct_mc_pr.rb +1 -3
- data/lib/omml/models/ct_mcs.rb +1 -3
- data/lib/omml/models/ct_move_bookmark.rb +0 -2
- data/lib/omml/models/ct_mr.rb +1 -3
- data/lib/omml/models/ct_nary.rb +1 -3
- data/lib/omml/models/ct_nary_pr.rb +1 -3
- data/lib/omml/models/ct_non_visual_drawing_props.rb +1 -3
- data/lib/omml/models/ct_non_visual_graphic_frame_properties.rb +1 -3
- data/lib/omml/models/ct_o_math.rb +1 -3
- data/lib/omml/models/ct_o_math_arg.rb +1 -3
- data/lib/omml/models/ct_o_math_arg_pr.rb +1 -3
- data/lib/omml/models/ct_o_math_jc.rb +1 -3
- data/lib/omml/models/ct_o_math_para.rb +1 -3
- data/lib/omml/models/ct_o_math_para_pr.rb +1 -3
- data/lib/omml/models/ct_object.rb +0 -2
- data/lib/omml/models/ct_office_art_extension.rb +1 -3
- data/lib/omml/models/ct_office_art_extension_list.rb +1 -3
- data/lib/omml/models/ct_on_off.rb +1 -3
- data/lib/omml/models/ct_p_tab.rb +1 -3
- data/lib/omml/models/ct_perm.rb +1 -3
- data/lib/omml/models/ct_perm_start.rb +0 -2
- data/lib/omml/models/ct_phant.rb +1 -3
- data/lib/omml/models/ct_phant_pr.rb +1 -3
- data/lib/omml/models/ct_picture.rb +0 -2
- data/lib/omml/models/ct_picture_base.rb +1 -3
- data/lib/omml/models/ct_placeholder.rb +1 -3
- data/lib/omml/models/ct_point2_d.rb +1 -3
- data/lib/omml/models/ct_pos_h.rb +1 -3
- data/lib/omml/models/ct_pos_v.rb +1 -3
- data/lib/omml/models/ct_positive_size2_d.rb +1 -3
- data/lib/omml/models/ct_proof_err.rb +1 -3
- data/lib/omml/models/ct_r.rb +3 -3
- data/lib/omml/models/ct_r_pr.rb +1 -3
- data/lib/omml/models/ct_r_pr_change.rb +0 -2
- data/lib/omml/models/ct_r_pr_original.rb +1 -3
- data/lib/omml/models/ct_rad.rb +1 -3
- data/lib/omml/models/ct_rad_pr.rb +1 -3
- data/lib/omml/models/ct_rel.rb +1 -3
- data/lib/omml/models/ct_rpr.rb +1 -3
- data/lib/omml/models/ct_ruby.rb +1 -3
- data/lib/omml/models/ct_ruby_align.rb +1 -3
- data/lib/omml/models/ct_ruby_content.rb +1 -3
- data/lib/omml/models/ct_ruby_pr.rb +1 -3
- data/lib/omml/models/ct_run_track_change.rb +0 -2
- data/lib/omml/models/ct_s_pre.rb +1 -3
- data/lib/omml/models/ct_s_pre_pr.rb +1 -3
- data/lib/omml/models/ct_s_sub.rb +1 -3
- data/lib/omml/models/ct_s_sub_pr.rb +1 -3
- data/lib/omml/models/ct_s_sub_sup.rb +1 -3
- data/lib/omml/models/ct_s_sub_sup_pr.rb +1 -3
- data/lib/omml/models/ct_s_sup.rb +1 -3
- data/lib/omml/models/ct_s_sup_pr.rb +1 -3
- data/lib/omml/models/ct_script.rb +1 -3
- data/lib/omml/models/ct_sdt_combo_box.rb +1 -3
- data/lib/omml/models/ct_sdt_content_run.rb +1 -3
- data/lib/omml/models/ct_sdt_date.rb +1 -3
- data/lib/omml/models/ct_sdt_date_mapping_type.rb +1 -3
- data/lib/omml/models/ct_sdt_doc_part.rb +1 -3
- data/lib/omml/models/ct_sdt_drop_down_list.rb +1 -3
- data/lib/omml/models/ct_sdt_end_pr.rb +1 -3
- data/lib/omml/models/ct_sdt_list_item.rb +1 -3
- data/lib/omml/models/ct_sdt_pr.rb +1 -3
- data/lib/omml/models/ct_sdt_run.rb +1 -3
- data/lib/omml/models/ct_sdt_text.rb +1 -3
- data/lib/omml/models/ct_shd.rb +1 -3
- data/lib/omml/models/ct_shp.rb +1 -3
- data/lib/omml/models/ct_signed_hps_measure.rb +1 -3
- data/lib/omml/models/ct_signed_twips_measure.rb +1 -3
- data/lib/omml/models/ct_simple_field.rb +1 -3
- data/lib/omml/models/ct_smart_tag_pr.rb +1 -3
- data/lib/omml/models/ct_smart_tag_run.rb +1 -3
- data/lib/omml/models/ct_spacing_rule.rb +1 -3
- data/lib/omml/models/ct_string.rb +1 -3
- data/lib/omml/models/ct_style.rb +1 -3
- data/lib/omml/models/ct_sym.rb +1 -3
- data/lib/omml/models/ct_text.rb +1 -3
- data/lib/omml/models/ct_text_effect.rb +1 -3
- data/lib/omml/models/ct_text_scale.rb +1 -3
- data/lib/omml/models/ct_top_bot.rb +1 -3
- data/lib/omml/models/ct_track_change.rb +0 -2
- data/lib/omml/models/ct_track_change_numbering.rb +0 -2
- data/lib/omml/models/ct_twips_measure.rb +1 -3
- data/lib/omml/models/ct_un_signed_integer.rb +1 -3
- data/lib/omml/models/ct_underline.rb +1 -3
- data/lib/omml/models/ct_vertical_align_run.rb +1 -3
- data/lib/omml/models/ct_wordprocessing_empty.rb +24 -0
- data/lib/omml/models/ct_wordprocessing_on_off.rb +1 -3
- data/lib/omml/models/ct_wordprocessing_text.rb +26 -0
- data/lib/omml/models/ct_wrap_none.rb +1 -3
- data/lib/omml/models/ct_wrap_path.rb +1 -3
- data/lib/omml/models/ct_wrap_square.rb +1 -3
- data/lib/omml/models/ct_wrap_through.rb +1 -3
- data/lib/omml/models/ct_wrap_tight.rb +1 -3
- data/lib/omml/models/ct_wrap_top_bottom.rb +1 -3
- data/lib/omml/models/ct_x_align.rb +1 -3
- data/lib/omml/models/ct_y_align.rb +1 -3
- data/lib/omml/models/groups/eg_content_run_content.rb +1 -3
- data/lib/omml/models/groups/eg_math_content.rb +1 -3
- data/lib/omml/models/groups/eg_o_math_elements.rb +1 -3
- data/lib/omml/models/groups/eg_o_math_math_elements.rb +1 -3
- data/lib/omml/models/groups/eg_office_art_extension_list.rb +1 -3
- data/lib/omml/models/groups/eg_p_content.rb +1 -3
- data/lib/omml/models/groups/eg_r_pr.rb +1 -3
- data/lib/omml/models/groups/eg_r_pr_base.rb +1 -3
- data/lib/omml/models/groups/eg_r_pr_content.rb +1 -3
- data/lib/omml/models/groups/eg_r_pr_math.rb +1 -3
- data/lib/omml/models/groups/eg_range_markup_elements.rb +1 -3
- data/lib/omml/models/groups/eg_ruby_content.rb +1 -3
- data/lib/omml/models/groups/eg_run_inner_content.rb +5 -68
- data/lib/omml/models/groups/eg_run_level_elts.rb +1 -3
- data/lib/omml/models/groups/eg_script_style.rb +1 -3
- data/lib/omml/models/groups/eg_word_r_pr.rb +1 -3
- data/lib/omml/models/groups/eg_word_run_inner_content.rb +91 -0
- data/lib/omml/models/groups/eg_wrap_type.rb +1 -3
- data/lib/omml/models/groups.rb +0 -18
- data/lib/omml/models/o_math.rb +1 -3
- data/lib/omml/models/o_math_para.rb +1 -3
- data/lib/omml/models/registerable.rb +22 -0
- data/lib/omml/models/simple_types/enum_string.rb +5 -0
- data/lib/omml/models/simple_types/hex_binary.rb +0 -1
- data/lib/omml/models/simple_types/st_adj_coordinate.rb +2 -1
- data/lib/omml/models/simple_types/st_align_h.rb +0 -2
- data/lib/omml/models/simple_types/st_align_v.rb +0 -2
- data/lib/omml/models/simple_types/st_border.rb +0 -2
- data/lib/omml/models/simple_types/st_br_clear.rb +0 -2
- data/lib/omml/models/simple_types/st_br_type.rb +0 -2
- data/lib/omml/models/simple_types/st_break_bin.rb +0 -2
- data/lib/omml/models/simple_types/st_break_bin_sub.rb +0 -2
- data/lib/omml/models/simple_types/st_calendar_type.rb +0 -2
- data/lib/omml/models/simple_types/st_combine_brackets.rb +0 -2
- data/lib/omml/models/simple_types/st_coordinate.rb +0 -1
- data/lib/omml/models/simple_types/st_displaced_by_custom_xml.rb +0 -2
- data/lib/omml/models/simple_types/st_ed_grp.rb +0 -2
- data/lib/omml/models/simple_types/st_em.rb +0 -2
- data/lib/omml/models/simple_types/st_f_type.rb +0 -2
- data/lib/omml/models/simple_types/st_ff_text_type.rb +0 -2
- data/lib/omml/models/simple_types/st_fld_char_type.rb +0 -2
- data/lib/omml/models/simple_types/st_geom_guide_name.rb +0 -2
- data/lib/omml/models/simple_types/st_hex_color.rb +2 -1
- data/lib/omml/models/simple_types/st_highlight_color.rb +0 -2
- data/lib/omml/models/simple_types/st_hint.rb +0 -2
- data/lib/omml/models/simple_types/st_info_text_type.rb +0 -2
- data/lib/omml/models/simple_types/st_integer2.rb +0 -1
- data/lib/omml/models/simple_types/st_integer255.rb +0 -1
- data/lib/omml/models/simple_types/st_jc.rb +0 -2
- data/lib/omml/models/simple_types/st_lang.rb +2 -1
- data/lib/omml/models/simple_types/st_lim_loc.rb +0 -2
- data/lib/omml/models/simple_types/st_lock.rb +0 -2
- data/lib/omml/models/simple_types/st_on_off.rb +0 -2
- data/lib/omml/models/simple_types/st_p_tab_alignment.rb +0 -2
- data/lib/omml/models/simple_types/st_p_tab_leader.rb +0 -2
- data/lib/omml/models/simple_types/st_p_tab_relative_to.rb +0 -2
- data/lib/omml/models/simple_types/st_positive_coordinate.rb +0 -1
- data/lib/omml/models/simple_types/st_proof_err.rb +0 -2
- data/lib/omml/models/simple_types/st_rel_from_h.rb +0 -2
- data/lib/omml/models/simple_types/st_rel_from_v.rb +0 -2
- data/lib/omml/models/simple_types/st_ruby_align.rb +0 -2
- data/lib/omml/models/simple_types/st_script.rb +0 -2
- data/lib/omml/models/simple_types/st_sdt_date_mapping_type.rb +0 -2
- data/lib/omml/models/simple_types/st_shd.rb +0 -2
- data/lib/omml/models/simple_types/st_shp.rb +0 -2
- data/lib/omml/models/simple_types/st_spacing_rule.rb +0 -1
- data/lib/omml/models/simple_types/st_style.rb +0 -2
- data/lib/omml/models/simple_types/st_text_effect.rb +0 -2
- data/lib/omml/models/simple_types/st_text_scale.rb +0 -1
- data/lib/omml/models/simple_types/st_theme.rb +0 -2
- data/lib/omml/models/simple_types/st_theme_color.rb +0 -2
- data/lib/omml/models/simple_types/st_top_bot.rb +0 -2
- data/lib/omml/models/simple_types/st_underline.rb +0 -2
- data/lib/omml/models/simple_types/st_vertical_align_run.rb +0 -2
- data/lib/omml/models/simple_types/st_wrap_text.rb +0 -2
- data/lib/omml/models/simple_types/st_x_align.rb +0 -2
- data/lib/omml/models/simple_types/st_y_align.rb +0 -2
- data/lib/omml/models/simple_types/token.rb +5 -0
- data/lib/omml/models/simple_types/unsigned_int.rb +0 -1
- data/lib/omml/models/simple_types/unsigned_long.rb +0 -1
- data/lib/omml/models/simple_types.rb +0 -59
- data/lib/omml/models.rb +275 -177
- data/lib/omml/namespace.rb +2 -0
- data/lib/omml/version.rb +1 -1
- data/lib/omml/wordprocessing_namespace.rb +2 -0
- data/reference-docs/shared-math.xsd +1528 -0
- metadata +19 -2
|
@@ -52,8 +52,12 @@ module Omml
|
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def clear_cache(klass, register_id)
|
|
55
|
-
klass.
|
|
56
|
-
|
|
55
|
+
if klass.is_a?(Class) && klass < Lutaml::Model::Serializable
|
|
56
|
+
klass.set_register_context(register_id)
|
|
57
|
+
klass.clear_cache(register_id)
|
|
58
|
+
elsif klass.include?(Omml::Models::Registerable)
|
|
59
|
+
klass.register = register_id
|
|
60
|
+
end
|
|
57
61
|
end
|
|
58
62
|
end
|
|
59
63
|
end
|
data/lib/omml/configuration.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative "configuration/adapter"
|
|
4
|
-
require_relative "configuration/context_registry"
|
|
5
|
-
require_relative "configuration/model_registry"
|
|
6
|
-
require_relative "configuration/type_resolver"
|
|
7
|
-
|
|
8
3
|
module Omml
|
|
9
4
|
module Configuration
|
|
5
|
+
autoload :Adapter, "omml/configuration/adapter"
|
|
6
|
+
autoload :ContextRegistry, "omml/configuration/context_registry"
|
|
7
|
+
autoload :ModelRegistry, "omml/configuration/model_registry"
|
|
8
|
+
autoload :TypeResolver, "omml/configuration/type_resolver"
|
|
9
|
+
|
|
10
10
|
extend Adapter
|
|
11
11
|
extend ContextRegistry
|
|
12
12
|
extend ModelRegistry
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class Base < Lutaml::Model::Serializable
|
|
6
|
+
def self.inherited(subclass)
|
|
7
|
+
super
|
|
8
|
+
Omml::Configuration.register_model(subclass)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def self.lutaml_default_register
|
|
12
|
+
Omml::Configuration.context_id
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/omml/models/ct_acc.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTAcc <
|
|
5
|
+
class CTAcc < Base
|
|
6
6
|
attribute :acc_pr, :ct_acc_pr, collection: 0..1
|
|
7
7
|
attribute :e, :ct_o_math_arg
|
|
8
8
|
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTAcc)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTAccPr <
|
|
5
|
+
class CTAccPr < Base
|
|
6
6
|
attribute :chr, :ct_char, 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(CTAccPr)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTAnchor <
|
|
5
|
+
class CTAnchor < Base
|
|
6
6
|
attribute :simple_pos, :ct_point2_d
|
|
7
7
|
attribute :position_h, :ct_pos_h
|
|
8
8
|
attribute :position_v, :ct_pos_v
|
|
@@ -54,7 +54,5 @@ module Omml
|
|
|
54
54
|
map_attribute :allowOverlap, to: :allow_overlap
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
|
-
|
|
58
|
-
Omml::Configuration.register_model(CTAnchor)
|
|
59
57
|
end
|
|
60
58
|
end
|
data/lib/omml/models/ct_attr.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTAttr <
|
|
5
|
+
class CTAttr < Base
|
|
6
6
|
attribute :uri, :st_string
|
|
7
7
|
attribute :name, :st_string
|
|
8
8
|
attribute :val, :st_string
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
map_attribute :val, to: :val
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTAttr)
|
|
22
20
|
end
|
|
23
21
|
end
|
data/lib/omml/models/ct_bar.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBar <
|
|
5
|
+
class CTBar < Base
|
|
6
6
|
attribute :bar_pr, :ct_bar_pr, collection: 0..1
|
|
7
7
|
attribute :e, :ct_o_math_arg
|
|
8
8
|
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTBar)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBarPr <
|
|
5
|
+
class CTBarPr < Base
|
|
6
6
|
attribute :pos, :ct_top_bot, 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(CTBarPr)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBorder <
|
|
5
|
+
class CTBorder < Base
|
|
6
6
|
attribute :val, :st_border
|
|
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 :frame, to: :frame
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
-
|
|
33
|
-
Omml::Configuration.register_model(CTBorder)
|
|
34
32
|
end
|
|
35
33
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBorderBox <
|
|
5
|
+
class CTBorderBox < Base
|
|
6
6
|
attribute :border_box_pr, :ct_border_box_pr, collection: 0..1
|
|
7
7
|
attribute :e, :ct_o_math_arg
|
|
8
8
|
|
|
@@ -18,7 +18,5 @@ module Omml
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
|
-
|
|
22
|
-
Omml::Configuration.register_model(CTBorderBox)
|
|
23
21
|
end
|
|
24
22
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBorderBoxPr <
|
|
5
|
+
class CTBorderBoxPr < Base
|
|
6
6
|
attribute :hide_top, :ct_on_off, collection: 0..1
|
|
7
7
|
attribute :hide_bot, :ct_on_off, collection: 0..1
|
|
8
8
|
attribute :hide_left, :ct_on_off, collection: 0..1
|
|
@@ -31,7 +31,5 @@ module Omml
|
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
|
-
|
|
35
|
-
Omml::Configuration.register_model(CTBorderBoxPr)
|
|
36
34
|
end
|
|
37
35
|
end
|
data/lib/omml/models/ct_box.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBox <
|
|
5
|
+
class CTBox < Base
|
|
6
6
|
attribute :box_pr, :ct_box_pr, collection: 0..1
|
|
7
7
|
attribute :e, :ct_o_math_arg
|
|
8
8
|
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTBox)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBoxPr <
|
|
5
|
+
class CTBoxPr < Base
|
|
6
6
|
attribute :op_emu, :ct_on_off, collection: 0..1
|
|
7
7
|
attribute :no_break, :ct_on_off, collection: 0..1
|
|
8
8
|
attribute :diff, :ct_on_off, collection: 0..1
|
|
@@ -25,7 +25,5 @@ module Omml
|
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
-
|
|
29
|
-
Omml::Configuration.register_model(CTBoxPr)
|
|
30
28
|
end
|
|
31
29
|
end
|
data/lib/omml/models/ct_br.rb
CHANGED
|
@@ -2,20 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBr <
|
|
5
|
+
class CTBr < Base
|
|
6
6
|
attribute :type, :st_br_type
|
|
7
7
|
attribute :clear, :st_br_clear
|
|
8
8
|
|
|
9
9
|
xml do
|
|
10
10
|
element "CT_Br"
|
|
11
11
|
|
|
12
|
-
namespace Omml::
|
|
12
|
+
namespace Omml::WordprocessingNamespace
|
|
13
13
|
|
|
14
14
|
map_attribute :type, to: :type
|
|
15
15
|
map_attribute :clear, to: :clear
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
|
-
|
|
19
|
-
Omml::Configuration.register_model(CTBr)
|
|
20
18
|
end
|
|
21
19
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBreakBin <
|
|
5
|
+
class CTBreakBin < Base
|
|
6
6
|
attribute :val, :st_break_bin
|
|
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(CTBreakBin)
|
|
18
16
|
end
|
|
19
17
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTBreakBinSub <
|
|
5
|
+
class CTBreakBinSub < Base
|
|
6
6
|
attribute :val, :st_break_bin_sub
|
|
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(CTBreakBinSub)
|
|
18
16
|
end
|
|
19
17
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTCalendarType <
|
|
5
|
+
class CTCalendarType < Base
|
|
6
6
|
attribute :val, :st_calendar_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(CTCalendarType)
|
|
18
16
|
end
|
|
19
17
|
end
|
data/lib/omml/models/ct_char.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTChar <
|
|
5
|
+
class CTChar < Base
|
|
6
6
|
attribute :val, :st_char
|
|
7
7
|
|
|
8
8
|
xml do
|
|
@@ -13,7 +13,5 @@ module Omml
|
|
|
13
13
|
map_attribute :val, to: :val, render_empty: true
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
|
-
|
|
17
|
-
Omml::Configuration.register_model(CTChar)
|
|
18
16
|
end
|
|
19
17
|
end
|
data/lib/omml/models/ct_color.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTColor <
|
|
5
|
+
class CTColor < Base
|
|
6
6
|
attribute :val, :st_hex_color
|
|
7
7
|
attribute :theme_color, :st_theme_color
|
|
8
8
|
attribute :theme_tint, :st_uchar_hex_number
|
|
@@ -19,7 +19,5 @@ module Omml
|
|
|
19
19
|
map_attribute :themeShade, to: :theme_shade
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
|
-
|
|
23
|
-
Omml::Configuration.register_model(CTColor)
|
|
24
22
|
end
|
|
25
23
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTControl <
|
|
5
|
+
class CTControl < Base
|
|
6
6
|
attribute :name, :st_string
|
|
7
7
|
attribute :shapeid, :st_string
|
|
8
8
|
attribute :id, :st_relationship_id
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
map_attribute :id, to: :id
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTControl)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTCtrlPr <
|
|
5
|
+
class CTCtrlPr < Base
|
|
6
6
|
import_model_attributes :eg_r_pr_math
|
|
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(CTCtrlPr)
|
|
20
18
|
end
|
|
21
19
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTCustomXmlPr <
|
|
5
|
+
class CTCustomXmlPr < Base
|
|
6
6
|
attribute :placeholder, :ct_string, collection: 0..1
|
|
7
7
|
attribute :attr, :ct_attr, collection: 0..Float::INFINITY
|
|
8
8
|
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTCustomXmlPr)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTCustomXmlRun <
|
|
5
|
+
class CTCustomXmlRun < Base
|
|
6
6
|
attribute :custom_xml_pr, :ct_custom_xml_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(CTCustomXmlRun)
|
|
26
24
|
end
|
|
27
25
|
end
|
data/lib/omml/models/ct_d.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTD <
|
|
5
|
+
class CTD < Base
|
|
6
6
|
attribute :d_pr, :ct_d_pr, collection: 0..1
|
|
7
7
|
attribute :e, :ct_o_math_arg, collection: 1..Float::INFINITY
|
|
8
8
|
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTD)
|
|
22
20
|
end
|
|
23
21
|
end
|
data/lib/omml/models/ct_d_pr.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTDPr <
|
|
5
|
+
class CTDPr < Base
|
|
6
6
|
import_model_attributes :eg_word_r_pr
|
|
7
7
|
attribute :beg_chr, :ct_char, collection: 0..1
|
|
8
8
|
attribute :sep_chr, :ct_char, collection: 0..1
|
|
@@ -28,7 +28,5 @@ module Omml
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
|
-
|
|
32
|
-
Omml::Configuration.register_model(CTDPr)
|
|
33
31
|
end
|
|
34
32
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTDataBinding <
|
|
5
|
+
class CTDataBinding < Base
|
|
6
6
|
attribute :prefix_mappings, :st_string
|
|
7
7
|
attribute :xpath, :st_string
|
|
8
8
|
attribute :store_item_id, :st_string
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
map_attribute :storeItemID, to: :store_item_id
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTDataBinding)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTDecimalNumber <
|
|
5
|
+
class CTDecimalNumber < Base
|
|
6
6
|
attribute :val, :st_decimal_number
|
|
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(CTDecimalNumber)
|
|
18
16
|
end
|
|
19
17
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTDrawing <
|
|
5
|
+
class CTDrawing < Base
|
|
6
6
|
choice(min: 1, max: Float::INFINITY) do
|
|
7
7
|
attribute :anchor, :ct_anchor, collection: 0..1
|
|
8
8
|
attribute :inline, :ct_inline, collection: 0..1
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
map_element :inline, to: :inline
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTDrawing)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTEastAsianLayout <
|
|
5
|
+
class CTEastAsianLayout < Base
|
|
6
6
|
attribute :id, :st_decimal_number
|
|
7
7
|
attribute :combine, :st_on_off
|
|
8
8
|
attribute :combine_brackets, :st_combine_brackets
|
|
@@ -21,7 +21,5 @@ module Omml
|
|
|
21
21
|
map_attribute :vertCompress, to: :vert_compress
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
|
-
|
|
25
|
-
Omml::Configuration.register_model(CTEastAsianLayout)
|
|
26
24
|
end
|
|
27
25
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTEffectExtent <
|
|
5
|
+
class CTEffectExtent < Base
|
|
6
6
|
attribute :l, :st_coordinate
|
|
7
7
|
attribute :t, :st_coordinate
|
|
8
8
|
attribute :r, :st_coordinate
|
|
@@ -19,7 +19,5 @@ module Omml
|
|
|
19
19
|
map_attribute :b, to: :b
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
|
-
|
|
23
|
-
Omml::Configuration.register_model(CTEffectExtent)
|
|
24
22
|
end
|
|
25
23
|
end
|
data/lib/omml/models/ct_em.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTEm <
|
|
5
|
+
class CTEm < Base
|
|
6
6
|
attribute :val, :st_em
|
|
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(CTEm)
|
|
18
16
|
end
|
|
19
17
|
end
|
data/lib/omml/models/ct_empty.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTEqArr <
|
|
5
|
+
class CTEqArr < Base
|
|
6
6
|
attribute :eq_arr_pr, :ct_eq_arr_pr, collection: 0..1
|
|
7
7
|
attribute :e, :ct_o_math_arg, collection: 1..Float::INFINITY
|
|
8
8
|
|
|
@@ -17,7 +17,5 @@ module Omml
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
Omml::Configuration.register_model(CTEqArr)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTEqArrPr <
|
|
5
|
+
class CTEqArrPr < Base
|
|
6
6
|
attribute :base_jc, :ct_y_align, collection: 0..1
|
|
7
7
|
attribute :max_dist, :ct_on_off, collection: 0..1
|
|
8
8
|
attribute :obj_dist, :ct_on_off, collection: 0..1
|
|
@@ -25,7 +25,5 @@ module Omml
|
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
-
|
|
29
|
-
Omml::Configuration.register_model(CTEqArrPr)
|
|
30
28
|
end
|
|
31
29
|
end
|
data/lib/omml/models/ct_f.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTF <
|
|
5
|
+
class CTF < Base
|
|
6
6
|
attribute :f_pr, :ct_f_pr, collection: 0..1
|
|
7
7
|
attribute :num, :ct_o_math_arg
|
|
8
8
|
attribute :den, :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(CTF)
|
|
24
22
|
end
|
|
25
23
|
end
|
data/lib/omml/models/ct_f_pr.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Omml
|
|
4
4
|
module Models
|
|
5
|
-
class CTFPr <
|
|
5
|
+
class CTFPr < Base
|
|
6
6
|
attribute :type, :ct_f_type, 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(CTFPr)
|
|
22
20
|
end
|
|
23
21
|
end
|