Bug 162511 - Access to "Move to layer ..." from context menu
Summary: Access to "Move to layer ..." from context menu
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Layers
  Show dependency treegraph
 
Reported: 2024-08-18 09:25 UTC by matthias.wichterle
Modified: 2026-01-07 11:35 UTC (History)
3 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 matthias.wichterle 2024-08-18 09:25:58 UTC
Feature request

Hi,
in LibreOffice Draw: when selecting an object on the canvas, on mouse right click there should be an entry in the context menu "move to layer ..." .
I would like to use Draw to make Kanban Charts e.g. for travel planning, where this feature would be useful.

With best best regards,
Matthias
Comment 1 Olivier Hallot 2026-01-02 17:34:37 UTC
Set to new. Improves usability.

Note: in the meantime, Cut & paste is a workaround.
Comment 2 Heiko Tietze 2026-01-07 09:18:09 UTC
Although user customization is possible, it seems reasonable to add this function by default to the context menu.

The command is .uno:SetLayer which needs to be added to 

sd/uiconfig/sdraw/popupmenu/draw.xml (ordinary shapes)
sd/uiconfig/sdraw/popupmenu/line.xml (lines)

and maybe also

sd/uiconfig/sdraw/popupmenu/bezier.xml (bezier curves)
sd/uiconfig/sdraw/popupmenu/connector.xml (connectors)
sd/uiconfig/sdraw/popupmenu/curve.xml (curves)
sd/uiconfig/sdraw/popupmenu/measure.xml (measure lines)

sd/uiconfig/sdraw/popupmenu/group.xml (grouped objects)
sd/uiconfig/sdraw/popupmenu/graphic.xml (images)
sd/uiconfig/sdraw/popupmenu/table.xml (tables)

Any other context?
Comment 3 Regina Henschel 2026-01-07 11:35:14 UTC
(In reply to Heiko Tietze from comment #2)
> 
> Any other context?

It is shorter to say, which one should _not_ get the ".uno:SetLayer" item:

3dobject.xml -- 3D-objects must be inside a scene, thus its scene needs to be moved
3dscene2.xml -- don't know where it is used
annotation.xml -- AFAIK, annotations cannot have a layer other than "Layout".
drawtext.xml -- belongs to text edit mode
form.xml -- controls are by default on the special "Controls" layer. Only advanced users should move controls.
formrichtext.xml -- don't know where it is used
gluepoint.xml -- not a shape
layertab.xml -- not a shape
notebookbar.xml -- not a shape
alle page...xml -- not a shape

All others need the ".uno:SetLayer" item.