Example #1
0
 public void addParagraph(IParagraph paragraph) {
   ParagraphImpl p = (ParagraphImpl) paragraph;
   getImplementation().appendChild(p.getImplementation());
   if (!isOrphan()) {
     p.addNotify((WorkbookImpl) getOwnedWorkbook());
   }
   updateModifiedTime();
 }
Example #2
0
 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();
   }
 }
Example #3
0
 protected void removeNotify(WorkbookImpl workbook) {
   for (IParagraph p : getParagraphs()) {
     ((ParagraphImpl) p).removeNotify(workbook);
   }
 }