ReactOS 0.4.16-dev-1453-g06343fa
CRange Class Reference

#include <range.h>

Inheritance diagram for CRange:
Collaboration diagram for CRange:

Public Member Functions

 CRange (_In_ ITfContext *context, _In_ ITextStoreACP *textstore, _In_ DWORD lockType, _In_ TfAnchor anchorStart, _In_ TfAnchor anchorEnd)
 
virtual ~CRange ()
 
STDMETHODIMP QueryInterface (REFIID riid, void **ppvObj) override
 
 STDMETHODIMP_ (ULONG) AddRef() override
 
 STDMETHODIMP_ (ULONG) Release() override
 
STDMETHODIMP GetText (_In_ TfEditCookie ec, _In_ DWORD dwFlags, _Out_ WCHAR *pchText, _In_ ULONG cchMax, _Out_ ULONG *pcch) override
 
STDMETHODIMP SetText (_In_ TfEditCookie ec, _In_ DWORD dwFlags, _In_ const WCHAR *pchText, _In_ LONG cch) override
 
STDMETHODIMP GetFormattedText (_In_ TfEditCookie ec, _Out_ IDataObject **ppDataObject) override
 
STDMETHODIMP GetEmbedded (_In_ TfEditCookie ec, _In_ REFGUID rguidService, _In_ REFIID riid, _Out_ IUnknown **ppunk) override
 
STDMETHODIMP InsertEmbedded (_In_ TfEditCookie ec, _In_ DWORD dwFlags, _In_ IDataObject *pDataObject) override
 
STDMETHODIMP ShiftStart (_In_ TfEditCookie ec, _In_ LONG cchReq, _Out_ LONG *pcch, _In_ const TF_HALTCOND *pHalt) override
 
STDMETHODIMP ShiftEnd (_In_ TfEditCookie ec, _In_ LONG cchReq, _Out_ LONG *pcch, _In_ const TF_HALTCOND *pHalt) override
 
STDMETHODIMP ShiftStartToRange (_In_ TfEditCookie ec, _In_ ITfRange *pRange, _In_ TfAnchor aPos) override
 
STDMETHODIMP ShiftEndToRange (_In_ TfEditCookie ec, _In_ ITfRange *pRange, _In_ TfAnchor aPos) override
 
STDMETHODIMP ShiftStartRegion (_In_ TfEditCookie ec, _In_ TfShiftDir dir, _Out_ BOOL *pfNoRegion) override
 
STDMETHODIMP ShiftEndRegion (_In_ TfEditCookie ec, _In_ TfShiftDir dir, _Out_ BOOL *pfNoRegion) override
 
STDMETHODIMP IsEmpty (_In_ TfEditCookie ec, _Out_ BOOL *pfEmpty) override
 
STDMETHODIMP Collapse (_In_ TfEditCookie ec, _In_ TfAnchor aPos) override
 
STDMETHODIMP IsEqualStart (_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ BOOL *pfEqual) override
 
STDMETHODIMP IsEqualEnd (_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ BOOL *pfEqual) override
 
STDMETHODIMP CompareStart (_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ LONG *plResult) override
 
STDMETHODIMP CompareEnd (_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ LONG *plResult) override
 
STDMETHODIMP AdjustForInsert (_In_ TfEditCookie ec, _In_ ULONG cchInsert, _Out_ BOOL *pfInsertOk) override
 
STDMETHODIMP GetGravity (_Out_ TfGravity *pgStart, _Out_ TfGravity *pgEnd) override
 
STDMETHODIMP SetGravity (_In_ TfEditCookie ec, _In_ TfGravity gStart, _In_ TfGravity gEnd) override
 
STDMETHODIMP Clone (_Out_ ITfRange **ppClone) override
 
STDMETHODIMP GetContext (_Out_ ITfContext **ppContext) override
 
STDMETHODIMP GetExtent (_Out_ LONG *pacpAnchor, _Out_ LONG *pcch) override
 
STDMETHODIMP SetExtent (_In_ LONG acpAnchor, _In_ LONG cch) override
 
STDMETHODIMP GetExtent (_Out_ IAnchor **ppStart, _Out_ IAnchor **ppEnd) override
 
STDMETHODIMP SetExtent (_In_ IAnchor *pAnchorStart, _In_ IAnchor *pAnchorEnd) override
 
STDMETHODIMP AdviseSink (_In_ REFIID riid, _In_ IUnknown *punk, _Out_ DWORD *pdwCookie) override
 
STDMETHODIMP UnadviseSink (_In_ DWORD dwCookie) override
 
- Public Member Functions inherited from ITfRangeACP
HRESULT GetExtent ([out] LONG *pacpAnchor, [out] LONG *pcch)
 
HRESULT SetExtent ([in] LONG acpAnchor, [in] LONG cch)
 
- Public Member Functions inherited from ITfRange
HRESULT GetText ([in] TfEditCookie ec, [in] DWORD dwFlags, [out, size_is(cchMax), length_is(*pcch)] WCHAR *pchText, [in] ULONG cchMax, [out] ULONG *pcch)
 
HRESULT SetText ([in] TfEditCookie ec, [in] DWORD dwFlags, [in, size_is(cch), unique] const WCHAR *pchText, [in] LONG cch)
 
HRESULT GetFormattedText ([in] TfEditCookie ec, [out] IDataObject **ppDataObject)
 
HRESULT GetEmbedded ([in] TfEditCookie ec, [in] REFGUID rguidService, [in] REFIID riid, [out, iid_is(riid)] IUnknown **ppunk)
 
HRESULT InsertEmbedded ([in] TfEditCookie ec, [in] DWORD dwFlags, [in] IDataObject *pDataObject)
 
HRESULT ShiftStart ([in] TfEditCookie ec, [in] LONG cchReq, [out] LONG *pcch, [in, unique] const TF_HALTCOND *pHalt)
 
HRESULT ShiftEnd ([in] TfEditCookie ec, [in] LONG cchReq, [out] LONG *pcch, [in, unique] const TF_HALTCOND *pHalt)
 
HRESULT ShiftStartToRange ([in] TfEditCookie ec, [in] ITfRange *pRange, [in] TfAnchor aPos)
 
HRESULT ShiftEndToRange ([in] TfEditCookie ec, [in] ITfRange *pRange, [in] TfAnchor aPos)
 
HRESULT ShiftStartRegion ([in] TfEditCookie ec, [in] TfShiftDir dir, [out] BOOL *pfNoRegion)
 
HRESULT ShiftEndRegion ([in] TfEditCookie ec, [in] TfShiftDir dir, [out] BOOL *pfNoRegion)
 
HRESULT IsEmpty ([in] TfEditCookie ec, [out] BOOL *pfEmpty)
 
HRESULT Collapse ([in] TfEditCookie ec, [in] TfAnchor aPos)
 
HRESULT IsEqualStart ([in] TfEditCookie ec, [in] ITfRange *pWith, [in] TfAnchor aPos, [out] BOOL *pfEqual)
 
HRESULT IsEqualEnd ([in] TfEditCookie ec, [in] ITfRange *pWith, [in] TfAnchor aPos, [out] BOOL *pfEqual)
 
HRESULT CompareStart ([in] TfEditCookie ec, [in] ITfRange *pWith, [in] TfAnchor aPos, [out] LONG *plResult)
 
HRESULT CompareEnd ([in] TfEditCookie ec, [in] ITfRange *pWith, [in] TfAnchor aPos, [out] LONG *plResult)
 
HRESULT AdjustForInsert ([in] TfEditCookie ec, [in] ULONG cchInsert, [out] BOOL *pfInsertOk)
 
HRESULT GetGravity ([out] TfGravity *pgStart, [out] TfGravity *pgEnd)
 
HRESULT SetGravity ([in] TfEditCookie ec, [in] TfGravity gStart, [in] TfGravity gEnd)
 
HRESULT Clone ([out] ITfRange **ppClone)
 
HRESULT GetContext ([out] ITfContext **ppContext)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 
- Public Member Functions inherited from ITfRangeAnchor
HRESULT GetExtent ([out] IAnchor **ppStart, [out] IAnchor **ppEnd)
 
HRESULT SetExtent ([in] IAnchor *pAnchorStart, [in] IAnchor *pAnchorEnd)
 
- Public Member Functions inherited from ITfSource
HRESULT AdviseSink ([in] REFIID riid, [in, iid_is(riid)] IUnknown *punk, [out] DWORD *pdwCookie)
 
HRESULT UnadviseSink ([in] DWORD dwCookie)
 

Static Public Member Functions

static HRESULT TF_SELECTION_to_TS_SELECTION_ACP (const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
 

Protected Member Functions

CRange_Clone ()
 
HRESULT _IsEqualX (TfEditCookie ec, BOOL bEnd, ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
 
HRESULT _CompareX (TfEditCookie ec, BOOL bEnd, ITfRange *pWidth, TfAnchor aPos, LONG *plResult)
 

Protected Attributes

ITfContextm_pContext
 
ITextStoreACPm_pTextStore
 
DWORD m_dwLockType
 
TfAnchor m_anchorStart
 
TfAnchor m_anchorEnd
 
DWORD m_dwCookie
 
LONG m_cRefs
 

Additional Inherited Members

- Public Types inherited from ITfRange
enum  TfGravity { TF_GRAVITY_BACKWARD = 0 , TF_GRAVITY_FORWARD = 1 }
 
enum  TfShiftDir { TF_SD_BACKWARD = 0 , TF_SD_FORWARD = 1 }
 
typedef struct ITfRange::TF_HALTCOND TF_HALTCOND
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Attributes inherited from ITfRange
const WCHAR TF_CHAR_EMBEDDED = TS_CHAR_EMBEDDED
 
const DWORD TF_HF_OBJECT = 1
 
const DWORD TF_TF_MOVESTART = 1
 
const DWORD TF_TF_IGNOREEND = 2
 
const DWORD TF_ST_CORRECTION = 1
 
const DWORD TF_IE_CORRECTION = 1
 

Detailed Description

Definition at line 5 of file range.h.

Constructor & Destructor Documentation

◆ CRange()

CRange::CRange ( _In_ ITfContext context,
_In_ ITextStoreACP textstore,
_In_ DWORD  lockType,
_In_ TfAnchor  anchorStart,
_In_ TfAnchor  anchorEnd 
)

Definition at line 31 of file range.cpp.

39 , m_pTextStore(textstore)
40 , m_dwLockType(lockType)
41 , m_anchorStart(anchorStart)
42 , m_anchorEnd(anchorEnd)
44 , m_cRefs(1)
45{
46}
LONG m_cRefs
Definition: range.h:17
ITextStoreACP * m_pTextStore
Definition: range.h:12
DWORD m_dwLockType
Definition: range.h:13
TfAnchor m_anchorStart
Definition: range.h:14
ITfContext * m_pContext
Definition: range.h:11
DWORD m_dwCookie
Definition: range.h:16
TfAnchor m_anchorEnd
Definition: range.h:15
#define MAXDWORD
Definition: http.c:7252

◆ ~CRange()

CRange::~CRange ( )
virtual

Definition at line 48 of file range.cpp.

49{
50}

Member Function Documentation

◆ _Clone()

CRange * CRange::_Clone ( )
protected

Definition at line 52 of file range.cpp.

53{
56 if (!pRange)
57 return NULL;
58 pRange->m_dwCookie = m_dwCookie;
59 return pRange;
60}
#define cicNoThrow
Definition: cicbase.h:34
Definition: range.h:9
#define NULL
Definition: types.h:112

Referenced by Clone().

◆ _CompareX()

HRESULT CRange::_CompareX ( TfEditCookie  ec,
BOOL  bEnd,
ITfRange pWidth,
TfAnchor  aPos,
LONG plResult 
)
protected

Definition at line 67 of file range.cpp.

73{
74 return E_NOTIMPL;
75}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ _IsEqualX()

HRESULT CRange::_IsEqualX ( TfEditCookie  ec,
BOOL  bEnd,
ITfRange pWith,
TfAnchor  aPos,
BOOL pfEqual 
)
protected

Definition at line 62 of file range.cpp.

63{
64 return E_NOTIMPL;
65}

Referenced by IsEqualEnd(), and IsEqualStart().

◆ AdjustForInsert()

STDMETHODIMP CRange::AdjustForInsert ( _In_ TfEditCookie  ec,
_In_ ULONG  cchInsert,
_Out_ BOOL pfInsertOk 
)
override

Definition at line 305 of file range.cpp.

309{
310 FIXME("\n");
311 return E_NOTIMPL;
312}
#define FIXME(fmt,...)
Definition: precomp.h:53

◆ AdviseSink()

STDMETHODIMP CRange::AdviseSink ( _In_ REFIID  riid,
_In_ IUnknown punk,
_Out_ DWORD pdwCookie 
)
override

Definition at line 387 of file range.cpp.

391{
392 FIXME("\n");
393 return E_NOTIMPL;
394}

◆ Clone()

STDMETHODIMP CRange::Clone ( _Out_ ITfRange **  ppClone)
override

Definition at line 331 of file range.cpp.

333{
334 TRACE("%p\n", ppClone);
335
336 if (!ppClone)
337 return E_INVALIDARG;
338
339 CRange *pCloned = _Clone();
340 if (!pCloned)
341 return E_OUTOFMEMORY;
342
343 *ppClone = static_cast<ITfRangeACP *>(pCloned);
344 return S_OK;
345}
CRange * _Clone()
Definition: range.cpp:52
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_INVALIDARG
Definition: ddrawi.h:101
#define S_OK
Definition: intsafe.h:52
#define TRACE(s)
Definition: solgame.cpp:4

◆ Collapse()

STDMETHODIMP CRange::Collapse ( _In_ TfEditCookie  ec,
_In_ TfAnchor  aPos 
)
override

Definition at line 257 of file range.cpp.

260{
261 FIXME("\n");
262 return E_NOTIMPL;
263}

◆ CompareEnd()

STDMETHODIMP CRange::CompareEnd ( _In_ TfEditCookie  ec,
_In_ ITfRange pWith,
_In_ TfAnchor  aPos,
_Out_ LONG plResult 
)
override

Definition at line 295 of file range.cpp.

300{
301 FIXME("\n");
302 return E_NOTIMPL;
303}

◆ CompareStart()

STDMETHODIMP CRange::CompareStart ( _In_ TfEditCookie  ec,
_In_ ITfRange pWith,
_In_ TfAnchor  aPos,
_Out_ LONG plResult 
)
override

Definition at line 285 of file range.cpp.

290{
291 FIXME("\n");
292 return E_NOTIMPL;
293}

◆ GetContext()

STDMETHODIMP CRange::GetContext ( _Out_ ITfContext **  ppContext)
override

Definition at line 347 of file range.cpp.

349{
350 FIXME("%p\n", ppContext);
351 return E_NOTIMPL;
352}

◆ GetEmbedded()

STDMETHODIMP CRange::GetEmbedded ( _In_ TfEditCookie  ec,
_In_ REFGUID  rguidService,
_In_ REFIID  riid,
_Out_ IUnknown **  ppunk 
)
override

Definition at line 174 of file range.cpp.

179{
180 FIXME("\n");
181 return E_NOTIMPL;
182}

◆ GetExtent() [1/2]

STDMETHODIMP CRange::GetExtent ( _Out_ IAnchor **  ppStart,
_Out_ IAnchor **  ppEnd 
)
override

Definition at line 372 of file range.cpp.

373{
374 FIXME("\n");
375 return E_NOTIMPL;
376}

◆ GetExtent() [2/2]

STDMETHODIMP CRange::GetExtent ( _Out_ LONG pacpAnchor,
_Out_ LONG pcch 
)
override

Definition at line 357 of file range.cpp.

358{
359 FIXME("\n");
360 return E_NOTIMPL;
361}

◆ GetFormattedText()

STDMETHODIMP CRange::GetFormattedText ( _In_ TfEditCookie  ec,
_Out_ IDataObject **  ppDataObject 
)
override

Definition at line 166 of file range.cpp.

169{
170 FIXME("\n");
171 return E_NOTIMPL;
172}

◆ GetGravity()

STDMETHODIMP CRange::GetGravity ( _Out_ TfGravity pgStart,
_Out_ TfGravity pgEnd 
)
override

Definition at line 314 of file range.cpp.

317{
318 FIXME("\n");
319 return E_NOTIMPL;
320}

◆ GetText()

STDMETHODIMP CRange::GetText ( _In_ TfEditCookie  ec,
_In_ DWORD  dwFlags,
_Out_ WCHAR pchText,
_In_ ULONG  cchMax,
_Out_ ULONG pcch 
)
override

Definition at line 145 of file range.cpp.

151{
152 FIXME("\n");
153 return E_NOTIMPL;
154}

◆ InsertEmbedded()

STDMETHODIMP CRange::InsertEmbedded ( _In_ TfEditCookie  ec,
_In_ DWORD  dwFlags,
_In_ IDataObject pDataObject 
)
override

Definition at line 184 of file range.cpp.

188{
189 FIXME("\n");
190 return E_NOTIMPL;
191}

◆ IsEmpty()

STDMETHODIMP CRange::IsEmpty ( _In_ TfEditCookie  ec,
_Out_ BOOL pfEmpty 
)
override

Definition at line 249 of file range.cpp.

252{
253 TRACE("(%d, %p)\n", ec, pfEmpty);
254 return IsEqualStart(ec, static_cast<ITfRangeACP *>(this), TF_ANCHOR_END, pfEmpty);
255}
STDMETHODIMP IsEqualStart(_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ BOOL *pfEqual) override
Definition: range.cpp:265
@ TF_ANCHOR_END
Definition: msctf.idl:153

◆ IsEqualEnd()

STDMETHODIMP CRange::IsEqualEnd ( _In_ TfEditCookie  ec,
_In_ ITfRange pWith,
_In_ TfAnchor  aPos,
_Out_ BOOL pfEqual 
)
override

Definition at line 275 of file range.cpp.

280{
281 FIXME("\n");
282 return _IsEqualX(ec, TRUE, pWith, aPos, pfEqual);
283}
HRESULT _IsEqualX(TfEditCookie ec, BOOL bEnd, ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
Definition: range.cpp:62
#define TRUE
Definition: types.h:120

◆ IsEqualStart()

STDMETHODIMP CRange::IsEqualStart ( _In_ TfEditCookie  ec,
_In_ ITfRange pWith,
_In_ TfAnchor  aPos,
_Out_ BOOL pfEqual 
)
override

Definition at line 265 of file range.cpp.

270{
271 FIXME("\n");
272 return _IsEqualX(ec, FALSE, pWith, aPos, pfEqual);
273}
#define FALSE
Definition: types.h:117

Referenced by IsEmpty().

◆ QueryInterface()

STDMETHODIMP CRange::QueryInterface ( REFIID  riid,
void **  ppvObj 
)
override

Implements IUnknown.

Definition at line 96 of file range.cpp.

97{
98 if (IsEqualGUID(riid, IID_PRIV_CRANGE))
99 {
100 *ppvObj = this;
101 return S_OK; // No AddRef
102 }
103
104 if (IsEqualGUID(riid, IID_ITfRange) || IsEqualGUID(riid, IID_IUnknown))
105 *ppvObj = this;
106 else if (IsEqualGUID(riid, IID_ITfRangeACP))
107 *ppvObj = static_cast<ITfRangeACP *>(this);
108 else if (IsEqualGUID(riid, IID_ITfRangeAnchor))
109 *ppvObj = static_cast<ITfRangeAnchor *>(this);
110 else if (IsEqualGUID(riid, IID_ITfSource))
111 *ppvObj = static_cast<ITfSource *>(this);
112 else
113 *ppvObj = NULL;
114
115 if (*ppvObj)
116 {
117 AddRef();
118 return S_OK;
119 }
120
121 ERR("E_NOINTERFACE: %s\n", wine_dbgstr_guid(&riid));
122 return E_NOINTERFACE;
123}
#define ERR(fmt,...)
Definition: precomp.h:57
const GUID IID_IUnknown
REFIID riid
Definition: atlbase.h:39
ULONG AddRef()
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
static __inline const char * wine_dbgstr_guid(const GUID *id)
Definition: debug.h:197
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ SetExtent() [1/2]

STDMETHODIMP CRange::SetExtent ( _In_ IAnchor pAnchorStart,
_In_ IAnchor pAnchorEnd 
)
override

Definition at line 378 of file range.cpp.

379{
380 FIXME("\n");
381 return E_NOTIMPL;
382}

◆ SetExtent() [2/2]

STDMETHODIMP CRange::SetExtent ( _In_ LONG  acpAnchor,
_In_ LONG  cch 
)
override

Definition at line 363 of file range.cpp.

364{
365 FIXME("\n");
366 return E_NOTIMPL;
367}

◆ SetGravity()

STDMETHODIMP CRange::SetGravity ( _In_ TfEditCookie  ec,
_In_ TfGravity  gStart,
_In_ TfGravity  gEnd 
)
override

Definition at line 322 of file range.cpp.

326{
327 FIXME("\n");
328 return E_NOTIMPL;
329}

◆ SetText()

STDMETHODIMP CRange::SetText ( _In_ TfEditCookie  ec,
_In_ DWORD  dwFlags,
_In_ const WCHAR pchText,
_In_ LONG  cch 
)
override

Definition at line 156 of file range.cpp.

161{
162 FIXME("\n");
163 return E_NOTIMPL;
164}

◆ ShiftEnd()

STDMETHODIMP CRange::ShiftEnd ( _In_ TfEditCookie  ec,
_In_ LONG  cchReq,
_Out_ LONG pcch,
_In_ const TF_HALTCOND pHalt 
)
override

Definition at line 203 of file range.cpp.

208{
209 FIXME("\n");
210 return E_NOTIMPL;
211}

◆ ShiftEndRegion()

STDMETHODIMP CRange::ShiftEndRegion ( _In_ TfEditCookie  ec,
_In_ TfShiftDir  dir,
_Out_ BOOL pfNoRegion 
)
override

Definition at line 240 of file range.cpp.

244{
245 FIXME("\n");
246 return E_NOTIMPL;
247}

◆ ShiftEndToRange()

STDMETHODIMP CRange::ShiftEndToRange ( _In_ TfEditCookie  ec,
_In_ ITfRange pRange,
_In_ TfAnchor  aPos 
)
override

Definition at line 222 of file range.cpp.

226{
227 FIXME("\n");
228 return E_NOTIMPL;
229}

◆ ShiftStart()

STDMETHODIMP CRange::ShiftStart ( _In_ TfEditCookie  ec,
_In_ LONG  cchReq,
_Out_ LONG pcch,
_In_ const TF_HALTCOND pHalt 
)
override

Definition at line 193 of file range.cpp.

198{
199 FIXME("\n");
200 return E_NOTIMPL;
201}

◆ ShiftStartRegion()

STDMETHODIMP CRange::ShiftStartRegion ( _In_ TfEditCookie  ec,
_In_ TfShiftDir  dir,
_Out_ BOOL pfNoRegion 
)
override

Definition at line 231 of file range.cpp.

235{
236 FIXME("\n");
237 return E_NOTIMPL;
238}

◆ ShiftStartToRange()

STDMETHODIMP CRange::ShiftStartToRange ( _In_ TfEditCookie  ec,
_In_ ITfRange pRange,
_In_ TfAnchor  aPos 
)
override

Definition at line 213 of file range.cpp.

217{
218 FIXME("\n");
219 return E_NOTIMPL;
220}

◆ STDMETHODIMP_() [1/2]

CRange::STDMETHODIMP_ ( ULONG  )
override

◆ STDMETHODIMP_() [2/2]

CRange::STDMETHODIMP_ ( ULONG  )
override

◆ TF_SELECTION_to_TS_SELECTION_ACP()

HRESULT CRange::TF_SELECTION_to_TS_SELECTION_ACP ( const TF_SELECTION *  tf,
TS_SELECTION_ACP tsAcp 
)
static

Definition at line 77 of file range.cpp.

78{
79 if (!tf || !tsAcp || !tf->range)
80 {
81 ERR("E_INVALIDARG: %p, %p, %p\n", tf, tsAcp, tf->range);
82 return E_INVALIDARG;
83 }
84
85 CRange *This = static_cast<CRange *>(static_cast<ITfRangeACP *>(tf->range));
86 tsAcp->acpStart = This->m_anchorStart;
87 tsAcp->acpEnd = This->m_anchorEnd;
88 tsAcp->style.ase = static_cast<TsActiveSelEnd>(tf->style.ase);
89 tsAcp->style.fInterimChar = tf->style.fInterimChar;
90 return S_OK;
91}
HFONT tf
Definition: icontest.c:17
TsActiveSelEnd ase
Definition: textstor.idl:86
TS_SELECTIONSTYLE style
Definition: textstor.idl:94
TsActiveSelEnd
Definition: textstor.idl:67

Referenced by TF_SELECTION_to_TS_SELECTION_ACP().

◆ UnadviseSink()

STDMETHODIMP CRange::UnadviseSink ( _In_ DWORD  dwCookie)
override

Definition at line 396 of file range.cpp.

398{
399 FIXME("\n");
400 return E_NOTIMPL;
401}

Member Data Documentation

◆ m_anchorEnd

TfAnchor CRange::m_anchorEnd
protected

Definition at line 15 of file range.h.

Referenced by _Clone().

◆ m_anchorStart

TfAnchor CRange::m_anchorStart
protected

Definition at line 14 of file range.h.

Referenced by _Clone().

◆ m_cRefs

LONG CRange::m_cRefs
protected

Definition at line 17 of file range.h.

Referenced by STDMETHODIMP_().

◆ m_dwCookie

DWORD CRange::m_dwCookie
protected

Definition at line 16 of file range.h.

Referenced by _Clone().

◆ m_dwLockType

DWORD CRange::m_dwLockType
protected

Definition at line 13 of file range.h.

Referenced by _Clone().

◆ m_pContext

ITfContext* CRange::m_pContext
protected

Definition at line 11 of file range.h.

Referenced by _Clone().

◆ m_pTextStore

ITextStoreACP* CRange::m_pTextStore
protected

Definition at line 12 of file range.h.

Referenced by _Clone().


The documentation for this class was generated from the following files: