static OutlookDestination() { if (EmailConfigHelper.HasOutlook()) { isActiveFlag = true; } exePath = PluginUtils.GetExePath("OUTLOOK.EXE"); if (exePath != null && File.Exists(exePath)) { applicationIcon = PluginUtils.GetExeIcon(exePath, 0); WindowDetails.AddProcessToExcludeFromFreeze("outlook"); if (conf.OutlookAllowExportInMeetings) { meetingIcon = PluginUtils.GetExeIcon(exePath, 2); } } else { exePath = null; } if (exePath == null) { isActiveFlag = false; } }
static OCRDestination() { string exePath = PluginUtils.GetExePath("MSPVIEW.EXE"); if (exePath != null && File.Exists(exePath)) { icon = PluginUtils.GetExeIcon(exePath, 0); } }
static WordDestination() { exePath = PluginUtils.GetExePath("WINWORD.EXE"); if (exePath != null && File.Exists(exePath)) { applicationIcon = PluginUtils.GetExeIcon(exePath, 0); documentIcon = PluginUtils.GetExeIcon(exePath, 1); } else { exePath = null; } }
static OneNoteDestination() { exePath = PluginUtils.GetExePath("ONENOTE.EXE"); if (exePath != null && File.Exists(exePath)) { applicationIcon = PluginUtils.GetExeIcon(exePath, 0); notebookIcon = PluginUtils.GetExeIcon(exePath, 0); WindowDetails.AddProcessToExcludeFromFreeze("onenote"); } else { exePath = null; } }
static ExcelDestination() { exePath = PluginUtils.GetExePath("EXCEL.EXE"); if (exePath != null && File.Exists(exePath)) { applicationIcon = PluginUtils.GetExeIcon(exePath, 0); workbookIcon = PluginUtils.GetExeIcon(exePath, 1); WindowDetails.AddProcessToExcludeFromFreeze("excel"); } else { exePath = null; } }
static PowerpointDestination() { exePath = PluginUtils.GetExePath("POWERPNT.EXE"); if (exePath != null && File.Exists(exePath)) { applicationIcon = PluginUtils.GetExeIcon(exePath, 0); presentationIcon = PluginUtils.GetExeIcon(exePath, 1); WindowDetails.AddProcessToExcludeFromFreeze("powerpnt"); } else { exePath = null; } }
public static Image IconForCommand(ExternalCommandData command) { if (!iconCache.ContainsKey(command.Name)) { Image icon = null; if (File.Exists(command.Commandline)) { try { icon = PluginUtils.GetExeIcon(command.Commandline, 0); } catch (Exception ex) { LOG.Warn("Problem loading icon for " + command.Commandline, ex); } } // Also add null to the cache if nothing is found iconCache.Add(command.Name, icon); } if (iconCache.ContainsKey(command.Name)) { return(iconCache[command.Name]); } return(null); }