changeset 4731:bfc8ad7234b6

Adding some initial TSF code
author dewyatt
date Thu, 27 May 2010 20:47:52 -0400
parents 6032ada8b9e5
children e1307be6cb9e
files EXCLUDE/GLTSF/GLTSF.vcxproj EXCLUDE/GLTSF/GLTSF.vcxproj.filters EXCLUDE/GLTSF/include/TSF.hpp EXCLUDE/GLTSF/src/TSF.cpp
diffstat 4 files changed, 53 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/EXCLUDE/GLTSF/GLTSF.vcxproj	Tue May 25 18:53:09 2010 -0400
+++ b/EXCLUDE/GLTSF/GLTSF.vcxproj	Thu May 27 20:47:52 2010 -0400
@@ -81,6 +81,7 @@
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClInclude Include="include\App.hpp" />
+    <ClInclude Include="include\TSF.hpp" />
     <ClInclude Include="include\Video_Mode.hpp" />
     <ClInclude Include="include\Window.hpp" />
     <ClInclude Include="include\Window_Listener.hpp" />
@@ -88,6 +89,7 @@
   <ItemGroup>
     <ClCompile Include="src\App.cpp" />
     <ClCompile Include="src\Main.cpp" />
+    <ClCompile Include="src\TSF.cpp" />
     <ClCompile Include="src\Video_Mode.cpp" />
     <ClCompile Include="src\Window.cpp" />
   </ItemGroup>
--- a/EXCLUDE/GLTSF/GLTSF.vcxproj.filters	Tue May 25 18:53:09 2010 -0400
+++ b/EXCLUDE/GLTSF/GLTSF.vcxproj.filters	Thu May 27 20:47:52 2010 -0400
@@ -27,6 +27,9 @@
     <ClInclude Include="include\Window_Listener.hpp">
       <Filter>Header Files</Filter>
     </ClInclude>
+    <ClInclude Include="include\TSF.hpp">
+      <Filter>Header Files</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="src\App.cpp">
@@ -41,5 +44,8 @@
     <ClCompile Include="src\Window.cpp">
       <Filter>Source Files</Filter>
     </ClCompile>
+    <ClCompile Include="src\TSF.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
   </ItemGroup>
 </Project>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EXCLUDE/GLTSF/include/TSF.hpp	Thu May 27 20:47:52 2010 -0400
@@ -0,0 +1,44 @@
+#ifndef TSF_HPP
+#define TSF_HPP
+
+#include <msctf.h>
+
+class TSF
+{
+public:
+
+protected:
+	class UI_Sink : public ITfUIElementSink, public ITfInputProcessorProfileActivationSink
+	{
+	public:
+		UI_Sink();
+		~UI_Sink();
+
+		// IUnknown
+		STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
+		STDMETHODIMP_(ULONG) AddRef(void);
+		STDMETHODIMP_(ULONG) Release(void);
+
+		// ITfUIElementSink
+		STDMETHODIMP BeginUIElement(DWORD dwUIElementId, BOOL *pbShow);
+		STDMETHODIMP UpdateUIElement(DWORD dwUIElementId);
+		STDMETHODIMP EndUIElement(DWORD dwUIElementId);
+
+		// ITfInputProcessorProfileActivationSink
+		STDMETHODIMP OnActivated(DWORD dwProfileType, LANGID langid,
+								 REFCLSID clsid, REFGUID catid,
+								 REFGUID guidProfile, HKL hkl,
+								 DWORD dwFlags);
+
+		// ITfCompartmentEventSink
+		STDMETHODIMP OnChange(REFGUID rguid);
+
+	private:
+		LONG my_Reference_Count;
+	};
+
+private:
+
+};
+
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EXCLUDE/GLTSF/src/TSF.cpp	Thu May 27 20:47:52 2010 -0400
@@ -0,0 +1,1 @@
+#include "TSF.hpp"