diff options
author | Henry Castro <hcastro@collabora.com> | 2018-03-05 09:03:10 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-03-14 17:21:39 +0100 |
commit | 02e8420af6bd75bf172296ea7f6f94db7b63e0c5 (patch) | |
tree | 4c79f6b96262d6487f09ba8643753c3d0f50c201 /sw | |
parent | f3b26d2e6871e88e6231d5de0bf408f000a50fab (diff) |
lokdialog: more, convert the dialog to async exec
ClassificationDialog -> To trigger this dialog: enable TSCP Classification toolbar
click toolbar item "Classification Dialog"
SwWatermarkDialog -> To trigger this dialog: Format -> Watermark... SwWatermarkDialog
---
Obs: the ClassificationDialog is not implemented in cp-5.3 branch
Change-Id: I835648df8df5ad3ee5a404a582c2179e5b3b276a
Reviewed-on: https://gerrit.libreoffice.org/50771
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/50784
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/app/docsh2.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx index afcd25351308..469239160b26 100644 --- a/sw/source/uibase/app/docsh2.cxx +++ b/sw/source/uibase/app/docsh2.cxx @@ -1185,9 +1185,8 @@ void SwDocShell::Execute(SfxRequest& rReq) { SfxViewShell* pViewShell = GetView()? GetView(): SfxViewShell::Current(); SfxBindings& rBindings( pViewShell->GetViewFrame()->GetBindings() ); - ScopedVclPtr<SwWatermarkDialog> pDlg( VclPtr<SwWatermarkDialog>::Create( nullptr, rBindings ) ); - pDlg->Execute(); - pDlg.disposeAndClear(); + VclPtr<SwWatermarkDialog> pDlg(VclPtr<SwWatermarkDialog>::Create(&GetView()->GetViewFrame()->GetWindow(), rBindings)); + pDlg->StartExecuteAsync([](sal_Int32 /*nResult*/){}); } } } |