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.

78 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. editcomp.h
  5. Abstract:
  6. This file defines the EditCompositionString Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef _EDITCOMP_H_
  12. #define _EDITCOMP_H_
  13. /////////////////////////////////////////////////////////////////////////////
  14. // EditCompositionString
  15. class EditCompositionString
  16. {
  17. public:
  18. HRESULT SetString(IMCLock& imc,
  19. CWCompString* CompStr,
  20. CWCompAttribute* CompAttr,
  21. CWCompClause* CompClause,
  22. CWCompCursorPos* CompCursorPos,
  23. CWCompDeltaStart* CompDeltaStart,
  24. CWCompTfGuidAtom* CompGuid,
  25. OUT BOOL* lpbBufferOverflow,
  26. CWCompString* CompReadStr = NULL,
  27. CWCompAttribute* CompReadAttr = NULL,
  28. CWCompClause* CompReadClause = NULL,
  29. CWCompString* ResultStr = NULL,
  30. CWCompClause* ResultClause = NULL,
  31. CWCompString* ResultReadStr = NULL,
  32. CWCompClause* ResultReadClause = NULL,
  33. CWInterimString* InterimStr = NULL,
  34. // n.b. ResultRead is not supported for now...
  35. BOOL fGenerateMessage = TRUE);
  36. private:
  37. HRESULT _MakeCompositionData(IMCLock& imc,
  38. CWCompString* CompStr,
  39. CWCompAttribute* CompAttr,
  40. CWCompClause* CompClause,
  41. CWCompCursorPos* CompCursorPos,
  42. CWCompDeltaStart* CompDeltaStart,
  43. CWCompTfGuidAtom* CompGuid,
  44. CWCompString* CompReadStr,
  45. CWCompAttribute* CompReadAttr,
  46. CWCompClause* CompReadClause,
  47. CWCompString* ResultStr,
  48. CWCompClause* ResultClause,
  49. CWCompString* ResultReadStr,
  50. CWCompClause* ResultReadClause,
  51. OUT LPARAM* lpdwFlag,
  52. OUT BOOL* lpbBufferOverflow);
  53. HRESULT _MakeInterimData(IMCLock& imc,
  54. CWInterimString* InterimStr,
  55. LPARAM* lpdwFlag);
  56. HRESULT _GenerateHanja(IMCLock& imc,
  57. CWCompString*,
  58. BOOL fGenerateMessage);
  59. };
  60. #endif // _EDITCOMP_H_