Exemple #1
0
 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;
     }
 }
Exemple #2
0
        static OCRDestination()
        {
            string exePath = PluginUtils.GetExePath("MSPVIEW.EXE");

            if (exePath != null && File.Exists(exePath))
            {
                icon = PluginUtils.GetExeIcon(exePath, 0);
            }
        }
Exemple #3
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;
     }
 }
Exemple #4
0
 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;
     }
 }
Exemple #5
0
 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;
     }
 }
Exemple #6
0
 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;
     }
 }
Exemple #7
0
 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);
 }