class Xlsxrb::Ooxml::Reader::SheetFormatListener
SAX2 listener for parsing <sheetFormatPr> element.
Attributes
Public Class Methods
Public Instance Methods
# File lib/xlsxrb/ooxml/reader.rb, line 3552 def start_element(_uri, local_name, qname, attributes) name = element_name(local_name, qname) return unless name == "sheetFormatPr" drh = attributes["defaultRowHeight"] @properties[:default_row_height] = drh.to_f if drh dcw = attributes["defaultColWidth"] @properties[:default_col_width] = dcw.to_f if dcw bcw = attributes["baseColWidth"] @properties[:base_col_width] = bcw.to_i if bcw olr = attributes["outlineLevelRow"] @properties[:outline_level_row] = olr.to_i if olr olc = attributes["outlineLevelCol"] @properties[:outline_level_col] = olc.to_i if olc ch = attributes["customHeight"] @properties[:custom_height] = true if %w[1 true].include?(ch) zh = attributes["zeroHeight"] @properties[:zero_height] = true if %w[1 true].include?(zh) tt = attributes["thickTop"] @properties[:thick_top] = true if %w[1 true].include?(tt) tb = attributes["thickBottom"] @properties[:thick_bottom] = true if %w[1 true].include?(tb) end