From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/TableStyles.html | 112 +++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 65 deletions(-) (limited to 'doc/Axlsx/TableStyles.html') diff --git a/doc/Axlsx/TableStyles.html b/doc/Axlsx/TableStyles.html index dbbe360b..fd467102 100644 --- a/doc/Axlsx/TableStyles.html +++ b/doc/Axlsx/TableStyles.html @@ -99,18 +99,16 @@
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.

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

-The default pivot table style. -

+
+

The default pivot table style.

@@ -173,9 +170,8 @@ The default pivot table style. -

-The default table style. -

+
+

The default table style.

@@ -220,10 +216,9 @@ 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.

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

-Serializes the table styles element. -

+
+

Serializes the table styles element.

@@ -273,9 +267,8 @@ 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

@@ -296,9 +289,8 @@ Creates a new TableStyles object that is a container for TableStyle objects — -

-a customizable set of options -

+
+

a customizable set of options

@@ -348,12 +340,11 @@ a customizable set of options
# 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 @@ -386,10 +377,8 @@ a customizable set of options

-

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

+ +

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

@@ -423,10 +412,9 @@ The default pivot table style. The default value is
# File 'lib/axlsx/stylesheet/table_styles.rb', line 12
 
-def defaultPivotStyle
-  @defaultPivotStyle
-end
-
+def defaultPivotStyle + @defaultPivotStyle +end @@ -444,10 +432,8 @@ The default pivot table style. The default value is

-

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

+ +

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

@@ -481,10 +467,9 @@ The default table style. The default value is
# File 'lib/axlsx/stylesheet/table_styles.rb', line 8
 
-def defaultTableStyle
-  @defaultTableStyle
-end
-
+def defaultTableStyle + @defaultTableStyle +end @@ -506,9 +491,8 @@ The default table style. The default value is

-

-Serializes the table styles element -

+ +

Serializes the table styles element

@@ -527,9 +511,8 @@ 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.

@@ -567,14 +550,13 @@ 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 @@ -585,9 +567,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3