Examples of CTSlide


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

  }

  private void extractContent(StringBuilder buffy, XMLSlideShow xmlSlideShow) throws IOException, XmlException {
    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(' ');
        }
View Full Code Here

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

    // Build the slides list
    CTSlideIdList slideIds = slideShow.getSlideReferences();
    slides = new XSLFSlide[slideIds.getSldIdList().size()];
    for(int i=0; i<slides.length; i++) {
      CTSlideIdListEntry slideId = slideIds.getSldIdArray(i);
      CTSlide slide = slideShow.getSlide(slideId);
      slides[i] = new XSLFSlide(slide, slideId, this);
    }
   
    // Build the notes list - TODO
  }
View Full Code Here

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

        XSLFSlideShow slideShow = (XSLFSlideShow) extractor.getDocument();
        XMLSlideShow xmlSlideShow = new XMLSlideShow(slideShow);

        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());
                }
View Full Code Here

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

   
    CTSlideIdListEntry[] slideRefs =
      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) {
View Full Code Here

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

        setCommonSlideData(_slide.getCSld());
    }


    private static CTSlide prototype(){
        CTSlide ctSlide = CTSlide.Factory.newInstance();
        CTCommonSlideData cSld = ctSlide.addNewCSld();
        CTGroupShape spTree = cSld.addNewSpTree();

        CTGroupShapeNonVisual nvGrpSpPr = spTree.addNewNvGrpSpPr();
        CTNonVisualDrawingProps cnvPr = nvGrpSpPr.addNewCNvPr();
        cnvPr.setId(1);
        cnvPr.setName("");
        nvGrpSpPr.addNewCNvGrpSpPr();
        nvGrpSpPr.addNewNvPr();

        CTGroupShapeProperties grpSpr = spTree.addNewGrpSpPr();
        CTGroupTransform2D xfrm = grpSpr.addNewXfrm();
        CTPoint2D off = xfrm.addNewOff();
        off.setX(0);
        off.setY(0);
        CTPositiveSize2D ext = xfrm.addNewExt();
        ext.setCx(0);
        ext.setCy(0);
        CTPoint2D choff = xfrm.addNewChOff();
        choff.setX(0);
        choff.setY(0);
        CTPositiveSize2D chExt = xfrm.addNewChExt();
        chExt.setCx(0);
        chExt.setCy(0);
        ctSlide.addNewClrMapOvr().addNewMasterClrMapping();
        return ctSlide;
    }
View Full Code Here

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

        XSLFSlideShow slideShow = (XSLFSlideShow) extractor.getDocument();
        XMLSlideShow xmlSlideShow = new XMLSlideShow(slideShow);

        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());
                }
View Full Code Here

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

  public String getText(boolean slideText, boolean notesText) {
    StringBuffer text = new StringBuffer();

    XSLFSlide[] slides = slideshow.getSlides();
    for(int i = 0; i < slides.length; i++) {
      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
View Full Code Here

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

    // Build the slides list
    CTSlideIdList slideIds = slideShow.getSlideReferences();
    slides = new XSLFSlide[slideIds.getSldIdArray().length];
    for(int i=0; i<slides.length; i++) {
      CTSlideIdListEntry slideId = slideIds.getSldIdArray(i);
      CTSlide slide = slideShow.getSlide(slideId);
      slides[i] = new XSLFSlide(slide, slideId, this);
    }
   
    // Build the notes list - TODO
  }
View Full Code Here

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

  public String getText(boolean slideText, boolean notesText) {
    StringBuffer text = new StringBuffer();

    XSLFSlide[] slides = slideshow.getSlides();
    for(int i = 0; i < slides.length; i++) {
      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
View Full Code Here

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

   
    CTSlideIdListEntry[] slideRefs =
      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) {
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.