To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=63162





------- Additional comments from [EMAIL PROTECTED] Thu Mar 16 02:04:30 -0800 
2006 -------
Okay, now database documents behave as other documents do (and as is required in
the DevGuide): Closing the document implicitly closes all associated views.
Also, closing the last view implicitly closes the document.

There's a few implications:
- Script developers who want to use a document need to ensure that it's not 
closed
  as long as they need it. That is, if a script doing potentially long-running
  processings on a document  need to add as CloseVetoListener. Else, it might be
  possible that the user (while the script is running in the background) opens
  the very same document, and closes the view, and thus the document - which 
might
  break the script.
- Script developers should definately close the document they use, even if they
  did not obtain it from a loadComponentFromURL. This is especially important
  for database documents, where there are more means to obtain the document
  (e.g. DatabaseContext.getByName( "..." ).getDatabaseDocument)
- As a consequence of the previous item, the following scenario is possible:
  - A script obtains a document, and does some processing with it (which at
    least might involve reading some facets, not necessarily modifying it)
  - The user opens the very same document and works with it
  - The script finishs, closing the document
  => the user's views to the document are closed, too

The last is an immediate consequence from the fact that views to not veto
closing the document. However, it's by design (at least by what the DevGuide
requires :), and should be exotic enough to not hurt ....

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to