Sha256: 36a5b9aa7736ff30d055603f056528a111c9a7b0b30d01c1c8f5d3d69a121d48

Contents?: true

Size: 657 Bytes

Versions: 48

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Chart Style
  class ChartStyle < OOXMLDocumentObject
    attr_accessor :style_number
    # @return [OleObject] ole object
    attr_accessor :ole_object

    # Parse ChartStyle
    # @param [Nokogiri::XML:Node] node with Relationships
    # @return [ChartStyle] result of parsing
    def parse(node)
      node.xpath('*').each do |node_child|
        case node_child.name
        when 'style'
          @style_number = node_child.attribute('val').value.to_i
        when 'oleObject'
          @ole_object = OleObject.new(parent: self).parse(node_child)
        end
      end
      self
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
ooxml_parser-0.8.1 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.8.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.7.2 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.7.1 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.7.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.6.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.5.1 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.5.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb