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.

53 lines
1.4 KiB

  1. /****************************************************************************
  2. IHJDict.h : Declaration of the CHJDict
  3. Copyright 2000 Microsoft Corp.
  4. History:
  5. 02-AUG-2000 bhshin remove unused method for Hand Writing team
  6. 17-MAY-2000 bhshin remove unused method for CICERO
  7. 02-FEB-2000 bhshin created
  8. ****************************************************************************/
  9. #ifndef __HJDICT_H_
  10. #define __HJDICT_H_
  11. #include "resource.h" // main symbols
  12. #include "Lex.h"
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CHJDict
  15. class ATL_NO_VTABLE CHJDict :
  16. public CComObjectRootEx<CComSingleThreadModel>,
  17. public CComCoClass<CHJDict, &CLSID_HJDict>,
  18. public IHJDict
  19. {
  20. public:
  21. CHJDict()
  22. {
  23. m_fLexOpen = FALSE;
  24. }
  25. ~CHJDict();
  26. DECLARE_REGISTRY_RESOURCEID(IDR_HJDICT)
  27. DECLARE_PROTECT_FINAL_CONSTRUCT()
  28. BEGIN_COM_MAP(CHJDict)
  29. COM_INTERFACE_ENTRY(IHJDict)
  30. END_COM_MAP()
  31. // IHJDict
  32. public:
  33. STDMETHOD(Init)();
  34. STDMETHOD(LookupMeaning)(/*[in]*/ WCHAR wchHanja, /*[out]*/ LPWSTR pwszMeaning, /*[in]*/ int cchMeaning);
  35. STDMETHOD(LookupHangulOfHanja)(/*[in]*/ LPCWSTR pwszHanja, /*[out]*/ LPWSTR pwszHangul, /*[in]*/ int cchHangul);
  36. // Member Data
  37. protected:
  38. BOOL m_fLexOpen; // main dict open flag
  39. MAPFILE m_LexMap; // lexicon handle
  40. };
  41. #endif //__HJDICT_H_