class OoxmlParser::SheetView
Class for `sheetView` data
Attributes
pane[RW]
show_gridlines[RW]
@return [True, False] Flag indicating whether this sheet should display gridlines.
show_row_column_headers[RW]
@return [True, False] Flag indicating whether the sheet should display row and column headings.
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view.rb, line 13 def initialize(parent: nil) @show_gridlines = true @show_row_column_headers = true super end
Public Instance Methods
parse(node)
click to toggle source
Parse SheetView
object @param node [Nokogiri::XML:Element] node to parse @return [SheetView] result of parsing
# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view.rb, line 22 def parse(node) node.attributes.each_key do |key| case key when 'showGridLines' @show_gridlines = attribute_enabled?(node, key) when 'showRowColHeaders' @show_row_column_headers = attribute_enabled?(node, key) end end node.xpath('*').each do |node_child| case node_child.name when 'pane' @pane = Pane.new(parent: self).parse(node_child) end end self end