diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index ad99af8a7..53339ec5f 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -69,7 +69,10 @@ define([ {name: 'FB2', imgCls: 'fb2', type: Asc.c_oAscFileType.FB2}, {name: 'EPUB', imgCls: 'epub', type: Asc.c_oAscFileType.EPUB}, {name: 'HTML (Zipped)', imgCls: 'html', type: Asc.c_oAscFileType.HTML} - ], [] ], + ], [ + {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG}, + {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG} + ]], template: _.template([ '
', @@ -189,7 +192,10 @@ define([ {name: 'FB2', imgCls: 'fb2', type: Asc.c_oAscFileType.FB2}, {name: 'EPUB', imgCls: 'epub', type: Asc.c_oAscFileType.EPUB}, {name: 'HTML (Zipped)', imgCls: 'html', type: Asc.c_oAscFileType.HTML} - ], [] ], + ], [ + {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG}, + {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG} + ]], template: _.template([ @@ -233,7 +239,7 @@ define([ this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf this.formats[1].splice(2, 1); // remove pdfa } else if (/^xps|oxps$/.test(this.fileType)) { - this.formats[3].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: '', ext: true}); // original xps/oxps + this.formats[0].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: '', ext: true}); // original xps/oxps } else if (/^djvu$/.test(this.fileType)) { this.formats = [[ {name: 'DJVU', imgCls: 'djvu', type: '', ext: true}, // original djvu diff --git a/apps/documenteditor/main/resources/less/filemenu.less b/apps/documenteditor/main/resources/less/filemenu.less index 28babbd89..584381260 100644 --- a/apps/documenteditor/main/resources/less/filemenu.less +++ b/apps/documenteditor/main/resources/less/filemenu.less @@ -176,6 +176,12 @@ &djvu { background: ~"url('@{common-image-const-path}/doc-formats/djvu.svg') no-repeat center"; } + &png { + background: ~"url('@{common-image-const-path}/doc-formats/png.svg') no-repeat center"; + } + &jpg { + background: ~"url('@{common-image-const-path}/doc-formats/jpg.svg') no-repeat center"; + } } div { diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index d3ddbee96..51a8c17e2 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -64,8 +64,8 @@ define([ {name: 'PDFA', imgCls: 'pdfa', type: Asc.c_oAscFileType.PDFA}, {name: 'OTP', imgCls: 'otp', type: Asc.c_oAscFileType.OTP} ], [ - {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG}, - {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG} + {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG}, + {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG} ]], @@ -164,8 +164,8 @@ define([ {name: 'PDFA', imgCls: 'pdfa', type: Asc.c_oAscFileType.PDFA}, {name: 'OTP', imgCls: 'otp', type: Asc.c_oAscFileType.OTP} ], [ - {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG}, - {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG} + {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG}, + {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG} ]], template: _.template([ diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 541caa8e7..d825b54bb 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -52,6 +52,9 @@ define([ {name: 'OTS', imgCls: 'ots', type: Asc.c_oAscFileType.OTS}, {name: 'XLSM', imgCls: 'xlsm', type: Asc.c_oAscFileType.XLSM}, {name: 'PDFA', imgCls: 'pdfa', type: Asc.c_oAscFileType.PDFA} + ], [ + {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG}, + {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG} ]], @@ -149,6 +152,9 @@ define([ {name: 'OTS', imgCls: 'ots', type: Asc.c_oAscFileType.OTS}, {name: 'XLSM', imgCls: 'xlsm', type: Asc.c_oAscFileType.XLSM}, {name: 'PDFA', imgCls: 'pdfa', type: Asc.c_oAscFileType.PDFA} + ], [ + {name: 'JPG', imgCls: 'jpg', type: Asc.c_oAscFileType.JPG}, + {name: 'PNG', imgCls: 'png', type: Asc.c_oAscFileType.PNG} ]], template: _.template([ diff --git a/apps/spreadsheeteditor/main/resources/less/leftmenu.less b/apps/spreadsheeteditor/main/resources/less/leftmenu.less index de3c9933e..841a0facc 100644 --- a/apps/spreadsheeteditor/main/resources/less/leftmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/leftmenu.less @@ -64,6 +64,12 @@ &xlsm { background: ~"url('@{common-image-const-path}/doc-formats/xlsm.svg') no-repeat center"; } + &png { + background: ~"url('@{common-image-const-path}/doc-formats/png.svg') no-repeat center"; + } + &jpg { + background: ~"url('@{common-image-const-path}/doc-formats/jpg.svg') no-repeat center"; + } } div {