Sha256: 34264250eac3887c8b9309546b08839eab67ac89f8a872416d141fda60f97d39

Contents?: true

Size: 926 Bytes

Versions: 1

Compression:

Stored size: 926 Bytes

Contents

require 'rubyXL/objects/ooxml_object'

module RubyXL

  # http://www.schemacentral.com/sc/ooxml/e-ssml_f-1.html
  class Formula < OOXMLObject
    define_attribute(:_,    :string, :accessor => :expression)
    define_attribute(:t,    :string, :default => 'normal', :values =>
                       %w{ normal array dataTable shared })
    define_attribute(:aca,  :bool,   :default => false)
    define_attribute(:ref,  :ref)
    define_attribute(:dt2D, :bool,   :default => false)
    define_attribute(:dtr,  :bool,   :default => false)
    define_attribute(:del1, :bool,   :default => false)
    define_attribute(:del2, :bool,   :default => false)
    define_attribute(:r1,   :ref)
    define_attribute(:r2,   :ref)
    define_attribute(:ca,   :bool,   :default => false)
    define_attribute(:si,   :int)
    define_attribute(:bx,   :bool,   :default => false)
    define_element_name 'f'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyXL-2.1.1 lib/rubyXL/objects/formula.rb