How to keep UNO applications connected after closing LibreOffice

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Mon Sep 19 15:17:02 UTC 2016


I went with the first option and created this patch: https://gerrit.libreoffice.org/#/c/29018

It turned out we need to implement both. The first option was fine when only closing the window - but we also want to be able to close the visible frames with "File->Exit" while keeping the process running.
So I changed the semantics of the TerminationVetoException accordingly: https://gerrit.libreoffice.org/#/c/29031
With that patch, the TerminationVetoException lets you close the windows, but vetoes the termination. Before it also vetoed the closing of the windows.

If one still need to veto closing documents/frames, one could use the CloseVetoException<https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/CloseVetoException.html>.

I will of course document the new behavior in the release notes (if no objections come in).

Thanks
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20160919/11ca89a7/attachment.html>


More information about the LibreOffice mailing list