From 407b884ef349d6dec12f50006ea6268c96205a83 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:34:48 +0900 Subject: adding yields for package workbook, workbook styles and cols collection on worksheet to make charting easier. --- doc/Axlsx/TableStyle.html | 128 +++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 74 deletions(-) (limited to 'doc/Axlsx/TableStyle.html') diff --git a/doc/Axlsx/TableStyle.html b/doc/Axlsx/TableStyle.html index d4b8c80e..0bb35a91 100644 --- a/doc/Axlsx/TableStyle.html +++ b/doc/Axlsx/TableStyle.html @@ -99,16 +99,14 @@
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

@@ -144,9 +142,8 @@ A single table style definition and is a collection for tableStyleElements -

-The name of this table style. -

+
+

The name of this table style.

@@ -171,9 +168,8 @@ The name of this table style. -

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

+
+

indicates if this style should be applied to pivot tables.

@@ -198,9 +194,8 @@ indicates if this style should be applied to pivot tables. -

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

+
+

indicates if this style should be applied to tables.

@@ -245,9 +240,8 @@ indicates if this style should be applied to tables. -

-creates a new TableStyle object. -

+
+

creates a new TableStyle object.

@@ -269,9 +263,8 @@ creates a new TableStyle object. -

-Serializes the table style. -

+
+

Serializes the table style.

@@ -297,9 +290,8 @@ Serializes the table style.

-

-creates a new TableStyle object -

+ +

creates a new TableStyle object

@@ -331,9 +323,8 @@ creates a new TableStyle object — -

-a customizable set of options -

+
+

a customizable set of options

@@ -380,9 +371,8 @@ a customizable set of options — -

-if name option is not provided. -

+
+

if name option is not provided.

@@ -406,14 +396,13 @@ if name option is not provided.
# 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 @@ -446,9 +435,8 @@ if name option is not provided.

-

-The name of this table style -

+ +

The name of this table style

@@ -482,10 +470,9 @@ The name of this table style
# File 'lib/axlsx/stylesheet/table_style.rb', line 8
 
-def name
-  @name
-end
-
+def name + @name +end @@ -503,9 +490,8 @@ The name of this table style

-

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

+ +

indicates if this style should be applied to pivot tables

@@ -539,10 +525,9 @@ indicates if this style should be applied to pivot tables
# File 'lib/axlsx/stylesheet/table_style.rb', line 12
 
-def pivot
-  @pivot
-end
-
+def pivot + @pivot +end @@ -560,9 +545,8 @@ indicates if this style should be applied to pivot tables

-

-indicates if this style should be applied to tables -

+ +

indicates if this style should be applied to tables

@@ -596,10 +580,9 @@ indicates if this style should be applied to tables
# File 'lib/axlsx/stylesheet/table_style.rb', line 16
 
-def table
-  @table
-end
-
+def table + @table +end @@ -621,9 +604,8 @@ indicates if this style should be applied to tables

-

-Serializes the table style -

+ +

Serializes the table style

@@ -642,9 +624,8 @@ Serializes the table style — -

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

+
+

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

@@ -680,12 +661,11 @@ The document builder instance this objects xml will be added to.
# 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 @@ -696,9 +676,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3