Bug 51486 - [PATCH] Unable to create Footnotes on a new XWPFDocument
[PATCH] Unable to create Footnotes on a new XWPFDocument
Status: RESOLVED FIXED
Product: POI
Classification: Unclassified
Component: XWPF
3.7-FINAL
All All
: P2 normal (vote)
: ---
Assigned To: POI Developers List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-07-07 16:55 UTC by Mike McEuen
Modified: 2011-07-08 13:25 UTC (History)
0 users



Attachments
Text diff (20.51 KB, patch)
2011-07-07 16:55 UTC, Mike McEuen
Details | Diff
Binary tar.gz of the added files. (2.38 KB, application/x-gzip)
2011-07-07 17:03 UTC, Mike McEuen
Details
Text diff (22.94 KB, patch)
2011-07-07 17:07 UTC, Mike McEuen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.