[gnome-documents] lokview: Also open OOXML documents
- From: Pranav Kant <pranavk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] lokview: Also open OOXML documents
- Date: Wed, 20 Jan 2016 13:44:03 +0000 (UTC)
commit 28ee541b918d90f49011b13f298df774b691c2aa
Author: Pranav Kant <pranavk gnome org>
Date: Tue Jan 19 01:04:13 2016 +0530
lokview: Also open OOXML documents
https://bugzilla.gnome.org/show_bug.cgi?id=753686
src/lokview.js | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/src/lokview.js b/src/lokview.js
index 3e0bfdb..bab72f4 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -66,13 +66,26 @@ const openDocumentFormats = ['application/vnd.oasis.opendocument.text',
'application/vnd.oasis.opendocument.formula',
'application/vnd.oasis.opendocument.database',
'application/vnd.oasis.opendocument.image',
- 'application/vnd.openofficeorg.extension'];
+ 'application/vnd.openofficeorg.extension',
+ 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
+ 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
+ 'application/vnd.openxmlformats-officedocument.presentationml.template',
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',];
+
// These are the documents consisting of document parts.
const openDocumentPartFormats = ['application/vnd.oasis.opendocument.presentation',
'application/vnd.oasis.opendocument.presentation-template',
'application/vnd.oasis.opendocument.spreadsheet',
- 'application/vnd.oasis.opendocument.spreadsheet-template',];
+ 'application/vnd.oasis.opendocument.spreadsheet-template',
+ 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
+ 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
+ 'application/vnd.openxmlformats-officedocument.presentationml.template',
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',];
function isAvailable() {
return (LOKDocView != undefined);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]