From 35d8b4c36299df39de36f2c7ade5727fc525eaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Wed, 14 Dec 2022 09:29:22 +0100 Subject: [PATCH] lok: hide customization in EPUB export dialog Change-Id: I531aba2eb52e74904b6cba82add769d35a8a28c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144150 Tested-by: Jenkins CollaboraOffice Reviewed-by: Andras Timar Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144534 Tested-by: Jenkins --- writerperfect/source/writer/EPUBExportDialog.cxx | 5 +++++ writerperfect/source/writer/EPUBExportDialog.hxx | 1 + 2 files changed, 6 insertions(+) diff --git a/writerperfect/source/writer/EPUBExportDialog.cxx b/writerperfect/source/writer/EPUBExportDialog.cxx index 0bba77a1898b..ecea590ac831 100644 --- a/writerperfect/source/writer/EPUBExportDialog.cxx +++ b/writerperfect/source/writer/EPUBExportDialog.cxx @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -92,6 +93,7 @@ EPUBExportDialog::EPUBExportDialog(weld::Window* pParent, , m_xInitialCreator(m_xBuilder->weld_entry("author")) , m_xLanguage(m_xBuilder->weld_entry("language")) , m_xDate(m_xBuilder->weld_entry("date")) + , m_xCustomizeFrame(m_xBuilder->weld_frame("customize")) { assert(PositionToVersion(m_xVersion->get_active()) == EPUBExportFilter::GetDefaultVersion()); @@ -154,6 +156,9 @@ EPUBExportDialog::EPUBExportDialog(weld::Window* pParent, } m_xOKButton->connect_clicked(LINK(this, EPUBExportDialog, OKClickHdl)); + + if (comphelper::LibreOfficeKit::isActive()) + m_xCustomizeFrame->hide(); } IMPL_LINK_NOARG(EPUBExportDialog, VersionSelectHdl, weld::ComboBox&, void) diff --git a/writerperfect/source/writer/EPUBExportDialog.hxx b/writerperfect/source/writer/EPUBExportDialog.hxx index 9e11d5351559..440c74d1176e 100644 --- a/writerperfect/source/writer/EPUBExportDialog.hxx +++ b/writerperfect/source/writer/EPUBExportDialog.hxx @@ -54,6 +54,7 @@ private: std::unique_ptr m_xInitialCreator; std::unique_ptr m_xLanguage; std::unique_ptr m_xDate; + std::unique_ptr m_xCustomizeFrame; }; } // namespace writerperfect