[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/src loleaflet/unocommands.js

Pranav Kant pranavk at collabora.co.uk
Tue Mar 20 09:33:53 UTC 2018


 loleaflet/src/control/Control.Menubar.js |    3 +++
 loleaflet/unocommands.js                 |    1 +
 2 files changed, 4 insertions(+)

New commits:
commit 30e68822484f9375299183ecf24f1295fe713bf1
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Tue Mar 13 15:30:37 2018 +0530

    Insert Charts menu items
    
    (cherry picked from commit 18fa0d7a7853c7131aef4db80376d07fe1862b10)
    
    Change-Id: Iefaf90811f025a5d86249b9b582bf5658254d90a
    Reviewed-on: https://gerrit.libreoffice.org/51626
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 81dd25fc5..de5235d0c 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -63,6 +63,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'},
@@ -252,6 +253,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'},
@@ -324,6 +326,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 b77574953..d9d0b68eb 100644
--- a/loleaflet/unocommands.js
+++ b/loleaflet/unocommands.js
@@ -104,6 +104,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'),},},


More information about the Libreoffice-commits mailing list