summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg/scdlgfact.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2022-11-01 21:43:08 +0000
committerMichael Meeks <michael.meeks@collabora.com>2022-11-02 15:19:00 +0100
commitd4b5689c18f9bc10e6b552ba7f20b0af2b36d170 (patch)
tree2fcb67fc9dcf4abe0e2afe5ad2f0048867f0fadb /sc/source/ui/attrdlg/scdlgfact.cxx
parent8304f44ce161f14094f724098004a1b4289685c4 (diff)
sc: make InsertCell and DeleteCell async.
Also enable them for use with jsdialogs. Change-Id: I378f228e86959edb98ad691089af919330dcdcec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142144 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/ui/attrdlg/scdlgfact.cxx')
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx
index 8b59e672ca12..722c3b8c29e4 100644
--- a/sc/source/ui/attrdlg/scdlgfact.cxx
+++ b/sc/source/ui/attrdlg/scdlgfact.cxx
@@ -137,6 +137,11 @@ short AbstractScDeleteCellDlg_Impl::Execute()
return m_xDlg->run();
}
+bool AbstractScDeleteCellDlg_Impl::StartExecuteAsync(AsyncContext& rCtx)
+{
+ return ScDeleteCellDlg::runAsync(m_xDlg, rCtx.maEndDialogFn);
+}
+
//for dataform
short AbstractScDataFormDlg_Impl::Execute()
{
@@ -174,6 +179,11 @@ short AbstractScInsertCellDlg_Impl::Execute()
return m_xDlg->run();
}
+bool AbstractScInsertCellDlg_Impl::StartExecuteAsync(AsyncContext& rCtx)
+{
+ return ScInsertCellDlg::runAsync(m_xDlg, rCtx.maEndDialogFn);
+}
+
short AbstractScInsertContentsDlg_Impl::Execute()
{
return m_xDlg->run();