summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-02-21 15:21:43 +0530
committerJan Holesovsky <kendy@collabora.com>2018-02-21 17:01:13 +0100
commitc565a1a36dc6e75744df284edbb36ffd09edc42b (patch)
tree570763cc6610435868181c3718bbb12cd3106c51 /vcl
parentf2d3192e8a4ae743fcaab27ab6d829d57ae8fb60 (diff)
lokdialog: Convert InfoReadonlyDialog -> execute async
Change-Id: I3f2e7fb676911570276f66d000c91ca3ef2bdeb0 Reviewed-on: https://gerrit.libreoffice.org/50096 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/layout.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index a0e0002c57be..d7c584bcefc1 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2310,7 +2310,7 @@ void MessageDialog::SetMessagesWidths(vcl::Window *pParent,
pPrimaryMessage->SetMaxTextWidth(pPrimaryMessage->approximate_char_width() * 60);
}
-short MessageDialog::Execute()
+void MessageDialog::InitExecute()
{
setDeferredProperties();
@@ -2436,6 +2436,17 @@ short MessageDialog::Execute()
pButtonBox->sort_native_button_order();
m_pGrid->Show();
}
+}
+
+bool MessageDialog::StartExecuteAsync(const std::function<void(sal_Int32)> &rEndDialogFn)
+{
+ InitExecute();
+ return Dialog::StartExecuteAsync(rEndDialogFn);
+}
+
+short MessageDialog::Execute()
+{
+ InitExecute();
return Dialog::Execute();
}