From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 18:11:42 +0900 Subject: adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx. --- doc/Axlsx/TableStyles.html | 112 ++++++++++++++++++++++++++------------------- 1 file changed, 65 insertions(+), 47 deletions(-) (limited to 'doc/Axlsx/TableStyles.html') diff --git a/doc/Axlsx/TableStyles.html b/doc/Axlsx/TableStyles.html index 0afdbba1..e80cc5eb 100644 --- a/doc/Axlsx/TableStyles.html +++ b/doc/Axlsx/TableStyles.html @@ -99,16 +99,18 @@
Note: -
-

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.

+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. +

@@ -144,8 +146,9 @@ and pivot table styles.

-
-

The default pivot table style.

+

+The default pivot table style. +

@@ -170,8 +173,9 @@ and pivot table styles.

-
-

The default table style.

+

+The default table style. +

@@ -216,9 +220,10 @@ and pivot table styles.

-
-

Creates a new TableStyles object that is a container for TableStyle -objects.

+

+Creates a new TableStyles object that is a container for TableStyle +objects. +

@@ -240,8 +245,9 @@ objects.

-
-

Serializes the table styles element.

+

+Serializes the table styles element. +

@@ -267,8 +273,9 @@ objects.

- -

Creates a new TableStyles object that is a container for TableStyle objects

+

+Creates a new TableStyles object that is a container for TableStyle objects +

@@ -289,8 +296,9 @@ objects.

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -340,11 +348,12 @@ objects.

# File 'lib/axlsx/stylesheet/table_styles.rb', line 17
 
-def initialize(options={})
-  @defaultTableStyle = options[:defaultTableStyle] || "TableStyleMedium9"
-  @defaultPivotStyle = options[:defaultPivotStyle] || "PivotStyleLight16"      
-  super TableStyle
-end
+def initialize(options={}) + @defaultTableStyle = options[:defaultTableStyle] || "TableStyleMedium9" + @defaultPivotStyle = options[:defaultPivotStyle] || "PivotStyleLight16" + super TableStyle +end + @@ -377,8 +386,10 @@ objects.

- -

The default pivot table style. The default value is 'PivotStyleLight6'

+

+The default pivot table style. The default value is +‘PivotStyleLight6’ +

@@ -412,9 +423,10 @@ objects.

# File 'lib/axlsx/stylesheet/table_styles.rb', line 12
 
-def defaultPivotStyle
-  @defaultPivotStyle
-end
+def defaultPivotStyle + @defaultPivotStyle +end + @@ -432,8 +444,10 @@ objects.

- -

The default table style. The default value is 'TableStyleMedium9'

+

+The default table style. The default value is +‘TableStyleMedium9’ +

@@ -467,9 +481,10 @@ objects.

# File 'lib/axlsx/stylesheet/table_styles.rb', line 8
 
-def defaultTableStyle
-  @defaultTableStyle
-end
+def defaultTableStyle + @defaultTableStyle +end + @@ -491,8 +506,9 @@ objects.

- -

Serializes the table styles element

+

+Serializes the table styles element +

@@ -511,8 +527,9 @@ objects.

— -
-

The document builder instance this objects xml will be added to.

+

+The document builder instance this objects xml will be added to. +

@@ -550,13 +567,14 @@ objects.

# 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 + @@ -567,9 +585,9 @@ objects.

-- cgit v1.2.3