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/CellProtection.html | 108 ++++++++++++++++++++++++------------------ 1 file changed, 63 insertions(+), 45 deletions(-) (limited to 'doc/Axlsx/CellProtection.html') diff --git a/doc/Axlsx/CellProtection.html b/doc/Axlsx/CellProtection.html index a62fe369..7e1648f1 100644 --- a/doc/Axlsx/CellProtection.html +++ b/doc/Axlsx/CellProtection.html @@ -97,14 +97,16 @@
Note: -
-

Using Styles#add_style is the recommended way to manage cell protection.

+

+Using Styles#add_style is the recommended way to manage cell protection. +

- -

CellProtection stores information about locking or hiding cells in -spreadsheet.

+

+CellProtection stores information about locking or hiding cells in +spreadsheet. +

@@ -143,8 +145,9 @@ spreadsheet.

-
-

specifies locking for cells that have the style containing this protection.

+

+specifies locking for cells that have the style containing this protection. +

@@ -169,8 +172,9 @@ spreadsheet.

-
-

specifies if the cells that have the style containing this protection.

+

+specifies if the cells that have the style containing this protection. +

@@ -207,8 +211,9 @@ spreadsheet.

-
-

Creates a new CellProtection.

+

+Creates a new CellProtection. +

@@ -230,8 +235,9 @@ spreadsheet.

-
-

Serializes the cell protection.

+

+Serializes the cell protection. +

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

- -

Creates a new CellProtection

+

+Creates a new CellProtection +

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

— -
-

a customizable set of options

+

+a customizable set of options +

@@ -294,8 +302,9 @@ spreadsheet.

- —
-

value for hidden protection

+ —

+value for hidden protection +

@@ -305,8 +314,9 @@ spreadsheet.

- —
-

value for locked protection

+ —

+value for locked protection +

@@ -329,11 +339,12 @@ spreadsheet.

# File 'lib/axlsx/stylesheet/cell_protection.rb', line 18
 
-def initialize(options={})
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
-  end
-end
+def initialize(options={}) + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end + @@ -356,8 +367,9 @@ spreadsheet.

- -

specifies locking for cells that have the style containing this protection

+

+specifies locking for cells that have the style containing this protection +

@@ -391,9 +403,10 @@ spreadsheet.

# File 'lib/axlsx/stylesheet/cell_protection.rb', line 9
 
-def 
-  @hidden
-end
+def + @hidden +end + @@ -411,8 +424,9 @@ spreadsheet.

- -

specifies if the cells that have the style containing this protection

+

+specifies if the cells that have the style containing this protection +

@@ -446,9 +460,10 @@ spreadsheet.

# File 'lib/axlsx/stylesheet/cell_protection.rb', line 13
 
-def locked
-  @locked
-end
+def locked + @locked +end + @@ -470,8 +485,9 @@ spreadsheet.

- -

Serializes the cell protection

+

+Serializes the cell protection +

@@ -490,8 +506,9 @@ spreadsheet.

— -
-

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

+

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

@@ -525,9 +542,10 @@ spreadsheet.

# File 'lib/axlsx/stylesheet/cell_protection.rb', line 32
 
-def to_xml(xml)
-  xml.protection(self.instance_values)
-end
+def to_xml(xml) + xml.protection(self.instance_values) +end + @@ -538,9 +556,9 @@ spreadsheet.

-- cgit v1.2.3