omml 0.1.0 → 0.2.1
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/.github/workflows/rake.yml +22 -0
- data/.github/workflows/release.yml +23 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +25 -0
- data/.rubocop_todo.yml +19 -0
- data/CLAUDE.md +64 -0
- data/Gemfile +11 -7
- data/README.adoc +222 -4
- data/Rakefile +3 -3
- data/bin/console +3 -3
- data/lib/omml/configuration/adapter.rb +21 -0
- data/lib/omml/configuration/context_registry.rb +131 -0
- data/lib/omml/configuration/model_registry.rb +60 -0
- data/lib/omml/configuration/type_resolver.rb +47 -0
- data/lib/omml/configuration.rb +25 -0
- data/lib/omml/errors/base_error.rb +8 -0
- data/lib/omml/errors/invalid_xml_error.rb +8 -0
- data/lib/omml/errors/missing_context_error.rb +23 -0
- data/lib/omml/errors/root_element_not_found_error.rb +11 -0
- data/lib/omml/errors/unsupported_root_element_error.rb +11 -0
- data/lib/omml/errors/xml_adapter_not_configured_error.rb +11 -0
- data/lib/omml/errors.rb +15 -0
- data/lib/omml/models/ct_acc.rb +23 -0
- data/lib/omml/models/ct_acc_pr.rb +23 -0
- data/lib/omml/models/ct_anchor.rb +60 -0
- data/lib/omml/models/ct_attr.rb +23 -0
- data/lib/omml/models/ct_bar.rb +23 -0
- data/lib/omml/models/ct_bar_pr.rb +23 -0
- data/lib/omml/models/ct_bookmark.rb +19 -0
- data/lib/omml/models/ct_bookmark_range.rb +21 -0
- data/lib/omml/models/ct_border.rb +35 -0
- data/lib/omml/models/ct_border_box.rb +24 -0
- data/lib/omml/models/ct_border_box_pr.rb +37 -0
- data/lib/omml/models/ct_box.rb +23 -0
- data/lib/omml/models/ct_box_pr.rb +31 -0
- data/lib/omml/models/ct_br.rb +21 -0
- data/lib/omml/models/ct_break_bin.rb +19 -0
- data/lib/omml/models/ct_break_bin_sub.rb +19 -0
- data/lib/omml/models/ct_calendar_type.rb +19 -0
- data/lib/omml/models/ct_char.rb +19 -0
- data/lib/omml/models/ct_color.rb +25 -0
- data/lib/omml/models/ct_control.rb +23 -0
- data/lib/omml/models/ct_ctrl_pr.rb +21 -0
- data/lib/omml/models/ct_custom_xml_pr.rb +23 -0
- data/lib/omml/models/ct_custom_xml_run.rb +27 -0
- data/lib/omml/models/ct_d.rb +23 -0
- data/lib/omml/models/ct_d_pr.rb +34 -0
- data/lib/omml/models/ct_data_binding.rb +23 -0
- data/lib/omml/models/ct_decimal_number.rb +19 -0
- data/lib/omml/models/ct_drawing.rb +23 -0
- data/lib/omml/models/ct_east_asian_layout.rb +27 -0
- data/lib/omml/models/ct_effect_extent.rb +25 -0
- data/lib/omml/models/ct_em.rb +19 -0
- data/lib/omml/models/ct_empty.rb +15 -0
- data/lib/omml/models/ct_eq_arr.rb +23 -0
- data/lib/omml/models/ct_eq_arr_pr.rb +31 -0
- data/lib/omml/models/ct_f.rb +25 -0
- data/lib/omml/models/ct_f_pr.rb +23 -0
- data/lib/omml/models/ct_f_type.rb +19 -0
- data/lib/omml/models/ct_ff_check_box.rb +29 -0
- data/lib/omml/models/ct_ff_data.rb +41 -0
- data/lib/omml/models/ct_ff_help_text.rb +21 -0
- data/lib/omml/models/ct_ff_name.rb +19 -0
- data/lib/omml/models/ct_ff_status_text.rb +21 -0
- data/lib/omml/models/ct_ff_text_input.rb +27 -0
- data/lib/omml/models/ct_ff_text_type.rb +19 -0
- data/lib/omml/models/ct_ffdd_list.rb +25 -0
- data/lib/omml/models/ct_fit_text.rb +21 -0
- data/lib/omml/models/ct_fld_char.rb +32 -0
- data/lib/omml/models/ct_fonts.rb +35 -0
- data/lib/omml/models/ct_ftn_edn_ref.rb +21 -0
- data/lib/omml/models/ct_func.rb +26 -0
- data/lib/omml/models/ct_func_pr.rb +21 -0
- data/lib/omml/models/ct_graphical_object.rb +21 -0
- data/lib/omml/models/ct_graphical_object_data.rb +19 -0
- data/lib/omml/models/ct_graphical_object_frame_locking.rb +33 -0
- data/lib/omml/models/ct_group_chr.rb +23 -0
- data/lib/omml/models/ct_group_chr_pr.rb +27 -0
- data/lib/omml/models/ct_highlight.rb +19 -0
- data/lib/omml/models/ct_hps_measure.rb +19 -0
- data/lib/omml/models/ct_hyperlink.rb +31 -0
- data/lib/omml/models/ct_inline.rb +38 -0
- data/lib/omml/models/ct_integer2.rb +19 -0
- data/lib/omml/models/ct_integer255.rb +19 -0
- data/lib/omml/models/ct_lang.rb +19 -0
- data/lib/omml/models/ct_language.rb +23 -0
- data/lib/omml/models/ct_lim_loc.rb +19 -0
- data/lib/omml/models/ct_lim_low.rb +26 -0
- data/lib/omml/models/ct_lim_low_pr.rb +21 -0
- data/lib/omml/models/ct_lim_upp.rb +25 -0
- data/lib/omml/models/ct_lim_upp_pr.rb +21 -0
- data/lib/omml/models/ct_lock.rb +19 -0
- data/lib/omml/models/ct_m.rb +23 -0
- data/lib/omml/models/ct_m_pr.rb +37 -0
- data/lib/omml/models/ct_macro_name.rb +19 -0
- data/lib/omml/models/ct_manual_break.rb +19 -0
- data/lib/omml/models/ct_markup.rb +19 -0
- data/lib/omml/models/ct_markup_range.rb +19 -0
- data/lib/omml/models/ct_math_pr.rb +53 -0
- data/lib/omml/models/ct_mc.rb +21 -0
- data/lib/omml/models/ct_mc_pr.rb +23 -0
- data/lib/omml/models/ct_mcs.rb +21 -0
- data/lib/omml/models/ct_move_bookmark.rb +21 -0
- data/lib/omml/models/ct_mr.rb +21 -0
- data/lib/omml/models/ct_nary.rb +27 -0
- data/lib/omml/models/ct_nary_pr.rb +31 -0
- data/lib/omml/models/ct_non_visual_drawing_props.rb +33 -0
- data/lib/omml/models/ct_non_visual_graphic_frame_properties.rb +24 -0
- data/lib/omml/models/ct_o_math.rb +22 -0
- data/lib/omml/models/ct_o_math_arg.rb +28 -0
- data/lib/omml/models/ct_o_math_arg_pr.rb +21 -0
- data/lib/omml/models/ct_o_math_jc.rb +19 -0
- data/lib/omml/models/ct_o_math_para.rb +26 -0
- data/lib/omml/models/ct_o_math_para_pr.rb +21 -0
- data/lib/omml/models/ct_object.rb +25 -0
- data/lib/omml/models/ct_office_art_extension.rb +19 -0
- data/lib/omml/models/ct_office_art_extension_list.rb +21 -0
- data/lib/omml/models/ct_on_off.rb +19 -0
- data/lib/omml/models/ct_p_tab.rb +23 -0
- data/lib/omml/models/ct_perm.rb +21 -0
- data/lib/omml/models/ct_perm_start.rb +25 -0
- data/lib/omml/models/ct_phant.rb +23 -0
- data/lib/omml/models/ct_phant_pr.rb +31 -0
- data/lib/omml/models/ct_picture.rb +23 -0
- data/lib/omml/models/ct_picture_base.rb +15 -0
- data/lib/omml/models/ct_placeholder.rb +21 -0
- data/lib/omml/models/ct_point2_d.rb +21 -0
- data/lib/omml/models/ct_pos_h.rb +27 -0
- data/lib/omml/models/ct_pos_v.rb +27 -0
- data/lib/omml/models/ct_positive_size2_d.rb +21 -0
- data/lib/omml/models/ct_proof_err.rb +19 -0
- data/lib/omml/models/ct_r.rb +27 -0
- data/lib/omml/models/ct_r_pr.rb +21 -0
- data/lib/omml/models/ct_r_pr_change.rb +21 -0
- data/lib/omml/models/ct_r_pr_original.rb +21 -0
- data/lib/omml/models/ct_rad.rb +25 -0
- data/lib/omml/models/ct_rad_pr.rb +23 -0
- data/lib/omml/models/ct_rel.rb +19 -0
- data/lib/omml/models/ct_rpr.rb +33 -0
- data/lib/omml/models/ct_ruby.rb +25 -0
- data/lib/omml/models/ct_ruby_align.rb +19 -0
- data/lib/omml/models/ct_ruby_content.rb +19 -0
- data/lib/omml/models/ct_ruby_pr.rb +31 -0
- data/lib/omml/models/ct_run_track_change.rb +23 -0
- data/lib/omml/models/ct_s_pre.rb +28 -0
- data/lib/omml/models/ct_s_pre_pr.rb +21 -0
- data/lib/omml/models/ct_s_sub.rb +25 -0
- data/lib/omml/models/ct_s_sub_pr.rb +21 -0
- data/lib/omml/models/ct_s_sub_sup.rb +28 -0
- data/lib/omml/models/ct_s_sub_sup_pr.rb +23 -0
- data/lib/omml/models/ct_s_sup.rb +25 -0
- data/lib/omml/models/ct_s_sup_pr.rb +21 -0
- data/lib/omml/models/ct_script.rb +19 -0
- data/lib/omml/models/ct_sdt_combo_box.rb +23 -0
- data/lib/omml/models/ct_sdt_content_run.rb +19 -0
- data/lib/omml/models/ct_sdt_date.rb +30 -0
- data/lib/omml/models/ct_sdt_date_mapping_type.rb +19 -0
- data/lib/omml/models/ct_sdt_doc_part.rb +25 -0
- data/lib/omml/models/ct_sdt_drop_down_list.rb +23 -0
- data/lib/omml/models/ct_sdt_end_pr.rb +21 -0
- data/lib/omml/models/ct_sdt_list_item.rb +21 -0
- data/lib/omml/models/ct_sdt_pr.rb +63 -0
- data/lib/omml/models/ct_sdt_run.rb +25 -0
- data/lib/omml/models/ct_sdt_text.rb +19 -0
- data/lib/omml/models/ct_shd.rb +35 -0
- data/lib/omml/models/ct_shp.rb +19 -0
- data/lib/omml/models/ct_signed_hps_measure.rb +19 -0
- data/lib/omml/models/ct_signed_twips_measure.rb +19 -0
- data/lib/omml/models/ct_simple_field.rb +29 -0
- data/lib/omml/models/ct_smart_tag_pr.rb +21 -0
- data/lib/omml/models/ct_smart_tag_run.rb +27 -0
- data/lib/omml/models/ct_spacing_rule.rb +19 -0
- data/lib/omml/models/ct_string.rb +19 -0
- data/lib/omml/models/ct_style.rb +19 -0
- data/lib/omml/models/ct_sym.rb +21 -0
- data/lib/omml/models/ct_text.rb +19 -0
- data/lib/omml/models/ct_text_effect.rb +19 -0
- data/lib/omml/models/ct_text_scale.rb +19 -0
- data/lib/omml/models/ct_top_bot.rb +19 -0
- data/lib/omml/models/ct_track_change.rb +21 -0
- data/lib/omml/models/ct_track_change_numbering.rb +19 -0
- data/lib/omml/models/ct_twips_measure.rb +19 -0
- data/lib/omml/models/ct_un_signed_integer.rb +19 -0
- data/lib/omml/models/ct_underline.rb +27 -0
- data/lib/omml/models/ct_vertical_align_run.rb +19 -0
- data/lib/omml/models/ct_wordprocessing_on_off.rb +19 -0
- data/lib/omml/models/ct_wrap_none.rb +15 -0
- data/lib/omml/models/ct_wrap_path.rb +25 -0
- data/lib/omml/models/ct_wrap_square.rb +31 -0
- data/lib/omml/models/ct_wrap_through.rb +27 -0
- data/lib/omml/models/ct_wrap_tight.rb +27 -0
- data/lib/omml/models/ct_wrap_top_bottom.rb +25 -0
- data/lib/omml/models/ct_x_align.rb +19 -0
- data/lib/omml/models/ct_y_align.rb +19 -0
- data/lib/omml/models/groups/eg_content_run_content.rb +26 -0
- data/lib/omml/models/groups/eg_math_content.rb +20 -0
- data/lib/omml/models/groups/eg_o_math_elements.rb +20 -0
- data/lib/omml/models/groups/eg_o_math_math_elements.rb +56 -0
- data/lib/omml/models/groups/eg_office_art_extension_list.rb +16 -0
- data/lib/omml/models/groups/eg_p_content.rb +24 -0
- data/lib/omml/models/groups/eg_r_pr.rb +17 -0
- data/lib/omml/models/groups/eg_r_pr_base.rb +93 -0
- data/lib/omml/models/groups/eg_r_pr_content.rb +19 -0
- data/lib/omml/models/groups/eg_r_pr_math.rb +23 -0
- data/lib/omml/models/groups/eg_range_markup_elements.rb +60 -0
- data/lib/omml/models/groups/eg_ruby_content.rb +20 -0
- data/lib/omml/models/groups/eg_run_inner_content.rb +83 -0
- data/lib/omml/models/groups/eg_run_level_elts.rb +34 -0
- data/lib/omml/models/groups/eg_script_style.rb +18 -0
- data/lib/omml/models/groups/eg_word_r_pr.rb +17 -0
- data/lib/omml/models/groups/eg_wrap_type.rb +27 -0
- data/lib/omml/models/groups.rb +19 -0
- data/lib/omml/models/o_math.rb +21 -0
- data/lib/omml/models/o_math_para.rb +25 -0
- data/lib/omml/models/simple_types/enum_string.rb +42 -0
- data/lib/omml/models/simple_types/hex_binary.rb +15 -0
- data/lib/omml/models/simple_types/st_adj_coordinate.rb +24 -0
- data/lib/omml/models/simple_types/st_align_h.rb +17 -0
- data/lib/omml/models/simple_types/st_align_v.rb +17 -0
- data/lib/omml/models/simple_types/st_border.rb +203 -0
- data/lib/omml/models/simple_types/st_br_clear.rb +16 -0
- data/lib/omml/models/simple_types/st_br_type.rb +15 -0
- data/lib/omml/models/simple_types/st_break_bin.rb +15 -0
- data/lib/omml/models/simple_types/st_break_bin_sub.rb +15 -0
- data/lib/omml/models/simple_types/st_calendar_type.rb +22 -0
- data/lib/omml/models/simple_types/st_combine_brackets.rb +17 -0
- data/lib/omml/models/simple_types/st_coordinate.rb +16 -0
- data/lib/omml/models/simple_types/st_displaced_by_custom_xml.rb +14 -0
- data/lib/omml/models/simple_types/st_ed_grp.rb +19 -0
- data/lib/omml/models/simple_types/st_em.rb +17 -0
- data/lib/omml/models/simple_types/st_f_type.rb +16 -0
- data/lib/omml/models/simple_types/st_ff_text_type.rb +18 -0
- data/lib/omml/models/simple_types/st_fld_char_type.rb +15 -0
- data/lib/omml/models/simple_types/st_geom_guide_name.rb +10 -0
- data/lib/omml/models/simple_types/st_hex_color.rb +24 -0
- data/lib/omml/models/simple_types/st_highlight_color.rb +29 -0
- data/lib/omml/models/simple_types/st_hint.rb +15 -0
- data/lib/omml/models/simple_types/st_info_text_type.rb +14 -0
- data/lib/omml/models/simple_types/st_integer2.rb +15 -0
- data/lib/omml/models/simple_types/st_integer255.rb +15 -0
- data/lib/omml/models/simple_types/st_jc.rb +16 -0
- data/lib/omml/models/simple_types/st_lang.rb +24 -0
- data/lib/omml/models/simple_types/st_lim_loc.rb +14 -0
- data/lib/omml/models/simple_types/st_lock.rb +16 -0
- data/lib/omml/models/simple_types/st_on_off.rb +18 -0
- data/lib/omml/models/simple_types/st_p_tab_alignment.rb +15 -0
- data/lib/omml/models/simple_types/st_p_tab_leader.rb +17 -0
- data/lib/omml/models/simple_types/st_p_tab_relative_to.rb +14 -0
- data/lib/omml/models/simple_types/st_positive_coordinate.rb +15 -0
- data/lib/omml/models/simple_types/st_proof_err.rb +16 -0
- data/lib/omml/models/simple_types/st_rel_from_h.rb +20 -0
- data/lib/omml/models/simple_types/st_rel_from_v.rb +20 -0
- data/lib/omml/models/simple_types/st_ruby_align.rb +18 -0
- data/lib/omml/models/simple_types/st_script.rb +18 -0
- data/lib/omml/models/simple_types/st_sdt_date_mapping_type.rb +15 -0
- data/lib/omml/models/simple_types/st_shd.rb +50 -0
- data/lib/omml/models/simple_types/st_shp.rb +14 -0
- data/lib/omml/models/simple_types/st_spacing_rule.rb +15 -0
- data/lib/omml/models/simple_types/st_style.rb +16 -0
- data/lib/omml/models/simple_types/st_text_effect.rb +19 -0
- data/lib/omml/models/simple_types/st_text_scale.rb +15 -0
- data/lib/omml/models/simple_types/st_theme.rb +20 -0
- data/lib/omml/models/simple_types/st_theme_color.rb +29 -0
- data/lib/omml/models/simple_types/st_top_bot.rb +14 -0
- data/lib/omml/models/simple_types/st_underline.rb +30 -0
- data/lib/omml/models/simple_types/st_vertical_align_run.rb +15 -0
- data/lib/omml/models/simple_types/st_wrap_text.rb +16 -0
- data/lib/omml/models/simple_types/st_x_align.rb +15 -0
- data/lib/omml/models/simple_types/st_y_align.rb +15 -0
- data/lib/omml/models/simple_types/token.rb +35 -0
- data/lib/omml/models/simple_types/unsigned_int.rb +15 -0
- data/lib/omml/models/simple_types/unsigned_long.rb +15 -0
- data/lib/omml/models/simple_types.rb +60 -0
- data/lib/omml/models.rb +183 -0
- data/lib/omml/namespace.rb +9 -0
- data/lib/omml/parser.rb +39 -0
- data/lib/omml/type_substitutions.rb +89 -0
- data/lib/omml/version.rb +2 -2
- data/lib/omml/wordprocessing_namespace.rb +9 -0
- data/lib/omml.rb +31 -3
- data/omml.gemspec +18 -14
- data/sig/omml.rbs +1 -1
- metadata +335 -6
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STBorder < EnumString
|
|
6
|
+
VALUES = %w[
|
|
7
|
+
nil
|
|
8
|
+
none
|
|
9
|
+
single
|
|
10
|
+
thick
|
|
11
|
+
double
|
|
12
|
+
dotted
|
|
13
|
+
dashed
|
|
14
|
+
dotDash
|
|
15
|
+
dotDotDash
|
|
16
|
+
triple
|
|
17
|
+
thinThickSmallGap
|
|
18
|
+
thickThinSmallGap
|
|
19
|
+
thinThickThinSmallGap
|
|
20
|
+
thinThickMediumGap
|
|
21
|
+
thickThinMediumGap
|
|
22
|
+
thinThickThinMediumGap
|
|
23
|
+
thinThickLargeGap
|
|
24
|
+
thickThinLargeGap
|
|
25
|
+
thinThickThinLargeGap
|
|
26
|
+
wave
|
|
27
|
+
doubleWave
|
|
28
|
+
dashSmallGap
|
|
29
|
+
dashDotStroked
|
|
30
|
+
threeDEmboss
|
|
31
|
+
threeDEngrave
|
|
32
|
+
outset
|
|
33
|
+
inset
|
|
34
|
+
apples
|
|
35
|
+
archedScallops
|
|
36
|
+
babyPacifier
|
|
37
|
+
babyRattle
|
|
38
|
+
balloons3Colors
|
|
39
|
+
balloonsHotAir
|
|
40
|
+
basicBlackDashes
|
|
41
|
+
basicBlackDots
|
|
42
|
+
basicBlackSquares
|
|
43
|
+
basicThinLines
|
|
44
|
+
basicWhiteDashes
|
|
45
|
+
basicWhiteDots
|
|
46
|
+
basicWhiteSquares
|
|
47
|
+
basicWideInline
|
|
48
|
+
basicWideMidline
|
|
49
|
+
basicWideOutline
|
|
50
|
+
bats
|
|
51
|
+
birds
|
|
52
|
+
birdsFlight
|
|
53
|
+
cabins
|
|
54
|
+
cakeSlice
|
|
55
|
+
candyCorn
|
|
56
|
+
celticKnotwork
|
|
57
|
+
certificateBanner
|
|
58
|
+
chainLink
|
|
59
|
+
champagneBottle
|
|
60
|
+
checkedBarBlack
|
|
61
|
+
checkedBarColor
|
|
62
|
+
checkered
|
|
63
|
+
christmasTree
|
|
64
|
+
circlesLines
|
|
65
|
+
circlesRectangles
|
|
66
|
+
classicalWave
|
|
67
|
+
clocks
|
|
68
|
+
compass
|
|
69
|
+
confetti
|
|
70
|
+
confettiGrays
|
|
71
|
+
confettiOutline
|
|
72
|
+
confettiStreamers
|
|
73
|
+
confettiWhite
|
|
74
|
+
cornerTriangles
|
|
75
|
+
couponCutoutDashes
|
|
76
|
+
couponCutoutDots
|
|
77
|
+
crazyMaze
|
|
78
|
+
creaturesButterfly
|
|
79
|
+
creaturesFish
|
|
80
|
+
creaturesInsects
|
|
81
|
+
creaturesLadyBug
|
|
82
|
+
crossStitch
|
|
83
|
+
cup
|
|
84
|
+
decoArch
|
|
85
|
+
decoArchColor
|
|
86
|
+
decoBlocks
|
|
87
|
+
diamondsGray
|
|
88
|
+
doubleD
|
|
89
|
+
doubleDiamonds
|
|
90
|
+
earth1
|
|
91
|
+
earth2
|
|
92
|
+
eclipsingSquares1
|
|
93
|
+
eclipsingSquares2
|
|
94
|
+
eggsBlack
|
|
95
|
+
fans
|
|
96
|
+
film
|
|
97
|
+
firecrackers
|
|
98
|
+
flowersBlockPrint
|
|
99
|
+
flowersDaisies
|
|
100
|
+
flowersModern1
|
|
101
|
+
flowersModern2
|
|
102
|
+
flowersPansy
|
|
103
|
+
flowersRedRose
|
|
104
|
+
flowersRoses
|
|
105
|
+
flowersTeacup
|
|
106
|
+
flowersTiny
|
|
107
|
+
gems
|
|
108
|
+
gingerbreadMan
|
|
109
|
+
gradient
|
|
110
|
+
handmade1
|
|
111
|
+
handmade2
|
|
112
|
+
heartBalloon
|
|
113
|
+
heartGray
|
|
114
|
+
hearts
|
|
115
|
+
heebieJeebies
|
|
116
|
+
holly
|
|
117
|
+
houseFunky
|
|
118
|
+
hypnotic
|
|
119
|
+
iceCreamCones
|
|
120
|
+
lightBulb
|
|
121
|
+
lightning1
|
|
122
|
+
lightning2
|
|
123
|
+
mapPins
|
|
124
|
+
mapleLeaf
|
|
125
|
+
mapleMuffins
|
|
126
|
+
marquee
|
|
127
|
+
marqueeToothed
|
|
128
|
+
moons
|
|
129
|
+
mosaic
|
|
130
|
+
musicNotes
|
|
131
|
+
northwest
|
|
132
|
+
ovals
|
|
133
|
+
packages
|
|
134
|
+
palmsBlack
|
|
135
|
+
palmsColor
|
|
136
|
+
paperClips
|
|
137
|
+
papyrus
|
|
138
|
+
partyFavor
|
|
139
|
+
partyGlass
|
|
140
|
+
pencils
|
|
141
|
+
people
|
|
142
|
+
peopleWaving
|
|
143
|
+
peopleHats
|
|
144
|
+
poinsettias
|
|
145
|
+
postageStamp
|
|
146
|
+
pumpkin1
|
|
147
|
+
pushPinNote2
|
|
148
|
+
pushPinNote1
|
|
149
|
+
pyramids
|
|
150
|
+
pyramidsAbove
|
|
151
|
+
quadrants
|
|
152
|
+
rings
|
|
153
|
+
safari
|
|
154
|
+
sawtooth
|
|
155
|
+
sawtoothGray
|
|
156
|
+
scaredCat
|
|
157
|
+
seattle
|
|
158
|
+
shadowedSquares
|
|
159
|
+
sharksTeeth
|
|
160
|
+
shorebirdTracks
|
|
161
|
+
skyrocket
|
|
162
|
+
snowflakeFancy
|
|
163
|
+
snowflakes
|
|
164
|
+
sombrero
|
|
165
|
+
southwest
|
|
166
|
+
stars
|
|
167
|
+
starsTop
|
|
168
|
+
stars3d
|
|
169
|
+
starsBlack
|
|
170
|
+
starsShadowed
|
|
171
|
+
sun
|
|
172
|
+
swirligig
|
|
173
|
+
tornPaper
|
|
174
|
+
tornPaperBlack
|
|
175
|
+
trees
|
|
176
|
+
triangleParty
|
|
177
|
+
triangles
|
|
178
|
+
tribal1
|
|
179
|
+
tribal2
|
|
180
|
+
tribal3
|
|
181
|
+
tribal4
|
|
182
|
+
tribal5
|
|
183
|
+
tribal6
|
|
184
|
+
twistedLines1
|
|
185
|
+
twistedLines2
|
|
186
|
+
vine
|
|
187
|
+
waveline
|
|
188
|
+
weavingAngles
|
|
189
|
+
weavingBraid
|
|
190
|
+
weavingRibbon
|
|
191
|
+
weavingStrips
|
|
192
|
+
whiteFlowers
|
|
193
|
+
woodwork
|
|
194
|
+
xIllusions
|
|
195
|
+
zanyTriangles
|
|
196
|
+
zigZag
|
|
197
|
+
zigZagStitch
|
|
198
|
+
].freeze
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
Omml::Configuration.register_model(STBorder)
|
|
202
|
+
end
|
|
203
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STCalendarType < EnumString
|
|
6
|
+
VALUES = %w[
|
|
7
|
+
gregorian
|
|
8
|
+
hijri
|
|
9
|
+
hebrew
|
|
10
|
+
taiwan
|
|
11
|
+
japan
|
|
12
|
+
thai
|
|
13
|
+
korea
|
|
14
|
+
saka
|
|
15
|
+
gregorianXlitEnglish
|
|
16
|
+
gregorianXlitFrench
|
|
17
|
+
].freeze
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
Omml::Configuration.register_model(STCalendarType)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STCombineBrackets < EnumString
|
|
6
|
+
VALUES = %w[
|
|
7
|
+
none
|
|
8
|
+
round
|
|
9
|
+
square
|
|
10
|
+
angle
|
|
11
|
+
curly
|
|
12
|
+
].freeze
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
Omml::Configuration.register_model(STCombineBrackets)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STCoordinate < Lutaml::Model::Type::Decimal
|
|
6
|
+
def self.cast(value, options = {})
|
|
7
|
+
return if value.nil?
|
|
8
|
+
|
|
9
|
+
super(value, options.merge(max: 27_273_042_316_900,
|
|
10
|
+
min: -27_273_042_329_600))
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
Omml::Configuration.register_model(STCoordinate)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STEdGrp < EnumString
|
|
6
|
+
VALUES = %w[
|
|
7
|
+
none
|
|
8
|
+
everyone
|
|
9
|
+
administrators
|
|
10
|
+
contributors
|
|
11
|
+
editors
|
|
12
|
+
owners
|
|
13
|
+
current
|
|
14
|
+
].freeze
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
Omml::Configuration.register_model(STEdGrp)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STFFTextType < EnumString
|
|
6
|
+
VALUES = %w[
|
|
7
|
+
regular
|
|
8
|
+
number
|
|
9
|
+
date
|
|
10
|
+
currentTime
|
|
11
|
+
currentDate
|
|
12
|
+
calculated
|
|
13
|
+
].freeze
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
Omml::Configuration.register_model(STFFTextType)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STHexColor < Lutaml::Model::Type::Value
|
|
6
|
+
def self.cast(value, options = {})
|
|
7
|
+
return if value.nil?
|
|
8
|
+
|
|
9
|
+
cast_value(:st_hex_color_auto, value, options) ||
|
|
10
|
+
cast_value(:st_hex_color_rgb, value, options)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def self.cast_value(type_name, value, options)
|
|
14
|
+
Lutaml::Model::GlobalContext
|
|
15
|
+
.resolve_type(type_name, @register)
|
|
16
|
+
.cast(value, options)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private_class_method :cast_value
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
Omml::Configuration.register_model(STHexColor)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STHighlightColor < EnumString
|
|
6
|
+
VALUES = %w[
|
|
7
|
+
black
|
|
8
|
+
blue
|
|
9
|
+
cyan
|
|
10
|
+
green
|
|
11
|
+
magenta
|
|
12
|
+
red
|
|
13
|
+
yellow
|
|
14
|
+
white
|
|
15
|
+
darkBlue
|
|
16
|
+
darkCyan
|
|
17
|
+
darkGreen
|
|
18
|
+
darkMagenta
|
|
19
|
+
darkRed
|
|
20
|
+
darkYellow
|
|
21
|
+
darkGray
|
|
22
|
+
lightGray
|
|
23
|
+
none
|
|
24
|
+
].freeze
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
Omml::Configuration.register_model(STHighlightColor)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STInteger2 < Lutaml::Model::Type::Integer
|
|
6
|
+
def self.cast(value, options = {})
|
|
7
|
+
return if value.nil?
|
|
8
|
+
|
|
9
|
+
super(value, options.merge(max: 2, min: -2))
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
Omml::Configuration.register_model(STInteger2)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STInteger255 < Lutaml::Model::Type::Integer
|
|
6
|
+
def self.cast(value, options = {})
|
|
7
|
+
return if value.nil?
|
|
8
|
+
|
|
9
|
+
super(value, options.merge(max: 255, min: 1))
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
Omml::Configuration.register_model(STInteger255)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STLang < Lutaml::Model::Type::Value
|
|
6
|
+
def self.cast(value, options = {})
|
|
7
|
+
return if value.nil?
|
|
8
|
+
|
|
9
|
+
cast_value(:st_lang_code, value, options) ||
|
|
10
|
+
cast_value(:st_string, value, options)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def self.cast_value(type_name, value, options)
|
|
14
|
+
Lutaml::Model::GlobalContext
|
|
15
|
+
.resolve_type(type_name, @register)
|
|
16
|
+
.cast(value, options)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private_class_method :cast_value
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
Omml::Configuration.register_model(STLang)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Omml
|
|
4
|
+
module Models
|
|
5
|
+
class STPTabLeader < EnumString
|
|
6
|
+
VALUES = %w[
|
|
7
|
+
none
|
|
8
|
+
dot
|
|
9
|
+
hyphen
|
|
10
|
+
underscore
|
|
11
|
+
middleDot
|
|
12
|
+
].freeze
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
Omml::Configuration.register_model(STPTabLeader)
|
|
16
|
+
end
|
|
17
|
+
end
|