Built-in templates cannot be edited or renamed. Enhancement: Context menu items should not be active for built-in templates.
Agree. Shouldn't be too difficult... sfx2/source/doc/templatedlg.cxx
https://gerrit.libreoffice.org/c/core/+/107611
Vert D committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/86f3fa919a6de6767177193d5b7714f8f6dbd5c4 tdf#138246 Disable edit rename delete contextmenu items for built-in templates It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to Commit Notification from comment #3) > Vert D committed a patch related to this issue. > Affected users are encouraged to test the fix and report feedback. LGTM. "system" templates only have "Open" and "Set as Default" in context menu (which exhaust the permissible actions), while user-defined actions have the full set of possible actions in the context. Appears properly both in Thumbnail and List View, and all commands work as expected.
*** Bug 134140 has been marked as a duplicate of this bug. ***
*** Bug 103620 has been marked as a duplicate of this bug. ***
(In reply to Commit Notification from comment #3) > Affected users are encouraged to test the fix and report feedback. @Heiko -- iirc -- your preference is that context menus should show all possible actions, but grey-out those actions which cannot be applied. The present patch simply eliminates showing the controls for predefined templates. Perhaps you would prefer that they are visible, but deactivated?
(In reply to sdc.blanco from comment #7) > (In reply to Commit Notification from comment #3) > > Affected users are encouraged to test the fix and report feedback. > @Heiko -- iirc -- your preference is that context menus should show all > possible actions, but grey-out those actions which cannot be applied. > > The present patch simply eliminates showing the controls for predefined > templates. > Perhaps you would prefer that they are visible, but deactivated? Absolutely. Disabling means that they are greyed out. If they were removed, then the change is not correct.
Thought set_sensitive() does exactly this, disabling the entry.
I think for gtk3 set_sensitive disabled greys out the item, for win, x11, qt5 it is removed.
Here is where this is made so: https://opengrok.libreoffice.org/xref/core/vcl/source/window/menu.cxx?r=cf730619#2903
Confirming the different behavior in gtk3 and qt5 VCL plugins on Ubuntu 20.04. Start LibreOffice with qt5 VCL plugin: SAL_USE_VCLPLUGIN=qt5 ./instdir/program/soffice.bin then go to Templates > Manage Templates. In gtk3, 'Edit', 'Rename' and 'Delete' buttons are grayed out, but in qt5, these buttons are removed.
Re-evaluating the EasyHack in 2022 This enhancement is still relevant. The behavior in Qt5 is still different.