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

New commits:
commit 63eed8ff31311fc266791df48cc03a644f665b11
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Dec 14 09:18:11 2022 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Tue Dec 20 06:40:11 2022 +0000

    lok: hide signatures in PDF export dialog
    
    Change-Id: Idd67e7ffe4dffc89555d75773501908165cbdd7b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144149
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144513
    Tested-by: Jenkins

diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index a02412ac6caa..2d8a366ae868 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -28,6 +28,7 @@
 #include <sfx2/objsh.hxx>
 #include <svx/AccessibilityCheckDialog.hxx>
 
+#include <comphelper/lok.hxx>
 #include <comphelper/propertyvalue.hxx>
 #include <comphelper/sequence.hxx>
 #include <comphelper/storagehelper.hxx>
@@ -250,7 +251,10 @@ ImpPDFTabDialog::ImpPDFTabDialog(weld::Window* pParent, 
const Sequence< Property
 
     // queue the tab pages for later creation (created when first shown)
     AddTabPage("general", ImpPDFTabGeneralPage::Create, nullptr );
-    AddTabPage("digitalsignatures", ImpPDFTabSigningPage::Create, nullptr);
+    if (comphelper::LibreOfficeKit::isActive())
+        m_xTabCtrl->remove_page("digitalsignatures");
+    else
+        AddTabPage("digitalsignatures", ImpPDFTabSigningPage::Create, nullptr);
     AddTabPage("security", ImpPDFTabSecurityPage::Create, nullptr);
     AddTabPage("links", ImpPDFTabLinksPage::Create, nullptr);
     AddTabPage("userinterface", ImpPDFTabViewerPage::Create, nullptr);

Reply via email to