Sha256: 37e6eae16f24b761413e792a7e3032cfeafe257ecc3272c0be333869d2cc0f4e

Contents?: true

Size: 656 Bytes

Versions: 10

Compression:

Stored size: 656 Bytes

Contents

require 'berkeley_library/util/ods/xml/element_node'

module BerkeleyLibrary
  module Util
    module ODS
      module XML
        module Style
          class TableColumnProperties < ElementNode
            attr_reader :width

            def initialize(width, doc:)
              super(:style, 'table-column-properties', doc: doc)
              @width = width
              set_default_attributes!
            end

            private

            def set_default_attributes!
              set_attribute(:fo, 'break-before', 'auto')
              set_attribute('column-width', width)
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkeley_library-tind-0.7.2 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.7.1 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.7.0 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.6.0 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.5.1 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.5.0 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.4.3 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.4.2 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.4.1 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb
berkeley_library-tind-0.4.0 lib/berkeley_library/util/ods/xml/style/table_row_properties.rb