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.

81 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 2001, 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. #include "imc.h"
  14. #include "template.h"
  15. #include "ctxtcomp.h"
  16. #include "context.h"
  17. /////////////////////////////////////////////////////////////////////////////
  18. // EditCompositionString
  19. class EditCompositionString
  20. {
  21. public:
  22. HRESULT SetString(IMCLock& imc,
  23. CicInputContext& CicContext,
  24. CWCompString* CompStr,
  25. CWCompAttribute* CompAttr,
  26. CWCompClause* CompClause,
  27. CWCompCursorPos* CompCursorPos,
  28. CWCompDeltaStart* CompDeltaStart,
  29. CWCompTfGuidAtom* CompGuid,
  30. OUT BOOL* lpbBufferOverflow,
  31. CWCompString* CompReadStr = NULL,
  32. CWCompAttribute* CompReadAttr = NULL,
  33. CWCompClause* CompReadClause = NULL,
  34. CWCompString* ResultStr = NULL,
  35. CWCompClause* ResultClause = NULL,
  36. CWCompString* ResultReadStr = NULL,
  37. CWCompClause* ResultReadClause = NULL,
  38. CWInterimString* InterimStr = NULL);
  39. private:
  40. HRESULT _MakeCompositionData(IMCLock& imc,
  41. CWCompString* CompStr,
  42. CWCompAttribute* CompAttr,
  43. CWCompClause* CompClause,
  44. CWCompCursorPos* CompCursorPos,
  45. CWCompDeltaStart* CompDeltaStart,
  46. CWCompTfGuidAtom* CompGuid,
  47. CWCompString* CompReadStr,
  48. CWCompAttribute* CompReadAttr,
  49. CWCompClause* CompReadClause,
  50. CWCompString* ResultStr,
  51. CWCompClause* ResultClause,
  52. CWCompString* ResultReadStr,
  53. CWCompClause* ResultReadClause,
  54. OUT LPARAM* lpdwFlag,
  55. OUT BOOL* lpbBufferOverflow);
  56. HRESULT _MakeInterimData(IMCLock& imc,
  57. CWInterimString* InterimStr,
  58. LPARAM* lpdwFlag);
  59. HRESULT _GenerateKoreanComposition(IMCLock& imc,
  60. CicInputContext& CicContext,
  61. CWCompString*);
  62. };
  63. #endif // _EDITCOMP_H_