Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4730:6032ada8b9e5 | 4731:bfc8ad7234b6 |
---|---|
1 #ifndef TSF_HPP | |
2 #define TSF_HPP | |
3 | |
4 #include <msctf.h> | |
5 | |
6 class TSF | |
7 { | |
8 public: | |
9 | |
10 protected: | |
11 class UI_Sink : public ITfUIElementSink, public ITfInputProcessorProfileActivationSink | |
12 { | |
13 public: | |
14 UI_Sink(); | |
15 ~UI_Sink(); | |
16 | |
17 // IUnknown | |
18 STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj); | |
19 STDMETHODIMP_(ULONG) AddRef(void); | |
20 STDMETHODIMP_(ULONG) Release(void); | |
21 | |
22 // ITfUIElementSink | |
23 STDMETHODIMP BeginUIElement(DWORD dwUIElementId, BOOL *pbShow); | |
24 STDMETHODIMP UpdateUIElement(DWORD dwUIElementId); | |
25 STDMETHODIMP EndUIElement(DWORD dwUIElementId); | |
26 | |
27 // ITfInputProcessorProfileActivationSink | |
28 STDMETHODIMP OnActivated(DWORD dwProfileType, LANGID langid, | |
29 REFCLSID clsid, REFGUID catid, | |
30 REFGUID guidProfile, HKL hkl, | |
31 DWORD dwFlags); | |
32 | |
33 // ITfCompartmentEventSink | |
34 STDMETHODIMP OnChange(REFGUID rguid); | |
35 | |
36 private: | |
37 LONG my_Reference_Count; | |
38 }; | |
39 | |
40 private: | |
41 | |
42 }; | |
43 | |
44 #endif |