https://issues.apache.org/bugzilla/show_bug.cgi?id=48574
Summary: Extention of XWPF to insert paragraphs and tables form
different Documents in one Document.
Product: POI
Version: 3.7-dev
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: XWPF
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24861)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24861)
Extensions of XWPF to insert tables, paragraphs with pictures, styles and
numberings
Actually I have to problem, with adding tables and paragraphs to a document.
For example if I have three paragraphs between two tables I am only able to
insert a table between these two tables. But I cannot position the table
excatly after the first of the three paragraphs. Initially I tried to handle
this problem with XmlCursors, but debugging an XmlCursor is not a very funny.
So I decided to create a marker Interface IBodyElement, which is implemented by
XWPFParagraph and XWPFTable (Yes I call them BodyElements). On the other Hand I
created the Interface IBody which is implemented by all Classes, who owns
arrays with tables and paragraphs. (Actually this are the classes XWPFDocument,
XWPFTableCell, XWPFHeaderFooter). In IBody there a some signature of methods
which are handling the operations with XWPFTable and XWPFParagraph in a Body.
To support styles and numberings the classes XWPFStyles, XWPFStyle,
XWPFNumbering, XWPFNum, XWPFAbstractNum are added. The classes XWPFPictureData
and XWPFPicture were created to support pictures. This classes are quit equal
to XSSFPictureData and XSSFPicture.
Hope you like my changes. :-)
Philipp Epp
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]