Bug 51486

Summary: [PATCH] Unable to create Footnotes on a new XWPFDocument
Product: POI Reporter: Mike McEuen <mceuen>
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.7-FINAL   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Text diff
Binary tar.gz of the added files.
Text diff

Description Mike McEuen 2011-07-07 16:55:14 UTC
When creating a new XWPFDocument from scratch, there is no way to create an OpenXml footnotes document part. I am submitting a patch that adds an XWPFFootnotes class and also makes the existing XWPFFootnote object implement the IBody interface so that it can receive paragraph and table elements. The same thing may need to be done for endnotes in the future.
Comment 1 Mike McEuen 2011-07-07 16:55:54 UTC
Created attachment 27271 [details]
Text diff
Comment 2 Mike McEuen 2011-07-07 17:03:14 UTC
Created attachment 27272 [details]
Binary tar.gz of the added files.

Adding two files: XWPFFootnotes.java and TestXWPFFootnotes.java.
Comment 3 Mike McEuen 2011-07-07 17:07:01 UTC
Created attachment 27273 [details]
Text diff

Initially forgot to add TestXWPFFootnotes.java to the project.
Comment 4 Nick Burch 2011-07-08 13:25:11 UTC
Thanks for this, patch applied in r1144308.