Re: [framework-dev] GUI Save or SaveAs

2008-05-23 Thread Mikhail Voitenko
Hi Kohei, Kohei Yoshida wrote: Hi Mikhail, On Thu, 2008-05-22 at 11:40 +0200, Mikhail Voitenko wrote: [...skipped...] The minor adjustments are still necessary, for example the Excel export filter should be handled by sfx2 as a filter supporting encryption. Can you expand on this a little

Re: [framework-dev] GUI Save or SaveAs

2008-05-22 Thread Kohei Yoshida
Hi Mikhail, On Thu, 2008-05-22 at 11:40 +0200, Mikhail Voitenko wrote: > > In case Calc also needs to know the password for other purposes > > internally I assume that the new password must be taken over by Calc > > also. The right place for that would be the SaveCompleted() call at the > > ScDoc

Re: [framework-dev] GUI Save or SaveAs

2008-05-22 Thread Kohei Yoshida
Hey guys. Thanks for your helpful input. :-) On Thu, 2008-05-22 at 11:09 +0200, Mathias Bauer wrote: > Hi Mikhail and Kohei, > > Mikhail Voitenko wrote: > > > Hi Kohei, > > > > The suggested by Mathias solution will work. I am just curious why > > should it be handled in the filter. Isn't it

Re: [framework-dev] GUI Save or SaveAs

2008-05-22 Thread Mikhail Voitenko
Hi Mathias, Kohei, Mathias Bauer wrote: Hi Mikhail and Kohei, [...skipped...] So the password to use always would be in the SfxMedium passed in ConvertTo(), right? Exactly. So what about the password that Calc seems to store in its internal data? First I would like to see why this is ne

Re: [framework-dev] GUI Save or SaveAs

2008-05-22 Thread Mathias Bauer
Hi Mikhail and Kohei, Mikhail Voitenko wrote: > Hi Kohei, > > The suggested by Mathias solution will work. I am just curious why > should it be handled in the filter. Isn't it better just to set the > correct password to the target MediaDescriptor represented by ItemSet in > the target SfxMed

Re: [framework-dev] GUI Save or SaveAs

2008-05-22 Thread Mikhail Voitenko
Hi Kohei, The suggested by Mathias solution will work. I am just curious why should it be handled in the filter. Isn't it better just to set the correct password to the target MediaDescriptor represented by ItemSet in the target SfxMedium and use it always from the target medium? I mean that

Re: [framework-dev] GUI Save or SaveAs

2008-05-22 Thread Mathias Bauer
Mathias Bauer wrote: > Hello Kohei, > > Kohei Yoshida wrote: > >> On Wed, 2008-05-21 at 15:45 +0200, Mikhail Voitenko wrote: >>> Hi Kohei, >>> >>> The suggested solution is easy, but it is a hack. >> >> Ah ok. :-P >> >>> There is no guarantee >>> that it will work in future, since the item

Re: [framework-dev] GUI Save or SaveAs

2008-05-21 Thread Mathias Bauer
Hello Kohei, Kohei Yoshida wrote: > On Wed, 2008-05-21 at 15:45 +0200, Mikhail Voitenko wrote: >> Hi Kohei, >> >> The suggested solution is easy, but it is a hack. > > Ah ok. :-P > >> There is no guarantee >> that it will work in future, since the item might be lost during the >> conversion

Re: [framework-dev] GUI Save or SaveAs

2008-05-21 Thread Kohei Yoshida
On Wed, 2008-05-21 at 15:45 +0200, Mikhail Voitenko wrote: > Hi Kohei, > > The suggested solution is easy, but it is a hack. Ah ok. :-P > There is no guarantee > that it will work in future, since the item might be lost during the > conversion to MediaDescriptor representation. I see. So I

Re: [framework-dev] GUI Save or SaveAs

2008-05-21 Thread Mikhail Voitenko
Hi Kohei, The suggested solution is easy, but it is a hack. There is no guarantee that it will work in future, since the item might be lost during the conversion to MediaDescriptor representation. At which moment of time ( which part of storing process ) do you need to get the information th

Re: [framework-dev] GUI Save or SaveAs

2008-05-20 Thread Kohei Yoshida
On Tue, 2008-05-20 at 23:00 -0400, Kohei Yoshida wrote: > GUI Save or SaveAs Sorry, this should have been "GUI SaveAs or Save", the latter being the direct save via Ctrl-S (or File - Save). Hopefull I didn't confuse anyone. :-) Kohei -- Kohei Yoshida - OpenOffice.org Engineer - Novell, Inc. <