From 18fa0d7a7853c7131aef4db80376d07fe1862b10 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Tue, 13 Mar 2018 15:30:37 +0530 Subject: [PATCH] Insert Charts menu items Change-Id: Ic542210477ab0a401be25b35e91cc9deefec75a9 --- loleaflet/src/control/Control.Menubar.js | 3 +++ loleaflet/unocommands.js | 1 + 2 files changed, 4 insertions(+) diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index d72e6f999..90da54a95 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -65,6 +65,7 @@ L.Control.Menubar = L.Control.extend({ {name: _UNO('.uno:InsertMenu', 'text'), type: 'menu', menu: [ {name: _UNO('.uno:InsertGraphic', 'text'), id: 'insertgraphic', type: 'action'}, {name: _UNO('.uno:InsertAnnotation', 'text'), id: 'insertcomment', type: 'action'}, + {uno: '.uno:InsertObjectChart'}, {type: 'separator'}, {name: _UNO('.uno:InsertField', 'text'), type: 'menu', menu: [ {uno: '.uno:InsertPageNumberField'}, @@ -256,6 +257,7 @@ L.Control.Menubar = L.Control.extend({ {name: _UNO('.uno:InsertMenu', 'presentation'), type: 'menu', menu: [ {name: _UNO('.uno:InsertGraphic', 'presentation'), id: 'insertgraphic', type: 'action'}, {name: _UNO('.uno:InsertAnnotation', 'presentation'), id: 'insertcomment', type: 'action'}, + {uno: '.uno:InsertObjectChart'}, {type: 'separator'}, {uno: '.uno:HyperlinkDialog'}, {type: 'separator'}, @@ -330,6 +332,7 @@ L.Control.Menubar = L.Control.extend({ ]}, {name: _UNO('.uno:InsertMenu', 'spreadsheet'), type: 'menu', menu: [ {name: _UNO('.uno:InsertGraphic', 'spreadsheet'), id: 'insertgraphic', type: 'action'}, + {uno: '.uno:InsertObjectChart'}, {name: _UNO('.uno:InsertAnnotation', 'spreadsheet'), id: 'insertcomment', type: 'action'}, {type: 'separator'}, {uno: '.uno:InsertSymbol'} diff --git a/loleaflet/unocommands.js b/loleaflet/unocommands.js index 2a41c046e..65fe8ca00 100644 --- a/loleaflet/unocommands.js +++ b/loleaflet/unocommands.js @@ -103,6 +103,7 @@ var unoCommandsArray = { InsertMenu:{global:{menu:_('~Insert'),},}, InsertNeutralParagraph:{text:{menu:_('Insert Unnumbered Entry'),},}, InsertNonBreakingSpace:{global:{menu:_('~Non-breaking space'),},}, + InsertObjectChart:{global:{menu:_('~Chart...')}}, InsertPageCountField:{text:{menu:_('Page ~Count'),},}, InsertPageFooter:{text:{menu:_('Foote~r'),},}, InsertPageHeader:{text:{menu:_('He~ader'),},},