Apache OpenOffice (AOO) Bugzilla – Issue 37302
API: fwk.Desktop::com::sun::star::lang::XComponent
Last modified: 2013-02-24 21:09:31 UTC
while calling dispose() messageboxes about to save documents pops up. To reproduce this behavior just start your office with parameter "-accept=socket,host=0,port=8100;urp;" and call inside a solar shell: checkapi -o fwk.Desktop::com::sun::star::lang::XComponent
.
One part of this task is duplicate to #i37277# ... by a mistake all new opened documents are set to the state "modified". So opening and closing of documents via API will make trouble. But the real problem of this bug here is, that we show a dialog within the API method dispose. The normal behaviour must be: a) throwing a veto exception inside XCloseable->close() b) or close the document without saving any changes inside XComponent->dispose().
AS->CN: Sorry ... but your test seems to be wrong. Dispose is never be called on the document ... not called from your test ! It's called only implicitly by terminating the office (Desktop::terminate()). And there we allow these messages. So this task is both: DUPLICATE to #i37277# and INVALID (because the test is wrong).
mark it as DUPLICATE *** This issue has been marked as a duplicate of 37277 ***
while duplicate -> close