Sha256: c9e1c999e68b3c04c6aa49c6e09c80b370a8c3e76572f66c1f9a731075d76e6d

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

require_relative 'line_join'
# Table Cell Style in XLSX
module OoxmlParser
  class TableCellStyle
    attr_accessor :borders, :fill

    def self.parse(cell_style_node)
      cell_style = TableCellStyle.new
      cell_style_node.xpath('*').each do |cell_node_child|
        case cell_node_child.name
        when 'tcBdr'
          cell_style.borders = Borders.parse(cell_node_child)
        when 'fill'
          cell_style.fill = PresentationFill.parse(cell_node_child)
        end
      end
      cell_style
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/table_cell_style.rb
ooxml_parser-0.1.1 lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/table_cell_style.rb