From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/TwoCellAnchor.html | 225 ++++++++++++++++++------------------------- 1 file changed, 96 insertions(+), 129 deletions(-) (limited to 'doc/Axlsx/TwoCellAnchor.html') diff --git a/doc/Axlsx/TwoCellAnchor.html b/doc/Axlsx/TwoCellAnchor.html index 731764f1..68e7ba13 100644 --- a/doc/Axlsx/TwoCellAnchor.html +++ b/doc/Axlsx/TwoCellAnchor.html @@ -97,16 +97,14 @@
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.

@@ -145,9 +143,8 @@ This class details the anchor points for drawings. -

-The drawing that holds this anchor. -

+
+

The drawing that holds this anchor.

@@ -172,9 +169,8 @@ The drawing that holds this anchor. -

-A marker that defines the from cell anchor. -

+
+

A marker that defines the from cell anchor.

@@ -199,9 +195,8 @@ A marker that defines the from cell anchor. -

-The object this anchor hosts. -

+
+

The object this anchor hosts.

@@ -226,9 +221,8 @@ The object this anchor hosts. -

-A marker that returns the to cell anchor. -

+
+

A marker that returns the to cell anchor.

@@ -263,9 +257,8 @@ A marker that returns the to cell anchor. -

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

+
+

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

@@ -287,9 +280,8 @@ Creates a graphic frame and chart object associated with this anchor. -

-The index of this anchor in the drawing. -

+
+

The index of this anchor in the drawing.

@@ -313,10 +305,9 @@ The index of this anchor in the drawing. -

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

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

-Serializes the two cell anchor. -

+
+

Serializes the two cell anchor.

@@ -364,17 +354,15 @@ Serializes the two cell anchor.
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

@@ -404,10 +392,9 @@ stuff 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

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

-The object this anchor holds. -

+
+

The object this anchor holds.

@@ -441,9 +427,8 @@ The object this anchor holds. — -

-a customizable set of options -

+
+

a customizable set of options

@@ -464,9 +449,8 @@ a customizable set of options - —

-the col, row to start at -

+ —
+

the col, row to start at

@@ -476,9 +460,8 @@ the col, row to start at - —

-the col, row to end at -

+ —
+

the col, row to end at

@@ -501,12 +484,11 @@ the col, row to end at
# 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 @@ -529,9 +511,8 @@ the col, row to end at

-

-The drawing that holds this anchor -

+ +

The drawing that holds this anchor

@@ -565,10 +546,9 @@ The drawing that holds this anchor
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 25
 
-def drawing
-  @drawing
-end
-
+def drawing + @drawing +end @@ -586,10 +566,9 @@ The drawing that holds this anchor

-

-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

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

-

-The object this anchor hosts -

+ +

The object this anchor hosts

@@ -680,10 +657,9 @@ The object this anchor hosts
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 21
 
-def object
-  @object
-end
-
+def object + @object +end @@ -701,10 +677,9 @@ The object this anchor hosts

-

-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

@@ -738,10 +713,9 @@ A marker that returns the to cell anchor. The default to column and row are
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 12
 
-def to
-  @to
-end
-
+def to + @to +end @@ -763,9 +737,8 @@ A marker that returns the to cell anchor. The default to column and row are

-

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

+ +

Creates a graphic frame and chart object associated with this anchor

@@ -800,11 +773,10 @@ Creates a graphic frame and chart object associated with this anchor
# 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 @@ -819,9 +791,8 @@ Creates a graphic frame and chart object associated with this anchor

-

-The index of this anchor in the drawing -

+ +

The index of this anchor in the drawing

@@ -855,10 +826,9 @@ The index of this anchor in the drawing
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 53
 
-def index
-  @drawing.anchors.index(self)
-end
-
+def index + @drawing.anchors.index(self) +end @@ -873,9 +843,8 @@ The index of this anchor in the drawing

-

-Serializes the two cell anchor -

+ +

Serializes the two cell anchor

@@ -894,9 +863,8 @@ Serializes the two cell anchor — -

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

+
+

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

@@ -940,20 +908,19 @@ The document builder instance this objects xml will be added to.
# 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 @@ -964,9 +931,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3