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/TwoCellAnchor.html | 225 +++++++++++++++++++++++++------------------ 1 file changed, 129 insertions(+), 96 deletions(-) (limited to 'doc/Axlsx/TwoCellAnchor.html') diff --git a/doc/Axlsx/TwoCellAnchor.html b/doc/Axlsx/TwoCellAnchor.html index 8e2b5d7c..45425383 100644 --- a/doc/Axlsx/TwoCellAnchor.html +++ b/doc/Axlsx/TwoCellAnchor.html @@ -97,14 +97,16 @@
Note: -
-

The recommended way to manage drawings and charts is Worksheet#add_chart. -Anchors are specified by the :start_at and :end_at options to that method.

+

+The recommended way to manage drawings and charts is Worksheet#add_chart. +Anchors are specified by the :start_at and :end_at options to that method. +

- -

This class details the anchor points for drawings.

+

+This class details the anchor points for drawings. +

@@ -143,8 +145,9 @@ Anchors are specified by the :start_at and :end_at options to that method.

-
-

The drawing that holds this anchor.

+

+The drawing that holds this anchor. +

@@ -169,8 +172,9 @@ Anchors are specified by the :start_at and :end_at options to that method.

-
-

A marker that defines the from cell anchor.

+

+A marker that defines the from cell anchor. +

@@ -195,8 +199,9 @@ Anchors are specified by the :start_at and :end_at options to that method.

-
-

The object this anchor hosts.

+

+The object this anchor hosts. +

@@ -221,8 +226,9 @@ Anchors are specified by the :start_at and :end_at options to that method.

-
-

A marker that returns the to cell anchor.

+

+A marker that returns the to cell anchor. +

@@ -257,8 +263,9 @@ Anchors are specified by the :start_at and :end_at options to that method.

-
-

Creates a graphic frame and chart object associated with this anchor.

+

+Creates a graphic frame and chart object associated with this anchor. +

@@ -280,8 +287,9 @@ Anchors are specified by the :start_at and :end_at options to that method.

-
-

The index of this anchor in the drawing.

+

+The index of this anchor in the drawing. +

@@ -305,9 +313,10 @@ Anchors are specified by the :start_at and :end_at options to that method.

-
-

Creates a new TwoCellAnchor object and sets up a reference to the from and -to markers in the graphic_frame's chart.

+

+Creates a new TwoCellAnchor object and sets up a reference to the from and +to markers in the graphic_frame’s chart. +

@@ -329,8 +338,9 @@ to markers in the graphic_frame's chart.

-
-

Serializes the two cell anchor.

+

+Serializes the two cell anchor. +

@@ -354,15 +364,17 @@ to markers in the graphic_frame's chart.

Note: -
-

the chart_type parameter will be replaced with object in v. 2.0.0

+

+the chart_type parameter will be replaced with object in v. 2.0.0 +

- -

Creates a new TwoCellAnchor object and sets up a reference to the from and -to markers in the graphic_frame's chart. That means that you can do stuff -like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9

+

+Creates a new TwoCellAnchor object and sets up a reference to the from and +to markers in the graphic_frame’s chart. That means that you can do +stuff like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9 +

@@ -392,9 +404,10 @@ like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9

— -
-

This is passed to the graphic frame for instantiation. must be Chart or a -subclass of Chart

+

+This is passed to the graphic frame for instantiation. must be Chart or a +subclass of Chart +

@@ -409,8 +422,9 @@ subclass of Chart

— -
-

The object this anchor holds.

+

+The object this anchor holds. +

@@ -427,8 +441,9 @@ subclass of Chart

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -449,8 +464,9 @@ subclass of Chart

- —
-

the col, row to start at

+ —

+the col, row to start at +

@@ -460,8 +476,9 @@ subclass of Chart

- —
-

the col, row to end at

+ —

+the col, row to end at +

@@ -484,11 +501,12 @@ subclass of Chart

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 38
 
-def initialize(drawing, options={})
-  @drawing = drawing
-  drawing.anchors << self      
-  @from, @to =  Marker.new, Marker.new(:col => 5, :row=>10)
-end
+def initialize(drawing, options={}) + @drawing = drawing + drawing.anchors << self + @from, @to = Marker.new, Marker.new(:col => 5, :row=>10) +end + @@ -511,8 +529,9 @@ subclass of Chart

- -

The drawing that holds this anchor

+

+The drawing that holds this anchor +

@@ -546,9 +565,10 @@ subclass of Chart

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 25
 
-def drawing
-  @drawing
-end
+def drawing + @drawing +end + @@ -566,9 +586,10 @@ subclass of Chart

- -

A marker that defines the from cell anchor. The default from column and row -are 0 and 0 respectively

+

+A marker that defines the from cell anchor. The default from column and row +are 0 and 0 respectively +

@@ -602,9 +623,10 @@ are 0 and 0 respectively

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 9
 
-def from
-  @from
-end
+def from + @from +end + @@ -622,8 +644,9 @@ are 0 and 0 respectively

- -

The object this anchor hosts

+

+The object this anchor hosts +

@@ -657,9 +680,10 @@ are 0 and 0 respectively

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 21
 
-def object
-  @object
-end
+def object + @object +end + @@ -677,9 +701,10 @@ are 0 and 0 respectively

- -

A marker that returns the to cell anchor. The default to column and row are -5 and 10 respectively

+

+A marker that returns the to cell anchor. The default to column and row are +5 and 10 respectively +

@@ -713,9 +738,10 @@ are 0 and 0 respectively

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 12
 
-def to
-  @to
-end
+def to + @to +end + @@ -737,8 +763,9 @@ are 0 and 0 respectively

- -

Creates a graphic frame and chart object associated with this anchor

+

+Creates a graphic frame and chart object associated with this anchor +

@@ -773,10 +800,11 @@ are 0 and 0 respectively

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 46
 
-def add_chart(chart_type, options)      
-  @object = GraphicFrame.new(self, chart_type, options)
-  @object.chart
-end
+def add_chart(chart_type, options) + @object = GraphicFrame.new(self, chart_type, options) + @object.chart +end + @@ -791,8 +819,9 @@ are 0 and 0 respectively

- -

The index of this anchor in the drawing

+

+The index of this anchor in the drawing +

@@ -826,9 +855,10 @@ are 0 and 0 respectively

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 53
 
-def index
-  @drawing.anchors.index(self)
-end
+def index + @drawing.anchors.index(self) +end + @@ -843,8 +873,9 @@ are 0 and 0 respectively

- -

Serializes the two cell anchor

+

+Serializes the two cell anchor +

@@ -863,8 +894,9 @@ are 0 and 0 respectively

— -
-

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

+

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

@@ -908,19 +940,20 @@ are 0 and 0 respectively

# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 59
 
-def to_xml(xml)
-  #build it for now, break it down later!
-  xml.send('xdr:twoCellAnchor') {
-    xml.send('xdr:from') {
-      from.to_xml(xml)
-    }
-    xml.send('xdr:to') {
-      to.to_xml(xml)
-    }
-    @object.to_xml(xml)
-    xml.send('xdr:clientData')
-  }
-end
+def to_xml(xml) + #build it for now, break it down later! + xml.send('xdr:twoCellAnchor') { + xml.send('xdr:from') { + from.to_xml(xml) + } + xml.send('xdr:to') { + to.to_xml(xml) + } + @object.to_xml(xml) + xml.send('xdr:clientData') + } +end + @@ -931,9 +964,9 @@ are 0 and 0 respectively

-- cgit v1.2.3