Search in sources :

Example 1 with CTNotesSlide

use of org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide in project poi by apache.

the class XSLFSlideShow method getNotes.

/**
	 * Returns the low level notes object for the given
	 *  slide, as found from the supplied slide reference
	 */
@Internal
public CTNotesSlide getNotes(CTSlideIdListEntry slide) throws IOException, XmlException {
    PackagePart notesPart = getNodesPart(slide);
    if (notesPart == null)
        return null;
    NotesDocument notesDoc = NotesDocument.Factory.parse(notesPart.getInputStream(), DEFAULT_XML_OPTIONS);
    return notesDoc.getNotes();
}
Also used : PackagePart(org.apache.poi.openxml4j.opc.PackagePart) NotesDocument(org.openxmlformats.schemas.presentationml.x2006.main.NotesDocument) Internal(org.apache.poi.util.Internal)

Example 2 with CTNotesSlide

use of org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide in project poi by apache.

the class XSLFNotes method prototype.

private static CTNotesSlide prototype() {
    CTNotesSlide ctNotes = CTNotesSlide.Factory.newInstance();
    CTCommonSlideData cSld = ctNotes.addNewCSld();
    cSld.addNewSpTree();
    return ctNotes;
}
Also used : CTCommonSlideData(org.openxmlformats.schemas.presentationml.x2006.main.CTCommonSlideData) CTNotesSlide(org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide)

Aggregations

PackagePart (org.apache.poi.openxml4j.opc.PackagePart)1 Internal (org.apache.poi.util.Internal)1 CTCommonSlideData (org.openxmlformats.schemas.presentationml.x2006.main.CTCommonSlideData)1 CTNotesSlide (org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide)1 NotesDocument (org.openxmlformats.schemas.presentationml.x2006.main.NotesDocument)1