[gnome-documents] lokview: Add pre-OOXML MS Office formats



commit 9d4b8113e93c16d1318ac7a84a1976002b03bdfa
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 b23f855..092adc5 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -40,7 +40,10 @@ const Utils = imports.utils;
 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',
@@ -63,9 +66,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]