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
This commit is contained in:
Szymon Kłos 2022-12-14 09:29:22 +01:00 committed by Andras Timar
parent 63eed8ff31
commit 35d8b4c362
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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