From 16f20dc79de9003501b5077494ec080a8eebd137 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Sat, 27 May 2017 19:08:39 +0300 Subject: [PATCH] Fix #16: Use MS Office preview handler (will LibreOffice has this in the future?) for OpenDocument files. --- .../PluginInterface.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.IPreviewHandlers/PluginInterface.cs b/QuickLook.Plugin/QuickLook.Plugin.IPreviewHandlers/PluginInterface.cs index 35bd807..e31fa62 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.IPreviewHandlers/PluginInterface.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.IPreviewHandlers/PluginInterface.cs @@ -18,17 +18,26 @@ namespace QuickLook.Plugin.IPreviewHandlers switch (Path.GetExtension(path).ToLower()) { + // Word case ".doc": case ".docx": + case ".docm": + // Excel case ".xls": case ".xlsx": - case ".bbb": case ".xlsm": + case ".xlsb": // Visio Viewer will not quit after preview, which cause serious memory issue //case ".vsd": //case ".vsdx": + // PowerPoint case ".ppt": case ".pptx": + // OpenDocument + case ".odt": + case ".ott": + case ".ods": + case ".odp": return PreviewHandlerHost.GetPreviewHandlerGUID(path) != Guid.Empty; }