OSDN Git Service

7d661344706c321861e1f04a60ad754f99b542f6
[xkeymacs/xkeymacs.git] / xkeymacsdll / Utils.h
1 // Utils.h: interface for the CUtils class.\r
2 //\r
3 //////////////////////////////////////////////////////////////////////\r
4 \r
5 #if !defined(AFX_UTILS_H__D64BCD3F_F2E2_41F7_AD58_0F32E2D46942__INCLUDED_)\r
6 #define AFX_UTILS_H__D64BCD3F_F2E2_41F7_AD58_0F32E2D46942__INCLUDED_\r
7 \r
8 #if _MSC_VER > 1000\r
9 #pragma once\r
10 #endif // _MSC_VER > 1000\r
11 \r
12 class AFX_EXT_CLASS CUtils  \r
13 {\r
14 public:\r
15         static BOOL IsAtok();\r
16         static BOOL IsLunascape();\r
17         static int GetWindowTextType(CString strWindowText);\r
18         static BOOL IsThunderbird();\r
19         static BOOL IsOpenJane();\r
20         static BOOL IsVisualSlickEdit();\r
21         static BOOL IsMSDN();\r
22         static BOOL IsJavaW();\r
23         static BOOL Run(CString szCommandLine, BOOL isWait = FALSE);\r
24         static BOOL IsBorlandCppBuilder();\r
25         static BOOL IsLispWorksPersonalEdition();\r
26         static BOOL IsTeraPad();\r
27         static BOOL IsPHPEditor();\r
28         static BOOL IsFirefox();\r
29         static BOOL IsPdksh();\r
30         static BOOL IsZsh();\r
31         static BOOL IsTcsh();\r
32         static BOOL IsezHTML();\r
33         static BOOL IsIPMessenger();\r
34         static BOOL IsDana();\r
35         static BOOL IsJmEditor();\r
36         static BOOL IsEdLeaf();\r
37         static BOOL IsShuriken();\r
38         static BOOL IsAutla();\r
39         static BOOL OpenClipboard();\r
40         static BOOL IsOedit();\r
41         static BOOL IsTuruKameMail();\r
42         static BOOL IsOpenOffice();\r
43         static BOOL IsAdobeReader();\r
44         static BOOL IsHusen();\r
45         static BOOL IsTOF();\r
46         static BOOL IsEOF();\r
47         static BOOL IsCorelDRAW();\r
48         static BOOL IsNami2000();\r
49         static BOOL IsStoryEditor();\r
50         static BOOL IseMemoPad();\r
51         static BOOL IsCodeWarrior();\r
52         static BOOL IsVisualBasicEditor();\r
53         static BOOL IsEudora();\r
54         static BOOL IsDialog();\r
55         static BOOL IsEclipse();\r
56         static BOOL IsFindDialog();\r
57         static BOOL IsVisualBasic();\r
58         static BOOL IsProject();\r
59         static BOOL IsAccess();\r
60         static BOOL IsVisualStudio();\r
61         static BOOL IsCsh();\r
62         static BOOL IsSh();\r
63         static BOOL IsBash();\r
64         static void SetCorrectApplicationName(LPTSTR szApplicationName, LPTSTR szWindowText);\r
65         static void Log(LPCTSTR fmt, ...);\r
66         static BOOL IsSleipnir();\r
67         static BOOL IsConsole();\r
68         static BOOL IsPaint();\r
69         static BOOL IsReget();\r
70         static BOOL IsMicrosoftPowerPoint();\r
71         static BOOL IsIllustrator();\r
72         static BOOL IsPhotoshop();\r
73         static BOOL IsFlash();\r
74         static BOOL IsDreamweaver();\r
75         static BOOL IsFireworks();\r
76         static BOOL IsExcel();\r
77         static BOOL IsDirector();\r
78         static BOOL IsEggExplorer();\r
79         static BOOL IsK2Editor();\r
80         static BOOL IsDWFM();\r
81         static BOOL IsDefaultIgnoreApplication();\r
82         static BOOL IsXWin();\r
83         static BOOL IsEmacs();\r
84         static BOOL SetClipboardText(const CString& text);\r
85         static BOOL GetClipboardText(CString& text);\r
86         static void SetApplicationName(BOOL bImeComposition);\r
87         static LPCTSTR const GetApplicationName();\r
88         static BOOL IsXyzzy();\r
89         static BOOL IsWordpad();\r
90         static BOOL IsVisualCpp();\r
91         static BOOL IsTeraTermPro();\r
92         static BOOL IsSakuraEditor();\r
93         static BOOL IsOutlookExpress();\r
94         static BOOL IsOutlook();\r
95         static BOOL IsOpera();\r
96         static BOOL IsNotepad();\r
97         static BOOL IsNotepadPP();\r
98         static BOOL IsNetscape();\r
99         static BOOL IsMuleForWin32();\r
100         static BOOL IsMozilla();\r
101         static BOOL IsMicrosoftWord();\r
102         static BOOL IsMicrosoftFrontPage();\r
103         static BOOL IsMeadow();\r
104         static BOOL IsLotusWordPro();\r
105         static BOOL IsLotusNotes();\r
106         static BOOL IsLotus123();\r
107         static BOOL IsInternetExplorer();\r
108         static BOOL IsHidemaru();\r
109         static BOOL IsExplorer();\r
110         static BOOL IsBecky();\r
111         static BOOL IsAstecX();\r
112         static BOOL IsXkeymacs();\r
113         static BOOL IsChrome();\r
114         static BOOL GetFindDialogTitle(CString *szDialogTitle);\r
115 \r
116 private:\r
117         static BOOL IsTOForEOF();\r
118         static void FairConsoleApplicationName(LPTSTR szApplicationName, LPTSTR szWindowText);\r
119         static BOOL IsConsole(LPCTSTR szApplicationName);\r
120         static BOOL IsJavaW(LPCTSTR szApplicationName);\r
121         static TCHAR m_szIMEName[MAX_PATH];\r
122         static TCHAR m_szApplicationName[MAX_PATH];\r
123 };\r
124 \r
125 #endif // !defined(AFX_UTILS_H__D64BCD3F_F2E2_41F7_AD58_0F32E2D46942__INCLUDED_)\r