diff options
author | merttumer <mert.tumer@collabora.com> | 2021-04-26 06:52:34 +0300 |
---|---|---|
committer | Mert Tumer <mert.tumer@collabora.com> | 2021-05-31 05:51:39 +0200 |
commit | 4cb1998f2a0715aa512dbc7c7902cad16bb4fe16 (patch) | |
tree | 90c527147a85d825959c146813d486f915a55c94 /sc | |
parent | a253c5823bf8b8de13a091eac315f4cb0d9c4dd2 (diff) |
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@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114637
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116303
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 7 | ||||
-rw-r--r-- | sc/source/ui/inc/scuiasciiopt.hxx | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index be524ab15437..564b167fe58e 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/uclean.h> #include <unicode/ucsdet.h> @@ -528,6 +529,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 d327d81947bf..65718323f1ed 100644 --- a/sc/source/ui/inc/scuiasciiopt.hxx +++ b/sc/source/ui/inc/scuiasciiopt.hxx @@ -115,6 +115,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) |