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 necessary. Perhaps this is done
currently only because it is not passed to the Medium? In that case it
could be removed from the Calc internal model data and instead stored in
the Medium/MediaDescriptor as we do it for our own format.

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
ScDocShell.

I have just asked Daniel Rentz and he has mentioned that the current implementation seems not to store the password after import of Excel document at all. So the storing of the password after the import is also a part of new implementation. Daniel has also seen no problem to store it directly in MediaDescriptor.

So if the import filter is adjusted to store the password in MediaDescriptor, the further handling on saving would work as it works now for OOo filters. The minor adjustments are still necessary, for example the Excel export filter should be handled by sfx2 as a filter supporting encryption.

Best regards,
Mikhail.


Ciao,
Mathias


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

Reply via email to