Re: Notification on OLE object insertion

2019-12-22 Thread jan
Hello Julien, thanks for the idea. From the documentation I think the XStateChangeListener will only notify me if I have already registered it on an OLE object. Maybe I am wrong? I am already successfully using a DocumentEventListener on the OLE object. But it only catches changes and deletion of

Re: Notification on OLE object insertion

2019-12-21 Thread julien2412
Hello Jan, Taking a look at embeddedobj/source/inc/oleembobj.hxx, I noticed the use of "XStateChangeListener" (offapi/com/sun/star/embed/XStateChangeListener.idl). Could it help? Julien -- Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html __

Notification on OLE object insertion

2019-12-21 Thread Jan Rheinländer
Hi, is it possible to be notified when a OLE object is inserted, pasted, moved or deleted from a TextDocument? I checked the following interfaces but could find nothing: XChangesListener -> forms only XClipboardListener -> only gets notify on "Copy" action (when contents of clipboard change) XPr