Sha256: b56791b49d1074e5d716b47b0d2de06d7935e06ddc60e0398af24259f00333eb

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

module OpenXml
  module DrawingML
    module Properties
      class ColorMapping < OpenXml::Properties::ComplexProperty
        include OpenXml::ContainsProperties
        namespace :a
        tag :clrMap

        COLOR_SCHEME_INDEX = %i{
          dk1 lt1 dk2 lt2 accent1 accent2 accent3 accent4 accent5 accent6 hlink folHlink
        }.freeze

        attribute :bg1, one_of: COLOR_SCHEME_INDEX
        attribute :tx1, one_of: COLOR_SCHEME_INDEX
        attribute :bg2, one_of: COLOR_SCHEME_INDEX
        attribute :tx2, one_of: COLOR_SCHEME_INDEX
        attribute :accent1, one_of: COLOR_SCHEME_INDEX
        attribute :accent2, one_of: COLOR_SCHEME_INDEX
        attribute :accent3, one_of: COLOR_SCHEME_INDEX
        attribute :accent4, one_of: COLOR_SCHEME_INDEX
        attribute :accent5, one_of: COLOR_SCHEME_INDEX
        attribute :accent6, one_of: COLOR_SCHEME_INDEX
        attribute :hlink, one_of: COLOR_SCHEME_INDEX
        attribute :folHlink, one_of: COLOR_SCHEME_INDEX

        property :extension_list

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openxml-drawingml-0.3.1 lib/openxml/drawingml/properties/color_mapping.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/color_mapping.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/color_mapping.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/color_mapping.rb