diff options
author | Andras Timar <andras.timar@collabora.com> | 2022-12-14 20:33:18 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-12-20 06:40:49 +0000 |
commit | 241cd824fdd4bf02f393633c1e19d24f2f35f1c0 (patch) | |
tree | 7cb3fdfc6ff34866a8e052ab5d4f61f7c5cb96bc | |
parent | 35d8b4c36299df39de36f2c7ade5727fc525eaab (diff) |
lok: hide 'View PDF after export' checkbox in PDF export dialog
Change-Id: I866e4765ba88ca6c93375c9fecd51f22b79ce72e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144535
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | filter/source/pdf/impdialog.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index 2d8a366ae868..4a03de89fdef 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -632,7 +632,15 @@ void ImpPDFTabGeneralPage::SetFilterConfigItem(ImpPDFTabDialog* pParent) mxCbExportNotes->set_active( pParent->mbExportNotes ); mxCbExportNotesInMargin->set_active( pParent->mbExportNotesInMargin ); - mxCbViewPDF->set_active( pParent->mbViewPDF); + if (comphelper::LibreOfficeKit::isActive()) + { + mxCbViewPDF->hide(); + mxCbViewPDF->set_active(false); + } + else + { + mxCbViewPDF->set_active(pParent->mbViewPDF); + } if ( mbIsPresentation ) { |