From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001
From: Randy Morgan Support for custom table styles does not exist in this version. Many of the
+
+Support for custom table styles does not exist in this version. Many of the
classes required are defined in preparation for future release. Please do
-not attempt to add custom table styles. TableStyles represents a collection of style definitions for table styles
-and pivot table styles.
+TableStyles represents a collection of style definitions for table styles
+and pivot table styles.
+
The default pivot table style.
++The default pivot table style. +
The default table style.
++The default table style. +
Creates a new TableStyles object that is a container for TableStyle -objects.
++Creates a new TableStyles object that is a container for TableStyle +objects. +
Serializes the table styles element.
++Serializes the table styles element. +
Creates a new TableStyles object that is a container for TableStyle objects
++Creates a new TableStyles object that is a container for TableStyle objects +
a customizable set of options
++a customizable set of options +
# File 'lib/axlsx/stylesheet/table_styles.rb', line 17 -def initialize(={}) - @defaultTableStyle = [:defaultTableStyle] || "TableStyleMedium9" - @defaultPivotStyle = [:defaultPivotStyle] || "PivotStyleLight16" - super TableStyle -end+def initialize(={}) + @defaultTableStyle = [:defaultTableStyle] || "TableStyleMedium9" + @defaultPivotStyle = [:defaultPivotStyle] || "PivotStyleLight16" + super TableStyle +end +
The default pivot table style. The default value is 'PivotStyleLight6'
++The default pivot table style. The default value is +‘PivotStyleLight6’ +
# File 'lib/axlsx/stylesheet/table_styles.rb', line 12 -def defaultPivotStyle - @defaultPivotStyle -end+def defaultPivotStyle + @defaultPivotStyle +end +
The default table style. The default value is 'TableStyleMedium9'
++The default table style. The default value is +‘TableStyleMedium9’ +
# File 'lib/axlsx/stylesheet/table_styles.rb', line 8 -def defaultTableStyle - @defaultTableStyle -end+def defaultTableStyle + @defaultTableStyle +end +
Serializes the table styles element
++Serializes the table styles element +
The document builder instance this objects xml will be added to.
++The document builder instance this objects xml will be added to. +
# File 'lib/axlsx/stylesheet/table_styles.rb', line 30 -def to_xml(xml) - attr = self.instance_values.reject {|k, v| ![:defaultTableStyle, :defaultPivotStyle].include?(k.to_sym) } - attr[:count] = self.size - xml.tableStyles(attr) { - self.each { |table_style| table_style.to_xml(xml) } - } -end+def to_xml(xml) + attr = self.instance_values.reject {|k, v| ![:defaultTableStyle, :defaultPivotStyle].include?(k.to_sym) } + attr[:count] = self.size + xml.tableStyles(attr) { + self.each { |table_style| table_style.to_xml(xml) } + } +end +