Hi,

I'm currently trying to find out if a certain paragraph of a .docx
document is a bullet point or part of a numbered list, but can't
figure out a way how to do this with XWPF.

What I found out so far by reading the test cases in the source
package is that there is a getNumbering() method for the XWPFDocument
object itself, which might be what I'm looking for when parsing
numbered lists, but I'm at a loss of how to connect the elements of
that list to the paragraph I am currently trying to parse. I also
looked at the methods for paragraphs and runs, some of which I am
already using for style information, but came up empty.

I'm unsure if this has anything to do with what I'm trying to do, but
I also found that a
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP object
might somehow be obtainable for paragraphs, and that object might
contain the information on numbering/bullet points, but googling for
javadocs about this object was not successful. Could someone explain
to me if this might be what I'm looking for, and if (or if not), link
me to a short explanation regarding this object type?

As I'm also planning on writing out ordered lists or bullet points
from the intermediate, human readable XML document I'm trying to
create by parsing the .docx, pointers on how to do that with XWPF
would be very much appreciated.

Pointers to documentation (other than the javadocs for POI, the test
cases obtainable via the source package, or the archive of this
mailing list) regarding XWPF are very welcome, too!

Thanks for your time,

Andreas Seeg

PS: I found an earlier post with a similar question before writing
this message, but there was no reply to it in the archive. The number
is 17886 - "Identifying List Items in a document"

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to