From 407b884ef349d6dec12f50006ea6268c96205a83 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:34:48 +0900 Subject: adding yields for package workbook, workbook styles and cols collection on worksheet to make charting easier. --- doc/Axlsx/Title.html | 117 ++++++++++++++++++++++----------------------------- 1 file changed, 51 insertions(+), 66 deletions(-) (limited to 'doc/Axlsx/Title.html') diff --git a/doc/Axlsx/Title.html b/doc/Axlsx/Title.html index 4c3ebdbf..fd8ce088 100644 --- a/doc/Axlsx/Title.html +++ b/doc/Axlsx/Title.html @@ -94,9 +94,8 @@

Overview

-

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

+ +

A Title stores information about the title of a chart

@@ -132,9 +131,8 @@ A Title stores information about the title of a chart -

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

+
+

The cell that holds the text for the title.

@@ -159,9 +157,8 @@ The cell that holds the text for the title. -

-The text to be shown. -

+
+

The text to be shown.

@@ -198,9 +195,8 @@ The text to be shown. -

-Creates a new Title object. -

+
+

Creates a new Title object.

@@ -222,9 +218,8 @@ Creates a new Title object. -

-Serializes the chart title. -

+
+

Serializes the chart title.

@@ -245,9 +240,8 @@ Serializes the chart title.

-

-Creates a new Title object -

+ +

Creates a new Title object

@@ -268,9 +262,8 @@ Creates a new Title object — -

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

+
+

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

@@ -292,11 +285,10 @@ The cell or string to be used for the chart’s title
# 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 @@ -319,10 +311,9 @@ The cell or string to be used for the chart’s title

-

-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.

@@ -356,10 +347,9 @@ automatically update the text attribute.
# File 'lib/axlsx/drawing/title.rb', line 11
 
-def cell
-  @cell
-end
-
+def cell + @cell +end @@ -377,10 +367,9 @@ 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.

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

-

-Serializes the chart title -

+ +

Serializes the chart title

@@ -460,9 +447,8 @@ Serializes the chart title — -

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

+
+

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

@@ -508,22 +494,21 @@ The document builder instance this objects xml will be added to.
# 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 @@ -534,9 +519,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3