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
81 lines
2.7 KiB
/*++
|
|
|
|
Copyright (c) 2001, Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
editcomp.h
|
|
|
|
Abstract:
|
|
|
|
This file defines the EditCompositionString Class.
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#ifndef _EDITCOMP_H_
|
|
#define _EDITCOMP_H_
|
|
|
|
#include "imc.h"
|
|
#include "template.h"
|
|
#include "ctxtcomp.h"
|
|
#include "context.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// EditCompositionString
|
|
|
|
class EditCompositionString
|
|
{
|
|
public:
|
|
HRESULT SetString(IMCLock& imc,
|
|
CicInputContext& CicContext,
|
|
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);
|
|
|
|
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 _GenerateKoreanComposition(IMCLock& imc,
|
|
CicInputContext& CicContext,
|
|
CWCompString*);
|
|
};
|
|
|
|
#endif // _EDITCOMP_H_
|