ReactOS 0.4.16-dev-1401-gf1332c7
range.cpp File Reference
#include <initguid.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <msctf.h>
#include <msctf_undoc.h>
#include <cicbase.h>
#include <cicreg.h>
#include <cicutb.h>
#include "range.h"
#include "msctf_internal.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, ITextStoreACP *textstore, DWORD lockType, 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,
ITextStoreACP textstore,
DWORD  lockType,
DWORD  anchorStart,
DWORD  anchorEnd,
ITfRange **  ppOut 
)

Definition at line 407 of file range.cpp.

409{
410 CRange *This = new(cicNoThrow) CRange(context, textstore, lockType,
411 (TfAnchor)anchorStart, (TfAnchor)anchorEnd);
412 if (!This)
413 return E_OUTOFMEMORY;
414
415 *ppOut = static_cast<ITfRangeACP *>(This);
416 return S_OK;
417}
#define cicNoThrow
Definition: cicbase.h:34
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 Context_GetEnd(), Context_GetSelection(), Context_GetStart(), and InsertAtSelection_InsertTextAtSelection().

◆ STDMETHODIMP_()

STDMETHODIMP_ ( ULONG  )

Definition at line 125 of file range.cpp.

126{
127 TRACE("%p -> ()\n", this);
128 return InterlockedIncrement(&m_cRefs);
129}
#define InterlockedIncrement
Definition: armddk.h:53
#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 422 of file range.cpp.

423{
425}
static HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
Definition: range.cpp:77
HFONT tf
Definition: icontest.c:17

Referenced by Context_SetSelection().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctf  )