leaflet: use "To Background" and "To Foreground" only in Writer's context menus

These options had to be removed from Calc, because sending shape to background
created multiple copies of the shape (a bug in tiled rendering?) and it was
not possible to select the shape in the backround and to bring it again to
foreground.

Change-Id: I8293ca857978e2b0b2574a9f3b420407e35c82f2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90675
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
Pranam Lashkari 2020-03-18 03:10:34 +05:30 committed by Andras Timar
parent b2ec95dcfd
commit dd6256d93c

View file

@ -27,7 +27,7 @@ L.Control.ContextMenu = L.Control.extend({
'SetAnchorToChar', 'SetAnchorToFrame',
'WrapMenu', 'WrapOff', 'WrapOn', 'WrapIdeal', 'WrapLeft', 'WrapRight', 'WrapThrough',
'WrapThroughTransparent', 'WrapContour', 'WrapAnchorOnly',
'ArrangeFrameMenu', 'ArrangeMenu', 'BringToFront', 'ObjectForwardOne', 'ObjectBackOne', 'SendToBack', 'SetObjectToBackground', 'SetObjectToForeground',
'ArrangeFrameMenu', 'ArrangeMenu', 'BringToFront', 'ObjectForwardOne', 'ObjectBackOne', 'SendToBack',
'RotateMenu', 'RotateLeft', 'RotateRight', 'TransformDialog', 'FormatLine', 'FormatArea',
'FormatChartArea', 'InsertTitles', 'InsertRemoveAxes',
'DeleteLegend', 'DiagramType', 'DataRanges', 'DiagramData', 'View3D',
@ -42,7 +42,7 @@ L.Control.ContextMenu = L.Control.extend({
text: ['TableInsertMenu',
'InsertRowsBefore', 'InsertRowsAfter', 'InsertColumnsBefore', 'InsertColumnsAfter',
'TableDeleteMenu',
'TableDeleteMenu', 'SetObjectToBackground', 'SetObjectToForeground',
'DeleteRows', 'DeleteColumns', 'DeleteTable',
'MergeCells', 'SetOptimalColumnWidth', 'SetOptimalRowHeight',
'UpdateCurIndex','RemoveTableOf',