Sha256: 2dabae8e700c65da56e4be3819aae6b2eb9951a669ddddddf772da94fb535aae

Contents?: true

Size: 880 Bytes

Versions: 7

Compression:

Stored size: 880 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class TableCellBorder < ComplexProperty
        tag_is_one_of %i(top start bottom end insideH insideV tl2br tr2bl left right)

        with_namespace :w do
          attribute :color, expects: :hex_color
          attribute :frame, expects: :boolean
          attribute :shadow, expects: :boolean
          attribute :space, expects: :positive_integer
          attribute :theme_color, one_of: OpenXml::Docx::THEME_COLORS
          attribute :theme_shade, expects: :hex_digit
          attribute :theme_tint, expects: :hex_digit
          attribute :value, one_of: OpenXml::Docx::BORDER_TYPES, displays_as: :val
          attribute :width, expects: :positive_integer, displays_as: :sz
        end

        def initialize(tag, value)
          super tag
          self.value = value
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openxml-docx-0.11.5 lib/openxml/docx/properties/table_cell_border.rb
openxml-docx-0.11.4 lib/openxml/docx/properties/table_cell_border.rb
openxml-docx-0.11.3 lib/openxml/docx/properties/table_cell_border.rb
openxml-docx-0.11.2 lib/openxml/docx/properties/table_cell_border.rb
openxml-docx-0.11.1 lib/openxml/docx/properties/table_cell_border.rb
openxml-docx-0.11.0 lib/openxml/docx/properties/table_cell_border.rb
openxml-docx-0.11.0.rc lib/openxml/docx/properties/table_cell_border.rb