Package org.apache.poi.xslf.usermodel

Examples of org.apache.poi.xslf.usermodel.XSLFCommonSlideData


            }
          }
        }

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


            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

            }
          }
        }

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

                        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

                    xhtml.element("p", comment.getText());
                }
            }

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

TOP

Related Classes of org.apache.poi.xslf.usermodel.XSLFCommonSlideData

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.