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/Title.html | 117 +++++++++++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 51 deletions(-) (limited to 'doc/Axlsx/Title.html') diff --git a/doc/Axlsx/Title.html b/doc/Axlsx/Title.html index a9d6c7c5..4c3ebdbf 100644 --- a/doc/Axlsx/Title.html +++ b/doc/Axlsx/Title.html @@ -94,8 +94,9 @@

Overview

- -

A Title stores information about the title of a chart

+

+A Title stores information about the title of a chart +

@@ -131,8 +132,9 @@ -
-

The cell that holds the text for the title.

+

+The cell that holds the text for the title. +

@@ -157,8 +159,9 @@ -
-

The text to be shown.

+

+The text to be shown. +

@@ -195,8 +198,9 @@ -
-

Creates a new Title object.

+

+Creates a new Title object. +

@@ -218,8 +222,9 @@ -
-

Serializes the chart title.

+

+Serializes the chart title. +

@@ -240,8 +245,9 @@

- -

Creates a new Title object

+

+Creates a new Title object +

@@ -262,8 +268,9 @@ — -
-

The cell or string to be used for the chart's title

+

+The cell or string to be used for the chart’s title +

@@ -285,10 +292,11 @@
# File 'lib/axlsx/drawing/title.rb', line 15
 
-def initialize(title="")
-  self.cell = title if title.is_a?(Cell)
-  self.text = title.to_s unless title.is_a?(Cell)
-end
+def initialize(title="") + self.cell = title if title.is_a?(Cell) + self.text = title.to_s unless title.is_a?(Cell) +end + @@ -311,9 +319,10 @@

- -

The cell that holds the text for the title. Setting this property will -automatically update the text attribute.

+

+The cell that holds the text for the title. Setting this property will +automatically update the text attribute. +

@@ -347,9 +356,10 @@ automatically update the text attribute.

# File 'lib/axlsx/drawing/title.rb', line 11
 
-def cell
-  @cell
-end
+def cell + @cell +end + @@ -367,9 +377,10 @@ automatically update the text attribute.

- -

The text to be shown. Setting this property directly with a string will -remove the cell reference.

+

+The text to be shown. Setting this property directly with a string will +remove the cell reference. +

@@ -403,9 +414,10 @@ remove the cell reference.

# File 'lib/axlsx/drawing/title.rb', line 7
 
-def text
-  @text
-end
+def text + @text +end + @@ -427,8 +439,9 @@ remove the cell reference.

- -

Serializes the chart title

+

+Serializes the chart title +

@@ -447,8 +460,9 @@ remove the cell reference.

— -
-

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

+

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

@@ -494,21 +508,22 @@ remove the cell reference.

# File 'lib/axlsx/drawing/title.rb', line 44
 
-def to_xml(xml)
-  xml.send('c:title') {
-    xml.send('c:tx') {
-      xml.send('c:strRef') {
-        xml.send('c:f', Axlsx::cell_range([@cell]))
-        xml.send('c:strCache') {
-          xml.send('c:ptCount', :val=>1)
-          xml.send('c:pt', :idx=>0) {
-            xml.send('c:v', @text)
-          }
-        }
-      }
-    }
-  }      
-end
+def to_xml(xml) + xml.send('c:title') { + xml.send('c:tx') { + xml.send('c:strRef') { + xml.send('c:f', Axlsx::cell_range([@cell])) + xml.send('c:strCache') { + xml.send('c:ptCount', :val=>1) + xml.send('c:pt', :idx=>0) { + xml.send('c:v', @text) + } + } + } + } + } +end + @@ -519,9 +534,9 @@ remove the cell reference.

-- cgit v1.2.3