Re: DocumentEventListener problem

2015-04-15 Thread Piet van Oostrum
Stephan Bergmann wrote: > On 04/15/2015 02:18 PM, Piet van Oostrum wrote: > > Anyway, this makes it almost impossible to use listeners across the UNO > > bridge. When I run my code as a macro inside LO there is no problem. > > Why do you need to remove and then re-add the MyEventListener du

Re: DocumentEventListener problem

2015-04-15 Thread Stephan Bergmann
On 04/15/2015 02:18 PM, Piet van Oostrum wrote: Anyway, this makes it almost impossible to use listeners across the UNO bridge. When I run my code as a macro inside LO there is no problem. Why do you need to remove and then re-add the MyEventListener during the dumentEventOccured call anyway?

Re: DocumentEventListener problem

2015-04-15 Thread Piet van Oostrum
Stephan Bergmann wrote: > There's nothing special here. LO's main thread 1 in > SfxBaseModel::postEvent_Impl (frame 19) is illegally issuing > css.document.XDocumentEventListener::documentEventOccured calls with the > solar mutex locked. The python process, while synchronously executing

Re: DocumentEventListener problem

2015-04-14 Thread Stephan Bergmann
On 04/13/2015 06:06 PM, Michael Stahl wrote: On 12.04.2015 22:53, Piet van Oostrum wrote: I am trying to program a Global DocumentEventListener in Python. Then on a certain event (e.g. File Open), I want to analyse/print the paragraph structure of the document. I am running LibreOffice on port

Re: DocumentEventListener problem

2015-04-14 Thread Michael Stahl
On 13.04.2015 18:06, Michael Stahl wrote: > looks like a deadlock, quite easy to reproduce, hope Stephan has some > time to look at it: > i forgot to attach the self contained reproducer based on Piet's code, it connects to pipe named "ms" import uno import unohelper from com.sun.star.documen

Re: DocumentEventListener problem

2015-04-14 Thread Piet van Oostrum
Michael Stahl wrote: > On 12.04.2015 22:53, Piet van Oostrum wrote: > > I am trying to program a Global DocumentEventListener in Python. > > Then on a certain event (e.g. File Open), I want to analyse/print the > > paragraph structure of the document. > > > > I am running LibreOffice on po

Re: DocumentEventListener problem

2015-04-13 Thread Michael Stahl
On 12.04.2015 22:53, Piet van Oostrum wrote: > I am trying to program a Global DocumentEventListener in Python. > Then on a certain event (e.g. File Open), I want to analyse/print the > paragraph structure of the document. > > I am running LibreOffice on port 2002. I am using the internal Python

DocumentEventListener problem

2015-04-12 Thread Piet van Oostrum
I am trying to program a Global DocumentEventListener in Python. Then on a certain event (e.g. File Open), I want to analyse/print the paragraph structure of the document. I am running LibreOffice on port 2002. I am using the internal Python from LibreOffice, but I run the script externally, fro