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
("HRESULT WINAPI TF_CreateThreadMgr(ITfThreadMgr **pptim);")
33 cpp_quote
("HRESULT WINAPI TF_GetThreadMgr(ITfThreadMgr **pptim);")
35 cpp_quote
("EXTERN_C const CLSID CLSID_TF_ThreadMgr;")
36 cpp_quote
("EXTERN_C const CLSID CLSID_TF_InputProcessorProfiles;")
37 cpp_quote
("EXTERN_C const CLSID CLSID_TF_CategoryMgr;")
39 /* GUIDs for Compartments */
40 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_DISABLED;")
41 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_OPENCLOSE;")
42 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_HANDWRITING_OPENCLOSE;")
43 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_DISABLED;")
44 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_OPENCLOSE;")
45 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_GLOBALSTATE;")
46 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_PERSISTMENUENABLED;")
47 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_EMPTYCONTEXT;")
48 cpp_quote
("EXTERN_C const GUID GUID_COMPARTMENT_TIPUISTATUS;")
50 /* GUIDs for Categories */
51 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_TIP_KEYBOARD;")
52 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_TIP_SPEECH;")
53 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_TIP_HANDWRITING;")
54 cpp_quote
("EXTERN_C const GUID GUID_TFCAT_DISPLAYATTRIBUTEPROVIDER;")
56 typedef [uuid(7213778c
-7bb0
-4270-b050
-6189ee594e97
)] DWORD TfEditCookie
;
57 typedef [uuid(de403c21
-89fd
-4f85
-8b87
-64584d063fbc
)] DWORD TfClientId
;
58 typedef [uuid(88a9c478
-f3ec
-4763-8345-cd9250443f8d
)] DWORD TfGuidAtom
;
60 cpp_quote
("#define TF_MOD_ALT 0x0001")
61 cpp_quote
("#define TF_MOD_CONTROL 0x0002")
62 cpp_quote
("#define TF_MOD_SHIFT 0x0004")
63 cpp_quote
("#define TF_MOD_RALT 0x0008")
64 cpp_quote
("#define TF_MOD_RCONTROL 0x0010")
65 cpp_quote
("#define TF_MOD_RSHIFT 0x0020")
66 cpp_quote
("#define TF_MOD_LALT 0x0040")
67 cpp_quote
("#define TF_MOD_LCONTROL 0x0080")
68 cpp_quote
("#define TF_MOD_LSHIFT 0x0100")
69 cpp_quote
("#define TF_MOD_ON_KEYUP 0x0200")
70 cpp_quote
("#define TF_MOD_IGNORE_ALL_MODIFIER 0x0400")
72 interface ITfDocumentMgr
;
74 interface IEnumTfDocumentMgrs
;
75 interface IEnumTfContexts
;
76 interface ITfFunctionProvider
;
77 interface IEnumTfFunctionProviders
;
78 interface ITfCompartmentMgr
;
79 interface ITfEditSession
;
81 interface ITfContextView
;
82 interface IEnumTfContextViews
;
83 interface ITfProperty
;
84 interface ITfReadOnlyProperty
;
85 interface IEnumTfProperties
;
86 interface ITfRangeBackup
;
87 interface IEnumTfLanguageProfiles
;
88 interface ITfEditRecord
;
89 interface ITfCompositionView
;
90 interface ITfKeyEventSink
;
92 typedef [uuid(e1b5808d
-1e46
-4c19
-84dc
-68c5f5978cc8
)] struct TF_LANGUAGEPROFILE
101 typedef [uuid(77c12f95
-b783
-450d
-879f
-1cd2362c6521
)] struct TF_PRESERVEDKEY
107 typedef [uuid(5a886226
-ae9a
-489b
-b991
-2b1e25ee59a9
)] enum { TF_ANCHOR_START
= 0, TF_ANCHOR_END
= 1 } TfAnchor
;
111 uuid(aa80e801
-2021-11d2
-93e0
-0060b067b86e
),
112 pointer_default(unique)
114 interface ITfThreadMgr
: IUnknown
117 [out] TfClientId
*ptid
);
119 HRESULT Deactivate
();
121 HRESULT CreateDocumentMgr
(
122 [out] ITfDocumentMgr
**ppdim
);
124 HRESULT EnumDocumentMgrs
(
125 [out] IEnumTfDocumentMgrs
**ppEnum
);
128 [out] ITfDocumentMgr
**ppdimFocus
);
131 [in] ITfDocumentMgr
*pdimFocus
);
133 HRESULT AssociateFocus
(
135 [in, unique] ITfDocumentMgr
*pdimNew
,
136 [out] ITfDocumentMgr
**ppdimPrev
);
138 HRESULT IsThreadFocus
(
139 [out] BOOL
*pfThreadFocus
);
141 HRESULT GetFunctionProvider
(
143 [out] ITfFunctionProvider
**ppFuncProv
);
145 HRESULT EnumFunctionProviders
(
146 [out] IEnumTfFunctionProviders
**ppEnum
);
148 HRESULT GetGlobalCompartment
(
149 [out] ITfCompartmentMgr
**ppCompMgr
);
155 uuid(aa80e7f4
-2021-11d2
-93e0
-0060b067b86e
),
156 pointer_default(unique)
158 interface ITfDocumentMgr
: IUnknown
160 HRESULT CreateContext
(
161 [in] TfClientId tidOwner
,
163 [in, unique] IUnknown
*punk
,
164 [out] ITfContext
**ppic
,
165 [out] TfEditCookie
*pecTextStore
);
168 [in] ITfContext
*pic
);
170 const DWORD TF_POPF_ALL
= 0x0001;
176 [out] ITfContext
**ppic
);
179 [out] ITfContext
**ppic
);
181 HRESULT EnumContexts
(
182 [out] IEnumTfContexts
**ppEnum
);
187 uuid(aa80e7fd
-2021-11d2
-93e0
-0060b067b86e
),
188 pointer_default(unique)
190 interface ITfContext
: IUnknown
192 const DWORD TF_ES_ASYNCDONTCARE
= 0x0;
193 const DWORD TF_ES_SYNC
= 0x1;
194 const DWORD TF_ES_READ
= 0x2;
195 const DWORD TF_ES_READWRITE
= 0x6;
196 const DWORD TF_ES_ASYNC
= 0x8;
198 HRESULT RequestEditSession
(
200 [in] ITfEditSession
*pes
,
202 [out] HRESULT *phrSession
);
204 HRESULT InWriteSession
(
206 [out] BOOL
*pfWriteSession
);
208 typedef [uuid(1690be9b
-d3e9
-49f6
-8d8b
-51b905af4c43
)] enum { TF_AE_NONE
, TF_AE_START
, TF_AE_END
} TfActiveSelEnd
;
210 typedef [uuid(36ae42a4
-6989-4bdc
-b48a
-6137b7bf2e42
)] struct TF_SELECTIONSTYLE
216 typedef [uuid(75eb22f2
-b0bf
-46a8
-8006-975a3b6efcf1
)] struct TF_SELECTION
219 TF_SELECTIONSTYLE style
;
222 const ULONG TF_DEFAULT_SELECTION
= TS_DEFAULT_SELECTION
;
224 HRESULT GetSelection
(
225 [in] TfEditCookie ec
,
228 [out, size_is(ulCount
), length_is(*pcFetched
)] TF_SELECTION
*pSelection
,
229 [out] ULONG
*pcFetched
);
231 HRESULT SetSelection
(
232 [in] TfEditCookie ec
,
234 [in, size_is(ulCount
)] const TF_SELECTION
*pSelection
);
237 [in] TfEditCookie ec
,
238 [out] ITfRange
**ppStart
);
241 [in] TfEditCookie ec
,
242 [out] ITfRange
**ppEnd
);
244 typedef [uuid(bc7d979a
-846a
-444d
-afef
-0a9bfa82b961
)] TS_STATUS TF_STATUS
;
245 const DWORD TF_SD_READONLY
= TS_SD_READONLY
;
246 const DWORD TF_SD_LOADING
= TS_SD_LOADING
;
247 const DWORD TF_SS_DISJOINTSEL
= TS_SS_DISJOINTSEL
;
248 const DWORD TF_SS_REGIONS
= TS_SS_REGIONS
;
249 const DWORD TF_SS_TRANSITORY
= TS_SS_TRANSITORY
;
252 HRESULT GetActiveView
(
253 [out] ITfContextView
**ppView
);
256 [out] IEnumTfContextViews
**ppEnum
);
259 [out] TF_STATUS
*pdcs
);
262 [in] REFGUID guidProp
,
263 [out] ITfProperty
**ppProp
);
265 HRESULT GetAppProperty
(
266 [in] REFGUID guidProp
,
267 [out] ITfReadOnlyProperty
**ppProp
);
269 HRESULT TrackProperties
(
270 [in, size_is(cProp
)] const GUID
**prgProp
,
272 [in, size_is(cAppProp
)] const GUID
**prgAppProp
,
274 [out] ITfReadOnlyProperty
**ppProperty
);
276 HRESULT EnumProperties
(
277 [out] IEnumTfProperties
**ppEnum
);
279 HRESULT GetDocumentMgr
(
280 [out] ITfDocumentMgr
**ppDm
);
282 HRESULT CreateRangeBackup
(
283 [in] TfEditCookie ec
,
284 [in] ITfRange
*pRange
,
285 [out] ITfRangeBackup
**ppBackup
);
291 uuid(4ea48a35
-60ae
-446f
-8fd6
-e6a8d82459f7
),
292 pointer_default(unique)
294 interface ITfSource
: IUnknown
298 [in, iid_is(riid
)] IUnknown
*punk
,
299 [out] DWORD
*pdwCookie
);
301 HRESULT UnadviseSink
(
302 [in] DWORD dwCookie
);
308 uuid(1F02B6C5
-7842-4EE6
-8A0B
-9A24183A95CA
),
309 pointer_default(unique)
311 interface ITfInputProcessorProfiles
: IUnknown
314 [in] REFCLSID rclsid
);
317 [in] REFCLSID rclsid
);
319 HRESULT AddLanguageProfile
(
320 [in] REFCLSID rclsid
,
322 [in] REFGUID guidProfile
,
323 [in, size_is(cchDesc
)] const WCHAR
*pchDesc
,
325 [in, size_is(cchFile
)] const WCHAR
*pchIconFile
,
327 [in] ULONG uIconIndex
);
329 HRESULT RemoveLanguageProfile
(
330 [in] REFCLSID rclsid
,
332 [in] REFGUID guidProfile
);
334 HRESULT EnumInputProcessorInfo
(
335 [out] IEnumGUID
**ppEnum
);
337 HRESULT GetDefaultLanguageProfile
(
341 [out] GUID
*pguidProfile
);
343 HRESULT SetDefaultLanguageProfile
(
345 [in] REFCLSID rclsid
,
346 [in] REFGUID guidProfiles
);
348 HRESULT ActivateLanguageProfile
(
349 [in] REFCLSID rclsid
,
351 [in] REFGUID guidProfiles
);
353 HRESULT GetActiveLanguageProfile
(
354 [in] REFCLSID rclsid
,
355 [out] LANGID
*plangid
,
356 [out] GUID
*pguidProfile
);
358 HRESULT GetLanguageProfileDescription
(
359 [in] REFCLSID rclsid
,
361 [in] REFGUID guidProfile
,
362 [out] BSTR *pbstrProfile
);
364 HRESULT GetCurrentLanguage
(
365 [out] LANGID
*plangid
);
367 HRESULT ChangeCurrentLanguage
(
370 HRESULT GetLanguageList
(
371 [out] LANGID
**ppLangId
,
372 [out] ULONG
*pulCount
);
374 HRESULT EnumLanguageProfiles
(
376 [out] IEnumTfLanguageProfiles
**ppEnum
);
378 HRESULT EnableLanguageProfile
(
379 [in] REFCLSID rclsid
,
381 [in] REFGUID guidProfile
,
384 HRESULT IsEnabledLanguageProfile
(
385 [in] REFCLSID rclsid
,
387 [in] REFGUID guidProfile
,
388 [out] BOOL
*pfEnable
);
390 HRESULT EnableLanguageProfileByDefault
(
391 [in] REFCLSID rclsid
,
393 [in] REFGUID guidProfile
,
396 HRESULT SubstituteKeyboardLayout
(
397 [in] REFCLSID rclsid
,
399 [in] REFGUID guidProfile
,
406 uuid(c3acefb5
-f69d
-4905-938f
-fcadcf4be830
),
407 pointer_default(unique)
409 interface ITfCategoryMgr
: IUnknown
411 HRESULT RegisterCategory
([in] REFCLSID rclsid
,
415 HRESULT UnregisterCategory
([in] REFCLSID rclsid
,
419 HRESULT EnumCategoriesInItem
([in] REFGUID rguid
,
420 [out] IEnumGUID
**ppEnum
);
422 HRESULT EnumItemsInCategory
([in] REFGUID rcatid
,
423 [out] IEnumGUID
**ppEnum
);
425 HRESULT FindClosestCategory
([in] REFGUID rguid
,
427 [in, size_is(ulCount
)] const GUID
**ppcatidList
,
430 HRESULT RegisterGUIDDescription
([in] REFCLSID rclsid
,
432 [in, size_is(cch
)] const WCHAR
*pchDesc
,
435 HRESULT UnregisterGUIDDescription
([in] REFCLSID rclsid
,
438 HRESULT GetGUIDDescription
([in] REFGUID rguid
,
439 [out] BSTR *pbstrDesc
);
441 HRESULT RegisterGUIDDWORD
([in] REFCLSID rclsid
,
445 HRESULT UnregisterGUIDDWORD
([in] REFCLSID rclsid
,
448 HRESULT GetGUIDDWORD
([in] REFGUID rguid
,
451 HRESULT RegisterGUID
([in] REFGUID rguid
,
452 [out] TfGuidAtom
*pguidatom
);
454 HRESULT GetGUID
([in] TfGuidAtom guidatom
,
457 HRESULT IsEqualTfGuidAtom
([in] TfGuidAtom guidatom
,
459 [out] BOOL
*pfEqual
);
464 uuid(8127d409
-ccd3
-4683-967a
-b43d5b482bf7
),
465 pointer_default(unique)
467 interface ITfTextEditSink
: IUnknown
470 [in] ITfContext
*pic
,
471 [in] TfEditCookie ecReadOnly
,
472 [in] ITfEditRecord
*pEditRecord
);
477 uuid(5F20AA40
-B57A
-4F34
-96AB
-3576F377CC79
),
478 pointer_default(unique)
480 interface ITfContextOwnerCompositionSink
: IUnknown
482 HRESULT OnStartComposition
(
483 [in] ITfCompositionView
*pComposition
,
486 HRESULT OnUpdateComposition
(
487 [in] ITfCompositionView
*pComposition
,
488 [in] ITfRange
*pRangeNew
);
490 HRESULT OnEndComposition
(
491 [in] ITfCompositionView
*pComposition
);
496 uuid(3d61bf11
-ac5f
-42c8
-a4cb
-931bcc28c744
),
497 pointer_default(unique)
499 interface IEnumTfLanguageProfiles
: IUnknown
502 [out] IEnumTfLanguageProfiles
**ppEnum
);
506 [out, size_is(ulCount
), length_is(*pcFetch
)] TF_LANGUAGEPROFILE
*pProfile
,
507 [out] ULONG
*pcFetch
);
518 uuid(aa80e7f7
-2021-11d2
-93e0
-0060b067b86e
),
519 pointer_default(unique)
521 interface ITfTextInputProcessor
: IUnknown
524 [in] ITfThreadMgr
*ptim
,
525 [in] TfClientId tid
);
527 HRESULT Deactivate
();
532 uuid(aa80e80e
-2021
-11d2
-93e0
-0060b067b86e
),
533 pointer_default(unique)
535 interface ITfThreadMgrEventSink
: IUnknown
537 HRESULT OnInitDocumentMgr
(
538 [in] ITfDocumentMgr
*pdim
);
540 HRESULT OnUninitDocumentMgr
(
541 [in] ITfDocumentMgr
*pdim
);
544 [in] ITfDocumentMgr
*pdimFocus
,
545 [in] ITfDocumentMgr
*pdimPrevFocus
);
547 HRESULT OnPushContext
(
548 [in] ITfContext
*pic
);
550 HRESULT OnPopContext
(
551 [in] ITfContext
*pic
);
557 uuid(aa80e7f0
-2021-11d2
-93e0
-0060b067b86e
),
558 pointer_default(unique)
560 interface ITfKeystrokeMgr
: IUnknown
562 HRESULT AdviseKeyEventSink
(
564 [in] ITfKeyEventSink
*pSink
,
565 [in] BOOL fForeground
);
567 HRESULT UnadviseKeyEventSink
(
568 [in] TfClientId tid
);
570 HRESULT GetForeground
(
571 [out] CLSID
*pclsid
);
576 [out] BOOL
*pfEaten
);
581 [out] BOOL
*pfEaten
);
586 [out] BOOL
*pfEaten
);
591 [out] BOOL
*pfEaten
);
593 HRESULT GetPreservedKey
(
594 [in] ITfContext
*pic
,
595 [in] const TF_PRESERVEDKEY
*pprekey
,
598 HRESULT IsPreservedKey
(
600 [in] const TF_PRESERVEDKEY
*pprekey
,
601 [out] BOOL
*pfRegistered
);
606 [in] const TF_PRESERVEDKEY
*prekey
,
607 [in, size_is(cchDesc
)] const WCHAR
*pchDesc
,
610 HRESULT UnpreserveKey
(
612 [in] const TF_PRESERVEDKEY
*pprekey
);
614 HRESULT SetPreservedKeyDescription
(
616 [in, size_is(cchDesc
)] const WCHAR
*pchDesc
,
619 HRESULT GetPreservedKeyDescription
(
621 [out] BSTR *pbstrDesc
);
623 HRESULT SimulatePreservedKey
(
624 [in] ITfContext
*pic
,
626 [out] BOOL
*pfEaten
);
632 uuid(aa80e7f5
-2021-11d2
-93e0
-0060b067b86e
),
633 pointer_default(unique)
635 interface ITfKeyEventSink
: IUnknown
638 [in] BOOL fForeground
);
640 HRESULT OnTestKeyDown
(
641 [in] ITfContext
*pic
,
644 [out] BOOL
*pfEaten
);
647 [in] ITfContext
*pic
,
650 [out] BOOL
*pfEaten
);
653 [in] ITfContext
*pic
,
656 [out] BOOL
*pfEaten
);
659 [in] ITfContext
*pic
,
662 [out] BOOL
*pfEaten
);
664 HRESULT OnPreservedKey
(
665 [in] ITfContext
*pic
,
667 [out] BOOL
*pfEaten
);
673 uuid(8f1b8ad8
-0b6b
-4874-90c5
-bd76011e8f7c
),
674 pointer_default(unique)
676 interface ITfMessagePump
: IUnknown
678 HRESULT PeekMessageA
(
681 [in] UINT wMsgFilterMin
,
682 [in] UINT wMsgFilterMax
,
683 [in] UINT wRemoveMsg
,
684 [out] BOOL
*pfResult
);
689 [in] UINT wMsgFilterMin
,
690 [in] UINT wMsgFilterMax
,
691 [out] BOOL
*pfResult
);
693 HRESULT PeekMessageW
(
696 [in] UINT wMsgFilterMin
,
697 [in] UINT wMsgFilterMax
,
698 [in] UINT wRemoveMsg
,
699 [out] BOOL
*pfResult
);
704 [in] UINT wMsgFilterMin
,
705 [in] UINT wMsgFilterMax
,
706 [out] BOOL
*pfResult
);
712 uuid(d60a7b49
-1b9f
-4be2
-b702
-47e9dc05dec3
),
713 pointer_default(unique)
715 interface ITfClientId
: IUnknown
718 [in] REFCLSID rclsid
,
719 [out] TfClientId
*ptid
);
724 uuid(43c9fe15
-f494
-4c17
-9de2
-b8a4ac350aa8
),
725 pointer_default(unique)
727 interface ITfLanguageProfileNotifySink
: IUnknown
729 HRESULT OnLanguageChange
(
731 [out] BOOL
*pfAccept
);
733 HRESULT OnLanguageChanged
();
738 uuid(aa80e803
-2021-11d2
-93e0
-0060b067b86e
),
739 pointer_default(unique)
741 interface ITfEditSession
: IUnknown
743 HRESULT DoEditSession
(
744 [in] TfEditCookie ec
);
749 uuid(aa80e7ff
-2021-11d2
-93e0
-0060b067b86e
),
750 pointer_default(unique)
752 interface ITfRange
: IUnknown
754 const WCHAR TF_CHAR_EMBEDDED
= TS_CHAR_EMBEDDED
;
756 typedef [uuid(cf610f06
-2882-46f6
-abe5
-298568b664c4
)] enum { TF_GRAVITY_BACKWARD
= 0, TF_GRAVITY_FORWARD
= 1 } TfGravity
;
758 typedef [uuid(1e512533
-bbdc
-4530-9a8e
-a1dc0af67468
)] enum { TF_SD_BACKWARD
= 0, TF_SD_FORWARD
= 1 } TfShiftDir
;
760 const DWORD TF_HF_OBJECT
= 1;
761 const DWORD TF_TF_MOVESTART
= 1;
762 const DWORD TF_TF_IGNOREEND
= 2;
763 const DWORD TF_ST_CORRECTION
= 1;
764 const DWORD TF_IE_CORRECTION
= 1;
766 typedef [uuid(49930d51
-7d93
-448c
-a48c
-fea5dac192b1
)] struct TF_HALTCOND
768 ITfRange
*pHaltRange
;
774 [in] TfEditCookie ec
,
776 [out, size_is(cchMax
), length_is(*pcch
)] WCHAR
*pchText
,
781 [in] TfEditCookie ec
,
783 [in, size_is(cch
), unique] const WCHAR
*pchText
,
786 HRESULT GetFormattedText
(
787 [in] TfEditCookie ec
,
788 [out] IDataObject
**ppDataObject
);
791 [in] TfEditCookie ec
,
792 [in] REFGUID rguidService
,
794 [out, iid_is(riid
)] IUnknown
**ppunk
);
796 HRESULT InsertEmbedded
(
797 [in] TfEditCookie ec
,
799 [in] IDataObject
*pDataObject
);
802 [in] TfEditCookie ec
,
805 [in, unique] const TF_HALTCOND
*pHalt
);
808 [in] TfEditCookie ec
,
811 [in, unique] const TF_HALTCOND
*pHalt
);
813 HRESULT ShiftStartToRange
(
814 [in] TfEditCookie ec
,
815 [in] ITfRange
*pRange
,
818 HRESULT ShiftEndToRange
(
819 [in] TfEditCookie ec
,
820 [in] ITfRange
*pRange
,
823 HRESULT ShiftStartRegion
(
824 [in] TfEditCookie ec
,
826 [out] BOOL
*pfNoRegion
);
828 HRESULT ShiftEndRegion
(
829 [in] TfEditCookie ec
,
831 [out] BOOL
*pfNoRegion
);
834 [in] TfEditCookie ec
,
835 [out] BOOL
*pfEmpty
);
838 [in] TfEditCookie ec
,
841 HRESULT IsEqualStart
(
842 [in] TfEditCookie ec
,
843 [in] ITfRange
*pWith
,
845 [out] BOOL
*pfEqual
);
848 [in] TfEditCookie ec
,
849 [in] ITfRange
*pWith
,
851 [out] BOOL
*pfEqual
);
853 HRESULT CompareStart
(
854 [in] TfEditCookie ec
,
855 [in] ITfRange
*pWith
,
857 [out] LONG *plResult
);
860 [in] TfEditCookie ec
,
861 [in] ITfRange
*pWith
,
863 [out] LONG *plResult
);
865 HRESULT AdjustForInsert
(
866 [in] TfEditCookie ec
,
867 [in] ULONG cchInsert
,
868 [out] BOOL
*pfInsertOk
);
871 [out] TfGravity
*pgStart
,
872 [out] TfGravity
*pgEnd
);
875 [in] TfEditCookie ec
,
876 [in] TfGravity gStart
,
877 [in] TfGravity gEnd
);
880 [out] ITfRange
**ppClone
);
883 [out] ITfContext
**ppContext
);
888 uuid(55ce16ba
-3014-41c1
-9ceb
-fade1446ac6c
),
889 pointer_default(unique)
891 interface ITfInsertAtSelection
: IUnknown
893 const DWORD TF_IAS_NOQUERY
= 0x1;
894 const DWORD TF_IAS_QUERYONLY
= 0x2;
895 const DWORD TF_IAS_NO_DEFAULT_COMPOSITION
= 0x80000000;
897 HRESULT InsertTextAtSelection
(
898 [in] TfEditCookie ec
,
900 [in, size_is(cch
)] const WCHAR
*pchText
,
902 [out] ITfRange
**ppRange
);
904 HRESULT InsertEmbeddedAtSelection
(
905 [in] TfEditCookie ec
,
907 [in] IDataObject
*pDataObject
,
908 [out] ITfRange
**ppRange
);
913 uuid(bb08f7a9
-607a
-4384-8623-056892b64371
),
914 pointer_default(unique)
916 interface ITfCompartment
: IUnknown
920 [in] const VARIANT *pvarValue
);
923 [out] VARIANT *pvarValue
);
928 uuid(7dcf57ac
-18ad
-438b
-824d
-979bffb74b7c
),
929 pointer_default(unique)
931 interface ITfCompartmentMgr
: IUnknown
933 HRESULT GetCompartment
(
935 [out] ITfCompartment
**ppcomp
);
937 HRESULT ClearCompartment
(
941 HRESULT EnumCompartments
(
942 [out] IEnumGUID
**ppEnum
);
947 uuid(743abd5f
-f26d
-48df
-8cc5
-238492419b64
),
948 pointer_default(unique)
950 interface ITfCompartmentEventSink
: IUnknown