Sha256: d698f88388d9a011170be487fea8e51687e1c3244ab2102aa6db768259a7b2d0

Contents?: true

Size: 882 Bytes

Versions: 1

Compression:

Stored size: 882 Bytes

Contents

require 'rubyXL/objects/ooxml_object'

module RubyXL

  # http://www.datypic.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.datypic.com/sc/ooxml/e-ssml_ext-1.html
  class Extension < RawOOXML
    define_attribute(:uri, :string)
    define_element_name 'ext'
  end

  # http://www.datypic.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
  
  class RevisionPtr < RawOOXML
    define_element_name 'xr:revisionPtr'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyXL-ptr-3.3.27 lib/rubyXL/objects/extensions.rb