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/CellAlignment.html | 263 +++++++++++++++++++++++++------------------ 1 file changed, 152 insertions(+), 111 deletions(-) (limited to 'doc/Axlsx/CellAlignment.html') diff --git a/doc/Axlsx/CellAlignment.html b/doc/Axlsx/CellAlignment.html index a1c73464..9f940a3f 100644 --- a/doc/Axlsx/CellAlignment.html +++ b/doc/Axlsx/CellAlignment.html @@ -97,14 +97,16 @@
Note: -
-

Using Styles#add_style is the recommended way to manage cell alignment.

+

+Using Styles#add_style is the recommended way to manage cell alignment. +

- -

CellAlignment stores information about the cell alignment of a style Xf -Object.

+

+CellAlignment stores information about the cell alignment of a style Xf +Object. +

@@ -143,8 +145,9 @@ Object.

-
-

The horizontal alignment of the cell.

+

+The horizontal alignment of the cell. +

@@ -169,8 +172,9 @@ Object.

-
-

The amount of indent.

+

+The amount of indent. +

@@ -195,8 +199,9 @@ Object.

-
-

Indicate if the last line should be justified.

+

+Indicate if the last line should be justified. +

@@ -221,9 +226,10 @@ Object.

-
-

The reading order of the text 0 Context Dependent 1 Left-to-Right 2 -Right-to-Left.

+

+The reading order of the text 0 Context Dependent 1 Left-to-Right 2 +Right-to-Left. +

@@ -248,8 +254,9 @@ Right-to-Left.

-
-

The amount of relativeIndent.

+

+The amount of relativeIndent. +

@@ -274,8 +281,9 @@ Right-to-Left.

-
-

Indicate if the text should be shrunk to the fit in the cell.

+

+Indicate if the text should be shrunk to the fit in the cell. +

@@ -300,8 +308,9 @@ Right-to-Left.

-
-

The textRotation of the cell.

+

+The textRotation of the cell. +

@@ -326,8 +335,9 @@ Right-to-Left.

-
-

The vertical alignment of the cell.

+

+The vertical alignment of the cell. +

@@ -352,8 +362,9 @@ Right-to-Left.

-
-

Indicate if the text of the cell should wrap.

+

+Indicate if the text of the cell should wrap. +

@@ -390,8 +401,9 @@ Right-to-Left.

-
-

Create a new cell_alignment object.

+

+Create a new cell_alignment object. +

@@ -413,8 +425,9 @@ Right-to-Left.

-
-

Serializes the cell alignment.

+

+Serializes the cell alignment. +

@@ -435,8 +448,9 @@ Right-to-Left.

- -

Create a new cell_alignment object

+

+Create a new cell_alignment object +

@@ -457,8 +471,9 @@ Right-to-Left.

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -571,11 +586,12 @@ Right-to-Left.

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 72
 
-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 + @@ -601,22 +617,25 @@ Right-to-Left.

Note: -
-

The horizontal cell alignement style must be one of

- -
:general
-:left
-:center
-:right
-:fill
-:justify
-:centerContinuous
-:distributed
+

+The horizontal cell alignement style must be one of +

+
+ :general
+ :left
+ :center
+ :right
+ :fill
+ :justify
+ :centerContinuous
+ :distributed
+
- -

The horizontal alignment of the cell.

+

+The horizontal alignment of the cell. +

@@ -650,9 +669,10 @@ Right-to-Left.

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 18
 
-def horizontal
-  @horizontal
-end
+def horizontal + @horizontal +end + @@ -670,8 +690,9 @@ Right-to-Left.

- -

The amount of indent

+

+The amount of indent +

@@ -705,9 +726,10 @@ Right-to-Left.

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 41
 
-def indent
-  @indent
-end
+def indent + @indent +end + @@ -725,8 +747,9 @@ Right-to-Left.

- -

Indicate if the last line should be justified.

+

+Indicate if the last line should be justified. +

@@ -760,9 +783,10 @@ Right-to-Left.

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 49
 
-def justifyLastLine
-  @justifyLastLine
-end
+def justifyLastLine + @justifyLastLine +end + @@ -780,9 +804,10 @@ Right-to-Left.

- -

The reading order of the text 0 Context Dependent 1 Left-to-Right 2 -Right-to-Left

+

+The reading order of the text 0 Context Dependent 1 Left-to-Right 2 +Right-to-Left +

@@ -816,9 +841,10 @@ Right-to-Left

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 60
 
-def readingOrder
-  @readingOrder
-end
+def readingOrder + @readingOrder +end + @@ -836,8 +862,9 @@ Right-to-Left

- -

The amount of relativeIndent

+

+The amount of relativeIndent +

@@ -871,9 +898,10 @@ Right-to-Left

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 45
 
-def relativeIndent
-  @relativeIndent
-end
+def relativeIndent + @relativeIndent +end + @@ -891,8 +919,9 @@ Right-to-Left

- -

Indicate if the text should be shrunk to the fit in the cell.

+

+Indicate if the text should be shrunk to the fit in the cell. +

@@ -926,9 +955,10 @@ Right-to-Left

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 53
 
-def shrinkToFit
-  @shrinkToFit
-end
+def shrinkToFit + @shrinkToFit +end + @@ -946,8 +976,9 @@ Right-to-Left

- -

The textRotation of the cell.

+

+The textRotation of the cell. +

@@ -981,9 +1012,10 @@ Right-to-Left

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 33
 
-def textRotation
-  @textRotation
-end
+def textRotation + @textRotation +end + @@ -1004,19 +1036,22 @@ Right-to-Left

Note: -
-

The vertical cell allingment style must be one of the following:

- -
:top
-:center
-:bottom
-:justify
-:distributed
+

+The vertical cell allingment style must be one of the following: +

+
+ :top
+ :center
+ :bottom
+ :justify
+ :distributed
+
- -

The vertical alignment of the cell.

+

+The vertical alignment of the cell. +

@@ -1050,9 +1085,10 @@ Right-to-Left

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 29
 
-def vertical
-  @vertical
-end
+def vertical + @vertical +end + @@ -1070,8 +1106,9 @@ Right-to-Left

- -

Indicate if the text of the cell should wrap

+

+Indicate if the text of the cell should wrap +

@@ -1105,9 +1142,10 @@ Right-to-Left

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 37
 
-def wrapText
-  @wrapText
-end
+def wrapText + @wrapText +end + @@ -1129,8 +1167,9 @@ Right-to-Left

- -

Serializes the cell alignment

+

+Serializes the cell alignment +

@@ -1149,8 +1188,9 @@ Right-to-Left

— -
-

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

+

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

@@ -1184,9 +1224,10 @@ Right-to-Left

# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 100
 
-def to_xml(xml)
-  xml.alignment(self.instance_values)      
-end
+def to_xml(xml) + xml.alignment(self.instance_values) +end + @@ -1197,9 +1238,9 @@ Right-to-Left

-- cgit v1.2.3