2 * Copyright 2008 Aric Stewart, CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 import
"textstor.idl";
23 /* import "ctfutb.idl"; */
25 cpp_quote
("#include <winuser.h>")
27 cpp_quote
("#define TF_E_STACKFULL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0501)")
28 cpp_quote
("#define TF_E_DISCONNECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0504)")
29 cpp_quote
("#define TF_E_ALREADY_EXISTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0506)")
30 cpp_quote
("#define TF_E_NOLOCK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201)")
32 cpp_quote
("EXTERN_C const CLSID CLSID_TF_ThreadMgr;")
33 cpp_quote
("EXTERN_C const CLSID CLSID_TF_InputProcessorProfiles;")
34 cpp_quote
("EXTERN_C const CLSID CLSID_TF_CategoryMgr;")
36 /* GUIDs for Compartments */
37 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_DISABLED;")
38 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_OPENCLOSE;")
39 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_HANDWRITING_OPENCLOSE;")
40 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_DISABLED;")
41 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_OPENCLOSE;")
42 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_GLOBALSTATE;")
43 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_PERSISTMENUENABLED;")
44 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_EMPTYCONTEXT;")
45 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_TIPUISTATUS;")
47 /* GUIDs for Categories */
48 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_TIP_KEYBOARD;")
49 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_TIP_SPEECH;")
50 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_TIP_HANDWRITING;")
51 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_DISPLAYATTRIBUTEPROVIDER;")
53 typedef [uuid(7213778c
-7bb0
-4270-b050
-6189ee594e97
)] DWORD TfEditCookie
;
54 typedef [uuid(de403c21
-89fd
-4f85
-8b87
-64584d063fbc
)] DWORD TfClientId
;
55 typedef [uuid(88a9c478
-f3ec
-4763-8345-cd9250443f8d
)] DWORD TfGuidAtom
;
57 cpp_quote
("#define TF_MOD_ALT 0x0001")
58 cpp_quote
("#define TF_MOD_CONTROL 0x0002")
59 cpp_quote
("#define TF_MOD_SHIFT 0x0004")
60 cpp_quote
("#define TF_MOD_RALT 0x0008")
61 cpp_quote
("#define TF_MOD_RCONTROL 0x0010")
62 cpp_quote
("#define TF_MOD_RSHIFT 0x0020")
63 cpp_quote
("#define TF_MOD_LALT 0x0040")
64 cpp_quote
("#define TF_MOD_LCONTROL 0x0080")
65 cpp_quote
("#define TF_MOD_LSHIFT 0x0100")
66 cpp_quote
("#define TF_MOD_ON_KEYUP 0x0200")
67 cpp_quote
("#define TF_MOD_IGNORE_ALL_MODIFIER 0x0400")
69 interface ITfDocumentMgr
;
71 interface IEnumTfDocumentMgrs
;
72 interface IEnumTfContexts
;
73 interface ITfFunctionProvider
;
74 interface IEnumTfFunctionProviders
;
75 interface ITfCompartmentMgr
;
76 interface ITfEditSession
;
78 interface ITfContextView
;
79 interface IEnumTfContextViews
;
80 interface ITfProperty
;
81 interface ITfReadOnlyProperty
;
82 interface IEnumTfProperties
;
83 interface ITfRangeBackup
;
84 interface IEnumTfLanguageProfiles
;
85 interface ITfEditRecord
;
86 interface ITfCompositionView
;
87 interface ITfKeyEventSink
;
89 typedef [uuid(e1b5808d
-1e46
-4c19
-84dc
-68c5f5978cc8
)] struct TF_LANGUAGEPROFILE
98 typedef [uuid(77c12f95
-b783
-450d
-879f
-1cd2362c6521
)] struct TF_PRESERVEDKEY
104 typedef [uuid(5a886226
-ae9a
-489b
-b991
-2b1e25ee59a9
)] enum { TF_ANCHOR_START
= 0, TF_ANCHOR_END
= 1 } TfAnchor
;
108 uuid(aa80e801
-2021-11d2
-93e0
-0060b067b86e
),
109 pointer_default(unique)
111 interface ITfThreadMgr
: IUnknown
114 [out] TfClientId
*ptid
);
116 HRESULT Deactivate
();
118 HRESULT CreateDocumentMgr
(
119 [out] ITfDocumentMgr
**ppdim
);
121 HRESULT EnumDocumentMgrs
(
122 [out] IEnumTfDocumentMgrs
**ppEnum
);
125 [out] ITfDocumentMgr
**ppdimFocus
);
128 [in] ITfDocumentMgr
*pdimFocus
);
130 HRESULT AssociateFocus
(
132 [in, unique] ITfDocumentMgr
*pdimNew
,
133 [out] ITfDocumentMgr
**ppdimPrev
);
135 HRESULT IsThreadFocus
(
136 [out] BOOL
*pfThreadFocus
);
138 HRESULT GetFunctionProvider
(
140 [out] ITfFunctionProvider
**ppFuncProv
);
142 HRESULT EnumFunctionProviders
(
143 [out] IEnumTfFunctionProviders
**ppEnum
);
145 HRESULT GetGlobalCompartment
(
146 [out] ITfCompartmentMgr
**ppCompMgr
);
152 uuid(aa80e7f4
-2021-11d2
-93e0
-0060b067b86e
),
153 pointer_default(unique)
155 interface ITfDocumentMgr
: IUnknown
157 HRESULT CreateContext
(
158 [in] TfClientId tidOwner
,
160 [in, unique] IUnknown
*punk
,
161 [out] ITfContext
**ppic
,
162 [out] TfEditCookie
*pecTextStore
);
165 [in] ITfContext
*pic
);
167 const DWORD TF_POPF_ALL
= 0x0001;
173 [out] ITfContext
**ppic
);
176 [out] ITfContext
**ppic
);
178 HRESULT EnumContexts
(
179 [out] IEnumTfContexts
**ppEnum
);
184 uuid(aa80e7fd
-2021-11d2
-93e0
-0060b067b86e
),
185 pointer_default(unique)
187 interface ITfContext
: IUnknown
189 const DWORD TF_ES_ASYNCDONTCARE
= 0x0;
190 const DWORD TF_ES_SYNC
= 0x1;
191 const DWORD TF_ES_READ
= 0x2;
192 const DWORD TF_ES_READWRITE
= 0x6;
193 const DWORD TF_ES_ASYNC
= 0x8;
195 HRESULT RequestEditSession
(
197 [in] ITfEditSession
*pes
,
199 [out] HRESULT *phrSession
);
201 HRESULT InWriteSession
(
203 [out] BOOL
*pfWriteSession
);
205 typedef [uuid(1690be9b
-d3e9
-49f6
-8d8b
-51b905af4c43
)] enum { TF_AE_NONE
, TF_AE_START
, TF_AE_END
} TfActiveSelEnd
;
207 typedef [uuid(36ae42a4
-6989-4bdc
-b48a
-6137b7bf2e42
)] struct TF_SELECTIONSTYLE
213 typedef [uuid(75eb22f2
-b0bf
-46a8
-8006-975a3b6efcf1
)] struct TF_SELECTION
216 TF_SELECTIONSTYLE style
;
219 const ULONG TF_DEFAULT_SELECTION
= TS_DEFAULT_SELECTION
;
221 HRESULT GetSelection
(
222 [in] TfEditCookie ec
,
225 [out, size_is(ulCount
), length_is(*pcFetched
)] TF_SELECTION
*pSelection
,
226 [out] ULONG
*pcFetched
);
228 HRESULT SetSelection
(
229 [in] TfEditCookie ec
,
231 [in, size_is(ulCount
)] const TF_SELECTION
*pSelection
);
234 [in] TfEditCookie ec
,
235 [out] ITfRange
**ppStart
);
238 [in] TfEditCookie ec
,
239 [out] ITfRange
**ppEnd
);
241 typedef [uuid(bc7d979a
-846a
-444d
-afef
-0a9bfa82b961
)] TS_STATUS TF_STATUS
;
242 const DWORD TF_SD_READONLY
= TS_SD_READONLY
;
243 const DWORD TF_SD_LOADING
= TS_SD_LOADING
;
244 const DWORD TF_SS_DISJOINTSEL
= TS_SS_DISJOINTSEL
;
245 const DWORD TF_SS_REGIONS
= TS_SS_REGIONS
;
246 const DWORD TF_SS_TRANSITORY
= TS_SS_TRANSITORY
;
249 HRESULT GetActiveView
(
250 [out] ITfContextView
**ppView
);
253 [out] IEnumTfContextViews
**ppEnum
);
256 [out] TF_STATUS
*pdcs
);
259 [in] REFGUID guidProp
,
260 [out] ITfProperty
**ppProp
);
262 HRESULT GetAppProperty
(
263 [in] REFGUID guidProp
,
264 [out] ITfReadOnlyProperty
**ppProp
);
266 HRESULT TrackProperties
(
267 [in, size_is(cProp
)] const GUID
**prgProp
,
269 [in, size_is(cAppProp
)] const GUID
**prgAppProp
,
271 [out] ITfReadOnlyProperty
**ppProperty
);
273 HRESULT EnumProperties
(
274 [out] IEnumTfProperties
**ppEnum
);
276 HRESULT GetDocumentMgr
(
277 [out] ITfDocumentMgr
**ppDm
);
279 HRESULT CreateRangeBackup
(
280 [in] TfEditCookie ec
,
281 [in] ITfRange
*pRange
,
282 [out] ITfRangeBackup
**ppBackup
);
288 uuid(4ea48a35
-60ae
-446f
-8fd6
-e6a8d82459f7
),
289 pointer_default(unique)
291 interface ITfSource
: IUnknown
295 [in, iid_is(riid
)] IUnknown
*punk
,
296 [out] DWORD
*pdwCookie
);
298 HRESULT UnadviseSink
(
299 [in] DWORD dwCookie
);
305 uuid(1F02B6C5
-7842-4EE6
-8A0B
-9A24183A95CA
),
306 pointer_default(unique)
308 interface ITfInputProcessorProfiles
: IUnknown
311 [in] REFCLSID rclsid
);
314 [in] REFCLSID rclsid
);
316 HRESULT AddLanguageProfile
(
317 [in] REFCLSID rclsid
,
319 [in] REFGUID guidProfile
,
320 [in, size_is(cchDesc
)] const WCHAR
*pchDesc
,
322 [in, size_is(cchFile
)] const WCHAR
*pchIconFile
,
324 [in] ULONG uIconIndex
);
326 HRESULT RemoveLanguageProfile
(
327 [in] REFCLSID rclsid
,
329 [in] REFGUID guidProfile
);
331 HRESULT EnumInputProcessorInfo
(
332 [out] IEnumGUID
**ppEnum
);
334 HRESULT GetDefaultLanguageProfile
(
338 [out] GUID
*pguidProfile
);
340 HRESULT SetDefaultLanguageProfile
(
342 [in] REFCLSID rclsid
,
343 [in] REFGUID guidProfiles
);
345 HRESULT ActivateLanguageProfile
(
346 [in] REFCLSID rclsid
,
348 [in] REFGUID guidProfiles
);
350 HRESULT GetActiveLanguageProfile
(
351 [in] REFCLSID rclsid
,
352 [out] LANGID
*plangid
,
353 [out] GUID
*pguidProfile
);
355 HRESULT GetLanguageProfileDescription
(
356 [in] REFCLSID rclsid
,
358 [in] REFGUID guidProfile
,
359 [out] BSTR *pbstrProfile
);
361 HRESULT GetCurrentLanguage
(
362 [out] LANGID
*plangid
);
364 HRESULT ChangeCurrentLanguage
(
367 HRESULT GetLanguageList
(
368 [out] LANGID
**ppLangId
,
369 [out] ULONG
*pulCount
);
371 HRESULT EnumLanguageProfiles
(
373 [out] IEnumTfLanguageProfiles
**ppEnum
);
375 HRESULT EnableLanguageProfile
(
376 [in] REFCLSID rclsid
,
378 [in] REFGUID guidProfile
,
381 HRESULT IsEnabledLanguageProfile
(
382 [in] REFCLSID rclsid
,
384 [in] REFGUID guidProfile
,
385 [out] BOOL
*pfEnable
);
387 HRESULT EnableLanguageProfileByDefault
(
388 [in] REFCLSID rclsid
,
390 [in] REFGUID guidProfile
,
393 HRESULT SubstituteKeyboardLayout
(
394 [in] REFCLSID rclsid
,
396 [in] REFGUID guidProfile
,
403 uuid(c3acefb5
-f69d
-4905-938f
-fcadcf4be830
),
404 pointer_default(unique)
406 interface ITfCategoryMgr
: IUnknown
408 HRESULT RegisterCategory
([in] REFCLSID rclsid
,
412 HRESULT UnregisterCategory
([in] REFCLSID rclsid
,
416 HRESULT EnumCategoriesInItem
([in] REFGUID rguid
,
417 [out] IEnumGUID
**ppEnum
);
419 HRESULT EnumItemsInCategory
([in] REFGUID rcatid
,
420 [out] IEnumGUID
**ppEnum
);
422 HRESULT FindClosestCategory
([in] REFGUID rguid
,
424 [in, size_is(ulCount
)] const GUID
**ppcatidList
,
427 HRESULT RegisterGUIDDescription
([in] REFCLSID rclsid
,
429 [in, size_is(cch
)] const WCHAR
*pchDesc
,
432 HRESULT UnregisterGUIDDescription
([in] REFCLSID rclsid
,
435 HRESULT GetGUIDDescription
([in] REFGUID rguid
,
436 [out] BSTR *pbstrDesc
);
438 HRESULT RegisterGUIDDWORD
([in] REFCLSID rclsid
,
442 HRESULT UnregisterGUIDDWORD
([in] REFCLSID rclsid
,
445 HRESULT GetGUIDDWORD
([in] REFGUID rguid
,
448 HRESULT RegisterGUID
([in] REFGUID rguid
,
449 [out] TfGuidAtom
*pguidatom
);
451 HRESULT GetGUID
([in] TfGuidAtom guidatom
,
454 HRESULT IsEqualTfGuidAtom
([in] TfGuidAtom guidatom
,
456 [out] BOOL
*pfEqual
);
461 uuid(8127d409
-ccd3
-4683-967a
-b43d5b482bf7
),
462 pointer_default(unique)
464 interface ITfTextEditSink
: IUnknown
467 [in] ITfContext
*pic
,
468 [in] TfEditCookie ecReadOnly
,
469 [in] ITfEditRecord
*pEditRecord
);
474 uuid(5F20AA40
-B57A
-4F34
-96AB
-3576F377CC79
),
475 pointer_default(unique)
477 interface ITfContextOwnerCompositionSink
: IUnknown
479 HRESULT OnStartComposition
(
480 [in] ITfCompositionView
*pComposition
,
483 HRESULT OnUpdateComposition
(
484 [in] ITfCompositionView
*pComposition
,
485 [in] ITfRange
*pRangeNew
);
487 HRESULT OnEndComposition
(
488 [in] ITfCompositionView
*pComposition
);
493 uuid(3d61bf11
-ac5f
-42c8
-a4cb
-931bcc28c744
),
494 pointer_default(unique)
496 interface IEnumTfLanguageProfiles
: IUnknown
499 [out] IEnumTfLanguageProfiles
**ppEnum
);
503 [out, size_is(ulCount
), length_is(*pcFetch
)] TF_LANGUAGEPROFILE
*pProfile
,
504 [out] ULONG
*pcFetch
);
515 uuid(aa80e7f7
-2021-11d2
-93e0
-0060b067b86e
),
516 pointer_default(unique)
518 interface ITfTextInputProcessor
: IUnknown
521 [in] ITfThreadMgr
*ptim
,
522 [in] TfClientId tid
);
524 HRESULT Deactivate
();
529 uuid(aa80e80e
-2021
-11d2
-93e0
-0060b067b86e
),
530 pointer_default(unique)
532 interface ITfThreadMgrEventSink
: IUnknown
534 HRESULT OnInitDocumentMgr
(
535 [in] ITfDocumentMgr
*pdim
);
537 HRESULT OnUninitDocumentMgr
(
538 [in] ITfDocumentMgr
*pdim
);
541 [in] ITfDocumentMgr
*pdimFocus
,
542 [in] ITfDocumentMgr
*pdimPrevFocus
);
544 HRESULT OnPushContext
(
545 [in] ITfContext
*pic
);
547 HRESULT OnPopContext
(
548 [in] ITfContext
*pic
);
554 uuid(aa80e7f0
-2021-11d2
-93e0
-0060b067b86e
),
555 pointer_default(unique)
557 interface ITfKeystrokeMgr
: IUnknown
559 HRESULT AdviseKeyEventSink
(
561 [in] ITfKeyEventSink
*pSink
,
562 [in] BOOL fForeground
);
564 HRESULT UnadviseKeyEventSink
(
565 [in] TfClientId tid
);
567 HRESULT GetForeground
(
568 [out] CLSID
*pclsid
);
573 [out] BOOL
*pfEaten
);
578 [out] BOOL
*pfEaten
);
583 [out] BOOL
*pfEaten
);
588 [out] BOOL
*pfEaten
);
590 HRESULT GetPreservedKey
(
591 [in] ITfContext
*pic
,
592 [in] const TF_PRESERVEDKEY
*pprekey
,
595 HRESULT IsPreservedKey
(
597 [in] const TF_PRESERVEDKEY
*pprekey
,
598 [out] BOOL
*pfRegistered
);
603 [in] const TF_PRESERVEDKEY
*prekey
,
604 [in, size_is(cchDesc
)] const WCHAR
*pchDesc
,
607 HRESULT UnpreserveKey
(
609 [in] const TF_PRESERVEDKEY
*pprekey
);
611 HRESULT SetPreservedKeyDescription
(
613 [in, size_is(cchDesc
)] const WCHAR
*pchDesc
,
616 HRESULT GetPreservedKeyDescription
(
618 [out] BSTR *pbstrDesc
);
620 HRESULT SimulatePreservedKey
(
621 [in] ITfContext
*pic
,
623 [out] BOOL
*pfEaten
);
629 uuid(aa80e7f5
-2021-11d2
-93e0
-0060b067b86e
),
630 pointer_default(unique)
632 interface ITfKeyEventSink
: IUnknown
635 [in] BOOL fForeground
);
637 HRESULT OnTestKeyDown
(
638 [in] ITfContext
*pic
,
641 [out] BOOL
*pfEaten
);
644 [in] ITfContext
*pic
,
647 [out] BOOL
*pfEaten
);
650 [in] ITfContext
*pic
,
653 [out] BOOL
*pfEaten
);
656 [in] ITfContext
*pic
,
659 [out] BOOL
*pfEaten
);
661 HRESULT OnPreservedKey
(
662 [in] ITfContext
*pic
,
664 [out] BOOL
*pfEaten
);
670 uuid(8f1b8ad8
-0b6b
-4874-90c5
-bd76011e8f7c
),
671 pointer_default(unique)
673 interface ITfMessagePump
: IUnknown
675 HRESULT PeekMessageA
(
678 [in] UINT wMsgFilterMin
,
679 [in] UINT wMsgFilterMax
,
680 [in] UINT wRemoveMsg
,
681 [out] BOOL
*pfResult
);
686 [in] UINT wMsgFilterMin
,
687 [in] UINT wMsgFilterMax
,
688 [out] BOOL
*pfResult
);
690 HRESULT PeekMessageW
(
693 [in] UINT wMsgFilterMin
,
694 [in] UINT wMsgFilterMax
,
695 [in] UINT wRemoveMsg
,
696 [out] BOOL
*pfResult
);
701 [in] UINT wMsgFilterMin
,
702 [in] UINT wMsgFilterMax
,
703 [out] BOOL
*pfResult
);
709 uuid(d60a7b49
-1b9f
-4be2
-b702
-47e9dc05dec3
),
710 pointer_default(unique)
712 interface ITfClientId
: IUnknown
715 [in] REFCLSID rclsid
,
716 [out] TfClientId
*ptid
);
721 uuid(43c9fe15
-f494
-4c17
-9de2
-b8a4ac350aa8
),
722 pointer_default(unique)
724 interface ITfLanguageProfileNotifySink
: IUnknown
726 HRESULT OnLanguageChange
(
728 [out] BOOL
*pfAccept
);
730 HRESULT OnLanguageChanged
();
735 uuid(aa80e803
-2021-11d2
-93e0
-0060b067b86e
),
736 pointer_default(unique)
738 interface ITfEditSession
: IUnknown
740 HRESULT DoEditSession
(
741 [in] TfEditCookie ec
);
746 uuid(aa80e7ff
-2021-11d2
-93e0
-0060b067b86e
),
747 pointer_default(unique)
749 interface ITfRange
: IUnknown
751 const WCHAR TF_CHAR_EMBEDDED
= TS_CHAR_EMBEDDED
;
753 typedef [uuid(cf610f06
-2882-46f6
-abe5
-298568b664c4
)] enum { TF_GRAVITY_BACKWARD
= 0, TF_GRAVITY_FORWARD
= 1 } TfGravity
;
755 typedef [uuid(1e512533
-bbdc
-4530-9a8e
-a1dc0af67468
)] enum { TF_SD_BACKWARD
= 0, TF_SD_FORWARD
= 1 } TfShiftDir
;
757 const DWORD TF_HF_OBJECT
= 1;
758 const DWORD TF_TF_MOVESTART
= 1;
759 const DWORD TF_TF_IGNOREEND
= 2;
760 const DWORD TF_ST_CORRECTION
= 1;
761 const DWORD TF_IE_CORRECTION
= 1;
763 typedef [uuid(49930d51
-7d93
-448c
-a48c
-fea5dac192b1
)] struct TF_HALTCOND
765 ITfRange
*pHaltRange
;
771 [in] TfEditCookie ec
,
773 [out, size_is(cchMax
), length_is(*pcch
)] WCHAR
*pchText
,
778 [in] TfEditCookie ec
,
780 [in, size_is(cch
), unique] const WCHAR
*pchText
,
783 HRESULT GetFormattedText
(
784 [in] TfEditCookie ec
,
785 [out] IDataObject
**ppDataObject
);
788 [in] TfEditCookie ec
,
789 [in] REFGUID rguidService
,
791 [out, iid_is(riid
)] IUnknown
**ppunk
);
793 HRESULT InsertEmbedded
(
794 [in] TfEditCookie ec
,
796 [in] IDataObject
*pDataObject
);
799 [in] TfEditCookie ec
,
802 [in, unique] const TF_HALTCOND
*pHalt
);
805 [in] TfEditCookie ec
,
808 [in, unique] const TF_HALTCOND
*pHalt
);
810 HRESULT ShiftStartToRange
(
811 [in] TfEditCookie ec
,
812 [in] ITfRange
*pRange
,
815 HRESULT ShiftEndToRange
(
816 [in] TfEditCookie ec
,
817 [in] ITfRange
*pRange
,
820 HRESULT ShiftStartRegion
(
821 [in] TfEditCookie ec
,
823 [out] BOOL
*pfNoRegion
);
825 HRESULT ShiftEndRegion
(
826 [in] TfEditCookie ec
,
828 [out] BOOL
*pfNoRegion
);
831 [in] TfEditCookie ec
,
832 [out] BOOL
*pfEmpty
);
835 [in] TfEditCookie ec
,
838 HRESULT IsEqualStart
(
839 [in] TfEditCookie ec
,
840 [in] ITfRange
*pWith
,
842 [out] BOOL
*pfEqual
);
845 [in] TfEditCookie ec
,
846 [in] ITfRange
*pWith
,
848 [out] BOOL
*pfEqual
);
850 HRESULT CompareStart
(
851 [in] TfEditCookie ec
,
852 [in] ITfRange
*pWith
,
854 [out] LONG *plResult
);
857 [in] TfEditCookie ec
,
858 [in] ITfRange
*pWith
,
860 [out] LONG *plResult
);
862 HRESULT AdjustForInsert
(
863 [in] TfEditCookie ec
,
864 [in] ULONG cchInsert
,
865 [out] BOOL
*pfInsertOk
);
868 [out] TfGravity
*pgStart
,
869 [out] TfGravity
*pgEnd
);
872 [in] TfEditCookie ec
,
873 [in] TfGravity gStart
,
874 [in] TfGravity gEnd
);
877 [out] ITfRange
**ppClone
);
880 [out] ITfContext
**ppContext
);
885 uuid(55ce16ba
-3014-41c1
-9ceb
-fade1446ac6c
),
886 pointer_default(unique)
888 interface ITfInsertAtSelection
: IUnknown
890 const DWORD TF_IAS_NOQUERY
= 0x1;
891 const DWORD TF_IAS_QUERYONLY
= 0x2;
892 const DWORD TF_IAS_NO_DEFAULT_COMPOSITION
= 0x80000000;
894 HRESULT InsertTextAtSelection
(
895 [in] TfEditCookie ec
,
897 [in, size_is(cch
)] const WCHAR
*pchText
,
899 [out] ITfRange
**ppRange
);
901 HRESULT InsertEmbeddedAtSelection
(
902 [in] TfEditCookie ec
,
904 [in] IDataObject
*pDataObject
,
905 [out] ITfRange
**ppRange
);
910 uuid(bb08f7a9
-607a
-4384-8623-056892b64371
),
911 pointer_default(unique)
913 interface ITfCompartment
: IUnknown
917 [in] const VARIANT *pvarValue
);
920 [out] VARIANT *pvarValue
);
925 uuid(7dcf57ac
-18ad
-438b
-824d
-979bffb74b7c
),
926 pointer_default(unique)
928 interface ITfCompartmentMgr
: IUnknown
930 HRESULT GetCompartment
(
932 [out] ITfCompartment
**ppcomp
);
934 HRESULT ClearCompartment
(
938 HRESULT EnumCompartments
(
939 [out] IEnumGUID
**ppEnum
);
944 uuid(743abd5f
-f26d
-48df
-8cc5
-238492419b64
),
945 pointer_default(unique)
947 interface ITfCompartmentEventSink
: IUnknown