Examples of CTFtnEdn


Examples of org.docx4j.wml.CTFtnEdn

   
    CTFootnotes footnotes = wmlPackage.getMainDocumentPart().getFootnotesPart().getJaxbElement();
    int pos = Integer.parseInt(id);
   
    // No @XmlRootElement on CTFtnEdn, so ..
    CTFtnEdn ftn = (CTFtnEdn)footnotes.getFootnote().get(pos);
    Document d = XmlUtils.marshaltoW3CDomDocument( ftn,
        Context.jc, Namespaces.NS_WORD12, "footnote",  CTFtnEdn.class );
    log.debug("Footnote " + id + ": " + XmlUtils.w3CDomNodeToString(d));
    return d;
  }
View Full Code Here

Examples of org.docx4j.wml.CTFtnEdn

    WordprocessingMLPackage wmlPackage = context.getWmlPackage();
    CTFootnotes footnotes = wmlPackage.getMainDocumentPart().getFootnotesPart().getJaxbElement();
    int pos = Integer.parseInt(id);
   
    // No @XmlRootElement on CTFtnEdn, so ..
    CTFtnEdn ftn = (CTFtnEdn)footnotes.getFootnote().get(pos);
    Document d = XmlUtils.marshaltoW3CDomDocument( ftn,
        Context.jc, Namespaces.NS_WORD12, "footnote",  CTFtnEdn.class );
    if (log.isDebugEnabled()) {
      log.debug("Footnote " + id + ": " + XmlUtils.w3CDomNodeToString(d));
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn

    XWPFDocument docOut = new XWPFDocument();

    BigInteger noteId = BigInteger.valueOf(1);

    XWPFFootnotes footnotes = docOut.createFootnotes();
    CTFtnEdn ctNote = CTFtnEdn.Factory.newInstance();
    ctNote.setId(noteId);
    ctNote.setType(STFtnEdn.NORMAL);
    footnotes.addFootnote(ctNote);

    XWPFDocument docIn = XWPFTestDataSamples.writeOutAndReadBack(docOut);

    XWPFFootnote note = docIn.getFootnoteByID(noteId.intValue());
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn

    XWPFDocument docOut = new XWPFDocument();

    BigInteger noteId = BigInteger.valueOf(1);

    XWPFFootnotes footnotes = docOut.createFootnotes();
    CTFtnEdn ctNote = CTFtnEdn.Factory.newInstance();
    ctNote.setId(noteId);
    ctNote.setType(STFtnEdn.NORMAL);
    footnotes.addFootnote(ctNote);

    XWPFDocument docIn = XWPFTestDataSamples.writeOutAndReadBack(docOut);

    XWPFFootnote note = docIn.getFootnoteByID(noteId.intValue());
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn

     * add a footnote to the document
     * @param note
     * @throws IOException    
     */
    public XWPFFootnote addFootnote(CTFtnEdn note){
        CTFtnEdn newNote = ctFootnotes.addNewFootnote();
        newNote.set(note);
        XWPFFootnote xNote = new XWPFFootnote(newNote, this);
        listFootnote.add(xNote);
        return xNote;
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn

   * add a footnote to the document
   * @param note
   * @throws IOException    
   */
  public XWPFFootnote addFootnote(CTFtnEdn note){
     CTFtnEdn newNote = ctFootnotes.addNewFootnote();
     newNote.set(note);
     XWPFFootnote xNote = new XWPFFootnote(newNote, this);
     listFootnote.add(xNote);
     return xNote;
  }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn

    XWPFDocument docOut = new XWPFDocument();

    BigInteger noteId = BigInteger.valueOf(1);

    XWPFFootnotes footnotes = docOut.createFootnotes();
    CTFtnEdn ctNote = CTFtnEdn.Factory.newInstance();
    ctNote.setId(noteId);
    ctNote.setType(STFtnEdn.NORMAL);
    footnotes.addFootnote(ctNote);

    XWPFDocument docIn = XWPFTestDataSamples.writeOutAndReadBack(docOut);

    XWPFFootnote note = docIn.getFootnoteByID(noteId.intValue());
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn

     * add a footnote to the document
     * @param note
     * @throws IOException    
     */
    public XWPFFootnote addFootnote(CTFtnEdn note){
        CTFtnEdn newNote = ctFootnotes.addNewFootnote();
        newNote.set(note);
        XWPFFootnote xNote = new XWPFFootnote(newNote, this);
        listFootnote.add(xNote);
        return xNote;
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn

   * add a footnote to the document
   * @param footnote
   * @throws IOException    
   */
  public XWPFFootnote addFootnote(CTFtnEdn note){
     CTFtnEdn newNote = ctFootnotes.addNewFootnote();
     newNote.set(note);
     XWPFFootnote xNote = new XWPFFootnote(newNote, this);
     listFootnote.add(xNote);
     return xNote;
  }
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.