<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<blockquote cite="mid:b24bbe93aba640e2a5a058598ef0554b@POSTFIX.cib.de" type="cite">
I went with the first option and created this patch: <a moz-do-not-send="true" href="https://gerrit.libreoffice.org/#/c/29018">
https://gerrit.libreoffice.org/#/c/29018</a><br>
</blockquote>
<br>
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.<br>
So I changed the semantics of the TerminationVetoException accordingly: <a href="https://gerrit.libreoffice.org/#/c/29031">
https://gerrit.libreoffice.org/#/c/29031</a><br>
With that patch, the TerminationVetoException lets you close the windows, but vetoes the termination. Before it also vetoed the closing of the windows.<br>
<br>
If one still need to veto closing documents/frames, one could use the <a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/CloseVetoException.html">
CloseVetoException</a>.<br>
<br>
I will of course document the new behavior in the release notes (if no objections come in).<br>
<br>
Thanks<br>
Samuel<br>
</body>
</html>