Examples of CTFootnotes


Examples of org.docx4j.wml.CTFootnotes

      CTEndnotes endnotes= this.getEndNotesPart().getJaxbElement();
      finder.walkJAXBElements(endnotes);
    }
    if (this.getFootnotesPart()!=null) {
      log.debug("Looking at footnotes");
      CTFootnotes footnotes= this.getFootnotesPart().getJaxbElement();
      finder.walkJAXBElements(footnotes);
    }
   
    // Comments
    if (this.getCommentsPart()!=null) {
View Full Code Here

Examples of org.docx4j.wml.CTFootnotes

      CTEndnotes endnotes= this.getEndNotesPart().getJaxbElement();
      finder.walkJAXBElements(endnotes);
    }
    if (this.getFootnotesPart()!=null) {
      log.debug("Looking at footnotes");
      CTFootnotes footnotes= this.getFootnotesPart().getJaxbElement();
      finder.walkJAXBElements(footnotes);
    }
   
    // Comments
    if (this.getCommentsPart()!=null) {
View Full Code Here

Examples of org.docx4j.wml.CTFootnotes

  }

  @Deprecated // see instead org.docx4j.convert.out.Converter
  public static Node getFootnote(WordprocessingMLPackage wmlPackage, String id) { 
   
    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.CTFootnotes

      return context.getNextFootnoteNumber();
    }
   
  public static Node getFootnote(AbstractWmlConversionContext context, String id) { 
    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
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.