[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loleaflet/src loleaflet/unocommands.js
Henry Castro
hcastro at collabora.com
Fri Feb 16 17:30:07 UTC 2018
loleaflet/src/control/Control.Menubar.js | 9 +++++++++
loleaflet/unocommands.js | 8 ++++++++
2 files changed, 17 insertions(+)
New commits:
commit 785fb7e34a16e7d60f13256b306fd74598fea06b
Author: Henry Castro <hcastro at collabora.com>
Date: Fri Feb 16 10:23:01 2018 -0400
loleaflet: add "Insert Fields" menu
Field
Page Number
Page Count
Date
Time
Title
Author
Subject
Change-Id: I4360372312abab04c34411bdca317b59c93141c4
Reviewed-on: https://gerrit.libreoffice.org/49866
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 349b7b5f..f2ba32ef 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -64,6 +64,15 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:InsertGraphic', 'text'), id: 'insertgraphic', type: 'action'},
{name: _UNO('.uno:InsertAnnotation', 'text'), id: 'insertcomment', type: 'action'},
{type: 'separator'},
+ {name: _UNO('.uno:InsertField', 'text'), type: 'menu', menu: [
+ {uno: '.uno:InsertPageNumberField'},
+ {uno: '.uno:InsertPageCountField'},
+ {uno: '.uno:InsertDateField'},
+ {uno: '.uno:InsertTimeField'},
+ {uno: '.uno:InsertTitleField'},
+ {uno: '.uno:InsertAuthorField'},
+ {uno: '.uno:InsertTopicField'}
+ ]},
{name: _UNO('.uno:InsertHeaderFooterMenu', 'text'), type: 'menu', menu: [
{name: _UNO('.uno:InsertPageHeader', 'text'), type: 'menu', menu: [
{name: _('All'), disabled: true, id: 'insertheader', tag: '_ALL_', uno: '.uno:InsertPageHeader?'}]},
diff --git a/loleaflet/unocommands.js b/loleaflet/unocommands.js
index b11631ce..d537e01c 100644
--- a/loleaflet/unocommands.js
+++ b/loleaflet/unocommands.js
@@ -84,12 +84,15 @@ var unoCommandsArray = {
IncrementLevel:{text:{menu:_('Promote One Level'),},},
IncrementSubLevels:{text:{menu:_('Promote One Level With Subpoints'),},},
InsertAnnotation:{global:{context:_('Insert Comment'),menu:_('Comme~nt'),},presentation:{menu:_('Comme~nt'),},spreadsheet:{context:_('Insert Co~mment'),menu:_('Comm~ent'),},},
+ InsertAuthorField:{presentation:{menu:_('~Author'),},text:{menu:_('~Author'),},},
InsertBreakMenu:{spreadsheet:{menu:_('Insert Page ~Break'),},},
InsertColumnBreak:{spreadsheet:{menu:_('~Column Break'),},text:{menu:_('Insert Column Break'),},},
InsertColumnsAfter:{presentation:{menu:_('Insert Column Right'),},spreadsheet:{context:_('Insert Columns ~Right'),menu:_('Columns ~Right'),},text:{menu:_('Columns R~ight'),},},
InsertColumnsBefore:{presentation:{menu:_('Insert Column Left'),},spreadsheet:{context:_('Insert Columns ~Left'),menu:_('Columns ~Left'),},text:{menu:_('Columns ~Left'),},},
InsertColumnsMenu:{spreadsheet:{menu:_('Insert Co~lumns'),},},
+ InsertDateField:{text:{menu:_('~Date'),},},
InsertEndnote:{text:{menu:_('~Endnote'),},},
+ InsertField:{text:{menu:_('~Fields'),},},
InsertFootnote:{text:{menu:_('~Footnote'),},},
InsertGraphic:{global:{context:_('Insert Image'),menu:_('~Image...'),},},
InsertHardHyphen:{global:{menu:_('Non-br~eaking hyphen'),},},
@@ -101,6 +104,8 @@ var unoCommandsArray = {
InsertNonBreakingSpace:{global:{menu:_('~Non-breaking space'),},},
InsertPageFooter:{text:{menu:_('Foote~r'),},},
InsertPageHeader:{text:{menu:_('He~ader'),},},
+ InsertPageCountField:{text:{menu:_('Page ~Count'),},},
+ InsertPageNumberField:{global:{menu:_('~Page Numbers...'),},text:{menu:_('~Page Number'),},},
InsertPagebreak:{text:{menu:_('~Page Break'),},},
InsertRLM:{global:{menu:_('~Right-to-left mark'),},},
InsertRowBreak:{spreadsheet:{menu:_('~Row Break'),},},
@@ -110,6 +115,9 @@ var unoCommandsArray = {
InsertSlide:{presentation:{menu:_('New Slid~e'),},},
InsertSoftHyphen:{global:{menu:_('S~oft hyphen'),},},
InsertSymbol:{global:{context:_('Insert Special Character'),menu:_('S~pecial Character...'),},},
+ InsertTimeField:{global:{menu:_('Time Field'),},text:{menu:_('~Time'),},},
+ InsertTitleField:{text:{menu:_('T~itle'),},},
+ InsertTopicField:{text:{menu:_('~Subject'),},},
InsertZWNBSP:{global:{menu:_('No-width no ~break'),},},
InsertZWSP:{global:{menu:_('No-~width optional break'),},},
Italic:{global:{menu:_('Italic'),},},
More information about the Libreoffice-commits
mailing list