diff options
author | rash419 <rashesh.padia@collabora.com> | 2022-04-13 16:20:36 +0530 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2022-11-20 10:40:16 +0100 |
commit | ba5e0013e74f072300e808e4d8d679b6f42bff92 (patch) | |
tree | 46ed7479019c69119f415b7b072814749802bdd3 /sfx2 | |
parent | 64d4275b60d50a87fb2bf4dd45be3c28902cec52 (diff) |
jsdialogs: added WidgetTestDialog to test different vcl widgets in online side
Signed-off-by: rash419 <rashesh.padia@collabora.com>
Change-Id: I27cbb72b4ccd486b58934503b1d3d5d7ff47cbfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132865
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142970
Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/sdi/appslots.sdi | 4 | ||||
-rw-r--r-- | sfx2/sdi/sfx.sdi | 17 | ||||
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 11 |
3 files changed, 32 insertions, 0 deletions
diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi index 5503c624e84c..daa0a86265e0 100644 --- a/sfx2/sdi/appslots.sdi +++ b/sfx2/sdi/appslots.sdi @@ -60,6 +60,10 @@ interface Application [ ExecMethod = MiscExec_Impl ; ] + SID_WIDGET_TEST_DIALOG // ole(no) api(final/play/rec) + [ + ExecMethod = MiscExec_Impl ; + ] SID_CONFIG // ole(no) api(final/play/rec) [ ExecMethod = MiscExec_Impl ; diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi index 5c049fdc1a58..5da078252261 100644 --- a/sfx2/sdi/sfx.sdi +++ b/sfx2/sdi/sfx.sdi @@ -5771,3 +5771,20 @@ SfxBoolItem ToolbarLock SID_TOOLBAR_LOCK ToolBoxConfig = TRUE, GroupId = SfxGroupId::Application; ] + +SfxVoidItem WidgetTestDialog SID_WIDGET_TEST_DIALOG +() +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Application; +] diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 4727f9413684..17e677277e9f 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -638,6 +638,17 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) break; } #endif + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + case SID_WIDGET_TEST_DIALOG: + { + SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); + VclPtr<VclAbstractDialog> pDlg(pFact->CreateWidgetTestDialog(rReq.GetFrameWeld())); + pDlg->StartExecuteAsync([pDlg](sal_Int32 /*nResult*/){ + pDlg->disposeOnce(); + }); + bDone = true; + break; + } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - case SID_ABOUT: |