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/Font.html | 344 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 197 insertions(+), 147 deletions(-) (limited to 'doc/Axlsx/Font.html') diff --git a/doc/Axlsx/Font.html b/doc/Axlsx/Font.html index 575eb462..349c3650 100644 --- a/doc/Axlsx/Font.html +++ b/doc/Axlsx/Font.html @@ -97,13 +97,15 @@
Note: -
-

The recommended way to manage fonts, and other styles is Styles#add_style

+

+The recommended way to manage fonts, and other styles is Styles#add_style +

- -

The Font class details a font instance for use in styling cells.

+

+The Font class details a font instance for use in styling cells. +

@@ -142,8 +144,9 @@ -
-

Indicates if the font should be rendered in bold.

+

+Indicates if the font should be rendered in bold. +

@@ -168,8 +171,9 @@ -
-

The charset of the font.

+

+The charset of the font. +

@@ -194,8 +198,9 @@ -
-

The color of the font.

+

+The color of the font. +

@@ -220,8 +225,9 @@ -
-

Indicates if the font should be condensed.

+

+Indicates if the font should be condensed. +

@@ -246,8 +252,9 @@ -
-

The font's extend property.

+

+The font’s extend property. +

@@ -272,8 +279,9 @@ -
-

The font's family.

+

+The font’s family. +

@@ -298,8 +306,9 @@ -
-

Indicates if the font should be rendered italicized.

+

+Indicates if the font should be rendered italicized. +

@@ -324,8 +333,9 @@ -
-

The name of the font.

+

+The name of the font. +

@@ -350,8 +360,9 @@ -
-

Indicates if the font should be rendered with an outline.

+

+Indicates if the font should be rendered with an outline. +

@@ -376,8 +387,9 @@ -
-

Indicates if the font should be rendered with a shadow.

+

+Indicates if the font should be rendered with a shadow. +

@@ -402,8 +414,9 @@ -
-

Indicates if the font should be rendered with a strikthrough.

+

+Indicates if the font should be rendered with a strikthrough. +

@@ -428,8 +441,9 @@ -
-

The size of the font.

+

+The size of the font. +

@@ -466,8 +480,9 @@ -
-

Creates a new Font.

+

+Creates a new Font. +

@@ -489,8 +504,9 @@ -
-

Serializes the fill.

+

+Serializes the fill. +

@@ -511,8 +527,9 @@

- -

Creates a new Font

+

+Creates a new Font +

@@ -533,8 +550,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -683,11 +701,12 @@
# File 'lib/axlsx/stylesheet/font.rb', line 98
 
-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 + @@ -710,8 +729,9 @@

- -

Indicates if the font should be rendered in bold

+

+Indicates if the font should be rendered in bold +

@@ -745,9 +765,10 @@
# File 'lib/axlsx/stylesheet/font.rb', line 50
 
-def b
-  @b
-end
+def b + @b +end + @@ -768,34 +789,37 @@
Note: -
-

The following values are defined in the OOXML specification and are OS -dependant values

- -
0   ANSI_CHARSET
-1   DEFAULT_CHARSET
-2   SYMBOL_CHARSET
-77  MAC_CHARSET
-128 SHIFTJIS_CHARSET
-129 HANGUL_CHARSET
-130 JOHAB_CHARSET
-134 GB2312_CHARSET
-136 CHINESEBIG5_CHARSET
-161 GREEK_CHARSET
-162 TURKISH_CHARSET
-163 VIETNAMESE_CHARSET
-177 HEBREW_CHARSET
-178 ARABIC_CHARSET
-186 BALTIC_CHARSET
-204 RUSSIAN_CHARSET
-222 THAI_CHARSET
-238 EASTEUROPE_CHARSET
-255 OEM_CHARSET
+

+The following values are defined in the OOXML specification and are OS +dependant values +

+
+ 0   ANSI_CHARSET
+ 1   DEFAULT_CHARSET
+ 2   SYMBOL_CHARSET
+ 77  MAC_CHARSET
+ 128 SHIFTJIS_CHARSET
+ 129 HANGUL_CHARSET
+ 130 JOHAB_CHARSET
+ 134 GB2312_CHARSET
+ 136 CHINESEBIG5_CHARSET
+ 161 GREEK_CHARSET
+ 162 TURKISH_CHARSET
+ 163 VIETNAMESE_CHARSET
+ 177 HEBREW_CHARSET
+ 178 ARABIC_CHARSET
+ 186 BALTIC_CHARSET
+ 204 RUSSIAN_CHARSET
+ 222 THAI_CHARSET
+ 238 EASTEUROPE_CHARSET
+ 255 OEM_CHARSET
+
- -

The charset of the font

+

+The charset of the font +

@@ -829,9 +853,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 33
 
-def charset
-  @charset
-end
+def charset + @charset +end + @@ -849,8 +874,9 @@ dependant values

- -

The color of the font

+

+The color of the font +

@@ -884,9 +910,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 78
 
-def color
-  @color
-end
+def color + @color +end + @@ -904,8 +931,9 @@ dependant values

- -

Indicates if the font should be condensed

+

+Indicates if the font should be condensed +

@@ -939,9 +967,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 70
 
-def condense
-  @condense
-end
+def condense + @condense +end + @@ -959,8 +988,9 @@ dependant values

- -

The font's extend property

+

+The font’s extend property +

@@ -994,9 +1024,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 74
 
-def extend
-  @extend
-end
+def extend + @extend +end + @@ -1017,21 +1048,24 @@ dependant values

Note: -
-

The following are defined OOXML specification

- -
0 Not applicable.
-1 Roman
-2 Swiss
-3 Modern
-4 Script
-5 Decorative
-6..14 Reserved for future use
+

+The following are defined OOXML specification +

+
+ 0 Not applicable.
+ 1 Roman
+ 2 Swiss
+ 3 Modern
+ 4 Script
+ 5 Decorative
+ 6..14 Reserved for future use
+
- -

The font's family

+

+The font’s family +

@@ -1065,9 +1099,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 46
 
-def family
-  @family
-end
+def family + @family +end + @@ -1085,8 +1120,9 @@ dependant values

- -

Indicates if the font should be rendered italicized

+

+Indicates if the font should be rendered italicized +

@@ -1120,9 +1156,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 54
 
-def i
-  @i
-end
+def i + @i +end + @@ -1140,8 +1177,9 @@ dependant values

- -

The name of the font

+

+The name of the font +

@@ -1175,9 +1213,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 8
 
-def name
-  @name
-end
+def name + @name +end + @@ -1195,8 +1234,9 @@ dependant values

- -

Indicates if the font should be rendered with an outline

+

+Indicates if the font should be rendered with an outline +

@@ -1230,9 +1270,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 62
 
-def outline
-  @outline
-end
+def outline + @outline +end + @@ -1250,8 +1291,9 @@ dependant values

- -

Indicates if the font should be rendered with a shadow

+

+Indicates if the font should be rendered with a shadow +

@@ -1285,9 +1327,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 66
 
-def shadow
-  @shadow
-end
+def shadow + @shadow +end + @@ -1305,8 +1348,9 @@ dependant values

- -

Indicates if the font should be rendered with a strikthrough

+

+Indicates if the font should be rendered with a strikthrough +

@@ -1340,9 +1384,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 58
 
-def strike
-  @strike
-end
+def strike + @strike +end + @@ -1360,8 +1405,9 @@ dependant values

- -

The size of the font.

+

+The size of the font. +

@@ -1395,9 +1441,10 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 82
 
-def sz
-  @sz
-end
+def sz + @sz +end + @@ -1419,8 +1466,9 @@ dependant values

- -

Serializes the fill

+

+Serializes the fill +

@@ -1439,8 +1487,9 @@ dependant values

— -
-

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

+

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

@@ -1478,13 +1527,14 @@ dependant values

# File 'lib/axlsx/stylesheet/font.rb', line 131
 
-def to_xml(xml)
-  xml.font {
-    self.instance_values.each do |k, v|
-      v.is_a?(Color) ? v.to_xml(xml) : xml.send(k, {:val => v})            
-    end
-  }
-end
+def to_xml(xml) + xml.font { + self.instance_values.each do |k, v| + v.is_a?(Color) ? v.to_xml(xml) : xml.send(k, {:val => v}) + end + } +end + @@ -1495,9 +1545,9 @@ dependant values

-- cgit v1.2.3