Mercurial > sdl-ios-xcode
diff EXCLUDE/GLTSF/include/TSF.hpp @ 4731:bfc8ad7234b6
Adding some initial TSF code
author | dewyatt |
---|---|
date | Thu, 27 May 2010 20:47:52 -0400 |
parents | |
children | e1307be6cb9e |
line wrap: on
line diff
--- /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