OSDN Git Service

Make all member functions of CXkeymacsDll static.
[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 UpdateKeyboardState(BYTE bVk, BYTE bState);\r
20         static BOOL IsOpenJane();\r
21         static void PrintWindowInfo(WINDOWINFO *pwi);\r
22         static BOOL IsVisualSlickEdit();\r
23         static BOOL IsMSDN();\r
24         static BOOL IsJavaW();\r
25         static BOOL Run(CString szCommandLine, BOOL isWait = FALSE);\r
26         static BOOL IsBorlandCppBuilder();\r
27         static BOOL IsLispWorksPersonalEdition();\r
28         static BOOL IsTeraPad();\r
29         static BOOL IsPHPEditor();\r
30         static BOOL IsFirefox();\r
31         static BOOL IsPdksh();\r
32         static BOOL IsZsh();\r
33         static BOOL IsTcsh();\r
34         static BOOL IsezHTML();\r
35         static BOOL IsIPMessenger();\r
36         static BOOL IsDana();\r
37         static BOOL IsJmEditor();\r
38         static BOOL IsXPorLater();\r
39         static BOOL IsEdLeaf();\r
40         static BOOL IsShuriken();\r
41         static BOOL IsAutla();\r
42         static BOOL OpenClipboard();\r
43         static BOOL IsOedit();\r
44         static BOOL IsTuruKameMail();\r
45         static BOOL IsOpenOffice();\r
46         static BOOL IsAdobeReader();\r
47         static BOOL IsHusen();\r
48         static BOOL IsTOF();\r
49         static BOOL IsEOF();\r
50         static BOOL IsCorelDRAW();\r
51         static BOOL IsNami2000();\r
52         static BOOL IsStoryEditor();\r
53         static BOOL IseMemoPad();\r
54         static BOOL IsCodeWarrior();\r
55         static BOOL IsVisualBasicEditor();\r
56         static BOOL IsEudora();\r
57         static BOOL IsDialog();\r
58         static int GetClipboardTextLength();\r
59         static BOOL IsEclipse();\r
60         static BOOL IsFindDialog();\r
61         static BOOL IsVisualBasic();\r
62         static BOOL IsProject();\r
63         static BOOL IsAccess();\r
64         static BOOL IsVisualStudioDotNet();\r
65         static BOOL IsCsh();\r
66         static BOOL IsSh();\r
67         static BOOL IsBash();\r
68         static void SetCorrectApplicationName(LPTSTR szApplicationName, int nApplicationNameLength, LPTSTR szWindowText, int nWindowTextLength);\r
69         static void Log(LPTSTR fmt, ...);\r
70         static BOOL IsSleipnir();\r
71         static BOOL IsConsole();\r
72         static BOOL IsPaint();\r
73         static BOOL IsReget();\r
74         static BOOL IsMicrosoftPowerPoint();\r
75         static BOOL IsIllustrator();\r
76         static BOOL IsPhotoshop();\r
77         static BOOL IsFlash();\r
78         static BOOL IsDreamweaver();\r
79         static BOOL IsFireworks();\r
80         static BOOL IsExcel();\r
81         static BOOL IsDirector();\r
82         static BOOL IsEggExplorer();\r
83         static BOOL IsK2Editor();\r
84         static BOOL IsDWFM();\r
85         static BOOL IsDefaultIgnoreApplication();\r
86         static BOOL IsXWin();\r
87         static BOOL IsEmacs();\r
88         static BOOL SetClipboardText(CString *szClipboardText);\r
89         static BOOL GetClipboardText(CString *szClipboardText);\r
90         static void InitCUtils();\r
91         static void SetApplicationName(BOOL bImeComposition);\r
92         static LPCTSTR const GetApplicationName();\r
93         static BOOL IsXyzzy();\r
94         static BOOL IsWordpad();\r
95         static BOOL IsVisualCpp();\r
96         static BOOL IsTeraTermPro();\r
97         static BOOL IsSakuraEditor();\r
98         static BOOL IsOutlookExpress();\r
99         static BOOL IsOutlook();\r
100         static BOOL IsOpera();\r
101         static BOOL IsNotepad();\r
102         static BOOL IsNetscape();\r
103         static BOOL IsMuleForWin32();\r
104         static BOOL IsMozilla();\r
105         static BOOL IsMicrosoftWord();\r
106         static BOOL IsMicrosoftFrontPage();\r
107         static BOOL IsMeadow();\r
108         static BOOL IsLotusWordPro();\r
109         static BOOL IsLotusNotes();\r
110         static BOOL IsLotus123();\r
111         static BOOL IsInternetExplorer();\r
112         static BOOL IsHidemaru();\r
113         static BOOL IsExplorer();\r
114         static BOOL IsBecky();\r
115         static BOOL IsAstecX();\r
116         static BOOL CUtils::GetFindDialogTitle(CString *szDialogTitle);\r
117         CUtils();\r
118         virtual ~CUtils();\r
119 \r
120 private:\r
121         static BOOL IsTOForEOF();\r
122         static int GetFormatTag(LPTSTR szFormatTag);\r
123         static void FairConsoleApplicationName(LPTSTR szApplicationName, int nApplicationNameLength, LPTSTR szWindowText, int nWindowTextLength);\r
124         static BOOL IsConsole(LPCTSTR szApplicationName, int nApplicationNameLength);\r
125         static BOOL IsJavaW(LPCTSTR szApplicationName, int nApplicationNameLength);\r
126         static void SetIMEName();\r
127         static OSVERSIONINFO m_OsVersionInfo;\r
128         static TCHAR m_szIMEName[MAX_PATH];\r
129         static TCHAR m_szApplicationName[MAX_PATH];\r
130 };\r
131 \r
132 #endif // !defined(AFX_UTILS_H__D64BCD3F_F2E2_41F7_AD58_0F32E2D46942__INCLUDED_)\r