diff options
-rw-r--r-- | filter/source/pdf/impdialog.cxx | 1 | ||||
-rw-r--r-- | sfx2/inc/sfx2/passwd.hxx | 3 | ||||
-rw-r--r-- | sfx2/source/dialog/passwd.cxx | 5 |
3 files changed, 9 insertions, 0 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index 43890deae91a..e9e16e2f6bac 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -1287,6 +1287,7 @@ IMPL_LINK_NOARG(ImpPDFTabSecurityPage, ClickmaPbSetPwdHdl) { SfxPasswordDialog aPwdDialog( this, &msUserPwdTitle ); aPwdDialog.SetMinLen( 0 ); + aPwdDialog.ShowMinLengthText(false); aPwdDialog.ShowExtras( SHOWEXTRAS_CONFIRM | SHOWEXTRAS_PASSWORD2 | SHOWEXTRAS_CONFIRM2 ); aPwdDialog.SetText( maStrSetPwd ); aPwdDialog.SetGroup2Text( msOwnerPwdTitle ); diff --git a/sfx2/inc/sfx2/passwd.hxx b/sfx2/inc/sfx2/passwd.hxx index 856916a4189b..1f10c7416b98 100644 --- a/sfx2/inc/sfx2/passwd.hxx +++ b/sfx2/inc/sfx2/passwd.hxx @@ -112,6 +112,9 @@ public: { mbAsciiOnly = i_bAsciiOnly; } + + void ShowMinLengthText(bool bShow); + virtual short Execute(); }; diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx index b02eaad1c579..239713670d74 100644 --- a/sfx2/source/dialog/passwd.cxx +++ b/sfx2/source/dialog/passwd.cxx @@ -148,6 +148,11 @@ void SfxPasswordDialog::SetMinLen( sal_uInt16 nLen ) EditModifyHdl( NULL ); } +void SfxPasswordDialog::ShowMinLengthText(bool bShow) +{ + mpMinLengthFT->Show(bShow); +} + // ----------------------------------------------------------------------- short SfxPasswordDialog::Execute() |