Issue 98539 - standard dialog "Save as" and loadComponentFromUrl with cusom default template
Summary: standard dialog "Save as" and loadComponentFromUrl with cusom default template
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOo 3.0.1
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 20:11 UTC by herbk52
Modified: 2013-08-07 14:44 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 herbk52 2009-01-27 20:11:30 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.
Comment 1 michael.ruess 2009-01-28 16:09:53 UTC
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...
Comment 2 herbk52 2009-02-04 20:56:16 UTC
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? 
Comment 3 Oliver Specht 2009-02-05 07:46:57 UTC
reassigned to cd
Comment 4 carsten.driesner 2009-09-14 10:10:09 UTC
cd: Due to missing time this issue must be moved to the next release OOo 3.3.
Comment 5 carsten.driesner 2010-08-18 13:31:24 UTC
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.