https://bugs.documentfoundation.org/show_bug.cgi?id=41775

--- Comment #28 from Patrick (volunteer) <[email protected]> ---
(In reply to Heiko Tietze from comment #27)
> Patrick, do you have an idea about this? Keeping File, Tools, and Help
> always visible sounds reasonable to me.

I think this is feasible. I found where this menu is created in the LibreOffice
code and replaced the UNO command for the "Template Manager" menu item (see
debug patch below for a sample). I tried the UNO commands that are used in the
Start Center's Tools > Options and Help menus for a quick test. Those worked so
I am confident that most of the Start Center's menus can be used when all
windows are closed.

Looks like this menu is a hardcoded list (no menubar.xml) loaded so when I get
some time, I will see if I can replace the hardcoded list with loading the
menus from the Start Center's menubar.xml. If I can do that, then I can see
which, if any, menu items don't work without a window:


diff --git a/sfx2/source/appl/shutdownicon.cxx
b/sfx2/source/appl/shutdownicon.cxx
index b16be15bcf70..c07a0d04c652 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -213,7 +213,8 @@ void ShutdownIcon::FromTemplate()
         xFrame = xDesktop;

     URL aTargetURL;
-    aTargetURL.Complete = ".uno:NewDoc";
+    // aTargetURL.Complete = ".uno:NewDoc";
+    aTargetURL.Complete = ".uno:HelpIndex";
     css::uno::Reference< util::XURLTransformer > xTrans(
util::URLTransformer::create( ::comphelper::getProcessComponentContext() ) );
     xTrans->parseStrict( aTargetURL );

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to