Package org.odftoolkit.odfdom.dom.element.presentation

Examples of org.odftoolkit.odfdom.dom.element.presentation.PresentationNotesElement


   * Create child element {@odf.element presentation:notes}.
   *
   * @return the element {@odf.element presentation:notes}
   */
  public PresentationNotesElement newPresentationNotesElement() {
    PresentationNotesElement presentationNotes = ((OdfFileDom) this.ownerDocument).newOdfElement(PresentationNotesElement.class);
    this.appendChild(presentationNotes);
    return presentationNotes;
  }
View Full Code Here


   * Create child element {@odf.element presentation:notes}.
   *
   * @return the element {@odf.element presentation:notes}
   */
  public PresentationNotesElement newPresentationNotesElement() {
    PresentationNotesElement presentationNotes = ((OdfFileDom) this.ownerDocument).newOdfElement(PresentationNotesElement.class);
    this.appendChild(presentationNotes);
    return presentationNotes;
  }
View Full Code Here

    }
    setSlideLayout(newSlideElement, slideLayout);
    //insert notes page
    NodeList noteNodes = refStyleSlide.getElementsByTagNameNS(OdfDocumentNamespace.PRESENTATION.getUri(), "notes");
    if (noteNodes.getLength() > 0) {
      PresentationNotesElement notePage = (PresentationNotesElement) noteNodes.item(0);
      PresentationNotesElement cloneNotePage = (PresentationNotesElement) notePage.cloneNode(true);
      newSlideElement.appendChild(cloneNotePage);
    }
    if (index < slideCount) {
      DrawPageElement refSlide = (DrawPageElement) slideList.item(index);
      contentRoot.insertBefore(newSlideElement, refSlide);
View Full Code Here

      NodeList slideList = contentRoot.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), "page");
      for (int i = startIndex; i < getSlideCount(); i++) {
        DrawPageElement page = (DrawPageElement) slideList.item(i);
        NodeList noteNodes = page.getElementsByTagNameNS(OdfDocumentNamespace.PRESENTATION.getUri(), "notes");
        if (noteNodes.getLength() > 0) {
          PresentationNotesElement notePage = (PresentationNotesElement) noteNodes.item(0);
          NodeList thumbnailList = notePage.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), "page-thumbnail");
          if (thumbnailList.getLength() > 0) {
            DrawPageThumbnailElement thumbnail = (DrawPageThumbnailElement) thumbnailList.item(0);
            thumbnail.setDrawPageNumberAttribute(i + 1);
          }
        }
View Full Code Here

   * @return the instance of <code>OdfPresentationNotes</code> which represent the notes page of the current slide
   */
  public OdfPresentationNotes getNotesPage() {
    NodeList notesList = maSlideElement.getElementsByTagNameNS(OdfDocumentNamespace.PRESENTATION.getUri(), "notes");
    if (notesList.getLength() > 0) {
      PresentationNotesElement noteEle = (PresentationNotesElement) notesList.item(0);
      return OdfPresentationNotes.getInstance(noteEle);

    }
    return null;
  }
View Full Code Here

   * Create child element {@odf.element presentation:notes}.
   *
   * @return the element {@odf.element presentation:notes}
   */
  public PresentationNotesElement newPresentationNotesElement() {
    PresentationNotesElement presentationNotes = ((OdfFileDom) this.ownerDocument).newOdfElement(PresentationNotesElement.class);
    this.appendChild(presentationNotes);
    return presentationNotes;
  }
View Full Code Here

   * @return the instance of <code>OdfPresentationNotes</code> which represent the notes page of the current slide
   */
  public OdfPresentationNotes getNotesPage() {
    NodeList notesList = maSlideElement.getElementsByTagNameNS(OdfDocumentNamespace.PRESENTATION.getUri(), "notes");
    if (notesList.getLength() > 0) {
      PresentationNotesElement noteEle = (PresentationNotesElement) notesList.item(0);
      return OdfPresentationNotes.getInstance(noteEle);

    }
    return null;
  }
View Full Code Here

    }
    setSlideLayout(newSlideElement, slideLayout);
    // insert notes page
    NodeList noteNodes = refStyleSlide.getElementsByTagNameNS(OdfDocumentNamespace.PRESENTATION.getUri(), "notes");
    if (noteNodes.getLength() > 0) {
      PresentationNotesElement notePage = (PresentationNotesElement) noteNodes.item(0);
      PresentationNotesElement cloneNotePage = (PresentationNotesElement) notePage.cloneNode(true);
      newSlideElement.appendChild(cloneNotePage);
    }
    if (index < slideCount) {
      DrawPageElement refSlide = (DrawPageElement) slideList.item(index);
      contentRoot.insertBefore(newSlideElement, refSlide);
View Full Code Here

      NodeList slideList = contentRoot.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), "page");
      for (int i = startIndex; i < getSlideCount(); i++) {
        DrawPageElement page = (DrawPageElement) slideList.item(i);
        NodeList noteNodes = page.getElementsByTagNameNS(OdfDocumentNamespace.PRESENTATION.getUri(), "notes");
        if (noteNodes.getLength() > 0) {
          PresentationNotesElement notePage = (PresentationNotesElement) noteNodes.item(0);
          NodeList thumbnailList = notePage.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(),
              "page-thumbnail");
          if (thumbnailList.getLength() > 0) {
            DrawPageThumbnailElement thumbnail = (DrawPageThumbnailElement) thumbnailList.item(0);
            thumbnail.setDrawPageNumberAttribute(i + 1);
          }
View Full Code Here

   * Create child element {@odf.element presentation:notes}.
   *
   * @return the element {@odf.element presentation:notes}
   */
  public PresentationNotesElement newPresentationNotesElement() {
    PresentationNotesElement presentationNotes = ((OdfFileDom) this.ownerDocument).newOdfElement(PresentationNotesElement.class);
    this.appendChild(presentationNotes);
    return presentationNotes;
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.presentation.PresentationNotesElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.