incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fabian <...@netempire.de>
Subject Re: [EXT] listening to text changes
Date Wed, 22 Feb 2012 14:23:19 GMT
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 <fmh@netempire.de> 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
>> 
>> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message