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/GraphicFrame.html | 138 +++++++++++++++++++++++++------------------- 1 file changed, 78 insertions(+), 60 deletions(-) (limited to 'doc/Axlsx/GraphicFrame.html') diff --git a/doc/Axlsx/GraphicFrame.html b/doc/Axlsx/GraphicFrame.html index 39c8949b..7db028a7 100644 --- a/doc/Axlsx/GraphicFrame.html +++ b/doc/Axlsx/GraphicFrame.html @@ -97,13 +97,15 @@
Note: -
-

The recommended way to manage charts is Worksheet#add_chart

+

+The recommended way to manage charts is Worksheet#add_chart +

- -

A graphic frame defines a container for a chart object

+

+A graphic frame defines a container for a chart object +

@@ -142,8 +144,9 @@ -
-

A anchor that holds this frame.

+

+A anchor that holds this frame. +

@@ -168,8 +171,9 @@ -
-

A reference to the chart object associated with this frame.

+

+A reference to the chart object associated with this frame. +

@@ -206,8 +210,9 @@ -
-

Creates a new GraphicFrame object.

+

+Creates a new GraphicFrame object. +

@@ -229,8 +234,9 @@ -
-

The relationship id for this graphic.

+

+The relationship id for this graphic. +

@@ -252,8 +258,9 @@ -
-

Serializes the graphic frame.

+

+Serializes the graphic frame. +

@@ -274,8 +281,9 @@

- -

Creates a new GraphicFrame object

+

+Creates a new GraphicFrame object +

@@ -324,11 +332,12 @@
# File 'lib/axlsx/drawing/graphic_frame.rb', line 18
 
-def initialize(anchor, chart_type, options)
-  DataTypeValidator.validate "Drawing.chart_type", Chart, chart_type 
-  @anchor = anchor
-  @chart = chart_type.new(self, options)
-end
+def initialize(anchor, chart_type, options) + DataTypeValidator.validate "Drawing.chart_type", Chart, chart_type + @anchor = anchor + @chart = chart_type.new(self, options) +end + @@ -351,8 +360,9 @@

- -

A anchor that holds this frame

+

+A anchor that holds this frame +

@@ -386,9 +396,10 @@
# File 'lib/axlsx/drawing/graphic_frame.rb', line 13
 
-def anchor
-  @anchor
-end
+def anchor + @anchor +end + @@ -406,8 +417,9 @@

- -

A reference to the chart object associated with this frame

+

+A reference to the chart object associated with this frame +

@@ -441,9 +453,10 @@
# File 'lib/axlsx/drawing/graphic_frame.rb', line 9
 
-def chart
-  @chart
-end
+def chart + @chart +end + @@ -465,8 +478,9 @@

- -

The relationship id for this graphic

+

+The relationship id for this graphic +

@@ -500,9 +514,10 @@
# File 'lib/axlsx/drawing/graphic_frame.rb', line 26
 
-def rId 
-  "rId#{@anchor.index+1}"
-end
+def rId + "rId#{@anchor.index+1}" +end + @@ -517,8 +532,9 @@

- -

Serializes the graphic frame

+

+Serializes the graphic frame +

@@ -537,8 +553,9 @@ — -
-

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

+

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

@@ -587,24 +604,25 @@
# File 'lib/axlsx/drawing/graphic_frame.rb', line 33
 
-def to_xml(xml)
-  xml.send('xdr:graphicFrame') {        
-    xml.send('xdr:nvGraphicFramePr') {
-      xml.send('xdr:cNvPr', :id=>2, :name=>chart.title)
-      xml.send('xdr:cNvGraphicFramePr')                
-    }
-    xml.send('xdr:xfrm') {
-      xml.send('a:off', :x=>0, :y=>0)
-      xml.send('a:ext', :cx=>0, :cy=>0)
-    }
-    xml.send('a:graphic') {
-      xml.send('a:graphicData', :uri=>XML_NS_C) {
-        xml.send('c:chart', :xmlns:c'=>XML_NS_C, :xmlns:r'=>XML_NS_R, :r:id'=>rId)
-      }
-    }
-  }
-  
-end
+def to_xml(xml) + xml.send('xdr:graphicFrame') { + xml.send('xdr:nvGraphicFramePr') { + xml.send('xdr:cNvPr', :id=>2, :name=>chart.title) + xml.send('xdr:cNvGraphicFramePr') + } + xml.send('xdr:xfrm') { + xml.send('a:off', :x=>0, :y=>0) + xml.send('a:ext', :cx=>0, :cy=>0) + } + xml.send('a:graphic') { + xml.send('a:graphicData', :uri=>XML_NS_C) { + xml.send('c:chart', :'xmlns:c'=>XML_NS_C, :'xmlns:r'=>XML_NS_R, :'r:id'=>rId) + } + } + } + +end + @@ -615,9 +633,9 @@
-- cgit v1.2.3