ReactOS  0.4.14-dev-57-g333b8f1
range.c File Reference
#include "config.h"
#include <stdarg.h>
#include "wine/debug.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winuser.h"
#include "shlwapi.h"
#include "winerror.h"
#include "objbase.h"
#include "wine/unicode.h"
#include "msctf.h"
#include "msctf_internal.h"
Include dependency graph for range.c:

Go to the source code of this file.

Classes

struct  tagRange
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct tagRange Range
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msctf)
 
static Rangeimpl_from_ITfRange (ITfRange *iface)
 
static void Range_Destructor (Range *This)
 
static HRESULT WINAPI Range_QueryInterface (ITfRange *iface, REFIID iid, LPVOID *ppvOut)
 
static ULONG WINAPI Range_AddRef (ITfRange *iface)
 
static ULONG WINAPI Range_Release (ITfRange *iface)
 
static HRESULT WINAPI Range_GetText (ITfRange *iface, TfEditCookie ec, DWORD dwFlags, WCHAR *pchText, ULONG cchMax, ULONG *pcch)
 
static HRESULT WINAPI Range_SetText (ITfRange *iface, TfEditCookie ec, DWORD dwFlags, const WCHAR *pchText, LONG cch)
 
static HRESULT WINAPI Range_GetFormattedText (ITfRange *iface, TfEditCookie ec, IDataObject **ppDataObject)
 
static HRESULT WINAPI Range_GetEmbedded (ITfRange *iface, TfEditCookie ec, REFGUID rguidService, REFIID riid, IUnknown **ppunk)
 
static HRESULT WINAPI Range_InsertEmbedded (ITfRange *iface, TfEditCookie ec, DWORD dwFlags, IDataObject *pDataObject)
 
static HRESULT WINAPI Range_ShiftStart (ITfRange *iface, TfEditCookie ec, LONG cchReq, LONG *pcch, const TF_HALTCOND *pHalt)
 
static HRESULT WINAPI Range_ShiftEnd (ITfRange *iface, TfEditCookie ec, LONG cchReq, LONG *pcch, const TF_HALTCOND *pHalt)
 
static HRESULT WINAPI Range_ShiftStartToRange (ITfRange *iface, TfEditCookie ec, ITfRange *pRange, TfAnchor aPos)
 
static HRESULT WINAPI Range_ShiftEndToRange (ITfRange *iface, TfEditCookie ec, ITfRange *pRange, TfAnchor aPos)
 
static HRESULT WINAPI Range_ShiftStartRegion (ITfRange *iface, TfEditCookie ec, TfShiftDir dir, BOOL *pfNoRegion)
 
static HRESULT WINAPI Range_ShiftEndRegion (ITfRange *iface, TfEditCookie ec, TfShiftDir dir, BOOL *pfNoRegion)
 
static HRESULT WINAPI Range_IsEmpty (ITfRange *iface, TfEditCookie ec, BOOL *pfEmpty)
 
static HRESULT WINAPI Range_Collapse (ITfRange *iface, TfEditCookie ec, TfAnchor aPos)
 
static HRESULT WINAPI Range_IsEqualStart (ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
 
static HRESULT WINAPI Range_IsEqualEnd (ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
 
static HRESULT WINAPI Range_CompareStart (ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, LONG *plResult)
 
static HRESULT WINAPI Range_CompareEnd (ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, LONG *plResult)
 
static HRESULT WINAPI Range_AdjustForInsert (ITfRange *iface, TfEditCookie ec, ULONG cchInsert, BOOL *pfInsertOk)
 
static HRESULT WINAPI Range_GetGravity (ITfRange *iface, TfGravity *pgStart, TfGravity *pgEnd)
 
static HRESULT WINAPI Range_SetGravity (ITfRange *iface, TfEditCookie ec, TfGravity gStart, TfGravity gEnd)
 
static HRESULT WINAPI Range_Clone (ITfRange *iface, ITfRange **ppClone)
 
static HRESULT WINAPI Range_GetContext (ITfRange *iface, ITfContext **ppContext)
 
HRESULT Range_Constructor (ITfContext *context, ITextStoreACP *textstore, DWORD lockType, DWORD anchorStart, DWORD anchorEnd, ITfRange **ppOut)
 
HRESULT TF_SELECTION_to_TS_SELECTION_ACP (const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
 

Variables

static const ITfRangeVtbl Range_RangeVtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 25 of file range.c.

Typedef Documentation

◆ Range

Function Documentation

◆ impl_from_ITfRange()

static Range* impl_from_ITfRange ( ITfRange iface)
inlinestatic

◆ Range_AddRef()

static ULONG WINAPI Range_AddRef ( ITfRange iface)
static

Definition at line 88 of file range.c.

89 {
90  Range *This = impl_from_ITfRange(iface);
91  return InterlockedIncrement(&This->refCount);
92 }
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define InterlockedIncrement
Definition: armddk.h:53

◆ Range_AdjustForInsert()

static HRESULT WINAPI Range_AdjustForInsert ( ITfRange iface,
TfEditCookie  ec,
ULONG  cchInsert,
BOOL pfInsertOk 
)
static

Definition at line 258 of file range.c.

260 {
261  Range *This = impl_from_ITfRange(iface);
262  FIXME("STUB:(%p)\n",This);
263  return E_NOTIMPL;
264 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_Clone()

static HRESULT WINAPI Range_Clone ( ITfRange iface,
ITfRange **  ppClone 
)
static

Definition at line 282 of file range.c.

283 {
284  Range *This = impl_from_ITfRange(iface);
285  FIXME("STUB:(%p)\n",This);
286  return E_NOTIMPL;
287 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_Collapse()

static HRESULT WINAPI Range_Collapse ( ITfRange iface,
TfEditCookie  ec,
TfAnchor  aPos 
)
static

Definition at line 205 of file range.c.

207 {
208  Range *This = impl_from_ITfRange(iface);
209  TRACE("(%p) %i %i\n",This,ec,aPos);
210 
211  switch (aPos)
212  {
213  case TF_ANCHOR_START:
214  This->anchorEnd = This->anchorStart;
215  break;
216  case TF_ANCHOR_END:
217  This->anchorStart = This->anchorEnd;
218  break;
219  default:
220  return E_INVALIDARG;
221  }
222 
223  return S_OK;
224 }
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define S_OK
Definition: intsafe.h:59

◆ Range_CompareEnd()

static HRESULT WINAPI Range_CompareEnd ( ITfRange iface,
TfEditCookie  ec,
ITfRange pWith,
TfAnchor  aPos,
LONG plResult 
)
static

Definition at line 250 of file range.c.

252 {
253  Range *This = impl_from_ITfRange(iface);
254  FIXME("STUB:(%p)\n",This);
255  return E_NOTIMPL;
256 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_CompareStart()

static HRESULT WINAPI Range_CompareStart ( ITfRange iface,
TfEditCookie  ec,
ITfRange pWith,
TfAnchor  aPos,
LONG plResult 
)
static

Definition at line 242 of file range.c.

244 {
245  Range *This = impl_from_ITfRange(iface);
246  FIXME("STUB:(%p)\n",This);
247  return E_NOTIMPL;
248 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_Constructor()

HRESULT Range_Constructor ( ITfContext context,
ITextStoreACP textstore,
DWORD  lockType,
DWORD  anchorStart,
DWORD  anchorEnd,
ITfRange **  ppOut 
)

Definition at line 329 of file range.c.

330 {
331  Range *This;
332 
334  if (This == NULL)
335  return E_OUTOFMEMORY;
336 
337  TRACE("(%p) %p %p\n",This, context, textstore);
338 
339  This->ITfRange_iface.lpVtbl = &Range_RangeVtbl;
340  This->refCount = 1;
341  This->pITfContext = context;
342  This->pITextStoreACP = textstore;
343  This->lockType = lockType;
344  This->anchorStart = anchorStart;
345  This->anchorEnd = anchorEnd;
346 
347  *ppOut = &This->ITfRange_iface;
348  TRACE("returning %p\n", *ppOut);
349 
350  return S_OK;
351 }
Definition: http.c:6587
static const ITfRangeVtbl Range_RangeVtbl
Definition: range.c:299
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
Definition: range.c:43
#define S_OK
Definition: intsafe.h:59
#define HEAP_ZERO_MEMORY
Definition: compat.h:123

Referenced by Context_GetEnd(), Context_GetSelection(), Context_GetStart(), and InsertAtSelection_InsertTextAtSelection().

◆ Range_Destructor()

static void Range_Destructor ( Range This)
static

Definition at line 62 of file range.c.

63 {
64  TRACE("destroying %p\n", This);
66 }
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
#define HeapFree(x, y, z)
Definition: compat.h:394

Referenced by Range_Release().

◆ Range_GetContext()

static HRESULT WINAPI Range_GetContext ( ITfRange iface,
ITfContext **  ppContext 
)
static

Definition at line 289 of file range.c.

290 {
291  Range *This = impl_from_ITfRange(iface);
292  TRACE("(%p)\n",This);
293  if (!ppContext)
294  return E_INVALIDARG;
295  *ppContext = This->pITfContext;
296  return S_OK;
297 }
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define S_OK
Definition: intsafe.h:59

◆ Range_GetEmbedded()

static HRESULT WINAPI Range_GetEmbedded ( ITfRange iface,
TfEditCookie  ec,
REFGUID  rguidService,
REFIID  riid,
IUnknown **  ppunk 
)
static

Definition at line 133 of file range.c.

135 {
136  Range *This = impl_from_ITfRange(iface);
137  FIXME("STUB:(%p)\n",This);
138  return E_NOTIMPL;
139 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_GetFormattedText()

static HRESULT WINAPI Range_GetFormattedText ( ITfRange iface,
TfEditCookie  ec,
IDataObject **  ppDataObject 
)
static

Definition at line 125 of file range.c.

127 {
128  Range *This = impl_from_ITfRange(iface);
129  FIXME("STUB:(%p)\n",This);
130  return E_NOTIMPL;
131 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_GetGravity()

static HRESULT WINAPI Range_GetGravity ( ITfRange iface,
TfGravity *  pgStart,
TfGravity *  pgEnd 
)
static

Definition at line 266 of file range.c.

268 {
269  Range *This = impl_from_ITfRange(iface);
270  FIXME("STUB:(%p)\n",This);
271  return E_NOTIMPL;
272 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_GetText()

static HRESULT WINAPI Range_GetText ( ITfRange iface,
TfEditCookie  ec,
DWORD  dwFlags,
WCHAR pchText,
ULONG  cchMax,
ULONG pcch 
)
static

Definition at line 109 of file range.c.

111 {
112  Range *This = impl_from_ITfRange(iface);
113  FIXME("STUB:(%p)\n",This);
114  return E_NOTIMPL;
115 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_InsertEmbedded()

static HRESULT WINAPI Range_InsertEmbedded ( ITfRange iface,
TfEditCookie  ec,
DWORD  dwFlags,
IDataObject pDataObject 
)
static

Definition at line 141 of file range.c.

143 {
144  Range *This = impl_from_ITfRange(iface);
145  FIXME("STUB:(%p)\n",This);
146  return E_NOTIMPL;
147 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_IsEmpty()

static HRESULT WINAPI Range_IsEmpty ( ITfRange iface,
TfEditCookie  ec,
BOOL pfEmpty 
)
static

Definition at line 197 of file range.c.

199 {
200  Range *This = impl_from_ITfRange(iface);
201  FIXME("STUB:(%p)\n",This);
202  return E_NOTIMPL;
203 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_IsEqualEnd()

static HRESULT WINAPI Range_IsEqualEnd ( ITfRange iface,
TfEditCookie  ec,
ITfRange pWith,
TfAnchor  aPos,
BOOL pfEqual 
)
static

Definition at line 234 of file range.c.

236 {
237  Range *This = impl_from_ITfRange(iface);
238  FIXME("STUB:(%p)\n",This);
239  return E_NOTIMPL;
240 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_IsEqualStart()

static HRESULT WINAPI Range_IsEqualStart ( ITfRange iface,
TfEditCookie  ec,
ITfRange pWith,
TfAnchor  aPos,
BOOL pfEqual 
)
static

Definition at line 226 of file range.c.

228 {
229  Range *This = impl_from_ITfRange(iface);
230  FIXME("STUB:(%p)\n",This);
231  return E_NOTIMPL;
232 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_QueryInterface()

static HRESULT WINAPI Range_QueryInterface ( ITfRange iface,
REFIID  iid,
LPVOID ppvOut 
)
static

Definition at line 68 of file range.c.

69 {
70  Range *This = impl_from_ITfRange(iface);
71  *ppvOut = NULL;
72 
73  if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_ITfRange))
74  {
75  *ppvOut = &This->ITfRange_iface;
76  }
77 
78  if (*ppvOut)
79  {
80  ITfRange_AddRef(iface);
81  return S_OK;
82  }
83 
84  WARN("unsupported interface: %s\n", debugstr_guid(iid));
85  return E_NOINTERFACE;
86 }
#define E_NOINTERFACE
Definition: winerror.h:2364
#define WARN(fmt,...)
Definition: debug.h:111
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
const GUID IID_IUnknown
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define S_OK
Definition: intsafe.h:59
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ Range_Release()

static ULONG WINAPI Range_Release ( ITfRange iface)
static

Definition at line 94 of file range.c.

95 {
96  Range *This = impl_from_ITfRange(iface);
97  ULONG ret;
98 
99  ret = InterlockedDecrement(&This->refCount);
100  if (ret == 0)
102  return ret;
103 }
static void Range_Destructor(Range *This)
Definition: range.c:62
int ret
#define InterlockedDecrement
Definition: armddk.h:52
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
unsigned int ULONG
Definition: retypes.h:1

◆ Range_SetGravity()

static HRESULT WINAPI Range_SetGravity ( ITfRange iface,
TfEditCookie  ec,
TfGravity  gStart,
TfGravity  gEnd 
)
static

Definition at line 274 of file range.c.

276 {
277  Range *This = impl_from_ITfRange(iface);
278  FIXME("STUB:(%p)\n",This);
279  return E_NOTIMPL;
280 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_SetText()

static HRESULT WINAPI Range_SetText ( ITfRange iface,
TfEditCookie  ec,
DWORD  dwFlags,
const WCHAR pchText,
LONG  cch 
)
static

Definition at line 117 of file range.c.

119 {
120  Range *This = impl_from_ITfRange(iface);
121  FIXME("STUB:(%p)\n",This);
122  return E_NOTIMPL;
123 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_ShiftEnd()

static HRESULT WINAPI Range_ShiftEnd ( ITfRange iface,
TfEditCookie  ec,
LONG  cchReq,
LONG pcch,
const TF_HALTCOND *  pHalt 
)
static

Definition at line 157 of file range.c.

159 {
160  Range *This = impl_from_ITfRange(iface);
161  FIXME("STUB:(%p)\n",This);
162  return E_NOTIMPL;
163 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_ShiftEndRegion()

static HRESULT WINAPI Range_ShiftEndRegion ( ITfRange iface,
TfEditCookie  ec,
TfShiftDir  dir,
BOOL pfNoRegion 
)
static

Definition at line 189 of file range.c.

191 {
192  Range *This = impl_from_ITfRange(iface);
193  FIXME("STUB:(%p)\n",This);
194  return E_NOTIMPL;
195 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_ShiftEndToRange()

static HRESULT WINAPI Range_ShiftEndToRange ( ITfRange iface,
TfEditCookie  ec,
ITfRange pRange,
TfAnchor  aPos 
)
static

Definition at line 173 of file range.c.

175 {
176  Range *This = impl_from_ITfRange(iface);
177  FIXME("STUB:(%p)\n",This);
178  return E_NOTIMPL;
179 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_ShiftStart()

static HRESULT WINAPI Range_ShiftStart ( ITfRange iface,
TfEditCookie  ec,
LONG  cchReq,
LONG pcch,
const TF_HALTCOND *  pHalt 
)
static

Definition at line 149 of file range.c.

151 {
152  Range *This = impl_from_ITfRange(iface);
153  FIXME("STUB:(%p)\n",This);
154  return E_NOTIMPL;
155 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_ShiftStartRegion()

static HRESULT WINAPI Range_ShiftStartRegion ( ITfRange iface,
TfEditCookie  ec,
TfShiftDir  dir,
BOOL pfNoRegion 
)
static

Definition at line 181 of file range.c.

183 {
184  Range *This = impl_from_ITfRange(iface);
185  FIXME("STUB:(%p)\n",This);
186  return E_NOTIMPL;
187 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Range_ShiftStartToRange()

static HRESULT WINAPI Range_ShiftStartToRange ( ITfRange iface,
TfEditCookie  ec,
ITfRange pRange,
TfAnchor  aPos 
)
static

Definition at line 165 of file range.c.

167 {
168  Range *This = impl_from_ITfRange(iface);
169  FIXME("STUB:(%p)\n",This);
170  return E_NOTIMPL;
171 }
#define FIXME(fmt,...)
Definition: debug.h:110
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ TF_SELECTION_to_TS_SELECTION_ACP()

HRESULT TF_SELECTION_to_TS_SELECTION_ACP ( const TF_SELECTION *  tf,
TS_SELECTION_ACP tsAcp 
)

Definition at line 355 of file range.c.

356 {
357  Range *This;
358 
359  if (!tf || !tsAcp || !tf->range)
360  return E_INVALIDARG;
361 
362  This = impl_from_ITfRange(tf->range);
363 
364  tsAcp->acpStart = This->anchorStart;
365  tsAcp->acpEnd = This->anchorEnd;
366  tsAcp->style.ase = tf->style.ase;
367  tsAcp->style.fInterimChar = tf->style.fInterimChar;
368  return S_OK;
369 }
TS_SELECTIONSTYLE style
Definition: textstor.idl:94
HFONT tf
Definition: icontest.c:17
#define E_INVALIDARG
Definition: ddrawi.h:101
static Range * impl_from_ITfRange(ITfRange *iface)
Definition: range.c:57
Definition: range.c:43
#define S_OK
Definition: intsafe.h:59
TsActiveSelEnd ase
Definition: textstor.idl:86

Referenced by Context_SetSelection().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctf  )

Variable Documentation

◆ Range_RangeVtbl

const ITfRangeVtbl Range_RangeVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI Range_QueryInterface(ITfRange *iface, REFIID iid, LPVOID *ppvOut)
Definition: range.c:68
static HRESULT WINAPI Range_ShiftEndToRange(ITfRange *iface, TfEditCookie ec, ITfRange *pRange, TfAnchor aPos)
Definition: range.c:173
static HRESULT WINAPI Range_ShiftEnd(ITfRange *iface, TfEditCookie ec, LONG cchReq, LONG *pcch, const TF_HALTCOND *pHalt)
Definition: range.c:157
static HRESULT WINAPI Range_ShiftStart(ITfRange *iface, TfEditCookie ec, LONG cchReq, LONG *pcch, const TF_HALTCOND *pHalt)
Definition: range.c:149
static HRESULT WINAPI Range_GetContext(ITfRange *iface, ITfContext **ppContext)
Definition: range.c:289
static HRESULT WINAPI Range_ShiftEndRegion(ITfRange *iface, TfEditCookie ec, TfShiftDir dir, BOOL *pfNoRegion)
Definition: range.c:189
static HRESULT WINAPI Range_SetGravity(ITfRange *iface, TfEditCookie ec, TfGravity gStart, TfGravity gEnd)
Definition: range.c:274
static HRESULT WINAPI Range_GetEmbedded(ITfRange *iface, TfEditCookie ec, REFGUID rguidService, REFIID riid, IUnknown **ppunk)
Definition: range.c:133
static HRESULT WINAPI Range_GetText(ITfRange *iface, TfEditCookie ec, DWORD dwFlags, WCHAR *pchText, ULONG cchMax, ULONG *pcch)
Definition: range.c:109
static HRESULT WINAPI Range_Clone(ITfRange *iface, ITfRange **ppClone)
Definition: range.c:282
static HRESULT WINAPI Range_GetGravity(ITfRange *iface, TfGravity *pgStart, TfGravity *pgEnd)
Definition: range.c:266
static HRESULT WINAPI Range_CompareStart(ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, LONG *plResult)
Definition: range.c:242
static HRESULT WINAPI Range_ShiftStartToRange(ITfRange *iface, TfEditCookie ec, ITfRange *pRange, TfAnchor aPos)
Definition: range.c:165
static ULONG WINAPI Range_Release(ITfRange *iface)
Definition: range.c:94
static ULONG WINAPI Range_AddRef(ITfRange *iface)
Definition: range.c:88
static HRESULT WINAPI Range_InsertEmbedded(ITfRange *iface, TfEditCookie ec, DWORD dwFlags, IDataObject *pDataObject)
Definition: range.c:141
static HRESULT WINAPI Range_SetText(ITfRange *iface, TfEditCookie ec, DWORD dwFlags, const WCHAR *pchText, LONG cch)
Definition: range.c:117
static HRESULT WINAPI Range_IsEqualStart(ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
Definition: range.c:226
static HRESULT WINAPI Range_ShiftStartRegion(ITfRange *iface, TfEditCookie ec, TfShiftDir dir, BOOL *pfNoRegion)
Definition: range.c:181
static HRESULT WINAPI Range_Collapse(ITfRange *iface, TfEditCookie ec, TfAnchor aPos)
Definition: range.c:205
static HRESULT WINAPI Range_CompareEnd(ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, LONG *plResult)
Definition: range.c:250
static HRESULT WINAPI Range_IsEmpty(ITfRange *iface, TfEditCookie ec, BOOL *pfEmpty)
Definition: range.c:197
static HRESULT WINAPI Range_GetFormattedText(ITfRange *iface, TfEditCookie ec, IDataObject **ppDataObject)
Definition: range.c:125
static HRESULT WINAPI Range_IsEqualEnd(ITfRange *iface, TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
Definition: range.c:234
static HRESULT WINAPI Range_AdjustForInsert(ITfRange *iface, TfEditCookie ec, ULONG cchInsert, BOOL *pfInsertOk)
Definition: range.c:258

Definition at line 299 of file range.c.

Referenced by Range_Constructor().