[Libreoffice-commits] core.git: sc/source
merttumer (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 4 05:47:09 UTC 2021
sc/source/ui/dbgui/scuiasciiopt.cxx | 7 +++++++
sc/source/ui/inc/scuiasciiopt.hxx | 2 ++
2 files changed, 9 insertions(+)
New commits:
commit 790f7deb17cede31c780b3e296672bbe7577763c
Author: merttumer <mert.tumer at collabora.com>
AuthorDate: Mon Apr 26 06:52:34 2021 +0300
Commit: Mert Tumer <mert.tumer at collabora.com>
CommitDate: Fri Jun 4 07:46:17 2021 +0200
lok: add global notifier to the "Text Import Dialog"
This dialog is displayed before the document is loaded
so no way to get access to the view shell notifier
when model/view/controller are not created yet.
Change-Id: Ic9259b0b1d72b2c4f29b7265742136e650c7b67b
Signed-off-by: merttumer <mert.tumer at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114637
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116293
Tested-by: Jenkins
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx
index 395d2595937b..49c46330bfd9 100644
--- a/sc/source/ui/dbgui/scuiasciiopt.cxx
+++ b/sc/source/ui/dbgui/scuiasciiopt.cxx
@@ -36,6 +36,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <miscuno.hxx>
#include <osl/diagnose.h>
+#include <vcl/svapp.hxx>
#include <unicode/ucsdet.h>
@@ -527,6 +528,12 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, const OUString& aDatNa
mxCkbSkipEmptyCells->set_active(false);
mxCkbSkipEmptyCells->hide();
}
+ m_xDialog->SetInstallLOKNotifierHdl(LINK(this, ScImportAsciiDlg, InstallLOKNotifierHdl));
+}
+
+IMPL_STATIC_LINK_NOARG(ScImportAsciiDlg, InstallLOKNotifierHdl, void*, vcl::ILibreOfficeKitNotifier*)
+{
+ return GetpApp();
}
ScImportAsciiDlg::~ScImportAsciiDlg()
diff --git a/sc/source/ui/inc/scuiasciiopt.hxx b/sc/source/ui/inc/scuiasciiopt.hxx
index 5064243ae58e..140ca09122d0 100644
--- a/sc/source/ui/inc/scuiasciiopt.hxx
+++ b/sc/source/ui/inc/scuiasciiopt.hxx
@@ -114,6 +114,8 @@ private:
DECL_LINK( LbColTypeHdl, weld::ComboBox&, void );
DECL_LINK( UpdateTextHdl, ScCsvTableBox&, void );
DECL_LINK( ColTypeHdl, ScCsvTableBox&, void );
+ DECL_STATIC_LINK(ScImportAsciiDlg, InstallLOKNotifierHdl, void*, vcl::ILibreOfficeKitNotifier*);
+
};
inline bool ScImportAsciiDlg::Seek(sal_uLong nPos)
More information about the Libreoffice-commits
mailing list