summaryrefslogtreecommitdiff
path: root/writerperfect/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-12-14 09:29:22 +0100
committerAndras Timar <andras.timar@collabora.com>2022-12-20 06:40:31 +0000
commit35d8b4c36299df39de36f2c7ade5727fc525eaab (patch)
tree46787c9886a8a18727ee7799020a4c3e0aa529ba /writerperfect/source
parent63eed8ff31311fc266791df48cc03a644f665b11 (diff)
lok: hide customization in EPUB export dialog
Change-Id: I531aba2eb52e74904b6cba82add769d35a8a28c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144150 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144534 Tested-by: Jenkins
Diffstat (limited to 'writerperfect/source')
-rw-r--r--writerperfect/source/writer/EPUBExportDialog.cxx5
-rw-r--r--writerperfect/source/writer/EPUBExportDialog.hxx1
2 files changed, 6 insertions, 0 deletions
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 <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
+#include <comphelper/lok.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/opengrf.hxx>
@@ -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<weld::Entry> m_xInitialCreator;
std::unique_ptr<weld::Entry> m_xLanguage;
std::unique_ptr<weld::Entry> m_xDate;
+ std::unique_ptr<weld::Frame> m_xCustomizeFrame;
};
} // namespace writerperfect