File gnome-documents-bsc1047718-pre-ooxml-formats.patch of Package gnome-documents.5361
From 9d4b8113e93c16d1318ac7a84a1976002b03bdfa Mon Sep 17 00:00:00 2001
From: Pranav Kant <pranavk@collabora.co.uk>
Date: Fri, 24 Mar 2017 21:40:49 +0530
Subject: [PATCH] lokview: Add pre-OOXML MS Office formats
https://bugzilla.gnome.org/show_bug.cgi?id=780504
---
src/lokview.js | 10 +++++++---
1 file 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',
--
2.12.3