/* 145: */ /* 146: */ public void remove(DrawingGroupObject d) /* 147: */ { /* 148:304 */ if (getBStoreContainer() == null) { /* 149:306 */ return; /* 150: */ } /* 151:309 */ if (this.origin == Origin.READ) /* 152: */ { /* 153:311 */ this.origin = Origin.READ_WRITE; /* 154:312 */ this.numBlips = getBStoreContainer().getNumBlips(); /* 155:313 */ Dgg dgg = (Dgg) this.escherData.getChildren()[0]; /* 156:314 */ this.drawingGroupId = (dgg.getCluster(1).drawingGroupId - this.numBlips - 1); /* 157: */ } /* 158:318 */ EscherRecord[] children = getBStoreContainer().getChildren(); /* 159:319 */ BlipStoreEntry bse = (BlipStoreEntry) children[(d.getBlipId() - 1)]; /* 160: */ /* 161:321 */ bse.dereference(); /* 162:323 */ if (bse.getReferenceCount() == 0) /* 163: */ { /* 164:326 */ getBStoreContainer().remove(bse); /* 165:329 */ for (Iterator i = this.drawings.iterator(); i.hasNext(); ) /* 166: */ { /* 167:331 */ DrawingGroupObject drawing = (DrawingGroupObject) i.next(); /* 168:333 */ if (drawing.getBlipId() > d.getBlipId()) { /* 169:335 */ drawing.setObjectId( drawing.getObjectId(), drawing.getBlipId() - 1, drawing.getShapeId()); /* 170: */ } /* 171: */ } /* 172:341 */ this.numBlips -= 1; /* 173: */ } /* 174: */ }
/* 87: */ /* 88: */ final void addDrawing(DrawingGroupObject d) /* 89: */ { /* 90:211 */ this.drawings.add(d); /* 91:212 */ this.maxObjectId = Math.max(this.maxObjectId, d.getObjectId()); /* 92:213 */ this.maxShapeId = Math.max(this.maxShapeId, d.getShapeId()); /* 93: */ }