Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@gmail.com>

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.