Issue 37302 - API: fwk.Desktop::com::sun::star::lang::XComponent
Summary: API: fwk.Desktop::com::sun::star::lang::XComponent
Status: CLOSED DUPLICATE of issue 37277
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-17 10:10 UTC by chne
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description chne 2004-11-17 10:10:05 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
Comment 1 chne 2004-11-17 10:10:30 UTC
.
Comment 2 andreas.schluens 2004-11-17 11:01:08 UTC
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().
Comment 3 andreas.schluens 2004-11-18 07:22:18 UTC
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).
Comment 4 andreas.schluens 2004-11-18 07:23:25 UTC
mark it as DUPLICATE

*** This issue has been marked as a duplicate of 37277 ***
Comment 5 chne 2006-02-03 08:34:49 UTC
while duplicate -> close