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-07-18 17:37:19 +0200
commit3f0b135bdcb8e0eb25cbf532d117729a1519ed97 (patch)
tree4ae794999072c029d6ee4f75f490746c762150eb /vcl
parentd69e830fb874582459134d483e7698d9dad805c6 (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> (cherry picked from commit c565a1a36dc6e75744df284edbb36ffd09edc42b) Reviewed-on: https://gerrit.libreoffice.org/57651
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 63728f65e0b2..7c05e3d230bb 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2302,7 +2302,7 @@ void MessageDialog::SetMessagesWidths(vcl::Window const *pParent,
pPrimaryMessage->SetMaxTextWidth(pPrimaryMessage->approximate_char_width() * 60);
}
-short MessageDialog::Execute()
+void MessageDialog::InitExecute()
{
setDeferredProperties();
@@ -2428,6 +2428,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();
}