Class: BerkeleyLibrary::Util::ODS::XML::Style::TableStyle

Inherits:
Style show all
Defined in:
lib/berkeley_library/util/ods/xml/style/table_style.rb

Instance Attribute Summary

Attributes inherited from Style

#family, #style_name

Attributes inherited from ElementNode

#doc, #element_name, #namespace

Instance Method Summary collapse

Methods inherited from Style

#<=>

Methods inherited from ElementNode

#add_child, #attributes, #children, #clear_attribute, #create_element, #element, #ensure_element!, #prefix, #prefixed_attr_name, #set_attribute

Constructor Details

#initialize(name, styles:) ⇒ TableStyle

Initializes a new table style. Note that this should not be called directly, but only from Office::AutomaticStyles#add_table_style.

Parameters:



16
17
18
19
20
21
# File 'lib/berkeley_library/util/ods/xml/style/table_style.rb', line 16

def initialize(name, styles:)
  super(name, :table, doc: styles.doc)

  set_attribute('master-page-name', 'Default')
  children << TableProperties.new(doc: doc)
end