Hi Francis, Thanks! The second way is what I was looking for and should work just fine.
regards, Fabian On Feb 22, 2012, at 5:22 AM, F C. Costero wrote: > 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 > (com.sun.star.util.XModifyBroadcaster interface) of the XTextDocument > to add a ModifyListener which will be triggered with every individual > change. > > Will either of those work for you? > > Francis > > On Tue, Feb 21, 2012 at 4:03 AM, fabian <[email protected]> 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 >> >>
