[Libreoffice-commits] .: Branch 'feature/pdf-signing' - filter/source

Gökcen Eraslan gokcen at kemper.freedesktop.org
Sat Jun 30 07:42:39 PDT 2012


 filter/source/pdf/impdialog.cxx |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

New commits:
commit 863cf84802ad387899f1d337fe20d907edfdc1a5
Author: Gökçen Eraslan <gokcen.eraslan at gmail.com>
Date:   Sat Jun 30 17:41:32 2012 +0300

    Show signing GUI in experimentalmode only.
    
    Change-Id: I5e4481d75eca357235eadc99bac170dec488045f

diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 259b958..6740143 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -32,6 +32,7 @@
 #include "vcl/svapp.hxx"
 #include "vcl/msgbox.hxx"
 #include "sfx2/passwd.hxx"
+#include "svtools/miscopt.hxx"
 
 #include "comphelper/storagehelper.hxx"
 
@@ -260,6 +261,11 @@ ImpPDFTabDialog::ImpPDFTabDialog( Window* pParent,
     AddTabPage( RID_PDF_TAB_VPREFER, ImpPDFTabViewerPage::Create, 0 );
     AddTabPage( RID_PDF_TAB_OPNFTR, ImpPDFTabOpnFtrPage::Create, 0 );
 
+//remove tabpage if experimentalmode is not set
+    SvtMiscOptions aMiscOptions;
+    if (!aMiscOptions.IsExperimentalMode())
+        RemoveTabPage( RID_PDF_TAB_SIGNING );
+
 //last queued is the first to be displayed (or so it seems..)
     AddTabPage( RID_PDF_TAB_GENER, ImpPDFTabGeneralPage::Create, 0 );
 
@@ -294,7 +300,11 @@ ImpPDFTabDialog::~ImpPDFTabDialog()
     RemoveTabPage( RID_PDF_TAB_OPNFTR );
     RemoveTabPage( RID_PDF_TAB_LINKS );
     RemoveTabPage( RID_PDF_TAB_SECURITY );
-    RemoveTabPage( RID_PDF_TAB_SIGNING );
+
+//remove tabpage if experimentalmode is set
+    SvtMiscOptions aMiscOptions;
+    if (aMiscOptions.IsExperimentalMode())
+        RemoveTabPage( RID_PDF_TAB_SIGNING );
 }
 
 // -----------------------------------------------------------------------------


More information about the Libreoffice-commits mailing list