[gnome-documents/gnome-3-20] lokview: Add pre-OOXML MS Office formats
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-20] lokview: Add pre-OOXML MS Office formats
- Date: Tue, 28 Mar 2017 08:45:54 +0000 (UTC)
commit 2579ec1e4335201bec2f5e63411c0e0587ed671f
Author: Pranav Kant <pranavk collabora co uk>
Date: Fri Mar 24 21:40:49 2017 +0530
lokview: Add pre-OOXML MS Office formats
https://bugzilla.gnome.org/show_bug.cgi?id=780504
src/lokview.js | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/lokview.js b/src/lokview.js
index 190ddcc..cdbeba4 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -52,7 +52,10 @@ const Documents = imports.documents;
const ZOOM_IN_FACTOR = 1.2;
const ZOOM_OUT_FACTOR = (1.0/ZOOM_IN_FACTOR);
-const openDocumentFormats = ['application/vnd.oasis.opendocument.text',
+const openDocumentFormats = ['application/msword',
+ 'application/vnd.ms-excel',
+ 'application/vnd.ms-powerpoint',
+ 'application/vnd.oasis.opendocument.text',
'application/vnd.oasis.opendocument.text-template',
'application/vnd.oasis.opendocument.text-web',
'application/vnd.oasis.opendocument.text-master',
@@ -75,9 +78,10 @@ const openDocumentFormats = ['application/vnd.oasis.opendocument.text',
'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',
+const openDocumentPartFormats = ['application/vnd.ms-excel',
+ 'application/vnd.ms-powerpoint',
+ 'application/vnd.oasis.opendocument.presentation',
'application/vnd.oasis.opendocument.presentation-template',
'application/vnd.oasis.opendocument.spreadsheet',
'application/vnd.oasis.opendocument.spreadsheet-template',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]