Sha256: e7f5e826381b5fc7b32313e56b343fe04f7923b87d0d2ef270e4b96d27e5d2dc

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

# XLSX data of pane
module OoxmlParser
  class Pane
    attr_accessor :state, :top_left_cell, :x_split, :y_split

    def self.parse(pane_node)
      pane = Pane.new
      pane_node.attributes.each do |key, value|
        case key
        when 'state'
          pane.state = value.value.to_sym
        when 'topLeftCell'
          pane.top_left_cell = Coordinates.parse_coordinates_from_string(value.value)
        when 'xSplit'
          pane.x_split = value.value
        when 'ySplit'
          pane.y_split = value.value
        end
      end
      pane
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb
ooxml_parser-0.1.1 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb