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/OneCellAnchor.html | 220 +++++++++++++++++++++++++------------------ 1 file changed, 126 insertions(+), 94 deletions(-) (limited to 'doc/Axlsx/OneCellAnchor.html') diff --git a/doc/Axlsx/OneCellAnchor.html b/doc/Axlsx/OneCellAnchor.html index eaec6d92..2952035f 100644 --- a/doc/Axlsx/OneCellAnchor.html +++ b/doc/Axlsx/OneCellAnchor.html @@ -97,14 +97,16 @@
Note: -
-

The recommended way to manage drawings, images and charts is -Worksheet#add_chart or Worksheet#add_image.

+

+The recommended way to manage drawings, images and charts is +Worksheet#add_chart or Worksheet#add_image. +

- -

This class details a single cell anchor for drawings.

+

+This class details a single cell anchor for drawings. +

@@ -145,8 +147,9 @@ Worksheet#add_chart or Worksheet#add_image.

-
-

The drawing that holds this anchor.

+

+The drawing that holds this anchor. +

@@ -171,8 +174,9 @@ Worksheet#add_chart or Worksheet#add_image.

-
-

A marker that defines the from cell anchor.

+

+A marker that defines the from cell anchor. +

@@ -197,9 +201,10 @@ Worksheet#add_chart or Worksheet#add_image.

-
-

the height of the graphic object in pixels this is converted to EMU at a 92 -ppi resolution.

+

+the height of the graphic object in pixels this is converted to EMU at a 92 +ppi resolution. +

@@ -224,8 +229,9 @@ ppi resolution.

-
-

The object this anchor hosts.

+

+The object this anchor hosts. +

@@ -250,8 +256,9 @@ ppi resolution.

-
-

the width of the graphic object in pixels.

+

+the width of the graphic object in pixels. +

@@ -286,8 +293,9 @@ ppi resolution.

-
-

The index of this anchor in the drawing.

+

+The index of this anchor in the drawing. +

@@ -311,8 +319,9 @@ ppi resolution.

-
-

Creates a new OneCellAnchor object and an Pic associated with it.

+

+Creates a new OneCellAnchor object and an Pic associated with it. +

@@ -334,8 +343,9 @@ ppi resolution.

-
-

Serializes the anchor.

+

+Serializes the anchor. +

@@ -356,8 +366,9 @@ ppi resolution.

- -

Creates a new OneCellAnchor object and an Pic associated with it.

+

+Creates a new OneCellAnchor object and an Pic associated with it. +

@@ -389,8 +400,9 @@ ppi resolution.

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -411,8 +423,9 @@ ppi resolution.

- —
-

the col, row to start at

+ —

+the col, row to start at +

@@ -440,8 +453,9 @@ ppi resolution.

- —
-

the file location of the image you will render

+ —

+the file location of the image you will render +

@@ -451,8 +465,9 @@ ppi resolution.

- —
-

the name attribute for the rendered image

+ —

+the name attribute for the rendered image +

@@ -462,8 +477,9 @@ ppi resolution.

- —
-

the description of the image rendered

+ —

+the description of the image rendered +

@@ -492,17 +508,18 @@ ppi resolution.

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 39
 
-def initialize(drawing, options={})
-  @drawing = drawing
-  @width = 0
-  @height = 0
-  drawing.anchors << self      
-  @from = Marker.new
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
-  end
-  @object = Pic.new(self, options)
-end
+def initialize(drawing, options={}) + @drawing = drawing + @width = 0 + @height = 0 + drawing.anchors << self + @from = Marker.new + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end + @object = Pic.new(self, options) +end + @@ -525,8 +542,9 @@ ppi resolution.

- -

The drawing that holds this anchor

+

+The drawing that holds this anchor +

@@ -560,9 +578,10 @@ ppi resolution.

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 18
 
-def drawing
-  @drawing
-end
+def drawing + @drawing +end + @@ -580,9 +599,10 @@ ppi resolution.

- -

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 +

@@ -616,9 +636,10 @@ are 0 and 0 respectively

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 10
 
-def from
-  @from
-end
+def from + @from +end + @@ -636,9 +657,10 @@ are 0 and 0 respectively

- -

the height of the graphic object in pixels this is converted to EMU at a 92 -ppi resolution

+

+the height of the graphic object in pixels this is converted to EMU at a 92 +ppi resolution +

@@ -672,9 +694,10 @@ ppi resolution

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 28
 
-def height
-  @height
-end
+def height + @height +end + @@ -692,8 +715,9 @@ ppi resolution

- -

The object this anchor hosts

+

+The object this anchor hosts +

@@ -727,9 +751,10 @@ ppi resolution

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 14
 
-def object
-  @object
-end
+def object + @object +end + @@ -747,9 +772,10 @@ ppi resolution

- -

the width of the graphic object in pixels. this is converted to EMU at a 92 -ppi resolution

+

+the width of the graphic object in pixels. this is converted to EMU at a 92 +ppi resolution +

@@ -783,9 +809,10 @@ ppi resolution

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 23
 
-def width
-  @width
-end
+def width + @width +end + @@ -807,8 +834,9 @@ ppi resolution

- -

The index of this anchor in the drawing

+

+The index of this anchor in the drawing +

@@ -842,9 +870,10 @@ ppi resolution

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 59
 
-def index
-  @drawing.anchors.index(self)
-end
+def index + @drawing.anchors.index(self) +end + @@ -859,8 +888,9 @@ ppi resolution

- -

Serializes the anchor

+

+Serializes the anchor +

@@ -879,8 +909,9 @@ ppi resolution

— -
-

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

+

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

@@ -921,16 +952,17 @@ ppi resolution

# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 66
 
-def to_xml(xml)
-  xml.send('xdr:oneCellAnchor') {
-    xml.send('xdr:from') {
-      from.to_xml(xml)
-    }
-    xml.send('xdr:ext', ext)
-    @object.to_xml(xml)
-    xml.send('xdr:clientData')
-  }
-end
+def to_xml(xml) + xml.send('xdr:oneCellAnchor') { + xml.send('xdr:from') { + from.to_xml(xml) + } + xml.send('xdr:ext', ext) + @object.to_xml(xml) + xml.send('xdr:clientData') + } +end + @@ -941,9 +973,9 @@ ppi resolution

-- cgit v1.2.3