Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.4 KiB

  1. #ifndef __SVWRDSNK_H__
  2. #define __SVWRDSNK_H__
  3. #include <windows.h>
  4. #include <atlinc.h>
  5. #include <verinfo.h>
  6. #include <itwbrk.h>
  7. #include <itwbrkid.h>
  8. // {8fa0d5a9-dedf-11d0-9a61-00c04fb68bf7}
  9. DEFINE_GUID(CLSID_IITWordSink,
  10. 0x8fa0d5a9, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7);
  11. class CDefWordSink :
  12. public IWordSink,
  13. public CComObjectRoot,
  14. public CComCoClass<CDefWordSink,&CLSID_IITWordSink>
  15. {
  16. public:
  17. BEGIN_COM_MAP(CDefWordSink)
  18. COM_INTERFACE_ENTRY(IWordSink)
  19. END_COM_MAP()
  20. DECLARE_REGISTRY (CDefWordSink,
  21. "ITIR.SystemWordSink.4", "ITIR.SystemWordSink",
  22. 0, THREADFLAGS_APARTMENT)
  23. public:
  24. // CDefWordSink() {m_dwWordCount = 0;}
  25. STDMETHOD(PutWord)( WCHAR const * pwcInBuf,
  26. ULONG cwc,
  27. ULONG cwcSrcLen,
  28. ULONG cwcSrcPos );
  29. STDMETHOD(PutAltWord)( WCHAR const * pwcInBuf,
  30. ULONG cwc,
  31. ULONG cwcSrcLen,
  32. ULONG cwcSrcPos );
  33. STDMETHOD(StartAltPhrase)(void);
  34. STDMETHOD(EndAltPhrase)(void);
  35. STDMETHOD(PutBreak)(WORDREP_BREAK_TYPE breakType);
  36. STDMETHOD(SetLocaleInfo)(DWORD dwCodePage, LCID lcid);
  37. STDMETHOD(SetIPB)(void *lpipb);
  38. STDMETHOD(SetDocID)(DWORD dwDocID);
  39. STDMETHOD(SetVFLD)(DWORD dwVFLD);
  40. private:
  41. void *m_lpipb;
  42. LCID m_lcid;
  43. DWORD m_dwWordCount, m_dwUID, m_dwVFLD, m_dwCodePage;
  44. }; /* CITSvMgr */
  45. #endif // __SVWRDSNK_H__