[Libreoffice-commits] online.git: loleaflet/src loleaflet/unocommands.js

Andras Timar andras.timar at collabora.com
Tue Jan 9 12:11:35 UTC 2018


 loleaflet/src/control/Control.Menubar.js |   16 +++++++++++-----
 loleaflet/unocommands.js                 |    1 +
 2 files changed, 12 insertions(+), 5 deletions(-)

New commits:
commit 480b6ed0b5a5cab10cece80536752229b5acbe90
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Jan 9 13:06:35 2018 +0100

    Add File - Properties... menu
    
    Change-Id: I260f2363985698c746cfe5c02ac95dc060b739fe
    Reviewed-on: https://gerrit.libreoffice.org/47654
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 907120da..f9a1f6aa 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -23,8 +23,10 @@ L.Control.Menubar = L.Control.extend({
 					{name: _('PDF Document (.pdf)'), id: 'downloadas-pdf', type: 'action'},
 					{name: _('ODF text document (.odt)'), id: 'downloadas-odt', type: 'action'},
 					{name: _('Microsoft Word 2003 (.doc)'), id: 'downloadas-doc', type: 'action'},
-					{name: _('Microsoft Word (.docx)'), id: 'downloadas-docx', type: 'action'}]}]
-			},
+					{name: _('Microsoft Word (.docx)'), id: 'downloadas-docx', type: 'action'}]},
+				{type: 'separator'},
+				{uno: '.uno:SetDocumentProperties'}
+			]},
 			{name: _UNO('.uno:EditMenu', 'text'), type: 'menu', menu: [
 				{uno: '.uno:Undo'},
 				{uno: '.uno:Redo'},
@@ -211,8 +213,10 @@ L.Control.Menubar = L.Control.extend({
 					{name: _('PDF Document (.pdf)'), id: 'downloadas-pdf', type: 'action'},
 					{name: _('ODF presentation (.odp)'), id: 'downloadas-odp', type: 'action'},
 					{name: _('Microsoft Powerpoint 2003 (.ppt)'), id: 'downloadas-ppt', type: 'action'},
-					{name: _('Microsoft Powerpoint (.pptx)'), id: 'downloadas-pptx', type: 'action'}]}]
-			},
+					{name: _('Microsoft Powerpoint (.pptx)'), id: 'downloadas-pptx', type: 'action'}]},
+				{type: 'separator'},
+				{uno: '.uno:SetDocumentProperties'}
+			]},
 			{name: _UNO('.uno:EditMenu', 'presentation'), type: 'menu', menu: [
 				{uno: '.uno:Undo'},
 				{uno: '.uno:Redo'},
@@ -286,7 +290,9 @@ L.Control.Menubar = L.Control.extend({
 					{name: _('PDF Document (.pdf)'), id: 'downloadas-pdf', type: 'action'},
 					{name: _('ODF spreadsheet (.ods)'), id: 'downloadas-ods', type: 'action'},
 					{name: _('Microsoft Excel 2003 (.xls)'), id: 'downloadas-xls', type: 'action'},
-					{name: _('Microsoft Excel (.xlsx)'), id: 'downloadas-xlsx', type: 'action'}]}
+					{name: _('Microsoft Excel (.xlsx)'), id: 'downloadas-xlsx', type: 'action'}]},
+				{type: 'separator'},
+				{uno: '.uno:SetDocumentProperties'}
 			]},
 			{name: _UNO('.uno:EditMenu', 'spreadsheet'), type: 'menu', menu: [
 				{uno: '.uno:Undo'},
diff --git a/loleaflet/unocommands.js b/loleaflet/unocommands.js
index 62d300ff..8ed093ad 100644
--- a/loleaflet/unocommands.js
+++ b/loleaflet/unocommands.js
@@ -177,6 +177,7 @@ var unoCommandsArray = {
 	SetAnchorToFrame:{text:{menu:_('To ~Frame'),},},
 	SetAnchorToPage:{spreadsheet:{menu:_('To P~age'),},text:{menu:_('To P~age'),},},
 	SetAnchorToPara:{text:{menu:_('To ~Paragraph'),},},
+	SetDocumentProperties:{global:{menu:_('Propert~ies...'),},},
 	SetLanguageAllTextMenu:{global:{menu:_('For All Text'),},},
 	SetLanguageParagraphMenu:{global:{menu:_('For Paragraph'),},},
 	SetLanguageSelectionMenu:{global:{menu:_('For Selection'),},},


More information about the Libreoffice-commits mailing list