14#include <msctf_undoc.h>
39 , m_pTextStore(textstore)
40 , m_dwLockType(lockType)
41 , m_anchorStart(anchorStart)
42 , m_anchorEnd(anchorEnd)
79 if (!
tf || !tsAcp || !
tf->range)
81 ERR(
"E_INVALIDARG: %p, %p, %p\n",
tf, tsAcp,
tf->range);
111 *ppvObj =
static_cast<ITfSource *
>(
this);
127 TRACE(
"%p -> ()\n",
this);
133 TRACE(
"%p -> ()\n",
this);
253 TRACE(
"(%d, %p)\n", ec, pfEmpty);
334 TRACE(
"%p\n", ppClone);
350 FIXME(
"%p\n", ppContext);
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj) override
STDMETHODIMP Clone(_Out_ ITfRange **ppClone) override
STDMETHODIMP ShiftStart(_In_ TfEditCookie ec, _In_ LONG cchReq, _Out_ LONG *pcch, _In_ const TF_HALTCOND *pHalt) override
STDMETHODIMP Collapse(_In_ TfEditCookie ec, _In_ TfAnchor aPos) override
STDMETHODIMP SetGravity(_In_ TfEditCookie ec, _In_ TfGravity gStart, _In_ TfGravity gEnd) override
STDMETHODIMP GetContext(_Out_ ITfContext **ppContext) override
STDMETHODIMP CompareEnd(_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ LONG *plResult) override
STDMETHODIMP ShiftEnd(_In_ TfEditCookie ec, _In_ LONG cchReq, _Out_ LONG *pcch, _In_ const TF_HALTCOND *pHalt) override
STDMETHODIMP ShiftEndToRange(_In_ TfEditCookie ec, _In_ ITfRange *pRange, _In_ TfAnchor aPos) override
STDMETHODIMP AdviseSink(_In_ REFIID riid, _In_ IUnknown *punk, _Out_ DWORD *pdwCookie) override
ITextStoreACP * m_pTextStore
STDMETHODIMP IsEmpty(_In_ TfEditCookie ec, _Out_ BOOL *pfEmpty) override
STDMETHODIMP UnadviseSink(_In_ DWORD dwCookie) override
STDMETHODIMP ShiftEndRegion(_In_ TfEditCookie ec, _In_ TfShiftDir dir, _Out_ BOOL *pfNoRegion) override
STDMETHODIMP SetExtent(_In_ LONG acpAnchor, _In_ LONG cch) override
STDMETHODIMP CompareStart(_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ LONG *plResult) override
CRange(_In_ ITfContext *context, _In_ ITextStoreACP *textstore, _In_ DWORD lockType, _In_ TfAnchor anchorStart, _In_ TfAnchor anchorEnd)
static HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
STDMETHODIMP ShiftStartRegion(_In_ TfEditCookie ec, _In_ TfShiftDir dir, _Out_ BOOL *pfNoRegion) override
STDMETHODIMP GetFormattedText(_In_ TfEditCookie ec, _Out_ IDataObject **ppDataObject) override
STDMETHODIMP ShiftStartToRange(_In_ TfEditCookie ec, _In_ ITfRange *pRange, _In_ TfAnchor aPos) override
STDMETHODIMP GetEmbedded(_In_ TfEditCookie ec, _In_ REFGUID rguidService, _In_ REFIID riid, _Out_ IUnknown **ppunk) override
HRESULT _CompareX(TfEditCookie ec, BOOL bEnd, ITfRange *pWidth, TfAnchor aPos, LONG *plResult)
STDMETHODIMP GetGravity(_Out_ TfGravity *pgStart, _Out_ TfGravity *pgEnd) override
STDMETHODIMP IsEqualEnd(_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ BOOL *pfEqual) override
STDMETHODIMP InsertEmbedded(_In_ TfEditCookie ec, _In_ DWORD dwFlags, _In_ IDataObject *pDataObject) override
HRESULT _IsEqualX(TfEditCookie ec, BOOL bEnd, ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
STDMETHODIMP IsEqualStart(_In_ TfEditCookie ec, _In_ ITfRange *pWith, _In_ TfAnchor aPos, _Out_ BOOL *pfEqual) 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 GetExtent(_Out_ LONG *pacpAnchor, _Out_ LONG *pcch) override
STDMETHODIMP AdjustForInsert(_In_ TfEditCookie ec, _In_ ULONG cchInsert, _Out_ BOOL *pfInsertOk) override
static DWORD DWORD void LPSTR DWORD cch
#define IsEqualGUID(rguid1, rguid2)
EXTERN_C HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
EXTERN_C HRESULT Range_Constructor(ITfContext *context, ITextStoreACP *textstore, DWORD lockType, DWORD anchorStart, DWORD anchorEnd, ITfRange **ppOut)
static __inline const char * wine_dbgstr_guid(const GUID *id)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags