Class: RubyXL::Chartsheet

Inherits:
OOXMLTopLevelObject show all
Includes:
RelationshipSupport
Defined in:
lib/rubyXL/objects/chartsheet.rb

Overview

Constant Summary collapse

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

Constants inherited from OOXMLTopLevelObject

OOXMLTopLevelObject::ROOT, OOXMLTopLevelObject::SAVE_ORDER

Instance Attribute Summary collapse

Attributes included from RelationshipSupport

#generic_storage, #relationship_container

Attributes inherited from OOXMLTopLevelObject

#root

Attributes included from OOXMLObjectInstanceMethods

#local_namespaces

Instance Method Summary collapse

Methods included from RelationshipSupport

#attach_relationship, #collect_related_objects, included, #load_relationships, #related_objects, #store_relationship

Methods inherited from OOXMLTopLevelObject

#add_to_zip, #file_index, parse_file, set_namespaces

Methods included from OOXMLObjectInstanceMethods

#==, #before_write_xml, included, #index_in_collection, #initialize, #write_xml

Instance Attribute Details

#relsObject

Returns the value of attribute rels.



65
66
67
# File 'lib/rubyXL/objects/chartsheet.rb', line 65

def rels
  @rels
end

#sheet_idObject

Returns the value of attribute sheet_id.



65
66
67
# File 'lib/rubyXL/objects/chartsheet.rb', line 65

def sheet_id
  @sheet_id
end

#sheet_nameObject

Returns the value of attribute sheet_name.



65
66
67
# File 'lib/rubyXL/objects/chartsheet.rb', line 65

def sheet_name
  @sheet_name
end

#stateObject

Returns the value of attribute state.



65
66
67
# File 'lib/rubyXL/objects/chartsheet.rb', line 65

def state
  @state
end

#workbookObject

Returns the value of attribute workbook.



65
66
67
# File 'lib/rubyXL/objects/chartsheet.rb', line 65

def workbook
  @workbook
end

Instance Method Details

#xlsx_pathObject



84
85
86
# File 'lib/rubyXL/objects/chartsheet.rb', line 84

def xlsx_path
  ROOT.join('xl', 'chartsheets', "sheet#{file_index}.xml")
end