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'
REL_TYPE =
'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet'
REL_CLASS =
RubyXL::SheetRelationshipsFile

Constants inherited from OOXMLTopLevelObject

OOXMLTopLevelObject::SAVE_ORDER

Instance Attribute Summary collapse

Attributes included from RelationshipSupport

#generic_storage, #relationship_container

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 OOXMLObjectClassMethods

#define_attribute, #define_child_node, #define_element_name, #obtain_class_variable, #parse

Methods included from OOXMLObjectInstanceMethods

#before_write_xml, #dup, #index_in_collection, #initialize, #write_xml

Instance Attribute Details

#relsObject

Returns the value of attribute rels.



67
68
69
# File 'lib/rubyXL/objects/chartsheet.rb', line 67

def rels
  @rels
end

#sheet_idObject

Returns the value of attribute sheet_id.



68
69
70
# File 'lib/rubyXL/objects/chartsheet.rb', line 68

def sheet_id
  @sheet_id
end

#sheet_nameObject

Returns the value of attribute sheet_name.



68
69
70
# File 'lib/rubyXL/objects/chartsheet.rb', line 68

def sheet_name
  @sheet_name
end

#stateObject

Returns the value of attribute state.



67
68
69
# File 'lib/rubyXL/objects/chartsheet.rb', line 67

def state
  @state
end

#workbookObject

Returns the value of attribute workbook.



68
69
70
# File 'lib/rubyXL/objects/chartsheet.rb', line 68

def workbook
  @workbook
end

Instance Method Details

#xlsx_pathObject



87
88
89
# File 'lib/rubyXL/objects/chartsheet.rb', line 87

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