loleaflet/src/control/Control.Menubar.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-)
New commits: commit c7bfc05dcb1c475c1bf9a70d39732790793380d9 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Tue Oct 1 16:34:17 2019 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Tue Oct 1 16:19:01 2019 +0200 tdf#127669: Add more export formats for mobile apps The same formats are offered as for "Download as" in web-based Online. But in the apps, the menu entry is called "Export as", not "Download as", because the document is not being edited on some server from which it would be downloaded. Change-Id: I5b1bfc3300bae2c213812c2534ae6b583423662c Reviewed-on: https://gerrit.libreoffice.org/79964 Reviewed-by: Tor Lillqvist <t...@collabora.com> Tested-by: Tor Lillqvist <t...@collabora.com> diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index 984585dde..dc77afce7 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -27,7 +27,12 @@ L.Control.Menubar = L.Control.extend({ {name: _('Word 2003 Document (.doc)'), id: 'downloadas-doc', type: 'action'}, {name: _('Word Document (.docx)'), id: 'downloadas-docx', type: 'action'}, {name: _('Rich Text (.rtf)'), id: 'downloadas-rtf', type: 'action'}]}, - {name: _('Save as PDF'), id: 'downloadas-pdf', mobileapp: true, type: 'action'}, + {name: _('Export as'), id: 'downloadas', type: 'menu', mobileapp: true, menu: [ + {name: _('PDF Document (.pdf)'), id: 'downloadas-pdf', type: 'action'}, + {name: _('ODF text document (.odt)'), id: 'downloadas-odt', type: 'action'}, + {name: _('Word 2003 Document (.doc)'), id: 'downloadas-doc', type: 'action'}, + {name: _('Word Document (.docx)'), id: 'downloadas-docx', type: 'action'}, + {name: _('Rich Text (.rtf)'), id: 'downloadas-rtf', type: 'action'}]}, {name: _('Sign document'), id: 'signdocument', type: 'action'}, {type: 'separator'}, {name: _('Close document'), id: 'closedocument', type: 'action'} @@ -252,7 +257,11 @@ L.Control.Menubar = L.Control.extend({ {name: _('ODF presentation (.odp)'), id: 'downloadas-odp', type: 'action'}, {name: _('PowerPoint 2003 Presentation (.ppt)'), id: 'downloadas-ppt', type: 'action'}, {name: _('PowerPoint Presentation (.pptx)'), id: 'downloadas-pptx', type: 'action'}]}, - {name: _('Save as PDF'), id: 'downloadas-pdf', mobileapp: true, type: 'action'}, + {name: _('Export as'), id: 'downloadas', type: 'menu', mobileapp: true, menu: [ + {name: _('PDF Document (.pdf)'), id: 'downloadas-pdf', type: 'action'}, + {name: _('ODF presentation (.odp)'), id: 'downloadas-odp', type: 'action'}, + {name: _('PowerPoint 2003 Presentation (.ppt)'), id: 'downloadas-ppt', type: 'action'}, + {name: _('PowerPoint Presentation (.pptx)'), id: 'downloadas-pptx', type: 'action'}]}, {type: 'separator'}, {name: _('Close document'), id: 'closedocument', type: 'action'} ]}, @@ -342,7 +351,11 @@ L.Control.Menubar = L.Control.extend({ {name: _('ODF spreadsheet (.ods)'), id: 'downloadas-ods', type: 'action'}, {name: _('Excel 2003 Spreadsheet (.xls)'), id: 'downloadas-xls', type: 'action'}, {name: _('Excel Spreadsheet (.xlsx)'), id: 'downloadas-xlsx', type: 'action'}]}, - {name: _('Save as PDF'), id: 'downloadas-pdf', mobileapp: true, type: 'action'}, + {name: _('Export as'), id:'downloadas', type: 'menu', mobileapp: true, menu: [ + {name: _('PDF Document (.pdf)'), id: 'downloadas-pdf', type: 'action'}, + {name: _('ODF spreadsheet (.ods)'), id: 'downloadas-ods', type: 'action'}, + {name: _('Excel 2003 Spreadsheet (.xls)'), id: 'downloadas-xls', type: 'action'}, + {name: _('Excel Spreadsheet (.xlsx)'), id: 'downloadas-xlsx', type: 'action'}]}, {type: 'separator'}, {name: _('Close document'), id: 'closedocument', type: 'action'} ]}, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits