Bug 113439 - [UX] Add a Show/hide entry in context menu of layers tabs in Draw
Summary: [UX] Add a Show/hide entry in context menu of layers tabs in Draw
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Heiko Tietze
URL:
Whiteboard: target:7.6.0 inReleaseNotes:7.6
Keywords:
Depends on:
Blocks: Context-Menu Layers
  Show dependency treegraph
 
Reported: 2017-10-25 10:56 UTC by Olivier Hallot
Modified: 2023-05-09 13:27 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2017-10-25 10:56:38 UTC
Recently I used Draw on a file with several layers.

I miss a simple entry "Show/hide layer" or "toggle layer visibility" command in the context menu of the layer tabs.

Currently to hide or show the layer, one has to enter in Modify command dialog, check/uncheck the Visible checkbox and click OK.
Comment 1 Heiko Tietze 2017-10-25 19:36:38 UTC
Shift+left click toggles layer's visibility, but it would be really good to show this shortcut in a context menu.
Comment 2 Regina Henschel 2018-04-08 08:52:21 UTC
Printable on/off is on Crtl+Shift+Click, Lock/unlock is on Ctrl+Click.
Comment 3 Heiko Tietze 2018-04-09 07:34:07 UTC
Adding a command to the context menu shouldn't be too hard.
Comment 4 andreas_k 2018-08-26 15:27:11 UTC
That would be really usefull if we can get .uno commands for visible, printable and locked.

I think the coding stuff is in layeroptionsdlg.cxx but I don't know how to make a new .uno: command.
Comment 5 andreas_k 2019-01-28 23:15:29 UTC
I didn't found any uno command for Printable and Lock.
Comment 6 Commit Notification 2023-01-23 09:04:55 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9b9159aa9073318c6892787d721b8cd732525972

Resolves tdf#113439 - Show/Hide menu item in Draw's layer menu

It will be available in 7.6.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.
Comment 7 Stéphane Guillou (stragu) 2023-03-22 11:50:52 UTC
Verified and added to release notes: https://wiki.documentfoundation.org/index.php?title=ReleaseNotes%2F7.6&type=revision&diff=647322&oldid=646792

Was never available, so inherited.

Thanks Heiko!