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/Xf.html | 322 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 188 insertions(+), 134 deletions(-) (limited to 'doc/Axlsx/Xf.html') diff --git a/doc/Axlsx/Xf.html b/doc/Axlsx/Xf.html index b42932ab..79e3b590 100644 --- a/doc/Axlsx/Xf.html +++ b/doc/Axlsx/Xf.html @@ -94,9 +94,10 @@

Overview

- -

The Xf class defines a formatting record for use in Styles. The recommended -way to manage styles for your workbook is with Styles#add_style

+

+The Xf class defines a formatting record for use in Styles. The recommended +way to manage styles for your workbook is with Styles#add_style +

@@ -135,8 +136,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

The cell alignment for this style.

+

+The cell alignment for this style. +

@@ -161,8 +163,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

Indicates if the alignment options should be applied.

+

+Indicates if the alignment options should be applied. +

@@ -187,8 +190,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

indicates if the borderId should be applied.

+

+indicates if the borderId should be applied. +

@@ -213,8 +217,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

indicates if the fillId should be applied.

+

+indicates if the fillId should be applied. +

@@ -239,8 +244,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

indicates if the fontId should be applied.

+

+indicates if the fontId should be applied. +

@@ -265,8 +271,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

indicates if the numFmtId should be applied.

+

+indicates if the numFmtId should be applied. +

@@ -291,8 +298,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

Indicates if the protection options should be applied.

+

+Indicates if the protection options should be applied. +

@@ -317,8 +325,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

index (0 based) of the border to be used in this style.

+

+index (0 based) of the border to be used in this style. +

@@ -343,8 +352,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

index (0 based) of the fill to be used in this style.

+

+index (0 based) of the fill to be used in this style. +

@@ -369,8 +379,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

index (0 based) of the font to be used in this style.

+

+index (0 based) of the font to be used in this style. +

@@ -395,8 +406,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

id of the numFmt to apply to this style.

+

+id of the numFmt to apply to this style. +

@@ -421,8 +433,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

indicates if the cell has a pivot table drop down button.

+

+indicates if the cell has a pivot table drop down button. +

@@ -447,8 +460,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

The cell protection for this style.

+

+The cell protection for this style. +

@@ -473,8 +487,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

indecates if text should be prefixed by a single quote in the cell.

+

+indecates if text should be prefixed by a single quote in the cell. +

@@ -499,8 +514,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

index (0 based) of cellStylesXfs item to be used in this style.

+

+index (0 based) of cellStylesXfs item to be used in this style. +

@@ -537,8 +553,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

Creates a new Xf object.

+

+Creates a new Xf object. +

@@ -560,8 +577,9 @@ way to manage styles for your workbook is with Styles#add_style

-
-

Serializes the xf elemen.

+

+Serializes the xf elemen. +

@@ -582,8 +600,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

Creates a new Xf object

+

+Creates a new Xf object +

@@ -604,8 +623,9 @@ way to manage styles for your workbook is with Styles#add_style

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -772,11 +792,12 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 85
 
-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 + @@ -799,8 +820,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

The cell alignment for this style

+

+The cell alignment for this style +

@@ -841,9 +863,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 10
 
-def alignment
-  @alignment
-end
+def alignment + @alignment +end + @@ -861,8 +884,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

Indicates if the alignment options should be applied

+

+Indicates if the alignment options should be applied +

@@ -896,9 +920,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 63
 
-def applyAlignment
-  @applyAlignment
-end
+def applyAlignment + @applyAlignment +end + @@ -916,8 +941,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

indicates if the borderId should be applied

+

+indicates if the borderId should be applied +

@@ -951,9 +977,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 59
 
-def applyBorder
-  @applyBorder
-end
+def applyBorder + @applyBorder +end + @@ -971,8 +998,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

indicates if the fillId should be applied

+

+indicates if the fillId should be applied +

@@ -1006,9 +1034,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 55
 
-def applyFill
-  @applyFill
-end
+def applyFill + @applyFill +end + @@ -1026,8 +1055,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

indicates if the fontId should be applied

+

+indicates if the fontId should be applied +

@@ -1061,9 +1091,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 51
 
-def applyFont
-  @applyFont
-end
+def applyFont + @applyFont +end + @@ -1081,8 +1112,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

indicates if the numFmtId should be applied

+

+indicates if the numFmtId should be applied +

@@ -1116,9 +1148,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 47
 
-def applyNumberFormat
-  @applyNumberFormat
-end
+def applyNumberFormat + @applyNumberFormat +end + @@ -1136,8 +1169,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

Indicates if the protection options should be applied

+

+Indicates if the protection options should be applied +

@@ -1171,9 +1205,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 67
 
-def applyProtection
-  @applyProtection
-end
+def applyProtection + @applyProtection +end + @@ -1191,8 +1226,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

index (0 based) of the border to be used in this style

+

+index (0 based) of the border to be used in this style +

@@ -1226,9 +1262,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 31
 
-def borderId
-  @borderId
-end
+def borderId + @borderId +end + @@ -1246,8 +1283,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

index (0 based) of the fill to be used in this style

+

+index (0 based) of the fill to be used in this style +

@@ -1281,9 +1319,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 27
 
-def fillId
-  @fillId
-end
+def fillId + @fillId +end + @@ -1301,8 +1340,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

index (0 based) of the font to be used in this style

+

+index (0 based) of the font to be used in this style +

@@ -1336,9 +1376,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 23
 
-def fontId
-  @fontId
-end
+def fontId + @fontId +end + @@ -1356,8 +1397,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

id of the numFmt to apply to this style

+

+id of the numFmt to apply to this style +

@@ -1391,9 +1433,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 19
 
-def numFmtId
-  @numFmtId
-end
+def numFmtId + @numFmtId +end + @@ -1411,8 +1454,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

indicates if the cell has a pivot table drop down button

+

+indicates if the cell has a pivot table drop down button +

@@ -1446,9 +1490,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 43
 
-def pivotButton
-  @pivotButton
-end
+def pivotButton + @pivotButton +end + @@ -1466,8 +1511,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

The cell protection for this style

+

+The cell protection for this style +

@@ -1508,9 +1554,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 15
 
-def protection
-  @protection
-end
+def protection + @protection +end + @@ -1528,8 +1575,9 @@ way to manage styles for your workbook is with Styles#add_style

- -

indecates if text should be prefixed by a single quote in the cell

+

+indecates if text should be prefixed by a single quote in the cell +

@@ -1563,9 +1611,10 @@ way to manage styles for your workbook is with Styles#add_style

# File 'lib/axlsx/stylesheet/xf.rb', line 39
 
-def quotePrefix
-  @quotePrefix
-end
+def quotePrefix + @quotePrefix +end + @@ -1583,9 +1632,10 @@ way to manage styles for your workbook is with Styles#add_style

- -

index (0 based) of cellStylesXfs item to be used in this style. Only -applies to cellXfs items

+

+index (0 based) of cellStylesXfs item to be used in this style. Only +applies to cellXfs items +

@@ -1619,9 +1669,10 @@ applies to cellXfs items

# File 'lib/axlsx/stylesheet/xf.rb', line 35
 
-def xfId
-  @xfId
-end
+def xfId + @xfId +end + @@ -1643,8 +1694,9 @@ applies to cellXfs items

- -

Serializes the xf elemen

+

+Serializes the xf elemen +

@@ -1663,8 +1715,9 @@ applies to cellXfs items

— -
-

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

+

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

@@ -1701,12 +1754,13 @@ applies to cellXfs items

# File 'lib/axlsx/stylesheet/xf.rb', line 131
 
-def to_xml(xml)
-  xml.xf(self.instance_values.reject { |k, v| [:alignment, :protection, :extList, :name].include? k.to_sym}) {
-    alignment.to_xml(xml) if self.alignment
-    protection.to_xml(xml) if self.protection
-  }
-end
+def to_xml(xml) + xml.xf(self.instance_values.reject { |k, v| [:alignment, :protection, :extList, :name].include? k.to_sym}) { + alignment.to_xml(xml) if self.alignment + protection.to_xml(xml) if self.protection + } +end + @@ -1717,9 +1771,9 @@ applies to cellXfs items

-- cgit v1.2.3