2009-05-18 21:48:18 +02:00
|
|
|
/*
|
|
|
|
* ITfRange implementation
|
|
|
|
*
|
|
|
|
* Copyright 2009 Aric Stewart, CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
|
|
|
|
#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 "msctf.h"
|
|
|
|
#include "msctf_internal.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(msctf);
|
|
|
|
|
|
|
|
typedef struct tagRange {
|
2021-06-02 16:08:50 +02:00
|
|
|
ITfRangeACP ITfRangeACP_iface;
|
2009-05-18 21:48:18 +02:00
|
|
|
LONG refCount;
|
|
|
|
|
2021-06-02 16:08:48 +02:00
|
|
|
ITfContext *context;
|
2009-05-18 21:48:18 +02:00
|
|
|
|
|
|
|
TfGravity gravityStart, gravityEnd;
|
|
|
|
DWORD anchorStart, anchorEnd;
|
|
|
|
|
|
|
|
} Range;
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static inline Range *impl_from_ITfRangeACP(ITfRangeACP *iface)
|
2010-12-08 22:59:40 +01:00
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
return CONTAINING_RECORD(iface, Range, ITfRangeACP_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static Range *unsafe_impl_from_ITfRange(ITfRange *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, Range, ITfRangeACP_iface);
|
2010-12-08 22:59:40 +01:00
|
|
|
}
|
|
|
|
|
2009-05-18 21:48:18 +02:00
|
|
|
static void Range_Destructor(Range *This)
|
|
|
|
{
|
|
|
|
TRACE("destroying %p\n", This);
|
2021-06-02 16:08:48 +02:00
|
|
|
ITfContext_Release(This->context);
|
2009-05-18 21:48:18 +02:00
|
|
|
HeapFree(GetProcessHeap(),0,This);
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_QueryInterface(ITfRangeACP *iface, REFIID iid, LPVOID *ppvOut)
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
Range *range = impl_from_ITfRangeACP(iface);
|
|
|
|
|
2009-05-18 21:48:18 +02:00
|
|
|
*ppvOut = NULL;
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
if (IsEqualIID(iid, &IID_IUnknown) ||
|
|
|
|
IsEqualIID(iid, &IID_ITfRange) ||
|
|
|
|
IsEqualIID(iid, &IID_ITfRangeACP))
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
*ppvOut = &range->ITfRangeACP_iface;
|
2009-05-18 21:48:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (*ppvOut)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
ITfRangeACP_AddRef(iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
WARN("unsupported interface: %s\n", debugstr_guid(iid));
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static ULONG WINAPI Range_AddRef(ITfRangeACP *iface)
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
Range *range = impl_from_ITfRangeACP(iface);
|
|
|
|
return InterlockedIncrement(&range->refCount);
|
2009-05-18 21:48:18 +02:00
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static ULONG WINAPI Range_Release(ITfRangeACP *iface)
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
Range *range = impl_from_ITfRangeACP(iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
ULONG ret;
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
ret = InterlockedDecrement(&range->refCount);
|
2009-05-18 21:48:18 +02:00
|
|
|
if (ret == 0)
|
2021-06-02 16:08:50 +02:00
|
|
|
Range_Destructor(range);
|
2009-05-18 21:48:18 +02:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_GetText(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
DWORD dwFlags, WCHAR *pchText, ULONG cchMax, ULONG *pcch)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_SetText(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
DWORD dwFlags, const WCHAR *pchText, LONG cch)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_GetFormattedText(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
IDataObject **ppDataObject)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_GetEmbedded(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
REFGUID rguidService, REFIID riid, IUnknown **ppunk)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_InsertEmbedded(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
DWORD dwFlags, IDataObject *pDataObject)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_ShiftStart(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
LONG cchReq, LONG *pcch, const TF_HALTCOND *pHalt)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_ShiftEnd(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
LONG cchReq, LONG *pcch, const TF_HALTCOND *pHalt)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_ShiftStartToRange(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
ITfRange *pRange, TfAnchor aPos)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_ShiftEndToRange(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
ITfRange *pRange, TfAnchor aPos)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_ShiftStartRegion(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
TfShiftDir dir, BOOL *pfNoRegion)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_ShiftEndRegion(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
TfShiftDir dir, BOOL *pfNoRegion)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_IsEmpty(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
BOOL *pfEmpty)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_Collapse(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
TfAnchor aPos)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
Range *range = impl_from_ITfRangeACP(iface);
|
|
|
|
|
2022-02-15 07:29:05 +01:00
|
|
|
TRACE("%p, %li, %i.\n", iface, ec, aPos);
|
2009-05-26 20:30:08 +02:00
|
|
|
|
|
|
|
switch (aPos)
|
|
|
|
{
|
|
|
|
case TF_ANCHOR_START:
|
2021-06-02 16:08:50 +02:00
|
|
|
range->anchorEnd = range->anchorStart;
|
2009-05-26 20:30:08 +02:00
|
|
|
break;
|
|
|
|
case TF_ANCHOR_END:
|
2021-06-02 16:08:50 +02:00
|
|
|
range->anchorStart = range->anchorEnd;
|
2009-05-26 20:30:08 +02:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return E_INVALIDARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
return S_OK;
|
2009-05-18 21:48:18 +02:00
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_IsEqualStart(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_IsEqualEnd(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
ITfRange *pWith, TfAnchor aPos, BOOL *pfEqual)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_CompareStart(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
ITfRange *pWith, TfAnchor aPos, LONG *plResult)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_CompareEnd(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
ITfRange *pWith, TfAnchor aPos, LONG *plResult)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_AdjustForInsert(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
ULONG cchInsert, BOOL *pfInsertOk)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_GetGravity(ITfRangeACP *iface,
|
2009-05-18 21:48:18 +02:00
|
|
|
TfGravity *pgStart, TfGravity *pgEnd)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_SetGravity(ITfRangeACP *iface, TfEditCookie ec,
|
2009-05-18 21:48:18 +02:00
|
|
|
TfGravity gStart, TfGravity gEnd)
|
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_Clone(ITfRangeACP *iface, ITfRange **ppClone)
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
FIXME("STUB:(%p)\n", iface);
|
2009-05-18 21:48:18 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_GetContext(ITfRangeACP *iface, ITfContext **context)
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
2021-06-02 16:08:50 +02:00
|
|
|
Range *range = impl_from_ITfRangeACP(iface);
|
2021-06-02 16:08:48 +02:00
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
TRACE("%p, %p.\n", iface, context);
|
2021-06-02 16:08:48 +02:00
|
|
|
|
|
|
|
if (!context)
|
2009-05-18 21:48:26 +02:00
|
|
|
return E_INVALIDARG;
|
2021-06-02 16:08:48 +02:00
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
*context = range->context;
|
2021-06-02 16:08:48 +02:00
|
|
|
ITfContext_AddRef(*context);
|
|
|
|
|
2009-05-18 21:48:26 +02:00
|
|
|
return S_OK;
|
2009-05-18 21:48:18 +02:00
|
|
|
}
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
static HRESULT WINAPI Range_GetExtent(ITfRangeACP *iface, LONG *anchor, LONG *count)
|
|
|
|
{
|
|
|
|
FIXME("%p, %p, %p.\n", iface, anchor, count);
|
|
|
|
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI Range_SetExtent(ITfRangeACP *iface, LONG anchor, LONG count)
|
|
|
|
{
|
2022-02-15 07:29:05 +01:00
|
|
|
FIXME("%p, %ld, %ld.\n", iface, anchor, count);
|
2021-06-02 16:08:50 +02:00
|
|
|
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const ITfRangeACPVtbl rangevtbl =
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
|
|
|
Range_QueryInterface,
|
|
|
|
Range_AddRef,
|
|
|
|
Range_Release,
|
|
|
|
Range_GetText,
|
|
|
|
Range_SetText,
|
|
|
|
Range_GetFormattedText,
|
|
|
|
Range_GetEmbedded,
|
|
|
|
Range_InsertEmbedded,
|
|
|
|
Range_ShiftStart,
|
|
|
|
Range_ShiftEnd,
|
|
|
|
Range_ShiftStartToRange,
|
|
|
|
Range_ShiftEndToRange,
|
|
|
|
Range_ShiftStartRegion,
|
|
|
|
Range_ShiftEndRegion,
|
|
|
|
Range_IsEmpty,
|
|
|
|
Range_Collapse,
|
|
|
|
Range_IsEqualStart,
|
|
|
|
Range_IsEqualEnd,
|
|
|
|
Range_CompareStart,
|
|
|
|
Range_CompareEnd,
|
|
|
|
Range_AdjustForInsert,
|
|
|
|
Range_GetGravity,
|
|
|
|
Range_SetGravity,
|
|
|
|
Range_Clone,
|
2021-06-02 16:08:50 +02:00
|
|
|
Range_GetContext,
|
|
|
|
Range_GetExtent,
|
|
|
|
Range_SetExtent,
|
2009-05-18 21:48:18 +02:00
|
|
|
};
|
|
|
|
|
2021-06-02 16:08:49 +02:00
|
|
|
HRESULT Range_Constructor(ITfContext *context, DWORD anchorStart, DWORD anchorEnd, ITfRange **ppOut)
|
2009-05-18 21:48:18 +02:00
|
|
|
{
|
|
|
|
Range *This;
|
|
|
|
|
|
|
|
This = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(Range));
|
|
|
|
if (This == NULL)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
2021-06-02 16:08:49 +02:00
|
|
|
TRACE("(%p) %p\n", This, context);
|
2009-05-18 21:48:18 +02:00
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
This->ITfRangeACP_iface.lpVtbl = &rangevtbl;
|
2009-05-18 21:48:18 +02:00
|
|
|
This->refCount = 1;
|
2021-06-02 16:08:48 +02:00
|
|
|
This->context = context;
|
|
|
|
ITfContext_AddRef(This->context);
|
2009-05-18 21:48:18 +02:00
|
|
|
This->anchorStart = anchorStart;
|
|
|
|
This->anchorEnd = anchorEnd;
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
*ppOut = (ITfRange *)&This->ITfRangeACP_iface;
|
|
|
|
|
2013-11-19 13:14:45 +01:00
|
|
|
TRACE("returning %p\n", *ppOut);
|
2009-05-18 21:48:18 +02:00
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|
2009-06-03 18:27:31 +02:00
|
|
|
|
|
|
|
/* Internal conversion functions */
|
|
|
|
|
|
|
|
HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
|
|
|
|
{
|
2009-06-05 09:20:27 +02:00
|
|
|
Range *This;
|
2009-06-03 18:27:31 +02:00
|
|
|
|
|
|
|
if (!tf || !tsAcp || !tf->range)
|
|
|
|
return E_INVALIDARG;
|
|
|
|
|
2021-06-02 16:08:50 +02:00
|
|
|
This = unsafe_impl_from_ITfRange(tf->range);
|
2009-06-05 09:20:27 +02:00
|
|
|
|
2009-06-03 18:27:31 +02:00
|
|
|
tsAcp->acpStart = This->anchorStart;
|
|
|
|
tsAcp->acpEnd = This->anchorEnd;
|
|
|
|
tsAcp->style.ase = tf->style.ase;
|
|
|
|
tsAcp->style.fInterimChar = tf->style.fInterimChar;
|
|
|
|
return S_OK;
|
|
|
|
}
|