tdf#95386 Remove remaining mentions of Help Agent
Replace it with the Help on Help command Change-Id: Ia454a2f6a123b4fb68fda1eae1e07e99ba81487f Reviewed-on: https://gerrit.libreoffice.org/29381 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
parent
481c3a9dd4
commit
d77a23f8bb
@ -78,12 +78,12 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor
|
|||||||
// insert menu entry to sub menu
|
// insert menu entry to sub menu
|
||||||
xSubMenuContainer.insertByIndex(0, xMenuEntry);
|
xSubMenuContainer.insertByIndex(0, xMenuEntry);
|
||||||
|
|
||||||
// intialize help/help agent
|
// intialize help/help on help
|
||||||
// entry "Help Agent"
|
// entry "Help on Help"
|
||||||
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", "Help Agent");
|
xMenuEntry.setPropertyValue("Text", "Help on Help");
|
||||||
xMenuEntry.setPropertyValue("CommandURL", "slot:5962");
|
xMenuEntry.setPropertyValue("CommandURL", "slot:5400");
|
||||||
xMenuEntry.setPropertyValue("HelpURL", "5962");
|
xMenuEntry.setPropertyValue("HelpURL", "5400");
|
||||||
|
|
||||||
// insert menu entry to sub menu
|
// insert menu entry to sub menu
|
||||||
xSubMenuContainer.insertByIndex(1, xMenuEntry);
|
xSubMenuContainer.insertByIndex(1, xMenuEntry);
|
||||||
|
@ -70,7 +70,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
|
|||||||
com.sun.star.text.XTextDocument xDoc =UnoRuntime.queryInterface(com.sun.star.text.XTextDocument.class,
|
com.sun.star.text.XTextDocument xDoc =UnoRuntime.queryInterface(com.sun.star.text.XTextDocument.class,
|
||||||
xComponent);
|
xComponent);
|
||||||
|
|
||||||
String infoMsg = "All context menus of the created document frame contains now a 'Help' entry with the submenus 'Content', 'Help Agent' and 'Tips'.\n\nPress 'Return' in the shell to remove the context menu interceptor and finish the example!";
|
String infoMsg = "All context menus of the created document frame contains now a 'Help' entry with the submenus 'Content', 'Help on Help' and 'Tips'.\n\nPress 'Return' in the shell to remove the context menu interceptor and finish the example!";
|
||||||
xDoc.getText().setString(infoMsg);
|
xDoc.getText().setString(infoMsg);
|
||||||
|
|
||||||
// ensure that the document content is optimal visible
|
// ensure that the document content is optimal visible
|
||||||
@ -101,7 +101,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
|
|||||||
com.sun.star.ui.XContextMenuInterceptor.class, aContextMenuInterceptor );
|
com.sun.star.ui.XContextMenuInterceptor.class, aContextMenuInterceptor );
|
||||||
xContextMenuInterception.registerContextMenuInterceptor( xContextMenuInterceptor );
|
xContextMenuInterception.registerContextMenuInterceptor( xContextMenuInterceptor );
|
||||||
|
|
||||||
System.out.println( "\n ... all context menus of the created document frame contains now a 'Help' entry with the\n submenus 'Content', 'Help Agent' and 'Tips'.\n\nPress 'Return' to remove the context menu interceptor and finish the example!");
|
System.out.println( "\n ... all context menus of the created document frame contains now a 'Help' entry with the\n submenus 'Content', 'Help on Help' and 'Tips'.\n\nPress 'Return' to remove the context menu interceptor and finish the example!");
|
||||||
|
|
||||||
java.io.BufferedReader reader
|
java.io.BufferedReader reader
|
||||||
= new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
|
= new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
|
||||||
@ -196,14 +196,14 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
|
|||||||
// insert menu entry to sub menu
|
// insert menu entry to sub menu
|
||||||
xSubMenuContainer.insertByIndex( 0, xMenuEntry );
|
xSubMenuContainer.insertByIndex( 0, xMenuEntry );
|
||||||
|
|
||||||
// intialize help/help agent
|
// intialize help/help on help
|
||||||
xMenuEntry = UnoRuntime.queryInterface(
|
xMenuEntry = UnoRuntime.queryInterface(
|
||||||
com.sun.star.beans.XPropertySet.class,
|
com.sun.star.beans.XPropertySet.class,
|
||||||
xMenuElementFactory.createInstance(
|
xMenuElementFactory.createInstance(
|
||||||
"com.sun.star.ui.ActionTrigger" ));
|
"com.sun.star.ui.ActionTrigger" ));
|
||||||
xMenuEntry.setPropertyValue( "Text", "Help Agent" );
|
xMenuEntry.setPropertyValue("Text", "Help on Help");
|
||||||
xMenuEntry.setPropertyValue( "CommandURL", "slot:5962" );
|
xMenuEntry.setPropertyValue("CommandURL", "slot:5400");
|
||||||
xMenuEntry.setPropertyValue( "HelpURL", "5962" );
|
xMenuEntry.setPropertyValue("HelpURL", "5400");
|
||||||
|
|
||||||
// insert menu entry to sub menu
|
// insert menu entry to sub menu
|
||||||
xSubMenuContainer.insertByIndex( 1, xMenuEntry );
|
xSubMenuContainer.insertByIndex( 1, xMenuEntry );
|
||||||
|
@ -81,14 +81,14 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
|
|||||||
// insert menu entry to sub menu
|
// insert menu entry to sub menu
|
||||||
xSubMenuContainer.insertByIndex( 0, xMenuEntry );
|
xSubMenuContainer.insertByIndex( 0, xMenuEntry );
|
||||||
|
|
||||||
// intialize help/help agent
|
// intialize help/help on help
|
||||||
// entry "Help Agent"
|
// entry "Help on Help"
|
||||||
xMenuEntry = UnoRuntime.queryInterface(
|
xMenuEntry = UnoRuntime.queryInterface(
|
||||||
XPropertySet.class,
|
XPropertySet.class,
|
||||||
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger" ));
|
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger" ));
|
||||||
xMenuEntry.setPropertyValue( "Text", "Help Agent" );
|
xMenuEntry.setPropertyValue("Text", "Help on Help");
|
||||||
xMenuEntry.setPropertyValue( "CommandURL", "slot:5962" );
|
xMenuEntry.setPropertyValue("CommandURL", "slot:5400");
|
||||||
xMenuEntry.setPropertyValue( "HelpURL", "5962" );
|
xMenuEntry.setPropertyValue("HelpURL", "5400");
|
||||||
|
|
||||||
// insert menu entry to sub menu
|
// insert menu entry to sub menu
|
||||||
xSubMenuContainer.insertByIndex( 1, xMenuEntry );
|
xSubMenuContainer.insertByIndex( 1, xMenuEntry );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user