From 2cccba627f0e1636ac66629231d79cf893e0f456 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 8 Feb 2021 21:22:14 +0300 Subject: [PATCH] [DE] Add new formats for downloading: fb2, html, epub --- apps/common/main/resources/img/doc-formats/epub.svg | 4 ++-- apps/common/main/resources/img/doc-formats/fb2.svg | 10 ++++++++++ apps/common/main/resources/img/doc-formats/html.svg | 6 +++--- apps/documenteditor/main/app/controller/Main.js | 4 +++- apps/documenteditor/main/app/controller/Toolbar.js | 4 +++- apps/documenteditor/main/app/view/FileMenuPanels.js | 8 ++++++-- apps/documenteditor/main/index.html | 2 ++ apps/documenteditor/main/index.html.deploy | 2 ++ apps/documenteditor/main/index_loader.html | 2 ++ apps/documenteditor/main/index_loader.html.deploy | 2 ++ 10 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 apps/common/main/resources/img/doc-formats/fb2.svg diff --git a/apps/common/main/resources/img/doc-formats/epub.svg b/apps/common/main/resources/img/doc-formats/epub.svg index d3c650cd1..8532668f3 100644 --- a/apps/common/main/resources/img/doc-formats/epub.svg +++ b/apps/common/main/resources/img/doc-formats/epub.svg @@ -1,8 +1,8 @@ - + - + diff --git a/apps/common/main/resources/img/doc-formats/fb2.svg b/apps/common/main/resources/img/doc-formats/fb2.svg new file mode 100644 index 000000000..fcfb1fee2 --- /dev/null +++ b/apps/common/main/resources/img/doc-formats/fb2.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/apps/common/main/resources/img/doc-formats/html.svg b/apps/common/main/resources/img/doc-formats/html.svg index a86ff7370..71757a0b1 100644 --- a/apps/common/main/resources/img/doc-formats/html.svg +++ b/apps/common/main/resources/img/doc-formats/html.svg @@ -1,10 +1,10 @@ - - + + - + diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 78da46bca..23fac4a6c 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -519,7 +519,9 @@ define([ Asc.c_oAscFileType.PDF, Asc.c_oAscFileType.PDFA, Asc.c_oAscFileType.DOTX, - Asc.c_oAscFileType.OTT + Asc.c_oAscFileType.OTT, + Asc.c_oAscFileType.FB2, + Asc.c_oAscFileType.EPUB ]; if ( !_format || _supported.indexOf(_format) < 0 ) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 3029ce7d0..cd18c3555 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -155,7 +155,9 @@ define([ Asc.c_oAscFileType.HTML, Asc.c_oAscFileType.PDFA, Asc.c_oAscFileType.DOTX, - Asc.c_oAscFileType.OTT + Asc.c_oAscFileType.OTT, + Asc.c_oAscFileType.FB2, + Asc.c_oAscFileType.EPUB ]; if ( !_format || _supported.indexOf(_format) < 0 ) diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index ad0818416..15a47b721 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -63,7 +63,9 @@ define([ {name: 'OTT', imgCls: 'ott', type: Asc.c_oAscFileType.OTT}, {name: 'RTF', imgCls: 'rtf', type: Asc.c_oAscFileType.RTF} ],[ - {name: 'HTML (Zipped)', imgCls: 'html', type: Asc.c_oAscFileType.HTML} + {name: 'HTML (Zipped)', imgCls: 'html', type: Asc.c_oAscFileType.HTML}, + {name: 'FB2', imgCls: 'fb2', type: Asc.c_oAscFileType.FB2}, + {name: 'EPUB', imgCls: 'epub', type: Asc.c_oAscFileType.EPUB} ]], @@ -130,7 +132,9 @@ define([ {name: 'OTT', imgCls: 'ott', type: Asc.c_oAscFileType.OTT, ext: '.ott'}, {name: 'RTF', imgCls: 'rtf', type: Asc.c_oAscFileType.RTF, ext: '.rtf'} ],[ - {name: 'HTML (Zipped)', imgCls: 'html', type: Asc.c_oAscFileType.HTML, ext: '.html'} + {name: 'HTML (Zipped)', imgCls: 'html', type: Asc.c_oAscFileType.HTML, ext: '.html'}, + {name: 'FB2', imgCls: 'fb2', type: Asc.c_oAscFileType.FB2, ext: '.fb2'}, + {name: 'EPUB', imgCls: 'epub', type: Asc.c_oAscFileType.EPUB, ext: '.epub'} ]], diff --git a/apps/documenteditor/main/index.html b/apps/documenteditor/main/index.html index f17e7b8b7..332ed6a83 100644 --- a/apps/documenteditor/main/index.html +++ b/apps/documenteditor/main/index.html @@ -279,6 +279,8 @@ + + diff --git a/apps/documenteditor/main/index.html.deploy b/apps/documenteditor/main/index.html.deploy index d7a58163a..48732ca67 100644 --- a/apps/documenteditor/main/index.html.deploy +++ b/apps/documenteditor/main/index.html.deploy @@ -298,6 +298,8 @@ + + diff --git a/apps/documenteditor/main/index_loader.html b/apps/documenteditor/main/index_loader.html index 1f8891dff..88c0465be 100644 --- a/apps/documenteditor/main/index_loader.html +++ b/apps/documenteditor/main/index_loader.html @@ -270,6 +270,8 @@ + + diff --git a/apps/documenteditor/main/index_loader.html.deploy b/apps/documenteditor/main/index_loader.html.deploy index 948e748d3..13d327a22 100644 --- a/apps/documenteditor/main/index_loader.html.deploy +++ b/apps/documenteditor/main/index_loader.html.deploy @@ -313,6 +313,8 @@ + +