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

Yup, that's a part of the new implementation.  The old implementation
simply stores a flag for whether the document was encrypted on import,
and uses it during export.  My new implementation adds password to the
list of stored data.

> Daniel has also seen no problem to store 
> it directly in MediaDescriptor.

Good that he sees it that way. :-)

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

Ok.

> 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?  Right now, I put some extra code in
CheckPasswordCapability function object to have it return true on the
'MS Excel 97' filter name, to enable password protection for this
filter.

Thanks,

Kohei

-- 
Kohei Yoshida - OpenOffice.org Engineer - Novell, Inc.
<[EMAIL PROTECTED]>


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

Reply via email to