From cdfc7251bde8347678d355e5fe65fc20e120bc23 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:45:19 +0900 Subject: updating docs for 1.0.10a release --- doc/Axlsx/TableStyle.html | 128 +++++++++++++++++++++++++++------------------- 1 file changed, 74 insertions(+), 54 deletions(-) (limited to 'doc/Axlsx/TableStyle.html') diff --git a/doc/Axlsx/TableStyle.html b/doc/Axlsx/TableStyle.html index 0bb35a91..f77ec619 100644 --- a/doc/Axlsx/TableStyle.html +++ b/doc/Axlsx/TableStyle.html @@ -99,14 +99,16 @@
Note: -
-

Table are not supported in this version and only the defaults required for -a valid workbook are created.

+

+Table are not supported in this version and only the defaults required for +a valid workbook are created. +

- -

A single table style definition and is a collection for tableStyleElements

+

+A single table style definition and is a collection for tableStyleElements +

@@ -142,8 +144,9 @@ a valid workbook are created.

-
-

The name of this table style.

+

+The name of this table style. +

@@ -168,8 +171,9 @@ a valid workbook are created.

-
-

indicates if this style should be applied to pivot tables.

+

+indicates if this style should be applied to pivot tables. +

@@ -194,8 +198,9 @@ a valid workbook are created.

-
-

indicates if this style should be applied to tables.

+

+indicates if this style should be applied to tables. +

@@ -240,8 +245,9 @@ a valid workbook are created.

-
-

creates a new TableStyle object.

+

+creates a new TableStyle object. +

@@ -263,8 +269,9 @@ a valid workbook are created.

-
-

Serializes the table style.

+

+Serializes the table style. +

@@ -290,8 +297,9 @@ a valid workbook are created.

- -

creates a new TableStyle object

+

+creates a new TableStyle object +

@@ -323,8 +331,9 @@ a valid workbook are created.

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -371,8 +380,9 @@ a valid workbook are created.

— -
-

if name option is not provided.

+

+if name option is not provided. +

@@ -396,13 +406,14 @@ a valid workbook are created.

# File 'lib/axlsx/stylesheet/table_style.rb', line 23
 
-def initialize(name, options={})
-  self.name = name
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? o[0]
-  end
-  super TableStyleElement
-end
+def initialize(name, options={}) + self.name = name + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? o[0] + end + super TableStyleElement +end + @@ -435,8 +446,9 @@ a valid workbook are created.

- -

The name of this table style

+

+The name of this table style +

@@ -470,9 +482,10 @@ a valid workbook are created.

# File 'lib/axlsx/stylesheet/table_style.rb', line 8
 
-def name
-  @name
-end
+def name + @name +end + @@ -490,8 +503,9 @@ a valid workbook are created.

- -

indicates if this style should be applied to pivot tables

+

+indicates if this style should be applied to pivot tables +

@@ -525,9 +539,10 @@ a valid workbook are created.

# File 'lib/axlsx/stylesheet/table_style.rb', line 12
 
-def pivot
-  @pivot
-end
+def pivot + @pivot +end + @@ -545,8 +560,9 @@ a valid workbook are created.

- -

indicates if this style should be applied to tables

+

+indicates if this style should be applied to tables +

@@ -580,9 +596,10 @@ a valid workbook are created.

# File 'lib/axlsx/stylesheet/table_style.rb', line 16
 
-def table
-  @table
-end
+def table + @table +end + @@ -604,8 +621,9 @@ a valid workbook are created.

- -

Serializes the table style

+

+Serializes the table style +

@@ -624,8 +642,9 @@ a valid workbook are created.

— -
-

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

+

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

@@ -661,11 +680,12 @@ a valid workbook are created.

# File 'lib/axlsx/stylesheet/table_style.rb', line 41
 
-def to_xml(xml)
-  attr = self.instance_values.select { |k, v| [:name, :pivot, :table].include? k }
-  attr[:count] = self.size
-  xml.tableStyle(attr) { self.each { |table_style_el| table_style_el.to_xml(xml) } }
-end
+def to_xml(xml) + attr = self.instance_values.select { |k, v| [:name, :pivot, :table].include? k } + attr[:count] = self.size + xml.tableStyle(attr) { self.each { |table_style_el| table_style_el.to_xml(xml) } } +end + @@ -676,9 +696,9 @@ a valid workbook are created.

-- cgit v1.2.3