Apache OpenOffice (AOO) Bugzilla – Issue 98539
standard dialog "Save as" and loadComponentFromUrl with cusom default template
Last modified: 2013-08-07 14:44:35 UTC
The Writer application always opens a new document inside a new window. In order to get a dokument opened in an existing window I wrote the following macro: sub OpenHere objDokument = GlobalScope.ThisComponent StarDesktop.ActiveFrame.Name=StarDesktop.ActiveFrame.Title Dim myFileProp(0) as New com.sun.star.beans.PropertyValue objDokument1 =StarDesktop.LoadComponentFromURL("private:factory/swriter",StarDesktop.ActiveFrame.Name,23,myFileProp()) end sub Running this macro I had the following observation for modified documents: - in case of no "default-template" has been assigned in OpenOffice the OpenOffice standard-dialogs are displayed -- a popup appears: document has been modified: "save?" "do'nt save?" "cancel" -- in case of clicking "save" the OpenOffice standard-dialog "save as" is displayed in order to select the documentname - in case of a "default-template" has been created this dialogs are not displayed Additional info: I had this observations in Writer of OpenOffice 3.0.0 and also 3.0.1. I work in a german environmnet on a W2K-system. It would be very helpful for me to have the standard-dialog "save as" also in case of a default-template has been created.
The above given macro won't ask for saving a modified document when a custom default template has been assigned. Works properly with the normal default template. MRU->OS: could you please reassign to correct developer if this is not yours? It looks more like a Framework problem than a Writer issue...
I have done this additional observation: I created a new document and entered some text to it; no default-template had been created in Writer-application. Then I run the macro OpenHere (please see issue description). The standard-dialog "Save as" was displayed and I stored the document e.g. as D:\test.odt. Test.odt has been closed by OpenOffice and only a new empty document was displayed, which I closed without modifying and string it. From user point of view everything looked fine. test.odt was stored properly. The I opened Writer again and for test.odt the document-recovery mechanism was started by OpenOffice. But why? Is this a new issue or one that belongs to the problem described here?
reassigned to cd
cd: Due to missing time this issue must be moved to the next release OOo 3.3.
cd: This is not a show stopper. Therefore I have to move the issue to a new target. If you believe that this issue should be handled as a showstopper for OOo3.3 please nominate it accordingly in the releases mailing list.