Hi Andreas,
>> -----%<----
>>     public void addCloseListener() {
>>         // initial close listener
>>         xCloseListener = new XCloseListener() {
>>             public void queryClosing(EventObject arg0, boolean arg1)
>>                     throws CloseVetoException {
>>                 throw new CloseVetoException();
>>             }
>>
>>             public void notifyClosing(EventObject arg0) {}
>>
>>             public void disposing(EventObject arg0) {}
>>         };
>>         this.xComponent.addEventListener(xCloseListener);
>>     }
>> -----%<-----

> You can listen for closing events on every document opened by YOUR code
> and prevent them from closing. Then the desktop should close all
> documents not throwing an exception (which should be the UI opened
> documents only) and ignore your documents ... which will result into a
> failed terminate operation.

OK. So I did all I can do in my example above. I throw the right kind of
exception and I throw it also on the reight place. Am I right?

> But there is a "small time frame", where you cant control the situation
> ... the time between loadComponentFromURL() returned a document and you
> will be registered as close listener. OK - the chance that an UI office
> terminates during these 200 ms is very small ... but this possibility
> exists .-)

Yes I already thought about it. But I handle this already.

> There is another solution for you ...
> If you start the office with an own user layer, you will get an own
> office instance independed from the normal UI desktop office.
> "soffice -env:<path>".
> Problem here: all settings made inside the desktop office has to be done
> twice. There is no synchronization .-)

Sounds interesting, but I bootstrap my OO, so I can't set env parameters.

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to