RE: [api-dev] Getting the document name displayed in the title bar of the window

2008-10-22 Thread Jedlička Ivan [P4]
Hi, I don't use the OOo 3.0 though, but it should work. You can try to set the document name explicitly by setting the MediaDescriptor property "DocumentTitle" before loading document or later using the XModel method attachResource(URL, properties) where properties is an array of properties of M

RE: [api-dev] Suggest filename before saving document

2008-10-20 Thread Jedlička Ivan [P4]
Hi Mikhail, Thank you very much for the comprehensive explanation. I get it now at last. Ivan > -Original Message- > From: Mikhail Voitenko [mailto:[EMAIL PROTECTED] > Sent: Monday, October 20, 2008 7:52 PM > To: dev@api.openoffice.org > Subject: Re: [api-dev] Suggest filename before savin

RE: [api-dev] Suggest filename before saving document

2008-10-20 Thread Jedlička Ivan [P4]
Hi, the posibility to catch and consume the event, when a user chooses the SaveAs action and to implement any other FilePicker I have allready considered, but that time I don't know how to do it exactly. But I still think, that the SaveAs dialog iniciated by user in current standard implementati

[api-dev] Suggest filename before saving document

2008-10-17 Thread Jedlička Ivan [P4]
Is there any way how to suggest a filename using API for saving document created from a template? Such document has the filename field in the SaveAs dialog blank. I have tried set the filename using XModel.attachResource(URL, props), but without any effect. The method XModel.getURL() returns the