incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "F C. Costero" <>
Subject Re: [EXT] listening to text changes
Date Wed, 22 Feb 2012 04:22:53 GMT
I know of two ways to trigger a macro on document changes:
1. Use the Tools -> Customize -> Events menu to associate a macro to
the "Modified status was changed" event. This will call the macro when
a series of changes begins and when the document is saved.
2. Use the addModifyListener() method
( interface) of the XTextDocument
to add a ModifyListener which will be triggered with every individual

Will either of those work for you?


On Tue, Feb 21, 2012 at 4:03 AM, fabian <> wrote:
> Hi all,
> I want to be informed about changes within my document, e.g when an image was deleted
from the XTextDocument. I tried to use XTextListener but found that it can only be used with
some Control elements which support XTextComponent.
> Is this possible via the api right now? Otherwise is there a workaround someone can point
me to?
> Thanks!
> regards,
> Fabian

View raw message