summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorhomeboy445 <akshitsan13@gmail.com>2021-06-17 17:42:41 +0530
committerTomaž Vajngerl <quikee@gmail.com>2021-06-29 06:14:59 +0200
commitdf3ed584b025b8a87a8a3042a04ac8c12ebe4f26 (patch)
tree14279a51292a90848cbe780393a32ffd639c7b86 /sfx2
parent7c95c16deba975b0b282ccea1fbfcfadd7aa28b3 (diff)
Added a UI dialog box for running the VCL backend tests
The UI dialog box will allow the user to run the VCL graphics tests and will allow them to view the results as well. Change-Id: Ice289444ff425496a3e400a4c2bc06c307168c62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117384 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/sdi/appslots.sdi4
-rw-r--r--sfx2/sdi/sfx.sdi16
-rw-r--r--sfx2/source/appl/appserv.cxx9
3 files changed, 29 insertions, 0 deletions
diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi
index af5e394f3fb2..bf3f450a303d 100644
--- a/sfx2/sdi/appslots.sdi
+++ b/sfx2/sdi/appslots.sdi
@@ -25,6 +25,10 @@ interface Application
[
ExecMethod = MiscExec_Impl ;
]
+ SID_GRAPHICTEST_DIALOG
+ [
+ ExecMethod = MiscExec_Impl ;
+ ]
SID_SETOPTIONS
[
ExecMethod = MiscExec_Impl ;
diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi
index 79476c68fa7f..92add9f2abf0 100644
--- a/sfx2/sdi/sfx.sdi
+++ b/sfx2/sdi/sfx.sdi
@@ -134,6 +134,22 @@ SfxVoidItem About SID_ABOUT
GroupId = SfxGroupId::Application;
]
+SfxVoidItem GraphicTestDialog SID_GRAPHICTEST_DIALOG
+()
+[
+ AutoUpdate = FALSE,
+ FastCall = FALSE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ ToolBoxConfig = TRUE,
+ GroupId = SfxGroupId::Application;
+]
SfxVoidItem Activate SID_ACTIVATE
()
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 098f705410a4..fa2ec85a99c3 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -626,6 +626,15 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
break;
}
+ case SID_GRAPHICTEST_DIALOG:
+ {
+ SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
+ ScopedVclPtr<VclAbstractDialog> pDlg(pFact->CreateGraphicTestsDialog(rReq.GetFrameWeld()));
+ pDlg->Execute();
+ bDone = true;
+ break;
+ }
+
case SID_TEMPLATE_MANAGER:
{
SfxTemplateManagerDlg aDialog(rReq.GetFrameWeld());