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: [email protected]
> Subject: Re: [api-dev] Suggest filename before saving document
>
> Hi Ivan,
>
> The suggested by SaveAs-dialog document name is generated
> based on the current document location. The location can be
> retrieved using the call
> XStorable::getLocation() if there is any. It is set on
> loading and can be change only by storing of the document to
> another location.
>
> The call XModel::attachResources() changes the result of the
> XModel::getURL(), but this API is really document location.
> It is set to the correct value after the document is loaded,
> but as your experiment has shown, this does not affect the
> document location. The
> XModel::getURL() related implementation is very old and very
> confusing one. It should be probably at least deprecated.
>
> Thus the answer to your question is 'no'. As far as I know,
> it is not possible currently to set the suggested document
> name without implementing dispatch interceptor and all the
> functionality around it.
>
> Regards,
> Mikhail.
>

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

Reply via email to