Hi all, We have one implementation for MS Word file encryption now. For Mikhail's suggestion, we introduced a new password request ( com::sun::star::task:: DocumentMSPasswordRequest ) and modified the password dialog to meet "MS-mode". But this will also lead registries incompatible. Do you have other suggestions? Or should we make a proposal to change pulished SDK? Thanks.
Best Regards, Steve Yin ------------------------------------- Symphony Common App and Performance IBM Corporation | Lotus Software Tel: 86-10-82454405 Email: yb...@cn.ibm.com Notes: Bing BJ Yin/China/IBM Address: 2F, Ring Bldg. No.28 Building, Zhong Guan Cun Software Park, No. 8 Dong Bei Wang West Road, ShangDi, Haidian District, Beijing 100193, P.R.China From: Mikhail Voytenko <mikhail.voyte...@sun.com> To: dev@framework.openoffice.org Date: 2009-04-15 19:39 Subject: Re: [framework-dev] MS Word file encryption code touch the framework layer Hi Steve, Unfortunately com::sun::star::task::PasswordRequestMode is a published enum. It can not be extended. I would suggest to introduce a new password request, that might use the same enum with the request modes if necessary. The password request would trigger the password dialog in "MS-mode", please remember the current implementation of the password dialog for OOo documents has limitation for minimal password length on password creation. Please take a look to the following specification for details regarding password dialog design ( especially 6.2.1 ): http://specs.openoffice.org/appwide/security/Electronic_Signatures_and_Security.sxw Hope that helps. Best regards, Mikhail. On 04/15/09 12:35, Bing BJ Yin wrote: > Hi Carsten, > > Thanks for your directions. > Now, we got an other problem. Password should be limited within 15 > characters when saving as doc format because the maximum password length > for MS Word encryption is 15. After investigation about current codebase, > we found that the password dialog is called via uno. So I want to add a > new enum value, like "PASSWORD_CREATE_MSCRYPTO", to > com/sun/star/task/PasswordRequestMode.idl and limit password length in > class UUIInteractionHelper. But it will change uno api and may also effect > SDK. Can you give some advice? Thanks. > > Best Regards, > > Steve Yin > ------------------------------------- > Symphony Common App and Performance > IBM Corporation | Lotus Software > Tel: 86-10-82454405 > Email: yb...@cn.ibm.com > Notes: Bing BJ Yin/China/IBM > Address: 2F, Ring Bldg. No.28 Building, Zhong Guan Cun Software Park, No. > 8 Dong Bei Wang West Road, ShangDi, Haidian District, Beijing 100193, > P.R.China > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org For additional commands, e-mail: dev-h...@framework.openoffice.org