Hi Mathias,

On Sat, 2008-12-27 at 01:27 +0100, Mathias Bauer wrote:
> 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.

Thanks for your answer.  I know you were (and still are) probably on
vacation, so I appreciate you taking the time to write a reply.

Meanwhile, I noticed a new module 'uui' that probably implements those
interaction handlers.  I should probably read up that code to see what
it does.

> IIRC the move to the interaction handler was necessary to support
> scenarios where popping up dialogs is unwanted.

This makes sense.  Suppressing pop-up dialogs is probably useful in some
sort of automation scripts to mass-convert documents etc.

Thanks,

Kohei

-- 
Kohei Yoshida - OpenOffice.org Engineer - Novell, Inc.
<kyosh...@novell.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org

Reply via email to