Sha256: c84f4b7505eed0d0869985a77df650012ae0267edd47a942d646c2edb5d5d17c
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
module RubyXL # http://www.schemacentral.com/sc/ooxml/e-ssml_gradientFill-1.html class Stop < OOXMLObject define_attribute(:position, :float) define_child_node(RubyXL::Color) define_element_name 'stop' end # http://www.schemacentral.com/sc/ooxml/e-ssml_patternFill-1.html class PatternFill < OOXMLObject define_attribute(:patternType, :string, :values => %w{ none solid mediumGray darkGray lightGray darkHorizontal darkVertical darkDown darkUp darkGrid darkTrellis lightHorizontal lightVertical lightDown lightUp lightGrid lightTrellis gray125 gray0625 }) define_child_node(RubyXL::Color, :node_name => :fgColor ) define_child_node(RubyXL::Color, :node_name => :bgColor ) define_element_name 'patternFill' end # http://www.schemacentral.com/sc/ooxml/e-ssml_gradientFill-1.html class GradientFill < OOXMLObject define_attribute(:type, :string, :values => %w{ linear path }, :default => 'linear') define_attribute(:degree, :float, :default => 0) define_attribute(:left, :float, :default => 0) define_attribute(:right, :float, :default => 0) define_attribute(:top, :float, :default => 0) define_attribute(:bottom, :float, :default => 0) define_child_node(RubyXL::Stop, :collection => true) define_element_name 'gradientFill' end # http://www.schemacentral.com/sc/ooxml/e-ssml_fill-1.html class Fill < OOXMLObject define_child_node(RubyXL::PatternFill) define_child_node(RubyXL::GradientFill) define_element_name 'fill' set_countable end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyXL-git-ref-6002046-2.0.0 | lib/rubyXL/objects/fill.rb |