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/Scaling.html | 139 ++++++++++++++++++++++++++++--------------------- 1 file changed, 80 insertions(+), 59 deletions(-) (limited to 'doc/Axlsx/Scaling.html') diff --git a/doc/Axlsx/Scaling.html b/doc/Axlsx/Scaling.html index e8a6a8be..5878f1d4 100644 --- a/doc/Axlsx/Scaling.html +++ b/doc/Axlsx/Scaling.html @@ -94,8 +94,9 @@

Overview

- -

The Scaling class defines axis scaling

+

+The Scaling class defines axis scaling +

@@ -127,8 +128,9 @@ -
-

logarithmic base for a logarithmic axis.

+

+logarithmic base for a logarithmic axis. +

@@ -153,8 +155,9 @@ -
-

the maximum scaling.

+

+the maximum scaling. +

@@ -179,8 +182,9 @@ -
-

the minimu scaling.

+

+the minimu scaling. +

@@ -205,8 +209,9 @@ -
-

the orientation of the axis must be one of [:minMax, :maxMin].

+

+the orientation of the axis must be one of [:minMax, :maxMin]. +

@@ -243,8 +248,9 @@ -
-

creates a new Scaling object.

+

+creates a new Scaling object. +

@@ -266,8 +272,9 @@ -
-

Serializes the axId.

+

+Serializes the axId. +

@@ -288,8 +295,9 @@

- -

creates a new Scaling object

+

+creates a new Scaling object +

@@ -310,8 +318,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -381,13 +390,14 @@
# File 'lib/axlsx/drawing/scaling.rb', line 28
 
-def initialize(options={})
-  @orientation = :minMax
-  @logBase, @min, @max = nil, nil, nil
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
-  end
-end
+def initialize(options={}) + @orientation = :minMax + @logBase, @min, @max = nil, nil, nil + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end + @@ -410,8 +420,9 @@

- -

logarithmic base for a logarithmic axis. must be between 2 and 1000

+

+logarithmic base for a logarithmic axis. must be between 2 and 1000 +

@@ -445,9 +456,10 @@
# File 'lib/axlsx/drawing/scaling.rb', line 8
 
-def logBase
-  @logBase
-end
+def logBase + @logBase +end + @@ -465,8 +477,9 @@

- -

the maximum scaling

+

+the maximum scaling +

@@ -500,9 +513,10 @@
# File 'lib/axlsx/drawing/scaling.rb', line 17
 
-def max
-  @max
-end
+def max + @max +end + @@ -520,8 +534,9 @@

- -

the minimu scaling

+

+the minimu scaling +

@@ -555,9 +570,10 @@
# File 'lib/axlsx/drawing/scaling.rb', line 21
 
-def min
-  @min
-end
+def min + @min +end + @@ -575,8 +591,9 @@

- -

the orientation of the axis must be one of [:minMax, :maxMin]

+

+the orientation of the axis must be one of [:minMax, :maxMin] +

@@ -610,9 +627,10 @@
# File 'lib/axlsx/drawing/scaling.rb', line 13
 
-def orientation
-  @orientation
-end
+def orientation + @orientation +end + @@ -634,8 +652,9 @@

- -

Serializes the axId

+

+Serializes the axId +

@@ -654,8 +673,9 @@ — -
-

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

+

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

@@ -694,14 +714,15 @@
# File 'lib/axlsx/drawing/scaling.rb', line 49
 
-def to_xml(xml)
-  xml.send('c:scaling') {
-    xml.send('c:logBase', :val=> @logBase) unless @logBase.nil?
-    xml.send('c:orientation', :val=> @orientation) unless @orientation.nil?
-    xml.send('c:min', :val => @min) unless @min.nil?
-    xml.send('c:max', :val => @max) unless @max.nil?
-  }
-end
+def to_xml(xml) + xml.send('c:scaling') { + xml.send('c:logBase', :val=> @logBase) unless @logBase.nil? + xml.send('c:orientation', :val=> @orientation) unless @orientation.nil? + xml.send('c:min', :val => @min) unless @min.nil? + xml.send('c:max', :val => @max) unless @max.nil? + } +end + @@ -712,9 +733,9 @@
-- cgit v1.2.3