Pman.Gnumeric.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 12 Nov 2010 09:17:41 +0000 (17:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 12 Nov 2010 09:17:41 +0000 (17:17 +0800)
Pman.Gnumeric.js

index 472e222..b44ef7d 100644 (file)
@@ -921,7 +921,22 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
         merges.appendChild(cell);
     
     },
-    
+    setRowHeight : function (row,height)
+    {
+        //<gmr:Rows DefaultSizePts="12.75">
+        //   <gmr:RowInfo No="2" Unit="38.25" MarginA="0" MarginB="0" HardSize="1"/>
+    //  < /gmr:Rows>
+        var rows = this.doc.getElementsByTagNameNS('*','Rows')[0]; // assume this exists..
+        var ri = this.doc.createElementNS('http://www.gnumeric.org/v10.dtd','gnm:MRowInfo');
+        // assume we have no rows..
+        ri.setAttribute('No', row);
+        ri.setAttribute('Unit', height);
+        ri.setAttribute('MarginA', 0);
+        ri.setAttribute('MarginB', 0);
+        ri.setAttribute('HardSize', 1);
+        rows.appendChild(ri);
+    },
+     
     /**
      * setSheetName: 
      * Set the sheet name.