public object Clone() { BookParagraph bp = (BookParagraph)this.MemberwiseClone(); bp.content = (content != null ? content : null); bp.type = type; return(bp); }
/** * Adds a paragraph to the book * * @param paragraph * New paragraph to be added */ public void addParagraph(BookParagraph paragraph) { paragraphs.Add(paragraph); // add the page to the structure that gather all elements with assets (for chapter importation) if (paragraph.getType() == BookParagraph.IMAGE) { AllElementsWithAssets.addAsset(paragraph); } }