Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


On Mon, 2020-05-18 at 15:13 +0100, KKing wrote:
Could someone point me to where in the codebase the default Menus get
built?

There are a couple of things want to look at, but one of the main 
requests we get is if the old school list of 9 most recent documents
(or we have had variation request of 9 favourite) can be assigned to
the file menu so it is easier and quicker to just use keyboard to get
access to the files e.g.  Alt+F-2   would load the 2nd most recent
document.

FWIW, sw/uiconfig/swriter/menubar/menubar.xml describes the default
writer menus. You can see that the recently used menu parent entry is
"uno:RecentFileList", that submenu is "special" in that RecentFileList
appears in
officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu as
having a special controller of
"com.sun.star.comp.framework.RecentFilesMenuController" and that
corresponds to framework/source/uielement/recentfilesmenucontroller.cxx
which has RecentFilesMenuController::fillPopupMenu which puts the
recently used entries into that special submenu.

I'm not personally aware if it's possible, given the byzantine menu
description system, to have a dynamic/mru section in the toplevel File
menu


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.