diff options
author | Andras Timar <andras.timar@collabora.com> | 2013-11-13 10:23:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-13 14:06:03 +0000 |
commit | 310396aaa9c8b0e25053decbb673af339eebdec3 (patch) | |
tree | 98cb42e3195536353a5ac38bbe6336658ca46328 | |
parent | ed826bb4ad658a1ce1704f60c474d367945bc033 (diff) |
fdo#59256 hide this option when experimental features are disabled
GTK print dialog is experimental, the checkbox has no effect, if
experimental features are disabled.
On Mac OS X LibreOffice cannot use native print dialog at all.
Change-Id: I7497f1da0ec74b9067675e34eb4314b7a4616f06
Reviewed-on: https://gerrit.libreoffice.org/6664
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/source/options/optgdlg.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 1ae32e158c6a..fbb1cf7d99c6 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -187,8 +187,13 @@ OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet) get(m_pExtHelpCB, "exthelp"); if (!lcl_HasSystemFilePicker()) get<VclContainer>("filedlgframe")->Hide(); -#if !defined(MACOSX) && ! ENABLE_GTK +#if ! ENABLE_GTK get<VclContainer>("printdlgframe")->Hide(); +#else + if (!SvtMiscOptions().IsExperimentalMode()) + { + get<VclContainer>("printdlgframe")->Hide(); + } #endif get(m_pFileDlgCB, "filedlg"); get(m_pPrintDlgCB, "printdlg"); |