Sha256: e64591d7a89418545b8a80c17d0f604e36276c073c2bf7cdd202a07ae9615b2d

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

module OoxmlParser
  # Class for p:notes
  class PresentationNotes < OOXMLDocumentObject
    # @return [CommonSlideData] common slide data
    attr_reader :common_slide_data

    # Parse PresentationNotes object
    # @param file [String] file to parse
    # @return [PresentationNotes] result of parsing
    def parse(file)
      node = Nokogiri::XML(File.open(file))
      node.xpath('p:notes/*').each do |node_child|
        case node_child.name
        when 'cSld'
          @common_slide_data = CommonSlideData.new(parent: self).parse(node_child)
        end
      end
      self
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/presentation_notes.rb
ooxml_parser-0.4.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/presentation_notes.rb
ooxml_parser-0.3.0 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/presentation_notes.rb