diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-31 10:06:07 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-31 10:09:45 -0500 |
commit | bdb3c21ee5a20046dfd80c486e41ad591b863c1c (patch) | |
tree | 2e5891aa361e95ab7d3b18b4731dbc5ff4452cf2 | |
parent | 19edf0dca7d759f15929f6b701f3e6b6d1e8b955 (diff) |
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
-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() |