public void addParagraph(IParagraph paragraph) { ParagraphImpl p = (ParagraphImpl) paragraph; getImplementation().appendChild(p.getImplementation()); if (!isOrphan()) { p.addNotify((WorkbookImpl) getOwnedWorkbook()); } updateModifiedTime(); }
public void removeParagraph(IParagraph paragraph) { ParagraphImpl p = (ParagraphImpl) paragraph; if (p.getImplementation().getParentNode() == getImplementation()) { if (!isOrphan()) { p.removeNotify((WorkbookImpl) getOwnedWorkbook()); } getImplementation().removeChild(p.getImplementation()); updateModifiedTime(); } }
protected void removeNotify(WorkbookImpl workbook) { for (IParagraph p : getParagraphs()) { ((ParagraphImpl) p).removeNotify(workbook); } }