summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2022-12-14 20:33:18 +0100
committerAndras Timar <andras.timar@collabora.com>2022-12-20 06:40:49 +0000
commit241cd824fdd4bf02f393633c1e19d24f2f35f1c0 (patch)
tree7cb3fdfc6ff34866a8e052ab5d4f61f7c5cb96bc /filter
parent35d8b4c36299df39de36f2c7ade5727fc525eaab (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>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/pdf/impdialog.cxx10
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 )
{