X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Gnumeric.js;h=7f7d3c7d6e1007fbc6648cfb64da7fe0aba645d3;hb=2083a758d56851de19430d07626534ff630893a8;hp=be4e8d75195861ee5c5144d3020cde8e6084307b;hpb=b9e901eca507e6c4ce523f34308d5c8dec8f97a4;p=Pman.Core diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index be4e8d75..7f7d3c7d 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1121,12 +1121,23 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { }, + /** + * writeImage: + * write an image in old gnumberic format (needs base64 data to write it) + * + * + * @param {Number} row row to put it in (rows start at 0) + * @param {Number} col column to put it in + * @param {Number} data the base64 description of the images + * @param {Number} width image width + * @param {Number} width image height + * + */ writeImageOld : function (row, col, data, width, height, type) { }, - /** * writeImage: * write an image (needs base64 data to write it) @@ -1143,7 +1154,6 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { writeImage : function (row, col, data, width, height, type) { - if (!data) { throw "write Image called with missing data"; } @@ -1178,17 +1188,17 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { // step 1 - work out how many columns it will span.. // lets hope the spreadsheet is big enought.. - var colwidth = 0; - var endcol=col; - for ( endcol=col;endcol <100; endcol++) { - if (!this.colInfo[endcol]) { - this.colInfo[endcol] = 100; // eak fudge - } - colwidth += this.colInfo[endcol]; - if (colwidth > width) { - break; - } - } +// var colwidth = 0; +// var endcol=col; +// for ( endcol=col;endcol <100; endcol++) { +// if (!this.colInfo[endcol]) { +// this.colInfo[endcol] = 100; // eak fudge +// } +// colwidth += this.colInfo[endcol]; +// if (colwidth > width) { +// break; +// } +// } soi.setAttribute('ObjectBound', //gnumeric_colRowToName(row,col) + ':' + gnumeric_colRowToName(row+1,col+1));