Sha256: 5b176cc3abba5048f3e4e63bbab0055145422824cc1f31682ea081f0176be55c

Contents?: true

Size: 836 Bytes

Versions: 7

Compression:

Stored size: 836 Bytes

Contents

require 'rubyXL/objects/ooxml_object'

module RubyXL

  # http://www.schemacentral.com/sc/ooxml/e-ssml_ext-1.html
  class RawOOXML < OOXMLObject
    attr_accessor :raw_xml

    def self.parse(node, ignore)
      obj = new
      obj.raw_xml = node.to_xml
      obj
    end

    def write_xml(xml, node_name_override = nil)
      self.raw_xml
    end
  end

  # http://www.schemacentral.com/sc/ooxml/e-ssml_ext-1.html
  class Extension < RawOOXML
    define_attribute(:uri, :string)
    define_element_name 'ext'
  end

  # http://www.schemacentral.com/sc/ooxml/e-ssml_extLst-1.html
  class ExtensionStorageArea < OOXMLObject
    define_child_node(RubyXL::Extension, :collection => true)
    define_element_name 'extLst'
  end

  class AlternateContent < RawOOXML
    define_element_name 'mc:AlternateContent'
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubyXL-3.2.0 lib/rubyXL/objects/extensions.rb
rubyXL-3.1.2 lib/rubyXL/objects/extensions.rb
rubyXL-3.1.0 lib/rubyXL/objects/extensions.rb
rubyXL-3.0.2 lib/rubyXL/objects/extensions.rb
rubyXL-3.0.1 lib/rubyXL/objects/extensions.rb
rubyXL-3.0.0 lib/rubyXL/objects/extensions.rb
rubyXL-2.5.7 lib/rubyXL/objects/extensions.rb