Sha256: c7fbcad328d847f054481903de9ab9af00762925bb9f47840dbd51d4475b2936

Contents?: true

Size: 912 Bytes

Versions: 25

Compression:

Stored size: 912 Bytes

Contents

require 'rubyXL/objects/ooxml_object'
require 'rubyXL/objects/simple_types'

module RubyXL

  # http://www.schemacentral.com/sc/ooxml/e-ssml_f-1.html
  class Formula < OOXMLObject
    define_attribute(:_,    :string, :accessor => :expression)
    define_attribute(:t,    RubyXL::ST_CellFormulaType, :default => 'normal')
    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

25 entries across 25 versions & 1 rubygems

Version Path
rubyXL-3.2.0 lib/rubyXL/objects/formula.rb
rubyXL-3.1.2 lib/rubyXL/objects/formula.rb
rubyXL-3.1.0 lib/rubyXL/objects/formula.rb
rubyXL-3.0.2 lib/rubyXL/objects/formula.rb
rubyXL-3.0.1 lib/rubyXL/objects/formula.rb
rubyXL-3.0.0 lib/rubyXL/objects/formula.rb
rubyXL-2.5.7 lib/rubyXL/objects/formula.rb
rubyXL-2.5.6 lib/rubyXL/objects/formula.rb
rubyXL-2.5.5 lib/rubyXL/objects/formula.rb
rubyXL-2.5.4 lib/rubyXL/objects/formula.rb
rubyXL-2.5.3 lib/rubyXL/objects/formula.rb
rubyXL-2.5.2 lib/rubyXL/objects/formula.rb
rubyXL-2.5.1 lib/rubyXL/objects/formula.rb
rubyXL-2.5.0 lib/rubyXL/objects/formula.rb
rubyXL-2.4.4 lib/rubyXL/objects/formula.rb
rubyXL-2.4.3 lib/rubyXL/objects/formula.rb
rubyXL-2.4.2 lib/rubyXL/objects/formula.rb
rubyXL-2.4.1 lib/rubyXL/objects/formula.rb
rubyXL-2.4.0 lib/rubyXL/objects/formula.rb
rubyXL-2.3.4 lib/rubyXL/objects/formula.rb