ReactOS 0.4.16-dev-1946-g52006dd
range.cpp File Reference
#include "precomp.h"
#include "range.h"
#include <wine/debug.h>
Include dependency graph for range.cpp:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msctf)
 
 STDMETHODIMP_ (ULONG) CRange
 
EXTERN_C HRESULT Range_Constructor (ITfContext *context, DWORD anchorStart, DWORD anchorEnd, ITfRange **ppOut)
 
EXTERN_C HRESULT TF_SELECTION_to_TS_SELECTION_ACP (const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
 

Function Documentation

◆ Range_Constructor()

EXTERN_C HRESULT Range_Constructor ( ITfContext context,
DWORD  anchorStart,
DWORD  anchorEnd,
ITfRange **  ppOut 
)

Definition at line 372 of file range.cpp.

373{
374 CRange *This = new(cicNoThrow) CRange(context, (TfAnchor)anchorStart, (TfAnchor)anchorEnd);
375 if (!This)
376 return E_OUTOFMEMORY;
377
378 *ppOut = static_cast<ITfRangeACP *>(This);
379 return S_OK;
380}
#define cicNoThrow
Definition: cicbase.h:46
Definition: range.h:9
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define S_OK
Definition: intsafe.h:52
TfAnchor
Definition: msctf.idl:153
Definition: http.c:7252

Referenced by CContext::GetEnd(), CContext::GetSelection(), CContext::GetStart(), and CContext::InsertTextAtSelection().

◆ STDMETHODIMP_()

STDMETHODIMP_ ( ULONG  )

Definition at line 104 of file range.cpp.

105{
106 TRACE("%p -> ()\n", this);
107 return ::InterlockedIncrement(&m_cRefs);
108}
#define TRACE(s)
Definition: solgame.cpp:4

◆ TF_SELECTION_to_TS_SELECTION_ACP()

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

Definition at line 385 of file range.cpp.

386{
388}
static HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
Definition: range.cpp:61
HFONT tf
Definition: icontest.c:17

Referenced by CContext::SetSelection().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctf  )