Sha256: a025649c0d150de39e10d9e9556e80852dda15cbfd7b14dc7aaeacf13a13df57

Contents?: true

Size: 1.28 KB

Versions: 20

Compression:

Stored size: 1.28 KB

Contents

require 'rubyXL/objects/ooxml_object'
require 'rubyXL/objects/extensions'

module RubyXL
  # http://www.schemacentral.com/sc/ooxml/e-ssml_c-1.html
  class CalculationChainCell < OOXMLObject
    define_attribute(:r, :ref,  :accessor => :ref)
    define_attribute(:i, :int,  :accessor => :sheet_id,    :default => 0)
    define_attribute(:s, :bool, :accessor => :child_chain, :default => false)
    define_attribute(:l, :bool, :accessor => :new_dep_lvl, :default => false)
    define_attribute(:t, :bool, :accessor => :new_thread,  :default => false)
    define_attribute(:a, :bool, :accessor => :array,       :default => false)
    define_element_name 'c'
  end

  # http://www.schemacentral.com/sc/ooxml/e-ssml_calcChain.html
  class CalculationChain < OOXMLTopLevelObject
    CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml'
    REL_TYPE     = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain'

    define_child_node(RubyXL::CalculationChainCell, :collection => true, :accessor => :cells)
    define_child_node(RubyXL::ExtensionStorageArea)

    define_element_name 'calcChain'
    set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '')

    def xlsx_path
      ROOT.join('xl', 'calcChain.xml')
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rubyXL-3.3.12 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.11 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.10 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.9 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.8 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.7 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.6 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.5 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.4 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.3 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.2 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.1 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.3.0 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.2.7 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.2.6 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.2.5 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.2.4 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.2.3 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.2.2 lib/rubyXL/objects/calculation_chain.rb
rubyXL-3.2.1 lib/rubyXL/objects/calculation_chain.rb