mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-14 20:29:07 +00:00
Fix #16: Use MS Office preview handler (will LibreOffice has this in the future?) for OpenDocument files.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user