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
78 lines
2.7 KiB
/*++
|
|
|
|
Copyright (c) 1985 - 1999, Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
editcomp.h
|
|
|
|
Abstract:
|
|
|
|
This file defines the EditCompositionString Class.
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#ifndef _EDITCOMP_H_
|
|
#define _EDITCOMP_H_
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// EditCompositionString
|
|
|
|
class EditCompositionString
|
|
{
|
|
public:
|
|
HRESULT SetString(IMCLock& imc,
|
|
CWCompString* CompStr,
|
|
CWCompAttribute* CompAttr,
|
|
CWCompClause* CompClause,
|
|
CWCompCursorPos* CompCursorPos,
|
|
CWCompDeltaStart* CompDeltaStart,
|
|
CWCompTfGuidAtom* CompGuid,
|
|
OUT BOOL* lpbBufferOverflow,
|
|
CWCompString* CompReadStr = NULL,
|
|
CWCompAttribute* CompReadAttr = NULL,
|
|
CWCompClause* CompReadClause = NULL,
|
|
CWCompString* ResultStr = NULL,
|
|
CWCompClause* ResultClause = NULL,
|
|
CWCompString* ResultReadStr = NULL,
|
|
CWCompClause* ResultReadClause = NULL,
|
|
CWInterimString* InterimStr = NULL,
|
|
// n.b. ResultRead is not supported for now...
|
|
BOOL fGenerateMessage = TRUE);
|
|
|
|
private:
|
|
|
|
HRESULT _MakeCompositionData(IMCLock& imc,
|
|
CWCompString* CompStr,
|
|
CWCompAttribute* CompAttr,
|
|
CWCompClause* CompClause,
|
|
CWCompCursorPos* CompCursorPos,
|
|
CWCompDeltaStart* CompDeltaStart,
|
|
CWCompTfGuidAtom* CompGuid,
|
|
CWCompString* CompReadStr,
|
|
CWCompAttribute* CompReadAttr,
|
|
CWCompClause* CompReadClause,
|
|
CWCompString* ResultStr,
|
|
CWCompClause* ResultClause,
|
|
CWCompString* ResultReadStr,
|
|
CWCompClause* ResultReadClause,
|
|
OUT LPARAM* lpdwFlag,
|
|
OUT BOOL* lpbBufferOverflow);
|
|
|
|
HRESULT _MakeInterimData(IMCLock& imc,
|
|
CWInterimString* InterimStr,
|
|
LPARAM* lpdwFlag);
|
|
|
|
HRESULT _GenerateHanja(IMCLock& imc,
|
|
CWCompString*,
|
|
BOOL fGenerateMessage);
|
|
|
|
};
|
|
|
|
#endif // _EDITCOMP_H_
|