Sha256: 34d178a398ef0eeeb4f5130000a03c6a022beade3db61350b916cdb7086b92ad

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

module OoxmlParser
  class Background < OOXMLDocumentObject
    attr_accessor :fill, :shade_to_title

    def initialize(type = nil)
      @type = type
    end

    def self.parse(background_node)
      background = Background.new
      background_properties_node = background_node.xpath('p:bgPr').first
      if background_properties_node
        background.shade_to_title = OOXMLDocumentObject.option_enabled?(background_properties_node, 'shadeToTitle')
        background.fill = PresentationFill.parse(background_properties_node)
      end
      background
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/background.rb
ooxml_parser-0.1.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/background.rb