class RubyXL::OOXMLRelationshipsFile

def load_related_files(zipdir_path, base_file_name)

def load_related_files(zipdir_path, base_file_name)
  self.related_files = {}
  @@debug_indent += 2 if @@debug_indent
  self.relationships.each { |rel|
    next if rel.target_mode == 'External'
    file_path = ::Pathname.new(rel.target)
    file_path = (base_file_name.dirname + file_path).cleanpath if file_path.relative?
    klass = RubyXL::OOXMLRelationshipsFile.get_class_by_rel_type(rel.type)
    if klass.nil? then
      if !RubyXL.class_variable_get(:@@suppress_warnings) then
        puts "*** WARNING: storage class not found for #{rel.target} (#{rel.type})"
      end
      klass = GenericStorageObject
    end
    puts "--> DEBUG:#{'  ' * @@debug_indent}Loading #{klass} (#{rel.id}): #{file_path}" if @@debug_indent
    obj = klass.parse_file(zipdir_path, file_path)
    obj.load_relationships(zipdir_path, file_path) if obj.respond_to?(:load_relationships)
    self.related_files[rel.id] = obj
  }
  @@debug_indent -=2 if @@debug_indent
  related_files
end