Change in core[libreoffice-4-0]: bnc#437516: Hide minimum password info in the password dialo...

Kohei Yoshida (via Code Review) gerrit at gerrit.libreoffice.org
Thu Jan 31 07:09:50 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1946

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/46/1946/1

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
---
M filter/source/pdf/impdialog.cxx
M sfx2/inc/sfx2/passwd.hxx
M sfx2/source/dialog/passwd.cxx
3 files changed, 9 insertions(+), 0 deletions(-)



diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 870209f..1304c5e 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -1288,6 +1288,7 @@
 {
     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 856916a..1f10c74 100644
--- a/sfx2/inc/sfx2/passwd.hxx
+++ b/sfx2/inc/sfx2/passwd.hxx
@@ -112,6 +112,9 @@
     {
         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 39b4096..40d6d08 100644
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -148,6 +148,11 @@
     EditModifyHdl( NULL );
 }
 
+void SfxPasswordDialog::ShowMinLengthText(bool bShow)
+{
+    mpMinLengthFT->Show(bShow);
+}
+
 // -----------------------------------------------------------------------
 
 short SfxPasswordDialog::Execute()

-- 
To view, visit https://gerrit.libreoffice.org/1946
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife2d3a7b508ba2e077018d11478ad680d18d3f0d
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Kohei Yoshida <kohei.yoshida at gmail.com>


More information about the LibreOffice mailing list