Examples of CTNotesSlide


Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide

        _notes = doc.getNotes();
        setCommonSlideData(_notes.getCSld());
    }

    private static CTNotesSlide prototype(){
        CTNotesSlide ctNotes = CTNotesSlide.Factory.newInstance();
        CTCommonSlideData cSld = ctNotes.addNewCSld();
        cSld.addNewSpTree();

        return ctNotes;
    }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide

            XSLFSlideShow xsl = new XSLFSlideShow(slideshow.getPackage());
            for (int i = 0; i < slides.length; i++) {
                CTSlideIdListEntry slideId = slideshow.getCTPresentation().getSldIdLst().getSldIdArray(i);

                // For now, still very low level
                CTNotesSlide notes =
                        xsl.getNotes(slideId);
                CTCommentList comments =
                        xsl.getSlideComments(slideId);

                if (slideText) {
                    extractText(new XSLFCommonSlideData(slides[i].getXmlObject().getCSld()), text);

                    // Comments too for the slide
                    if (comments != null) {
                        for (CTComment comment : comments.getCmList()) {
                            // TODO - comment authors too
                            // (They're in another stream)
                            text.append(
                                    comment.getText() + "\n"
                            );
                        }
                    }
                }

                if (notesText && notes != null) {
                    extractText(new XSLFCommonSlideData(notes.getCSld()), text);
                }
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide

      CTSlide rawSlide = slides[i]._getCTSlide();
      CTSlideIdListEntry slideId = slides[i]._getCTSlideId();
     
      try {
        // For now, still very low level
        CTNotesSlide notes =
          slideshow._getXSLFSlideShow().getNotes(slideId);
        CTCommentList comments =
          slideshow._getXSLFSlideShow().getSlideComments(slideId);
       
        if(slideText) {
          extractText(rawSlide.getCSld().getSpTree(), text);
         
          // Comments too for the slide
          if(comments != null) {
            for(CTComment comment : comments.getCmArray()) {
              // TODO - comment authors too
              // (They're in another stream)
              text.append(
                  comment.getText() + "\n"
              );
            }
          }
        }
        if(notesText && notes != null) {
          extractText(notes.getCSld().getSpTree(), text);
        }
      } catch(Exception e) {
        throw new RuntimeException(e);
      }
    }
View Full Code Here

Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide

        XSLFSlide[] slides = xmlSlideShow.getSlides();
        for (XSLFSlide slide : slides) {
            CTSlide rawSlide = slide._getCTSlide();
            CTSlideIdListEntry slideId = slide._getCTSlideId();

            CTNotesSlide notes = xmlSlideShow._getXSLFSlideShow().getNotes(
                    slideId);
            CTCommentList comments = xmlSlideShow._getXSLFSlideShow()
                    .getSlideComments(slideId);

            xhtml.startElement("div");
            extractShapeContent(slide.getCommonSlideData(), xhtml);

            if (comments != null) {
                for (CTComment comment : comments.getCmArray()) {
                    xhtml.element("p", comment.getText());
                }
            }

            if (notes != null) {
                extractShapeContent(new XSLFCommonSlideData(notes.getCSld()), xhtml);
            }
            xhtml.endElement("div");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.