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/TableStyleElement.html | 178 ++++++++++++++++++++++----------------- 1 file changed, 99 insertions(+), 79 deletions(-) (limited to 'doc/Axlsx/TableStyleElement.html') diff --git a/doc/Axlsx/TableStyleElement.html b/doc/Axlsx/TableStyleElement.html index 3f4b41fe..48dc8694 100644 --- a/doc/Axlsx/TableStyleElement.html +++ b/doc/Axlsx/TableStyleElement.html @@ -97,14 +97,16 @@
Note: -
-

tables and table styles are not supported in this version. This class -exists in preparation for that support.

+

+tables and table styles are not supported in this version. This class +exists in preparation for that support. +

- -

an element of style that belongs to a table style.

+

+an element of style that belongs to a table style. +

@@ -136,8 +138,9 @@ exists in preparation for that support.

-
-

The dxfId this style element points to.

+

+The dxfId this style element points to. +

@@ -162,9 +165,10 @@ exists in preparation for that support.

-
-

Number of rows or columns used in striping when the type is firstRowStripe, -secondRowStripe, firstColumnStripe, or secondColumnStripe.

+

+Number of rows or columns used in striping when the type is firstRowStripe, +secondRowStripe, firstColumnStripe, or secondColumnStripe. +

@@ -189,8 +193,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

-
-

The type of style element.

+

+The type of style element. +

@@ -227,8 +232,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

-
-

creates a new TableStyleElement object.

+

+creates a new TableStyleElement object. +

@@ -250,8 +256,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

-
-

Serializes the table style element.

+

+Serializes the table style element. +

@@ -272,8 +279,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

- -

creates a new TableStyleElement object

+

+creates a new TableStyleElement object +

@@ -294,8 +302,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -354,11 +363,12 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

# File 'lib/axlsx/stylesheet/table_style_element.rb', line 49
 
-def initialize(options={})
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? o[0]
-  end
-end
+def initialize(options={}) + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? o[0] + end +end + @@ -381,8 +391,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

- -

The dxfId this style element points to

+

+The dxfId this style element points to +

@@ -416,9 +427,10 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

# File 'lib/axlsx/stylesheet/table_style_element.rb', line 43
 
-def dxfId
-  @dxfId
-end
+def dxfId + @dxfId +end + @@ -436,9 +448,10 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

- -

Number of rows or columns used in striping when the type is firstRowStripe, -secondRowStripe, firstColumnStripe, or secondColumnStripe.

+

+Number of rows or columns used in striping when the type is firstRowStripe, +secondRowStripe, firstColumnStripe, or secondColumnStripe. +

@@ -472,9 +485,10 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

# File 'lib/axlsx/stylesheet/table_style_element.rb', line 39
 
-def size
-  @size
-end
+def size + @size +end + @@ -492,37 +506,39 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

- -

The type of style element. The following type are allowed

- -
:wholeTable
-:headerRow
-:totalRow
-:firstColumn
-:lastColumn
-:firstRowStripe
-:secondRowStripe
-:firstColumnStripe
-:secondColumnStripe
-:firstHeaderCell
-:lastHeaderCell
-:firstTotalCell
-:lastTotalCell
-:firstSubtotalColumn
-:secondSubtotalColumn
-:thirdSubtotalColumn
-:firstSubtotalRow
-:secondSubtotalRow
-:thirdSubtotalRow
-:blankRow
-:firstColumnSubheading
-:secondColumnSubheading
-:thirdColumnSubheading
-:firstRowSubheading
-:secondRowSubheading
-:thirdRowSubheading
-:pageFieldLabels
-:pageFieldValues
+

+The type of style element. The following type are allowed +

+
+  :wholeTable
+  :headerRow
+  :totalRow
+  :firstColumn
+  :lastColumn
+  :firstRowStripe
+  :secondRowStripe
+  :firstColumnStripe
+  :secondColumnStripe
+  :firstHeaderCell
+  :lastHeaderCell
+  :firstTotalCell
+  :lastTotalCell
+  :firstSubtotalColumn
+  :secondSubtotalColumn
+  :thirdSubtotalColumn
+  :firstSubtotalRow
+  :secondSubtotalRow
+  :thirdSubtotalRow
+  :blankRow
+  :firstColumnSubheading
+  :secondColumnSubheading
+  :thirdColumnSubheading
+  :firstRowSubheading
+  :secondRowSubheading
+  :thirdRowSubheading
+  :pageFieldLabels
+  :pageFieldValues
+
@@ -556,9 +572,10 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

# File 'lib/axlsx/stylesheet/table_style_element.rb', line 35
 
-def type
-  @type
-end
+def type + @type +end + @@ -580,8 +597,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

- -

Serializes the table style element

+

+Serializes the table style element +

@@ -600,8 +618,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

— -
-

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

+

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

@@ -635,9 +654,10 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

# File 'lib/axlsx/stylesheet/table_style_element.rb', line 67
 
-def to_xml(xml)
-  xml.tableStyleElement self.instance_values
-end
+def to_xml(xml) + xml.tableStyleElement self.instance_values +end + @@ -648,9 +668,9 @@ secondRowStripe, firstColumnStripe, or secondColumnStripe.

-- cgit v1.2.3