Fix #16: Use MS Office preview handler (will LibreOffice has this in the future?) for OpenDocument files.

This commit is contained in:
Paddy Xu
2017-05-27 19:08:39 +03:00
parent 9ffb4a0e91
commit 16f20dc79d

View File

@@ -18,17 +18,26 @@ namespace QuickLook.Plugin.IPreviewHandlers
switch (Path.GetExtension(path).ToLower()) switch (Path.GetExtension(path).ToLower())
{ {
// Word
case ".doc": case ".doc":
case ".docx": case ".docx":
case ".docm":
// Excel
case ".xls": case ".xls":
case ".xlsx": case ".xlsx":
case ".bbb":
case ".xlsm": case ".xlsm":
case ".xlsb":
// Visio Viewer will not quit after preview, which cause serious memory issue // Visio Viewer will not quit after preview, which cause serious memory issue
//case ".vsd": //case ".vsd":
//case ".vsdx": //case ".vsdx":
// PowerPoint
case ".ppt": case ".ppt":
case ".pptx": case ".pptx":
// OpenDocument
case ".odt":
case ".ott":
case ".ods":
case ".odp":
return PreviewHandlerHost.GetPreviewHandlerGUID(path) != Guid.Empty; return PreviewHandlerHost.GetPreviewHandlerGUID(path) != Guid.Empty;
} }