Sha256: 7e93c8dacd7ead3178b29a4cdd88c072effd631b4f5ce786d2a1c82b1be671a7

Contents?: true

Size: 497 Bytes

Versions: 12

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # method to help to work with SlideLayouts
  module SlideLayoutsHelper
    # @return [Array<String>] list of slide layouts files
    def slide_layouts_files
      Dir["#{root_object.unpacked_folder}ppt/slideLayouts/*.xml"]
    end

    private

    # Parse slide layouts file
    def parse_slide_layouts
      slide_layouts_files.each do |file|
        @slide_layouts << SlideLayoutFile.new(parent: self).parse(file)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.37.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.36.1 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.36.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.35.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.34.2 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.34.1 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.34.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.33.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.32.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.31.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb
ooxml_parser-0.30.0 lib/ooxml_parser/pptx_parser/presentation/slide_layouts_helper.rb