Examples of CTNotesSlide


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);

      extractShapeContent(buffy, rawSlide.getCSld().getSpTree());

      if (comments != null) {
        for (CTComment comment : comments.getCmArray()) {
          buffy.append(comment.getText()).append(' ');
        }
      }

      if (notes != null) {
        extractShapeContent(buffy, notes.getCSld().getSpTree());
      }
    }
  }
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(rawSlide.getCSld().getSpTree(), xhtml);

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

            if (notes != null) {
                extractShapeContent(notes.getCSld().getSpTree(), xhtml);
            }
            xhtml.endElement("div");
        }
    }
View Full Code Here

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

      slideshow._getHSLFXML().getSlideReferences().getSldIdArray();
    for (int i = 0; i < slideRefs.length; i++) {
      try {
        CTSlide slide =
          slideshow._getHSLFXML().getSlide(slideRefs[i]);
        CTNotesSlide notes =
          slideshow._getHSLFXML().getNotes(slideRefs[i]);
       
        if(slideText) {
          extractText(slide.getCSld().getSpTree(), text);
        }
        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(rawSlide.getCSld().getSpTree(), xhtml);

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

            if (notes != null) {
                extractShapeContent(notes.getCSld().getSpTree(), xhtml);
            }
            xhtml.endElement("div");
        }
    }
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

      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

      slideshow.getSlideReferences().getSldIdArray();
    for (int i = 0; i < slideRefs.length; i++) {
      try {
        CTSlide slide =
          slideshow.getSlide(slideRefs[i]);
        CTNotesSlide notes =
          slideshow.getNotes(slideRefs[i]);
       
        if(slideText) {
          extractText(slide.getCSld().getSpTree(), text);
        }
        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

              // This shouldn't normally happen
              continue;
           }
          
            XSLFSlideMaster master = slide.getMasterSheet();
            CTNotesSlide notes = rawSlideShow.getNotes(slideId);
            CTCommentList comments = rawSlideShow.getSlideComments(slideId);

            // TODO In POI 3.8 beta 5, improve how we get this
            xhtml.startElement("div");
            XSLFCommonSlideData common = new XSLFCommonSlideData(slide.getXmlObject().getCSld());
            extractShapeContent(common, xhtml);

            // If there are comments, extract them
            if (comments != null) {
                for (CTComment comment : comments.getCmArray()) {
                    xhtml.element("p", comment.getText());
                }
            }
           
            // Get text from the master slide
            // TODO: re-enable this once we fix TIKA-712
            /*
            if(master != null) {
               // TODO In POI 3.8 beta 5, improve how we get this
               extractShapeContent(new XSLFCommonSlideData(master.getXmlObject().getCSld()), xhtml);
            }
            */

            if (notes != null) {
               // TODO In POI 3.8 beta 5, improve how we get this
                extractShapeContent(new XSLFCommonSlideData(notes.getCSld()), xhtml);
            }
            xhtml.endElement("div");
        }
    }
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(rawSlide.getCSld().getSpTree(), xhtml);

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

            if (notes != null) {
                extractShapeContent(notes.getCSld().getSpTree(), xhtml);
            }
            xhtml.endElement("div");
        }
    }
View Full Code Here

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

        setCommonSlideData(_notes.getCSld());
    }


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

        // TODO What else is needed for a mininum notes?

        return ctNotes;
    }
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.