Kaydet (Commit) bdb3c21e authored tarafından Kohei Yoshida's avatar Kohei Yoshida

bnc#437516: Hide minimum password info in the password dialog.

When launching it from the Security tab of the PDF Options dialog
during PDF export.

Change-Id: Ife2d3a7b508ba2e077018d11478ad680d18d3f0d
üst 19edf0dc
...@@ -1287,6 +1287,7 @@ IMPL_LINK_NOARG(ImpPDFTabSecurityPage, ClickmaPbSetPwdHdl) ...@@ -1287,6 +1287,7 @@ IMPL_LINK_NOARG(ImpPDFTabSecurityPage, ClickmaPbSetPwdHdl)
{ {
SfxPasswordDialog aPwdDialog( this, &msUserPwdTitle ); SfxPasswordDialog aPwdDialog( this, &msUserPwdTitle );
aPwdDialog.SetMinLen( 0 ); aPwdDialog.SetMinLen( 0 );
aPwdDialog.ShowMinLengthText(false);
aPwdDialog.ShowExtras( SHOWEXTRAS_CONFIRM | SHOWEXTRAS_PASSWORD2 | SHOWEXTRAS_CONFIRM2 ); aPwdDialog.ShowExtras( SHOWEXTRAS_CONFIRM | SHOWEXTRAS_PASSWORD2 | SHOWEXTRAS_CONFIRM2 );
aPwdDialog.SetText( maStrSetPwd ); aPwdDialog.SetText( maStrSetPwd );
aPwdDialog.SetGroup2Text( msOwnerPwdTitle ); aPwdDialog.SetGroup2Text( msOwnerPwdTitle );
......
...@@ -112,6 +112,9 @@ public: ...@@ -112,6 +112,9 @@ public:
{ {
mbAsciiOnly = i_bAsciiOnly; mbAsciiOnly = i_bAsciiOnly;
} }
void ShowMinLengthText(bool bShow);
virtual short Execute(); virtual short Execute();
}; };
......
...@@ -148,6 +148,11 @@ void SfxPasswordDialog::SetMinLen( sal_uInt16 nLen ) ...@@ -148,6 +148,11 @@ void SfxPasswordDialog::SetMinLen( sal_uInt16 nLen )
EditModifyHdl( NULL ); EditModifyHdl( NULL );
} }
void SfxPasswordDialog::ShowMinLengthText(bool bShow)
{
mpMinLengthFT->Show(bShow);
}
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
short SfxPasswordDialog::Execute() short SfxPasswordDialog::Execute()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment