You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2010/01/19 17:16:48 UTC

DO NOT REPLY [Bug 48574] New: Extention of XWPF to insert paragraphs and tables form different Documents in one Document.

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: dev@poi.apache.org
        ReportedBy: Philipp.Epp@hoefliger.de


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48574] Extention of XWPF to insert paragraphs and tables form different Documents in one Document.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48574

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Nick Burch <ni...@alfresco.com> 2010-06-11 10:40:40 EDT ---
Thanks for this patch, applied to trunk in r953704 with only minor tweaks.

In future though, it's generally worth mentioning on the dev list when you're
working on big contributions like this. That should allow you to get feedback,
and give us a heads-up on the impending patch. This generally reduces the
chances that everyone sees a monster patch and decides "I don't have time to
review that now, I'll wait for someone else"...

Also, any chance you could send in an ICLA at some point when you have a
minute? <http://www.apache.org/licenses/icla.txt>. Can just be emailed or
faxed. It confirms that you understand the terms of the apache license that
your contribution will be used under, and we like to have them from people who
make large scale contributions so there's no confusion, and everyone's happy :)

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48574] Extention of XWPF to insert paragraphs and tables form different Documents in one Document.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48574

--- Comment #1 from Philipp.Epp@hoefliger.de 2010-01-19 08:18:53 UTC ---
Created an attachment (id=24862)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24862)
Test-Data of the test cases in the previous patch

this test-data must be added to Test-Data/documents/

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48574] Extention of XWPF to insert paragraphs and tables form different Documents in one Document.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48574

Philipp.Epp@hoefliger.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #3 from Philipp.Epp@hoefliger.de 2010-04-12 03:02:44 EDT ---
Hi at all,
Could somebody tell me what I did wrong with this patch? Is there any chance
that it will be accepted like it is. Or do have to change it. (splitting it
into smaller patches or changing the API). So that at least some parts of my
patch will find a way into Apache POI.
Thank for your response
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 48574] Extention of XWPF to insert paragraphs and tables form different Documents in one Document.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48574

--- Comment #2 from Stefan Stern <st...@mind8.com> 2010-03-15 10:25:09 UTC ---
Hello all

Maybe someone can look into this. The attached patch contains a major
contribution to the XWPF classes. The new classes and methods allow the
modification of existing objects to some extent. 

If you need more information on the classes, the API or anything else, please
let us know. 

The classes were created in terms of a diploma thesis and we internally use
them. For now we merge ongoing POI commits with this patch, until either POI
accepts the commit or comes up with some other API which provides equal
modification options.

Regards,
Stefan Stern

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org