summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-02-18 15:41:56 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2020-05-12 19:49:36 +0200
commitad991bce9707e810c38c4897933875886a6b37b0 (patch)
treecfb644cf50fd88689cb29fa097da9eda4c9e95ba /sfx2/source
parentfe58fc543bea0a7b370f1df503ce59d83d8b3e2c (diff)
Create weld::Builder implementation for JSDialog
and use for WordCountDialog on mobile Change-Id: I12c3455ff9b16c30918067f9282b72f49141a308 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94041 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/basedlgs.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 7ad50b9b86ad..d593c2596466 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -40,6 +40,8 @@
#include <sfx2/viewsh.hxx>
#include <sfx2/sfxhelp.hxx>
#include <workwin.hxx>
+#include <sfx2/lokhelper.hxx>
+#include <comphelper/lok.hxx>
using namespace ::com::sun::star::uno;
@@ -835,7 +837,10 @@ void SfxSingleTabDialog::SetTabPage(SfxTabPage* pTabPage)
SfxDialogController::SfxDialogController(weld::Widget* pParent, const OUString& rUIFile,
const OString& rDialogId)
- : GenericDialogController(pParent, rUIFile, rDialogId)
+ : GenericDialogController(pParent, rUIFile, rDialogId,
+ comphelper::LibreOfficeKit::isActive()
+ && SfxViewShell::Current()
+ && SfxViewShell::Current()->isLOKMobilePhone())
{
m_xDialog->SetInstallLOKNotifierHdl(LINK(this, SfxDialogController, InstallLOKNotifierHdl));
}