Class: Uniword::Wordprocessingml::Level

Inherits:
Lutaml::Model::Serializable
  • Object
show all
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

Instance Method Details

#alignment_valueObject

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_valueObject

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_valueObject

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_valueObject

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_indexObject

Get level index (convenience method for numbering)



90
91
92
# File 'lib/uniword/wordprocessingml/level.rb', line 90

def level_index
  ilvl
end

#start_valueObject

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_valueObject

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