X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Gnumeric.js;h=2574bd27b3cc8cf6ca5b3f0343ff55b2011941d1;hb=66c7f301d01738f3a6c98694f48ee851d6213441;hp=d02e246560bd069f22f0fe3147437bbc4979aae2;hpb=23db7c6912234e96adb0a2abcc32271f37ade56c;p=Pman.Core diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index d02e2465..2574bd27 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1184,18 +1184,6 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { soi.appendChild(content); objs.appendChild(soi); - var godoc = this.doc.getElementsByTagNameNS('*','GODoc')[0]; - - var goimage = this.doc.createElement('GOImage'); - goimage.setAttribute('image-type', type ? type : 'jpeg'); - goimage.setAttribute('name', name); - goimage.setAttribute('type', 'GOPixbuf'); - goimage.setAttribute('width', width); - goimage.setAttribute('height', height); - goimage.textContent = data; - - godoc.appendChild(goimage); - if (typeof(this.grid[row]) == 'undefined') { this.grid[row] = []; } @@ -1209,10 +1197,13 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { this.grid[row][col].width = width; this.grid[row][col].height = height; + var godoc = this.doc.getElementsByTagNameNS('*','GODoc')[0]; + + if(godoc && godoc.parentNode) { + godoc.parentNode.removeChild(godoc); + } + return true; - //< /gnm:SheetObjectImage> - // < /gnm:Objects> - }, /** @@ -1386,6 +1377,12 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { this.grid[startRow][startCol].width = width; this.grid[startRow][startCol].height = height; + var godoc = this.doc.getElementsByTagNameNS('*','GODoc')[0]; + + if(godoc && godoc.parentNode) { + godoc.parentNode.removeChild(godoc); + } + return true; },