Class: Uniword::Wordprocessingml::Level
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Uniword::Wordprocessingml::Level
- Defined in:
- lib/uniword/wordprocessingml/level.rb
Overview
Numbering level definition
Generated from OOXML schema: wordprocessingml.yml Element: <w:lvl>
Per ECMA-376 CT_Lvl, w:ind and w:tabs are NOT direct children of
w:lvl — they belong to the level's w:pPr. They are therefore not
mapped here; use pPr.indentation / pPr.tabs.
Instance Method Summary collapse
-
#alignment_value ⇒ Object
Get alignment value (convenience method - returns string).
-
#format_value ⇒ Object
Get numbering format value (convenience method).
-
#hanging_indent_value ⇒ Object
Get hanging indent (convenience method - returns integer).
-
#left_indent_value ⇒ Object
Get left indent (convenience method - returns integer).
-
#level_index ⇒ Object
Get level index (convenience method for numbering).
-
#start_value ⇒ Object
Get start value (convenience method - returns integer).
-
#text_value ⇒ Object
Get level text value (convenience method - returns string).
Instance Method Details
#alignment_value ⇒ Object
Get alignment value (convenience method - returns string)
105 106 107 |
# File 'lib/uniword/wordprocessingml/level.rb', line 105 def alignment_value lvlJc&.val end |
#format_value ⇒ Object
Get numbering format value (convenience method)
95 96 97 |
# File 'lib/uniword/wordprocessingml/level.rb', line 95 def format_value numFmt&.val end |
#hanging_indent_value ⇒ Object
Get hanging indent (convenience method - returns integer)
115 116 117 |
# File 'lib/uniword/wordprocessingml/level.rb', line 115 def hanging_indent_value pPr&.indentation&.hanging.to_i end |
#left_indent_value ⇒ Object
Get left indent (convenience method - returns integer)
110 111 112 |
# File 'lib/uniword/wordprocessingml/level.rb', line 110 def left_indent_value pPr&.indentation&.left.to_i end |
#level_index ⇒ Object
Get level index (convenience method for numbering)
90 91 92 |
# File 'lib/uniword/wordprocessingml/level.rb', line 90 def level_index ilvl end |
#start_value ⇒ Object
Get start value (convenience method - returns integer)
100 101 102 |
# File 'lib/uniword/wordprocessingml/level.rb', line 100 def start_value @start&.val end |
#text_value ⇒ Object
Get level text value (convenience method - returns string)
120 121 122 |
# File 'lib/uniword/wordprocessingml/level.rb', line 120 def text_value lvlText&.val end |