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/App.html | 591 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 347 insertions(+), 244 deletions(-) (limited to 'doc/Axlsx/App.html') diff --git a/doc/Axlsx/App.html b/doc/Axlsx/App.html index ca993af0..6d7158b6 100644 --- a/doc/Axlsx/App.html +++ b/doc/Axlsx/App.html @@ -97,19 +97,22 @@
Note: -
-

Support is not implemented for the following complex types:

- -

HeadingPairs (VectorVariant), TitlesOfParts (VectorLpstr), HLinks -(VectorVariant), DigSig (DigSigBlob)

+

+Support is not implemented for the following complex types: +

+

+HeadingPairs (VectorVariant), TitlesOfParts (VectorLpstr), HLinks +(VectorVariant), DigSig (DigSigBlob) +

- -

App represents the app.xml document. The attributes for this object are +

+App represents the app.xml document. The attributes for this object are primarily managed by the application the end user uses to edit the document. None of the attributes are required to serialize a valid xlsx -object.

+object. +

@@ -148,8 +151,9 @@ object.

-
-

The name of the application.

+

+The name of the application. +

@@ -174,8 +178,9 @@ object.

-
-

The version of the application.

+

+The version of the application. +

@@ -200,8 +205,9 @@ object.

-
-

The number of characters in the document.

+

+The number of characters in the document. +

@@ -226,8 +232,9 @@ object.

-
-

The number of characters in the document including spaces.

+

+The number of characters in the document including spaces. +

@@ -252,8 +259,9 @@ object.

-
-

The name of the company generating the document.

+

+The name of the company generating the document. +

@@ -278,8 +286,9 @@ object.

-
-

Document security.

+

+Document security. +

@@ -304,8 +313,9 @@ object.

-
-

The number of hidden slides.

+

+The number of hidden slides. +

@@ -330,8 +340,9 @@ object.

-
-

The base for hyper links in the document.

+

+The base for hyper links in the document. +

@@ -356,8 +367,9 @@ object.

-
-

Indicates that the hyper links in the document have been changed.

+

+Indicates that the hyper links in the document have been changed. +

@@ -382,8 +394,9 @@ object.

-
-

The number of lines in the document.

+

+The number of lines in the document. +

@@ -408,8 +421,9 @@ object.

-
-

The links in the document are up to date.

+

+The links in the document are up to date. +

@@ -434,8 +448,9 @@ object.

-
-

The name of the manager for the document.

+

+The name of the manager for the document. +

@@ -460,8 +475,9 @@ object.

-
-

The total number multimedia clips.

+

+The total number multimedia clips. +

@@ -486,8 +502,9 @@ object.

-
-

The number of slides that have notes.

+

+The number of slides that have notes. +

@@ -512,8 +529,9 @@ object.

-
-

The number of pages in the document.

+

+The number of pages in the document. +

@@ -538,8 +556,9 @@ object.

-
-

The number of paragraphs in the document.

+

+The number of paragraphs in the document. +

@@ -564,8 +583,9 @@ object.

-
-

The intended format of the presentation.

+

+The intended format of the presentation. +

@@ -590,8 +610,9 @@ object.

-
-

The display mode for the document thumbnail.

+

+The display mode for the document thumbnail. +

@@ -616,8 +637,9 @@ object.

-
-

Indicates if the document is shared.

+

+Indicates if the document is shared. +

@@ -642,8 +664,9 @@ object.

-
-

The number of slides in the document.

+

+The number of slides in the document. +

@@ -668,8 +691,9 @@ object.

-
-

The name of the document template.

+

+The name of the document template. +

@@ -694,8 +718,9 @@ object.

-
-

The total amount of time spent editing.

+

+The total amount of time spent editing. +

@@ -720,8 +745,9 @@ object.

-
-

The number of words in the document.

+

+The number of words in the document. +

@@ -756,8 +782,9 @@ object.

-
-

Creates an App object.

+

+Creates an App object. +

@@ -779,8 +806,9 @@ object.

-
-

Generate an app.xml document.

+

+Generate an app.xml document. +

@@ -805,8 +833,9 @@ object.

- -

The name of the application

+

+The name of the application +

@@ -824,8 +853,9 @@ object.

— -
-

The name of the application

+

+The name of the application +

@@ -845,9 +875,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 74
 
-def Application
-  @Application
-end
+def Application + @Application +end + @@ -865,8 +896,9 @@ object.

- -

The version of the application.

+

+The version of the application. +

@@ -884,8 +916,9 @@ object.

— -
-

The version of the application.

+

+The version of the application. +

@@ -905,9 +938,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 77
 
-def AppVersion
-  @AppVersion
-end
+def AppVersion + @AppVersion +end + @@ -925,8 +959,9 @@ object.

- -

The number of characters in the document.

+

+The number of characters in the document. +

@@ -944,8 +979,9 @@ object.

— -
-

The number of characters in the document.

+

+The number of characters in the document. +

@@ -965,9 +1001,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 29
 
-def Characters
-  @Characters
-end
+def Characters + @Characters +end + @@ -985,8 +1022,9 @@ object.

- -

The number of characters in the document including spaces.

+

+The number of characters in the document including spaces. +

@@ -1004,8 +1042,9 @@ object.

— -
-

The number of characters in the document including spaces.

+

+The number of characters in the document including spaces. +

@@ -1025,9 +1064,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 62
 
-def CharactersWithSpaces
-  @CharactersWithSpaces
-end
+def CharactersWithSpaces + @CharactersWithSpaces +end + @@ -1045,8 +1085,9 @@ object.

- -

The name of the company generating the document.

+

+The name of the company generating the document. +

@@ -1064,8 +1105,9 @@ object.

— -
-

The name of the company generating the document.

+

+The name of the company generating the document. +

@@ -1085,9 +1127,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 20
 
-def Company
-  @Company
-end
+def Company + @Company +end + @@ -1105,8 +1148,9 @@ object.

- -

Document security

+

+Document security +

@@ -1124,8 +1168,9 @@ object.

— -
-

Document security

+

+Document security +

@@ -1145,9 +1190,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 80
 
-def DocSecurity
-  @DocSecurity
-end
+def DocSecurity + @DocSecurity +end + @@ -1165,8 +1211,9 @@ object.

- -

The number of hidden slides.

+

+The number of hidden slides. +

@@ -1184,8 +1231,9 @@ object.

— -
-

The number of hidden slides.

+

+The number of hidden slides. +

@@ -1205,9 +1253,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 50
 
-def HiddenSlides
-  @HiddenSlides
-end
+def HiddenSlides + @HiddenSlides +end + @@ -1225,8 +1274,9 @@ object.

- -

The base for hyper links in the document.

+

+The base for hyper links in the document. +

@@ -1244,8 +1294,9 @@ object.

— -
-

The base for hyper links in the document.

+

+The base for hyper links in the document. +

@@ -1265,9 +1316,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 68
 
-def HyperLinkBase
-  @HyperLinkBase
-end
+def HyperLinkBase + @HyperLinkBase +end + @@ -1285,8 +1337,9 @@ object.

- -

Indicates that the hyper links in the document have been changed.

+

+Indicates that the hyper links in the document have been changed. +

@@ -1304,8 +1357,9 @@ object.

— -
-

Indicates that the hyper links in the document have been changed.

+

+Indicates that the hyper links in the document have been changed. +

@@ -1325,9 +1379,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 71
 
-def HyperlinksChanged
-  @HyperlinksChanged
-end
+def HyperlinksChanged + @HyperlinksChanged +end + @@ -1345,8 +1400,9 @@ object.

- -

The number of lines in the document.

+

+The number of lines in the document. +

@@ -1364,8 +1420,9 @@ object.

— -
-

The number of lines in the document.

+

+The number of lines in the document. +

@@ -1385,9 +1442,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 35
 
-def Lines
-  @Lines
-end
+def Lines + @Lines +end + @@ -1405,8 +1463,9 @@ object.

- -

The links in the document are up to date.

+

+The links in the document are up to date. +

@@ -1424,8 +1483,9 @@ object.

— -
-

The links in the document are up to date.

+

+The links in the document are up to date. +

@@ -1445,9 +1505,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 59
 
-def LinksUpToDate
-  @LinksUpToDate
-end
+def LinksUpToDate + @LinksUpToDate +end + @@ -1465,8 +1526,9 @@ object.

- -

The name of the manager for the document.

+

+The name of the manager for the document. +

@@ -1484,8 +1546,9 @@ object.

— -
-

The name of the manager for the document.

+

+The name of the manager for the document. +

@@ -1505,9 +1568,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 17
 
-def Manager
-  @Manager
-end
+def Manager + @Manager +end + @@ -1525,8 +1589,9 @@ object.

- -

The total number multimedia clips

+

+The total number multimedia clips +

@@ -1544,8 +1609,9 @@ object.

— -
-

The total number multimedia clips

+

+The total number multimedia clips +

@@ -1565,9 +1631,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 53
 
-def MMClips
-  @MMClips
-end
+def MMClips + @MMClips +end + @@ -1585,8 +1652,9 @@ object.

- -

The number of slides that have notes.

+

+The number of slides that have notes. +

@@ -1604,8 +1672,9 @@ object.

— -
-

The number of slides that have notes.

+

+The number of slides that have notes. +

@@ -1625,9 +1694,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 44
 
-def Notes
-  @Notes
-end
+def Notes + @Notes +end + @@ -1645,8 +1715,9 @@ object.

- -

The number of pages in the document.

+

+The number of pages in the document. +

@@ -1664,8 +1735,9 @@ object.

— -
-

The number of pages in the document.

+

+The number of pages in the document. +

@@ -1685,9 +1757,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 23
 
-def Pages
-  @Pages
-end
+def Pages + @Pages +end + @@ -1705,8 +1778,9 @@ object.

- -

The number of paragraphs in the document

+

+The number of paragraphs in the document +

@@ -1724,8 +1798,9 @@ object.

— -
-

The number of paragraphs in the document

+

+The number of paragraphs in the document +

@@ -1745,9 +1820,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 38
 
-def Paragraphs
-  @Paragraphs
-end
+def Paragraphs + @Paragraphs +end + @@ -1765,8 +1841,9 @@ object.

- -

The intended format of the presentation.

+

+The intended format of the presentation. +

@@ -1784,8 +1861,9 @@ object.

— -
-

The intended format of the presentation.

+

+The intended format of the presentation. +

@@ -1805,9 +1883,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 32
 
-def PresentationFormat
-  @PresentationFormat
-end
+def PresentationFormat + @PresentationFormat +end + @@ -1825,8 +1904,9 @@ object.

- -

The display mode for the document thumbnail.

+

+The display mode for the document thumbnail. +

@@ -1844,8 +1924,9 @@ object.

— -
-

The display mode for the document thumbnail.

+

+The display mode for the document thumbnail. +

@@ -1865,9 +1946,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 56
 
-def ScaleCrop
-  @ScaleCrop
-end
+def ScaleCrop + @ScaleCrop +end + @@ -1885,8 +1967,9 @@ object.

- -

Indicates if the document is shared.

+

+Indicates if the document is shared. +

@@ -1904,8 +1987,9 @@ object.

— -
-

Indicates if the document is shared.

+

+Indicates if the document is shared. +

@@ -1925,9 +2009,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 65
 
-def ShareDoc
-  @ShareDoc
-end
+def ShareDoc + @ShareDoc +end + @@ -1945,8 +2030,9 @@ object.

- -

The number of slides in the document.

+

+The number of slides in the document. +

@@ -1964,8 +2050,9 @@ object.

— -
-

The number of slides in the document.

+

+The number of slides in the document. +

@@ -1985,9 +2072,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 41
 
-def Slides
-  @Slides
-end
+def Slides + @Slides +end + @@ -2005,8 +2093,9 @@ object.

- -

The name of the document template.

+

+The name of the document template. +

@@ -2024,8 +2113,9 @@ object.

— -
-

The name of the document template.

+

+The name of the document template. +

@@ -2045,9 +2135,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 14
 
-def Template
-  @Template
-end
+def Template + @Template +end + @@ -2065,8 +2156,9 @@ object.

- -

The total amount of time spent editing.

+

+The total amount of time spent editing. +

@@ -2084,8 +2176,9 @@ object.

— -
-

The total amount of time spent editing.

+

+The total amount of time spent editing. +

@@ -2105,9 +2198,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 47
 
-def TotalTime
-  @TotalTime
-end
+def TotalTime + @TotalTime +end + @@ -2125,8 +2219,9 @@ object.

- -

The number of words in the document.

+

+The number of words in the document. +

@@ -2144,8 +2239,9 @@ object.

— -
-

The number of words in the document.

+

+The number of words in the document. +

@@ -2165,9 +2261,10 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 26
 
-def Words
-  @Words
-end
+def Words + @Words +end + @@ -2189,8 +2286,9 @@ object.

- -

Creates an App object

+

+Creates an App object +

@@ -2211,8 +2309,9 @@ object.

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -2442,11 +2541,12 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 105
 
-def initalize(options={})
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? o[0]
-  end
-end
+def initalize(options={}) + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? o[0] + end +end + @@ -2461,8 +2561,9 @@ object.

- -

Generate an app.xml document

+

+Generate an app.xml document +

@@ -2480,8 +2581,9 @@ object.

— -
-

The document as a string

+

+The document as a string +

@@ -2508,16 +2610,17 @@ object.

# File 'lib/axlsx/doc_props/app.rb', line 167
 
-def to_xml()
-  builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml|
-    xml.send(:Properties, :xmlns => APP_NS, :xmlns:vt' => APP_NS_VT) {
-      self.instance_values.each do |name, value|
-        xml.send("ap:#{name}", value)
-      end
-    }
-  end      
-  builder.to_xml
-end
+def to_xml() + builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml| + xml.send(:Properties, :xmlns => APP_NS, :'xmlns:vt' => APP_NS_VT) { + self.instance_values.each do |name, value| + xml.send("ap:#{name}", value) + end + } + end + builder.to_xml +end + @@ -2528,9 +2631,9 @@ object.

-- cgit v1.2.3