Hi Marcin,

Marcin Miłkowski wrote:

> Well, as I'm developing LanguageTool, I know too well that this is not
> so trivial - as we painfully found out :( You would have to traverse the
> whole document (including tables and footnotes) to find the text - we
> didn't find a proper way to do it and were happy to abandon this as soon
> as new API was available. 
The new "Proof reading" in OOo uses a new API that provides the whole
document in so called "flat paragraphs". It works on Writer documents
only but perhaps is exactly the API you might need for your traversing.

This API will give you the whole text of the document, including tables,
text frames, footnotes etc. separated in paragraphs.

You still need to parse this text by yourself to create the word breaks
- but I think you can use the break iterator or any other code that is
able to do that.

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to