forked from jrywu/DIME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetTextExtentEditSession.h
40 lines (33 loc) · 1.05 KB
/
GetTextExtentEditSession.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
//
// Derived from Microsoft Sample IME by Jeremy '13,7,17
//
//
//#define DEBUG_PRINT
#pragma once
#include "EditSession.h"
class CDIME;
class CTfTextLayoutSink;
//////////////////////////////////////////////////////////////////////
//
// ITfEditSession
// CEditSessionBase
// CGetTextExtentEditSession class
//
//////////////////////////////////////////////////////////////////////+---------------------------------------------------------------------------
//
// CGetTextExtentEditSession
//
//----------------------------------------------------------------------------
class CGetTextExtentEditSession : public CEditSessionBase
{
public:
CGetTextExtentEditSession(_In_ CDIME *pTextService, _In_ ITfContext *pContext, _In_ ITfContextView *pContextView, _In_ ITfRange *pRangeComposition, _In_ CTfTextLayoutSink *pTextLayoutSink);
// ITfEditSession
STDMETHODIMP DoEditSession(TfEditCookie ec);
private:
CDIME* _pTextService;
ITfContextView* _pContextView;
ITfRange* _pRangeComposition;
CTfTextLayoutSink* _pTfTextLayoutSink;
};