Sha256: 6dcf05f0f81b79f95919b8eb221b8e38a9273518587c1094e1fccd802b4a3ab6

Contents?: true

Size: 890 Bytes

Versions: 10

Compression:

Stored size: 890 Bytes

Contents

require 'berkeley_library/util/ods/xml/style/style'
require 'berkeley_library/util/ods/xml/style/family'
require 'berkeley_library/util/ods/xml/style/table_properties'

module BerkeleyLibrary
  module Util
    module ODS
      module XML
        module Style
          class TableStyle < Style
            # Initializes a new table style. Note that this should not be called
            # directly, but only from {XML::Office::AutomaticStyles#add_table_style}.
            #
            # @param name [String] the name of the style
            # @param styles [XML::Office::AutomaticStyles] the document styles
            def initialize(name, styles:)
              super(name, :table, doc: styles.doc)

              set_attribute('master-page-name', 'Default')
              children << TableProperties.new(doc: doc)
            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_style.rb
berkeley_library-tind-0.7.1 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.7.0 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.6.0 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.5.1 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.5.0 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.4.3 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.4.2 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.4.1 lib/berkeley_library/util/ods/xml/style/table_style.rb
berkeley_library-tind-0.4.0 lib/berkeley_library/util/ods/xml/style/table_style.rb