Marco Dubacher wrote:

> I want to develop a UNO in the Writer Sub-Project of OpenOffice. The UNO has
> to be notified about any changes done on the text document model (ie.
> Insertion of character(s), changes regarding formatting of text etc.) Is it
> possible to register listeners for such events from an UNO or isn’t there
> such an mechanism. As far as I understood from the “Developer’s Guide” there
> are loads of possibilities to manipulate the text document model from UNOs
> but there are no mechanisms to get notified about any manipulations… Am I
> wrong?

If you are fine with just getting a notification when something has
changed in the document without the need to know what exactly has
changed you can use the modification events sent out by the model object
through its com.sun.star.util.XModifiable interface.

An event source that notifies for all changes in a document with the
complete information what exactly has changed is not available and I
doubt that this will ever be implemented. There are just too many things
that can be changed in a text document so that it is not very likely
that you can find a schema to describe all possible changes (existing as
well as future ones) in a uniform way.

Ciao,
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