Hi Kohei, Kohei Yoshida schrieb:
> Hi there, > > I've noticed, after resyncing scsheetprotection02 to m38, that you guys > now use a new way to set a document password for encryption. The old > way was to use SfxPasswordDialog class and the new way is to use UNO's > interaction handler (of sort). > > Now, to get the Excel export encryption to work properly, I need to set > 1-15 character length restriction to the password. It was relatively > easy to set it with SfxPasswordDialog, but how can I do the same using > the new interaction handler? I think that you need to have a particular exception and a particular interaction for this. I'm sure Mikhail and Andreas will explain that with more details when they are back from vacation. The interaction will be more or less an encapsulation of your current code, nothing complicated. IIRC the move to the interaction handler was necessary to support scenarios where popping up dialogs is unwanted. Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "nospamfor...@gmx.de". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org For additional commands, e-mail: dev-h...@framework.openoffice.org