Class: RubyXL::DrawingFile

Inherits:
GenericStorageObject show all
Includes:
RelationshipSupport
Defined in:
lib/rubyXL/objects/storage.rb

Constant Summary collapse

CONTENT_TYPE =
'application/vnd.openxmlformats-officedocument.drawing+xml'
REL_TYPE =
'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing'

Instance Attribute Summary

Attributes included from RelationshipSupport

#generic_storage, #relationship_container

Attributes inherited from GenericStorageObject

#data, #generic_storage, #workbook, #xlsx_path

Instance Method Summary collapse

Methods included from RelationshipSupport

#collect_related_objects, #load_relationships, #related_objects, #store_relationship

Methods inherited from GenericStorageObject

#add_to_zip, #initialize, parse_file, save_order

Constructor Details

This class inherits a constructor from RubyXL::GenericStorageObject

Instance Method Details

#attach_relationship(rid, rf) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/rubyXL/objects/storage.rb', line 61

def attach_relationship(rid, rf)
  case rf
  when RubyXL::ChartFile       then store_relationship(rf) # TODO
  when RubyXL::BinaryImageFile then store_relationship(rf) # TODO
  else store_relationship(rf, :unknown)
  end
end

#relationship_file_classObject



57
58
59
# File 'lib/rubyXL/objects/storage.rb', line 57

def relationship_file_class
  RubyXL::DrawingRelationshipsFile
end