X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Gnumeric.js;h=d7755d0725223d2d68ed9455437691bec4f6ab3c;hb=692861c958898f425cc365906c092559d7cfc60c;hp=bd6c7c5ad5a5cbb3af0b2354241b285f1e39c3de;hpb=1ea5656f6832822e70de93906b631c421536eb94;p=Pman.Core diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index bd6c7c5a..d7755d07 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -327,7 +327,6 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { } } - }); // read colinfo.. var ci = this.sheet.getElementsByTagNameNS('*','ColInfo'); @@ -1252,7 +1251,15 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { var soi = this.doc.createElementNS('http://www.gnumeric.org/v10.dtd', 'gnm:SheetObjectImage'); soi.setAttribute('ObjectBound',this.RCtoCell(startRow, startCol) + ':' + this.RCtoCell(endRow, endCol)); - + + soi.setAttribute('ObjectOffset', '0 0 0 0'); + soi.setAttribute('ObjectAnchorType','16 16 16 16'); + soi.setAttribute('Direction','17'); + soi.setAttribute('crop-top','0.000000'); + soi.setAttribute('crop-bottom','0.000000'); + soi.setAttribute('crop-left','0.000000'); + soi.setAttribute('crop-right','0.000000'); + var name = 'Image' + Math.random().toString(36).substring(2); var content = this.doc.createElement('Content'); content.setAttribute('image-type', type ? type : 'jpeg'); @@ -1260,6 +1267,8 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { soi.appendChild(content); objs.appendChild(soi); + Roo.log(name); + var godoc = this.doc.getElementsByTagNameNS('*','GODoc')[0]; var goimage = this.doc.createElement('GOImage'); @@ -1273,9 +1282,6 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { godoc.appendChild(goimage); return true; - //< /gnm:SheetObjectImage> - // < /gnm:Objects> - }, /**