OSDN Git Service

Use the reg command to import/export properties
[xkeymacs/xkeymacs.git] / xkeymacsdll / Utils.h
index 6307b74..2a30746 100644 (file)
@@ -9,22 +9,23 @@
 #pragma once\r
 #endif // _MSC_VER > 1000\r
 \r
-#include "xkeymacsdll.h"\r
+#include "AppName.h"\r
 \r
 class AFX_EXT_CLASS CUtils  \r
 {\r
 public:\r
+       static bool IsConsole();\r
+       static int GetWindowTextType(const CString& text);\r
+       static bool IsMatchWindowText(const CString& text);\r
+       static BOOL GetFindDialogTitle(CString *szDialogTitle);\r
        static BOOL IsAtok();\r
        static BOOL IsLunascape();\r
-       static int GetWindowTextType(CString strWindowText);\r
        static BOOL IsThunderbird();\r
-       static BOOL UpdateKeyboardState(BYTE bVk, BYTE bState);\r
        static BOOL IsOpenJane();\r
-       static void PrintWindowInfo(WINDOWINFO *pwi);\r
        static BOOL IsVisualSlickEdit();\r
        static BOOL IsMSDN();\r
        static BOOL IsJavaW();\r
-       static BOOL Run(CString szCommandLine, BOOL isWait = FALSE);\r
+       static BOOL Run(CString szCommandLine, BOOL isWait = FALSE, BOOL isHide = FALSE);\r
        static BOOL IsBorlandCppBuilder();\r
        static BOOL IsLispWorksPersonalEdition();\r
        static BOOL IsTeraPad();\r
@@ -37,7 +38,6 @@ public:
        static BOOL IsIPMessenger();\r
        static BOOL IsDana();\r
        static BOOL IsJmEditor();\r
-       static BOOL IsXPorLater();\r
        static BOOL IsEdLeaf();\r
        static BOOL IsShuriken();\r
        static BOOL IsAutla();\r
@@ -57,20 +57,17 @@ public:
        static BOOL IsVisualBasicEditor();\r
        static BOOL IsEudora();\r
        static BOOL IsDialog();\r
-       static int GetClipboardTextLength();\r
        static BOOL IsEclipse();\r
        static BOOL IsFindDialog();\r
        static BOOL IsVisualBasic();\r
        static BOOL IsProject();\r
        static BOOL IsAccess();\r
-       static BOOL IsVisualStudioDotNet();\r
+       static BOOL IsVisualStudio();\r
        static BOOL IsCsh();\r
        static BOOL IsSh();\r
        static BOOL IsBash();\r
-       static void SetCorrectApplicationName(LPTSTR szApplicationName, LPTSTR szWindowText);\r
-       static void Log(LPTSTR fmt, ...);\r
+       static void Log(LPCTSTR fmt, ...);\r
        static BOOL IsSleipnir();\r
-       static BOOL IsConsole();\r
        static BOOL IsPaint();\r
        static BOOL IsReget();\r
        static BOOL IsMicrosoftPowerPoint();\r
@@ -87,11 +84,8 @@ public:
        static BOOL IsDefaultIgnoreApplication();\r
        static BOOL IsXWin();\r
        static BOOL IsEmacs();\r
-       static BOOL SetClipboardText(CString *szClipboardText);\r
-       static BOOL GetClipboardText(CString *szClipboardText);\r
-       static void InitCUtils();\r
-       static void SetApplicationName(BOOL bImeComposition);\r
-       static LPCTSTR const GetApplicationName();\r
+       static BOOL SetClipboardText(const CString& text);\r
+       static BOOL GetClipboardText(CString& text);\r
        static BOOL IsXyzzy();\r
        static BOOL IsWordpad();\r
        static BOOL IsVisualCpp();\r
@@ -101,6 +95,7 @@ public:
        static BOOL IsOutlook();\r
        static BOOL IsOpera();\r
        static BOOL IsNotepad();\r
+       static BOOL IsNotepadPP();\r
        static BOOL IsNetscape();\r
        static BOOL IsMuleForWin32();\r
        static BOOL IsMozilla();\r
@@ -115,20 +110,10 @@ public:
        static BOOL IsExplorer();\r
        static BOOL IsBecky();\r
        static BOOL IsAstecX();\r
-       static BOOL CUtils::GetFindDialogTitle(CString *szDialogTitle);\r
-       CUtils();\r
-       virtual ~CUtils();\r
-\r
+       static BOOL IsXkeymacs();\r
+       static BOOL IsChrome();\r
 private:\r
        static BOOL IsTOForEOF();\r
-       static int GetFormatTag(LPTSTR szFormatTag);\r
-       static void FairConsoleApplicationName(LPTSTR szApplicationName, LPTSTR szWindowText);\r
-       static BOOL IsConsole(LPCTSTR szApplicationName);\r
-       static BOOL IsJavaW(LPCTSTR szApplicationName);\r
-       static void SetIMEName();\r
-       static OSVERSIONINFO m_OsVersionInfo;\r
-       static TCHAR m_szIMEName[MAX_PATH];\r
-       static TCHAR m_szApplicationName[MAX_PATH];\r
 };\r
 \r
 #endif // !defined(AFX_UTILS_H__D64BCD3F_F2E2_41F7_AD58_0F32E2D46942__INCLUDED_)\r