hi, i'm developing an extension using the Addon example 
ProtocolHandlerAddon_cpp. In the initialize method i added a document event 
listener. The events i require are fired as explained in the Developers Guide. 
However each event fires twice (the same event) for only one action. for 
example "OnModifyChanged" gets fired twice when i enter a character into the 
document. Later on i added a message box in the initialize method and 
discovered that the message box in the initialize method appears twice too. i 
infer from this that, since i'm adding the event listener in the initialize 
method, that same event listener is registered twice. heres a snippet from my 

Reference <::com::sun::star::lang::XComponent > xComp = 
    Reference < ::com::sun::star::frame::XModel > localModel (xComp, 
    com::sun::star::uno::Reference< com::sun::star::document::XEventBroadcaster 
> mxEventBroadcaster (localModel   , com::sun::star::uno::UNO_QUERY);

    mxEventBroadcaster->addEventListener( this );

any suggestions? thanks,

praveen reddy

      Add more friends to your messenger and enjoy! Go to 

Reply via email to