# HG changeset patch # User dewyatt # Date 1275007672 14400 # Node ID bfc8ad7234b69cc049a986f9987452cf4e336e70 # Parent 6032ada8b9e5c4231e2603a10a1f86df7ca65465 Adding some initial TSF code diff -r 6032ada8b9e5 -r bfc8ad7234b6 EXCLUDE/GLTSF/GLTSF.vcxproj --- 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 @@ + @@ -88,6 +89,7 @@ + diff -r 6032ada8b9e5 -r bfc8ad7234b6 EXCLUDE/GLTSF/GLTSF.vcxproj.filters --- 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 @@ Header Files + + Header Files + @@ -41,5 +44,8 @@ Source Files + + Source Files + \ No newline at end of file diff -r 6032ada8b9e5 -r bfc8ad7234b6 EXCLUDE/GLTSF/include/TSF.hpp --- /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 + +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 diff -r 6032ada8b9e5 -r bfc8ad7234b6 EXCLUDE/GLTSF/src/TSF.cpp --- /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"