Sha256: ac4b19bbf9f2488d929f9e5d594626735bb45a0f9b2b276a652c3e46e7c1a13e

Contents?: true

Size: 808 Bytes

Versions: 4

Compression:

Stored size: 808 Bytes

Contents

require_relative 'non_visual_shape_properties/common_non_visual_properties'
require_relative 'non_visual_shape_properties/non_visual_properties'
module OoxmlParser
  class NonVisualShapeProperties < OOXMLDocumentObject
    attr_accessor :common_properties, :non_visual_properties

    # Parse NonVisualShapeProperties object
    # @param node [Nokogiri::XML:Element] node to parse
    # @return [NonVisualShapeProperties] result of parsing
    def parse(node)
      node.xpath('*').each do |node_child|
        case node_child.name
        when 'cNvPr'
          @common_properties = CommonNonVisualProperties.new(parent: self).parse(node_child)
        when 'nvPr'
          @non_visual_properties = NonVisualProperties.new(parent: self).parse(node_child)
        end
      end
      self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/docx_shape/non_visual_shape_properties.rb
ooxml_parser-0.4.0 lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/docx_shape/non_visual_shape_properties.rb
ooxml_parser-0.3.0 lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/docx_shape/non_visual_shape_properties.rb
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/docx_shape/non_visual_shape_properties.rb