Hi,
We have the following case:
You have an application conntected to LO via UNO. The user then
separately starts a (Start center) window. When he closes it, LO gets
terminated and the external application loses the connection. We want to
prevent thatso that the external application keeps working.
We could use a TerminationVetoException
<https://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/TerminationVetoException.html>
in the external application to prevent LO from terminating. But this has
the side effect that the user can no longer close the Start center.
Basically we have two options how to fix this:
1. Change the behavior of LO such that the TerminationVetoException
allows closing the last window, but still prevents terminating the
soffice process
2. Change the behavior of LO such that an open UNO connection counts as
an open window, and the process doesn't get terminated until all
connections are closed.
This option would not need a TerminationVetoException.
Both options do change existing behavior and will possible break
existing applications/workflows out there. So the decision should be
made carefully.
I probably would go for the first one, since the
TerminationVetoException suggests that it will prevent termination. It
shouldn't affect closing a window.
Although I would also consider it as a bug that LO terminates (when
closing a window) while it still has active connections.
Any input on this?
Thanks
Samuel
--
Samuel Mehrbrodt
Softwareentwickler LibreOffice
–––
CIB software GmbH
Geschäftsstelle Hamburg
Flachsland 10
22083 Hamburg
–––
T +49 (40) / 28 48 42 -224
F +49 (40) / 28 48 42 -100
Samuel.Mehrbrodt@cib.de
www.cib.de
–––
Sitz: München
Registergericht München, HRB 123286
Geschäftsführer: Dipl.-Ing. Ulrich Brandner
Context
- How to keep UNO applications connected after closing LibreOffice · Samuel Mehrbrodt
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.