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.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
apurvapriyadarshi 2023-09-20 23:37:21 +05:30 committed by Ilmari Lauhakangas
parent fca39498df
commit 31ca96ff30
4 changed files with 9 additions and 9 deletions

View File

@ -72,7 +72,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor
// entry "Content" // entry "Content"
XPropertySet xMenuEntry = UnoRuntime.queryInterface(XPropertySet.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger")); XPropertySet xMenuEntry = UnoRuntime.queryInterface(XPropertySet.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger"));
xMenuEntry.setPropertyValue("Text", "Content"); xMenuEntry.setPropertyValue("Text", "Content");
xMenuEntry.setPropertyValue("CommandURL", "slot:5401"); xMenuEntry.setPropertyValue("CommandURL", ".uno:HelpIndex");
xMenuEntry.setPropertyValue("HelpURL", "5401"); xMenuEntry.setPropertyValue("HelpURL", "5401");
// insert menu entry to sub menu // insert menu entry to sub menu
@ -91,7 +91,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor
// entry "Tips" // entry "Tips"
xMenuEntry = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger")); xMenuEntry = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger"));
xMenuEntry.setPropertyValue("Text", "Tips"); xMenuEntry.setPropertyValue("Text", "Tips");
xMenuEntry.setPropertyValue("CommandURL", "slot:5404"); xMenuEntry.setPropertyValue("CommandURL", ".uno:HelpTip");
xMenuEntry.setPropertyValue("HelpURL", "5404"); xMenuEntry.setPropertyValue("HelpURL", "5404");
// insert menu entry to sub menu // insert menu entry to sub menu

View File

@ -67,11 +67,11 @@ public class StatusView extends JPanel
* const * const
* These URL's describe available feature states. * These URL's describe available feature states.
*/ */
private static final String FEATUREURL_FONT = "slot:10007"; private static final String FEATUREURL_FONT = ".uno:CharFontName";
private static final String FEATUREURL_SIZE = "slot:10015"; private static final String FEATUREURL_SIZE = ".uno:FontHeight";
private static final String FEATUREURL_BOLD = "slot:10009"; private static final String FEATUREURL_BOLD = ".uno:Bold";
private static final String FEATUREURL_ITALIC = "slot:10008"; private static final String FEATUREURL_ITALIC = ".uno:Italic";
private static final String FEATUREURL_UNDERLINE = "slot:10014"; private static final String FEATUREURL_UNDERLINE = ".uno:Underline";

View File

@ -214,7 +214,7 @@ public class SdUnoDrawView extends TestCase {
XController secondController = aModel.getCurrentController(); XController secondController = aModel.getCurrentController();
tEnv.addObjRelation("SecondController", secondController); tEnv.addObjRelation("SecondController", secondController);
tEnv.addObjRelation("XDispatchProvider.URL", tEnv.addObjRelation("XDispatchProvider.URL",
"slot:27009"); ".uno:DrawingMode");
//Adding relations for DrawingDocumentDrawView //Adding relations for DrawingDocumentDrawView
XDrawPage new_page = the_pages.insertNewByIndex(1); XDrawPage new_page = the_pages.insertNewByIndex(1);

View File

@ -100,7 +100,7 @@ public class SvxGraphCtrlAccessibleContext extends TestCase{
//Opening ImageMapDialog //Opening ImageMapDialog
try { try {
String aSlotID = "slot:10371"; String aSlotID = ".uno:ImageMapDialog";
XDispatchProvider xDispProv = UnoRuntime.queryInterface( XDispatchProvider.class, xController ); XDispatchProvider xDispProv = UnoRuntime.queryInterface( XDispatchProvider.class, xController );
XURLTransformer xParser = UnoRuntime.queryInterface(XURLTransformer.class, XURLTransformer xParser = UnoRuntime.queryInterface(XURLTransformer.class,
Param.getMSF().createInstance("com.sun.star.util.URLTransformer")); Param.getMSF().createInstance("com.sun.star.util.URLTransformer"));