Sha256: 88150ace7c15b21b815f6fc331f134b726130283092b98a723c3f3b2ddfb3d7f

Contents?: true

Size: 778 Bytes

Versions: 48

Compression:

Stored size: 778 Bytes

Contents

# frozen_string_literal: true

require_relative 'common_slide_data/shape_tree'

module OoxmlParser
  # Class for parsing `cSld` tag
  class CommonSlideData < OOXMLDocumentObject
    # @return [ShapeTree] tree of shape
    attr_reader :shape_tree
    # @return [Background] background
    attr_reader :background

    # Parse CommonSlideData object
    # @param node [Nokogiri::XML:Element] node to parse
    # @return [CommonSlideData] result of parsing
    def parse(node)
      node.xpath('*').each do |node_child|
        case node_child.name
        when 'spTree'
          @shape_tree = ShapeTree.new(parent: self).parse(node_child)
        when 'bg'
          @background = Background.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.37.1 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.37.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.36.1 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.36.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.35.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.34.2 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.34.1 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.34.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.33.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.32.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.31.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.30.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.29.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.28.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.27.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.26.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.25.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.24.0 lib/ooxml_parser/pptx_parser/presentation/slide/common_slide_data.rb
ooxml_parser-0.23.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/common_slide_data.rb
ooxml_parser-0.22.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/common_slide_data.rb