diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-20 12:40:10 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-11-20 15:32:35 +0100 |
commit | c4452078ca8142bdaf6ab7a00e039f64915cf35a (patch) | |
tree | f2ead1170d4d9fc17e08b01d5ed0d10b93d1ff8a /svtools | |
parent | 98c678527579d7fdd5a4811d9f5f05ae7fdb282b (diff) |
hide help buttons when LibreOfficeKit::isActive and local help unavailable
Change-Id: Ia263f9f7c78dbf48143678fc2f577402fb1ce998
Reviewed-on: https://gerrit.libreoffice.org/83309
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index 0ec3e014aba3..f6b4c8059db3 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <comphelper/lok.hxx> +#include <officecfg/Office/Common.hxx> #include <svtools/wizardmachine.hxx> #include <svtools/helpids.h> #include <tools/debug.hxx> @@ -119,9 +121,12 @@ namespace svt { m_pImpl->sTitleBase = GetText(); + const bool bHideHelp = comphelper::LibreOfficeKit::isActive() && + officecfg::Office::Common::Help::HelpRootURL::get().isEmpty(); + // create the buttons according to the wizard button flags // the help button - if (_nButtonFlags & WizardButtonFlags::HELP) + if (_nButtonFlags & WizardButtonFlags::HELP && !bHideHelp) { m_pHelp= VclPtr<HelpButton>::Create(this, WB_TABSTOP); m_pHelp->SetSizePixel(LogicToPixel(Size(50, 14), MapMode(MapUnit::MapAppFont))); |