[gnome-documents/gnome-3-22] 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-22] lokview: Add pre-OOXML MS Office formats
- Date: Fri, 24 Mar 2017 17:11:08 +0000 (UTC)
commit 144902158e6fc57c6852342dfba0f790a44b1b92
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]