Sha256: 1057187bd6aa5c0c5319f3f901797c89095339e463d9a6e2ba5c3edd173fb14c

Contents?: true

Size: 716 Bytes

Versions: 10

Compression:

Stored size: 716 Bytes

Contents

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

module BerkeleyLibrary
  module Util
    module ODS
      module XML
        module Style
          class TableRowProperties < ElementNode
            attr_reader :height

            def initialize(height, doc:)
              super(:style, 'table-row-properties', doc: doc)
              @height = height

              set_default_attributes!
            end

            private

            def set_default_attributes!
              set_attribute('row-height', height)
              set_attribute(:fo, 'break-before', 'auto')
              set_attribute('use-optimal-row-height', 'true')
            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_column_properties.rb
berkeley_library-tind-0.7.1 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.7.0 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.6.0 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.5.1 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.5.0 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.4.3 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.4.2 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.4.1 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb
berkeley_library-tind-0.4.0 lib/berkeley_library/util/ods/xml/style/table_column_properties.rb