42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
// PARTICULAR PURPOSE.
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved
|
|
|
|
#pragma once
|
|
|
|
#include "EditSession.h"
|
|
|
|
class CSampleIME;
|
|
class CTfTextLayoutSink;
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
//
|
|
// ITfEditSession
|
|
// CEditSessionBase
|
|
// CGetTextExtentEditSession class
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// CGetTextExtentEditSession
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
class CGetTextExtentEditSession : public CEditSessionBase
|
|
{
|
|
public:
|
|
CGetTextExtentEditSession(_In_ CSampleIME *pTextService, _In_ ITfContext *pContext, _In_ ITfContextView *pContextView, _In_ ITfRange *pRangeComposition, _In_ CTfTextLayoutSink *pTextLayoutSink);
|
|
|
|
// ITfEditSession
|
|
STDMETHODIMP DoEditSession(TfEditCookie ec);
|
|
|
|
private:
|
|
ITfContextView* _pContextView;
|
|
ITfRange* _pRangeComposition;
|
|
CTfTextLayoutSink* _pTfTextLayoutSink;
|
|
};
|