Leaked source code of windows server 2003
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.

28 lines
646 B

  1. //
  2. // dictation context class implementation
  3. //
  4. //
  5. #ifndef _DICTCTXT_H_
  6. #define _DICTCTXT_H_
  7. class CDictContext
  8. {
  9. public:
  10. CDictContext(ITfContext *pic, ITfRange *pRange);
  11. ~CDictContext();
  12. HRESULT InitializeContext(TfEditCookie ecReadOnly);
  13. HRESULT FeedContextToGrammar(ISpRecoGrammar *pGram);
  14. private:
  15. CComPtr<ITfContext> m_cpic;
  16. CComPtr<ITfRange> m_cpRange;
  17. WCHAR *m_pszText;
  18. ULONG m_ulStartIP;
  19. ULONG m_ulCchToFeed;
  20. ULONG m_ulSel;
  21. };
  22. #define CCH_FEED_PREIP 20
  23. #define CCH_FEED_POSTIP 20
  24. #endif //__DICTCTXT_H_