2 * ITfContext implementation
4 * Copyright 2009 Aric Stewart, CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
27 #include "wine/debug.h"
37 #include "wine/unicode.h"
38 #include "wine/list.h"
41 #include "msctf_internal.h"
43 WINE_DEFAULT_DEBUG_CHANNEL(msctf);
45 typedef struct tagContextSink {
50 /* ITfContextKeyEventSink *pITfContextKeyEventSink; */
51 /* ITfEditTransactionSink *pITfEditTransactionSink; */
52 /* ITfStatusSink *pITfStatusSink; */
53 ITfTextEditSink *pITfTextEditSink;
54 /* ITfTextLayoutSink *pITfTextLayoutSink; */
58 typedef struct tagContext {
59 const ITfContextVtbl *ContextVtbl;
60 const ITfSourceVtbl *SourceVtbl;
61 /* const ITfContextCompositionVtbl *ContextCompositionVtbl; */
62 /* const ITfContextOwnerCompositionServicesVtbl *ContextOwnerCompositionServicesVtbl; */
63 /* const ITfContextOwnerServicesVtbl *ContextOwnerServicesVtbl; */
64 /* const ITfInsertAtSelectionVtbl *InsertAtSelectionVtbl; */
65 /* const ITfMouseTrackerVtbl *MouseTrackerVtbl; */
66 /* const ITfQueryEmbeddedVtbl *QueryEmbeddedVtbl; */
67 /* const ITfSourceSingleVtbl *SourceSingleVtbl; */
72 TfEditCookie defaultCookie;
73 TS_STATUS documentStatus;
75 ITextStoreACP *pITextStoreACP;
76 ITfContextOwnerCompositionSink *pITfContextOwnerCompositionSink;
78 ITextStoreACPSink *pITextStoreACPSink;
79 ITfEditSession* currentEditSession;
81 /* kept as separate lists to reduce unnecessary iterations */
82 struct list pContextKeyEventSink;
83 struct list pEditTransactionSink;
84 struct list pStatusSink;
85 struct list pTextEditSink;
86 struct list pTextLayoutSink;
90 typedef struct tagEditCookie {
92 Context *pOwningContext;
95 typedef struct tagTextStoreACPSink {
96 const ITextStoreACPSinkVtbl *TextStoreACPSinkVtbl;
97 /* const ITextStoreACPServicesVtbl *TextStoreACPServicesVtbl; */
104 static HRESULT TextStoreACPSink_Constructor(ITextStoreACPSink **ppOut, Context *pContext);
106 static inline Context *impl_from_ITfSourceVtbl(ITfSource *iface)
108 return (Context *)((char *)iface - FIELD_OFFSET(Context,SourceVtbl));
111 static void free_sink(ContextSink *sink)
113 IUnknown_Release(sink->interfaces.pIUnknown);
114 HeapFree(GetProcessHeap(),0,sink);
117 static void Context_Destructor(Context *This)
119 struct list *cursor, *cursor2;
121 TRACE("destroying %p\n", This);
123 if (This->pITextStoreACPSink)
125 ITextStoreACP_UnadviseSink(This->pITextStoreACP, (IUnknown*)This->pITextStoreACPSink);
126 ITextStoreACPSink_Release(This->pITextStoreACPSink);
129 if (This->pITextStoreACP)
130 ITextStoreACPSink_Release(This->pITextStoreACP);
132 if (This->pITfContextOwnerCompositionSink)
133 ITextStoreACPSink_Release(This->pITfContextOwnerCompositionSink);
135 if (This->defaultCookie)
137 cookie = remove_Cookie(This->defaultCookie);
138 HeapFree(GetProcessHeap(),0,cookie);
139 This->defaultCookie = 0;
142 LIST_FOR_EACH_SAFE(cursor, cursor2, &This->pContextKeyEventSink)
144 ContextSink* sink = LIST_ENTRY(cursor,ContextSink,entry);
148 LIST_FOR_EACH_SAFE(cursor, cursor2, &This->pEditTransactionSink)
150 ContextSink* sink = LIST_ENTRY(cursor,ContextSink,entry);
154 LIST_FOR_EACH_SAFE(cursor, cursor2, &This->pStatusSink)
156 ContextSink* sink = LIST_ENTRY(cursor,ContextSink,entry);
160 LIST_FOR_EACH_SAFE(cursor, cursor2, &This->pTextEditSink)
162 ContextSink* sink = LIST_ENTRY(cursor,ContextSink,entry);
166 LIST_FOR_EACH_SAFE(cursor, cursor2, &This->pTextLayoutSink)
168 ContextSink* sink = LIST_ENTRY(cursor,ContextSink,entry);
173 HeapFree(GetProcessHeap(),0,This);
176 static HRESULT WINAPI Context_QueryInterface(ITfContext *iface, REFIID iid, LPVOID *ppvOut)
178 Context *This = (Context *)iface;
181 if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_ITfContext))
185 else if (IsEqualIID(iid, &IID_ITfSource))
187 *ppvOut = &This->SourceVtbl;
192 IUnknown_AddRef(iface);
196 WARN("unsupported interface: %s\n", debugstr_guid(iid));
197 return E_NOINTERFACE;
200 static ULONG WINAPI Context_AddRef(ITfContext *iface)
202 Context *This = (Context *)iface;
203 return InterlockedIncrement(&This->refCount);
206 static ULONG WINAPI Context_Release(ITfContext *iface)
208 Context *This = (Context *)iface;
211 ret = InterlockedDecrement(&This->refCount);
213 Context_Destructor(This);
217 /*****************************************************
218 * ITfContext functions
219 *****************************************************/
220 static HRESULT WINAPI Context_RequestEditSession (ITfContext *iface,
221 TfClientId tid, ITfEditSession *pes, DWORD dwFlags,
225 Context *This = (Context *)iface;
226 DWORD dwLockFlags = 0x0;
228 TRACE("(%p) %i %p %x %p\n",This, tid, pes, dwFlags, phrSession);
230 if (!(dwFlags & TF_ES_READ) && !(dwFlags & TF_ES_READWRITE))
232 *phrSession = E_FAIL;
236 if (!This->pITextStoreACP)
238 FIXME("No ITextStoreACP avaliable\n");
239 *phrSession = E_FAIL;
243 if (!(dwFlags & TF_ES_ASYNC))
244 dwLockFlags |= TS_LF_SYNC;
246 if ((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE)
247 dwLockFlags |= TS_LF_READWRITE;
248 else if (dwFlags & TF_ES_READ)
249 dwLockFlags |= TS_LF_READ;
251 if (!This->documentStatus.dwDynamicFlags)
252 ITextStoreACP_GetStatus(This->pITextStoreACP, &This->documentStatus);
254 if (((dwFlags & TF_ES_READWRITE) == TF_ES_READWRITE) && (This->documentStatus.dwDynamicFlags & TS_SD_READONLY))
256 *phrSession = TS_E_READONLY;
260 if (FAILED (ITfEditSession_QueryInterface(pes, &IID_ITfEditSession, (LPVOID*)&This->currentEditSession)))
262 *phrSession = E_FAIL;
266 hr = ITextStoreACP_RequestLock(This->pITextStoreACP, dwLockFlags, phrSession);
271 static HRESULT WINAPI Context_InWriteSession (ITfContext *iface,
273 BOOL *pfWriteSession)
275 Context *This = (Context *)iface;
276 FIXME("STUB:(%p)\n",This);
280 static HRESULT WINAPI Context_GetSelection (ITfContext *iface,
281 TfEditCookie ec, ULONG ulIndex, ULONG ulCount,
282 TF_SELECTION *pSelection, ULONG *pcFetched)
284 Context *This = (Context *)iface;
287 ULONG totalFetched = 0;
290 if (!pSelection || !pcFetched)
295 if (!This->connected)
296 return TF_E_DISCONNECTED;
298 if (get_Cookie_magic(ec)!=COOKIE_MAGIC_EDITCOOKIE)
301 if (!This->pITextStoreACP)
303 FIXME("Context does not have a ITextStoreACP\n");
307 cookie = get_Cookie_data(ec);
309 if (ulIndex == TF_DEFAULT_SELECTION)
314 for (i = 0; i < count; i++)
317 TS_SELECTION_ACP acps;
319 hr = ITextStoreACP_GetSelection(This->pITextStoreACP, ulIndex + i,
322 if (hr == TS_E_NOLOCK)
324 else if (SUCCEEDED(hr))
326 pSelection[totalFetched].style.ase = acps.style.ase;
327 pSelection[totalFetched].style.fInterimChar = acps.style.fInterimChar;
328 Range_Constructor(iface, This->pITextStoreACP, cookie->lockType, acps.acpStart, acps.acpEnd, &pSelection[totalFetched].range);
335 *pcFetched = totalFetched;
340 static HRESULT WINAPI Context_SetSelection (ITfContext *iface,
341 TfEditCookie ec, ULONG ulCount, const TF_SELECTION *pSelection)
343 Context *This = (Context *)iface;
344 FIXME("STUB:(%p)\n",This);
348 static HRESULT WINAPI Context_GetStart (ITfContext *iface,
349 TfEditCookie ec, ITfRange **ppStart)
351 Context *This = (Context *)iface;
353 TRACE("(%p) %i %p\n",This,ec,ppStart);
360 if (!This->connected)
361 return TF_E_DISCONNECTED;
363 if (get_Cookie_magic(ec)!=COOKIE_MAGIC_EDITCOOKIE)
366 cookie = get_Cookie_data(ec);
367 return Range_Constructor(iface, This->pITextStoreACP, cookie->lockType, 0, 0, ppStart);
370 static HRESULT WINAPI Context_GetEnd (ITfContext *iface,
371 TfEditCookie ec, ITfRange **ppEnd)
373 Context *This = (Context *)iface;
376 TRACE("(%p) %i %p\n",This,ec,ppEnd);
383 if (!This->connected)
384 return TF_E_DISCONNECTED;
386 if (get_Cookie_magic(ec)!=COOKIE_MAGIC_EDITCOOKIE)
389 if (!This->pITextStoreACP)
391 FIXME("Context does not have a ITextStoreACP\n");
395 cookie = get_Cookie_data(ec);
396 ITextStoreACP_GetEndACP(This->pITextStoreACP,&end);
398 return Range_Constructor(iface, This->pITextStoreACP, cookie->lockType, end, end, ppEnd);
401 static HRESULT WINAPI Context_GetActiveView (ITfContext *iface,
402 ITfContextView **ppView)
404 Context *This = (Context *)iface;
405 FIXME("STUB:(%p)\n",This);
409 static HRESULT WINAPI Context_EnumViews (ITfContext *iface,
410 IEnumTfContextViews **ppEnum)
412 Context *This = (Context *)iface;
413 FIXME("STUB:(%p)\n",This);
417 static HRESULT WINAPI Context_GetStatus (ITfContext *iface,
420 Context *This = (Context *)iface;
421 FIXME("STUB:(%p)\n",This);
425 static HRESULT WINAPI Context_GetProperty (ITfContext *iface,
426 REFGUID guidProp, ITfProperty **ppProp)
428 Context *This = (Context *)iface;
429 FIXME("STUB:(%p)\n",This);
433 static HRESULT WINAPI Context_GetAppProperty (ITfContext *iface,
434 REFGUID guidProp, ITfReadOnlyProperty **ppProp)
436 Context *This = (Context *)iface;
437 FIXME("STUB:(%p)\n",This);
441 static HRESULT WINAPI Context_TrackProperties (ITfContext *iface,
442 const GUID **prgProp, ULONG cProp, const GUID **prgAppProp,
443 ULONG cAppProp, ITfReadOnlyProperty **ppProperty)
445 Context *This = (Context *)iface;
446 FIXME("STUB:(%p)\n",This);
450 static HRESULT WINAPI Context_EnumProperties (ITfContext *iface,
451 IEnumTfProperties **ppEnum)
453 Context *This = (Context *)iface;
454 FIXME("STUB:(%p)\n",This);
458 static HRESULT WINAPI Context_GetDocumentMgr (ITfContext *iface,
459 ITfDocumentMgr **ppDm)
461 Context *This = (Context *)iface;
462 FIXME("STUB:(%p)\n",This);
466 static HRESULT WINAPI Context_CreateRangeBackup (ITfContext *iface,
467 TfEditCookie ec, ITfRange *pRange, ITfRangeBackup **ppBackup)
469 Context *This = (Context *)iface;
470 FIXME("STUB:(%p)\n",This);
474 static const ITfContextVtbl Context_ContextVtbl =
476 Context_QueryInterface,
480 Context_RequestEditSession,
481 Context_InWriteSession,
482 Context_GetSelection,
483 Context_SetSelection,
486 Context_GetActiveView,
490 Context_GetAppProperty,
491 Context_TrackProperties,
492 Context_EnumProperties,
493 Context_GetDocumentMgr,
494 Context_CreateRangeBackup
497 static HRESULT WINAPI Source_QueryInterface(ITfSource *iface, REFIID iid, LPVOID *ppvOut)
499 Context *This = impl_from_ITfSourceVtbl(iface);
500 return Context_QueryInterface((ITfContext *)This, iid, *ppvOut);
503 static ULONG WINAPI Source_AddRef(ITfSource *iface)
505 Context *This = impl_from_ITfSourceVtbl(iface);
506 return Context_AddRef((ITfContext *)This);
509 static ULONG WINAPI Source_Release(ITfSource *iface)
511 Context *This = impl_from_ITfSourceVtbl(iface);
512 return Context_Release((ITfContext *)This);
515 /*****************************************************
516 * ITfSource functions
517 *****************************************************/
518 static WINAPI HRESULT ContextSource_AdviseSink(ITfSource *iface,
519 REFIID riid, IUnknown *punk, DWORD *pdwCookie)
522 Context *This = impl_from_ITfSourceVtbl(iface);
523 TRACE("(%p) %s %p %p\n",This,debugstr_guid(riid),punk,pdwCookie);
525 if (!riid || !punk || !pdwCookie)
528 if (IsEqualIID(riid, &IID_ITfTextEditSink))
530 es = HeapAlloc(GetProcessHeap(),0,sizeof(ContextSink));
532 return E_OUTOFMEMORY;
533 if (FAILED(IUnknown_QueryInterface(punk, riid, (LPVOID *)&es->interfaces.pITfTextEditSink)))
535 HeapFree(GetProcessHeap(),0,es);
536 return CONNECT_E_CANNOTCONNECT;
538 list_add_head(&This->pTextEditSink ,&es->entry);
539 *pdwCookie = generate_Cookie(COOKIE_MAGIC_CONTEXTSINK, es);
543 FIXME("(%p) Unhandled Sink: %s\n",This,debugstr_guid(riid));
547 TRACE("cookie %x\n",*pdwCookie);
551 static WINAPI HRESULT ContextSource_UnadviseSink(ITfSource *iface, DWORD pdwCookie)
554 Context *This = impl_from_ITfSourceVtbl(iface);
556 TRACE("(%p) %x\n",This,pdwCookie);
558 if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_CONTEXTSINK)
561 sink = (ContextSink*)remove_Cookie(pdwCookie);
563 return CONNECT_E_NOCONNECTION;
565 list_remove(&sink->entry);
571 static const ITfSourceVtbl Context_SourceVtbl =
573 Source_QueryInterface,
577 ContextSource_AdviseSink,
578 ContextSource_UnadviseSink,
581 HRESULT Context_Constructor(TfClientId tidOwner, IUnknown *punk, ITfContext **ppOut, TfEditCookie *pecTextStore)
586 This = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(Context));
588 return E_OUTOFMEMORY;
590 cookie = HeapAlloc(GetProcessHeap(),0,sizeof(EditCookie));
593 HeapFree(GetProcessHeap(),0,This);
594 return E_OUTOFMEMORY;
597 TRACE("(%p) %x %p %p %p\n",This, tidOwner, punk, ppOut, pecTextStore);
599 This->ContextVtbl= &Context_ContextVtbl;
600 This->SourceVtbl = &Context_SourceVtbl;
602 This->tidOwner = tidOwner;
603 This->connected = FALSE;
605 cookie->lockType = TF_ES_READ;
606 cookie->pOwningContext = This;
610 IUnknown_QueryInterface(punk, &IID_ITextStoreACP,
611 (LPVOID*)&This->pITextStoreACP);
613 IUnknown_QueryInterface(punk, &IID_ITfContextOwnerCompositionSink,
614 (LPVOID*)&This->pITfContextOwnerCompositionSink);
616 if (!This->pITextStoreACP && !This->pITfContextOwnerCompositionSink)
617 FIXME("Unhandled pUnk\n");
620 This->defaultCookie = generate_Cookie(COOKIE_MAGIC_EDITCOOKIE,cookie);
621 *pecTextStore = This->defaultCookie;
623 list_init(&This->pContextKeyEventSink);
624 list_init(&This->pEditTransactionSink);
625 list_init(&This->pStatusSink);
626 list_init(&This->pTextEditSink);
627 list_init(&This->pTextLayoutSink);
629 *ppOut = (ITfContext*)This;
630 TRACE("returning %p\n", This);
635 HRESULT Context_Initialize(ITfContext *iface)
637 Context *This = (Context *)iface;
639 if (This->pITextStoreACP)
641 if (SUCCEEDED(TextStoreACPSink_Constructor(&This->pITextStoreACPSink, This)))
642 ITextStoreACP_AdviseSink(This->pITextStoreACP, &IID_ITextStoreACPSink,
643 (IUnknown*)This->pITextStoreACPSink, TS_AS_ALL_SINKS);
645 This->connected = TRUE;
649 HRESULT Context_Uninitialize(ITfContext *iface)
651 Context *This = (Context *)iface;
653 if (This->pITextStoreACPSink)
655 ITextStoreACP_UnadviseSink(This->pITextStoreACP, (IUnknown*)This->pITextStoreACPSink);
656 if (ITextStoreACPSink_Release(This->pITextStoreACPSink) == 0)
657 This->pITextStoreACPSink = NULL;
659 This->connected = FALSE;
663 /**************************************************************************
665 **************************************************************************/
667 static void TextStoreACPSink_Destructor(TextStoreACPSink *This)
669 TRACE("destroying %p\n", This);
670 HeapFree(GetProcessHeap(),0,This);
673 static HRESULT WINAPI TextStoreACPSink_QueryInterface(ITextStoreACPSink *iface, REFIID iid, LPVOID *ppvOut)
675 TextStoreACPSink *This = (TextStoreACPSink *)iface;
678 if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_ITextStoreACPSink))
685 IUnknown_AddRef(iface);
689 WARN("unsupported interface: %s\n", debugstr_guid(iid));
690 return E_NOINTERFACE;
693 static ULONG WINAPI TextStoreACPSink_AddRef(ITextStoreACPSink *iface)
695 TextStoreACPSink *This = (TextStoreACPSink *)iface;
696 return InterlockedIncrement(&This->refCount);
699 static ULONG WINAPI TextStoreACPSink_Release(ITextStoreACPSink *iface)
701 TextStoreACPSink *This = (TextStoreACPSink *)iface;
704 ret = InterlockedDecrement(&This->refCount);
706 TextStoreACPSink_Destructor(This);
710 /*****************************************************
711 * ITextStoreACPSink functions
712 *****************************************************/
714 static HRESULT WINAPI TextStoreACPSink_OnTextChange(ITextStoreACPSink *iface,
715 DWORD dwFlags, const TS_TEXTCHANGE *pChange)
717 TextStoreACPSink *This = (TextStoreACPSink *)iface;
718 FIXME("STUB:(%p)\n",This);
722 static HRESULT WINAPI TextStoreACPSink_OnSelectionChange(ITextStoreACPSink *iface)
724 TextStoreACPSink *This = (TextStoreACPSink *)iface;
725 FIXME("STUB:(%p)\n",This);
729 static HRESULT WINAPI TextStoreACPSink_OnLayoutChange(ITextStoreACPSink *iface,
730 TsLayoutCode lcode, TsViewCookie vcView)
732 TextStoreACPSink *This = (TextStoreACPSink *)iface;
733 FIXME("STUB:(%p)\n",This);
737 static HRESULT WINAPI TextStoreACPSink_OnStatusChange(ITextStoreACPSink *iface,
740 TextStoreACPSink *This = (TextStoreACPSink *)iface;
741 HRESULT hr, hrSession;
743 TRACE("(%p) %x\n",This, dwFlags);
747 ERR("No context?\n");
751 if (!This->pContext->pITextStoreACP)
753 FIXME("Context does not have a ITextStoreACP\n");
757 hr = ITextStoreACP_RequestLock(This->pContext->pITextStoreACP, TS_LF_READ, &hrSession);
759 if(SUCCEEDED(hr) && SUCCEEDED(hrSession))
760 This->pContext->documentStatus.dwDynamicFlags = dwFlags;
765 static HRESULT WINAPI TextStoreACPSink_OnAttrsChange(ITextStoreACPSink *iface,
766 LONG acpStart, LONG acpEnd, ULONG cAttrs, const TS_ATTRID *paAttrs)
768 TextStoreACPSink *This = (TextStoreACPSink *)iface;
769 FIXME("STUB:(%p)\n",This);
773 static HRESULT WINAPI TextStoreACPSink_OnLockGranted(ITextStoreACPSink *iface,
776 TextStoreACPSink *This = (TextStoreACPSink *)iface;
781 TRACE("(%p) %x\n",This, dwLockFlags);
785 ERR("OnLockGranted called without a context\n");
789 if (!This->pContext->currentEditSession)
791 FIXME("OnLockGranted called for something other than an EditSession\n");
795 cookie = HeapAlloc(GetProcessHeap(),0,sizeof(EditCookie));
797 return E_OUTOFMEMORY;
799 cookie->lockType = dwLockFlags;
800 cookie->pOwningContext = This->pContext;
801 ec = generate_Cookie(COOKIE_MAGIC_EDITCOOKIE, cookie);
803 hr = ITfEditSession_DoEditSession(This->pContext->currentEditSession, ec);
805 ITfEditSession_Release(This->pContext->currentEditSession);
806 This->pContext->currentEditSession = NULL;
808 /* Edit Cookie is only valid during the edit session */
809 cookie = remove_Cookie(ec);
810 HeapFree(GetProcessHeap(),0,cookie);
815 static HRESULT WINAPI TextStoreACPSink_OnStartEditTransaction(ITextStoreACPSink *iface)
817 TextStoreACPSink *This = (TextStoreACPSink *)iface;
818 FIXME("STUB:(%p)\n",This);
822 static HRESULT WINAPI TextStoreACPSink_OnEndEditTransaction(ITextStoreACPSink *iface)
824 TextStoreACPSink *This = (TextStoreACPSink *)iface;
825 FIXME("STUB:(%p)\n",This);
829 static const ITextStoreACPSinkVtbl TextStoreACPSink_TextStoreACPSinkVtbl =
831 TextStoreACPSink_QueryInterface,
832 TextStoreACPSink_AddRef,
833 TextStoreACPSink_Release,
835 TextStoreACPSink_OnTextChange,
836 TextStoreACPSink_OnSelectionChange,
837 TextStoreACPSink_OnLayoutChange,
838 TextStoreACPSink_OnStatusChange,
839 TextStoreACPSink_OnAttrsChange,
840 TextStoreACPSink_OnLockGranted,
841 TextStoreACPSink_OnStartEditTransaction,
842 TextStoreACPSink_OnEndEditTransaction
845 static HRESULT TextStoreACPSink_Constructor(ITextStoreACPSink **ppOut, Context *pContext)
847 TextStoreACPSink *This;
849 This = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(TextStoreACPSink));
851 return E_OUTOFMEMORY;
853 This->TextStoreACPSinkVtbl= &TextStoreACPSink_TextStoreACPSinkVtbl;
856 This->pContext = pContext;
858 TRACE("returning %p\n", This);
859 *ppOut = (ITextStoreACPSink*)This;