framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java   |    
4 ++--
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java |   
10 +++++-----
 qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java                            |    
2 +-
 qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java           |    
2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 31ca96ff3075343c8d0c334fc77a9d0969986d77
Author:     apurvapriyadarshi <apriyadarshi.1...@gmail.com>
AuthorDate: Wed Sep 20 23:37:21 2023 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Mon Sep 25 13:04:27 2023 +0200

    tdf#146150 Use dispatch cmd for the corresponding SID
    
    Change-Id: I0d987a8b10f2c69192d080b534a1d6aa71a6cf4d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157105
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git 
a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java 
b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
index 7496b58e080b..b376b715a1eb 100644
--- a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
+++ b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
@@ -72,7 +72,7 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor
                 // entry "Content"
                 XPropertySet xMenuEntry = 
UnoRuntime.queryInterface(XPropertySet.class, 
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger"));
                 xMenuEntry.setPropertyValue("Text", "Content");
-                xMenuEntry.setPropertyValue("CommandURL", "slot:5401");
+                xMenuEntry.setPropertyValue("CommandURL", ".uno:HelpIndex");
                 xMenuEntry.setPropertyValue("HelpURL", "5401");
 
                 // insert menu entry to sub menu
@@ -91,7 +91,7 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor
                 // entry "Tips"
                 xMenuEntry = 
UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, 
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger"));
                 xMenuEntry.setPropertyValue("Text", "Tips");
-                xMenuEntry.setPropertyValue("CommandURL", "slot:5404");
+                xMenuEntry.setPropertyValue("CommandURL", ".uno:HelpTip");
                 xMenuEntry.setPropertyValue("HelpURL", "5404");
 
                 // insert menu entry to sub menu
diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
index 92ae178adc59..076669014d83 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
@@ -67,11 +67,11 @@ public class StatusView extends    JPanel
      * const
      * These URL's describe available feature states.
      */
-    private static final String FEATUREURL_FONT      = "slot:10007";
-    private static final String FEATUREURL_SIZE      = "slot:10015";
-    private static final String FEATUREURL_BOLD      = "slot:10009";
-    private static final String FEATUREURL_ITALIC    = "slot:10008";
-    private static final String FEATUREURL_UNDERLINE = "slot:10014";
+    private static final String FEATUREURL_FONT      = ".uno:CharFontName";
+    private static final String FEATUREURL_SIZE      = ".uno:FontHeight";
+    private static final String FEATUREURL_BOLD      = ".uno:Bold";
+    private static final String FEATUREURL_ITALIC    = ".uno:Italic";
+    private static final String FEATUREURL_UNDERLINE = ".uno:Underline";
 
 
 
diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java 
b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java
index fc4bd27c1a88..dd4e0298e125 100644
--- a/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java
+++ b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java
@@ -214,7 +214,7 @@ public class SdUnoDrawView extends TestCase {
         XController secondController = aModel.getCurrentController();
         tEnv.addObjRelation("SecondController", secondController);
         tEnv.addObjRelation("XDispatchProvider.URL",
-                                    "slot:27009");
+                                    ".uno:DrawingMode");
 
         //Adding relations for DrawingDocumentDrawView
         XDrawPage new_page = the_pages.insertNewByIndex(1);
diff --git a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java 
b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java
index e2b3581d4a06..64eb954aae1e 100644
--- a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java
+++ b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java
@@ -100,7 +100,7 @@ public class SvxGraphCtrlAccessibleContext extends TestCase{
 
         //Opening ImageMapDialog
         try {
-            String aSlotID = "slot:10371";
+            String aSlotID = ".uno:ImageMapDialog";
             XDispatchProvider xDispProv = UnoRuntime.queryInterface( 
XDispatchProvider.class, xController );
             XURLTransformer xParser = 
UnoRuntime.queryInterface(XURLTransformer.class,
          Param.getMSF().createInstance("com.sun.star.util.URLTransformer"));

Reply via email to