Skip to content

Commit 543cf1e

Browse files
authored
[SDK] Add ITfRangeAnchor interface to <msctf_undoc.h> (reactos#8057)
This interface is needed for msctf.dll. JIRA issue: CORE-19361 - Add ITfRangeAnchor interface (based on current msctf implementation) to <msctf_undoc.h>.
1 parent bc03c01 commit 543cf1e

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

sdk/include/reactos/msctf_undoc.h

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,95 @@
1414
extern "C" {
1515
#endif
1616

17+
DEFINE_GUID(IID_ITfRangeAnchor, 0x8B99712B, 0x5815, 0x4BCC, 0xB9, 0xA9, 0x53, 0xDB, 0x1C, 0x8D, 0x67, 0x55);
18+
19+
#define INTERFACE ITfRangeAnchor
20+
DECLARE_INTERFACE_(ITfRangeAnchor, IUnknown)
21+
{
22+
STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
23+
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
24+
STDMETHOD_(ULONG,Release) (THIS) PURE;
25+
26+
STDMETHOD(GetFormattedText)(
27+
_In_ TfEditCookie ec,
28+
_Out_ IDataObject **ppDataObject) PURE;
29+
STDMETHOD(GetEmbedded)(
30+
_In_ TfEditCookie ec,
31+
_In_ REFGUID rguidService,
32+
_In_ REFIID riid,
33+
_Out_ IUnknown **ppunk) PURE;
34+
STDMETHOD(InsertEmbedded)(
35+
_In_ TfEditCookie ec,
36+
_In_ DWORD dwFlags,
37+
_In_ IDataObject *pDataObject) PURE;
38+
STDMETHOD(ShiftStart)(
39+
_In_ TfEditCookie ec,
40+
_In_ LONG cchReq,
41+
_Out_ LONG *pcch,
42+
_In_ const TF_HALTCOND *pHalt) PURE;
43+
STDMETHOD(ShiftEnd)(
44+
_In_ TfEditCookie ec,
45+
_In_ LONG cchReq,
46+
_Out_ LONG *pcch,
47+
_In_ const TF_HALTCOND *pHalt) PURE;
48+
STDMETHOD(ShiftStartToRange)(
49+
_In_ TfEditCookie ec,
50+
_Inout_ ITfRange *pRange,
51+
_In_ TfAnchor aPos) PURE;
52+
STDMETHOD(ShiftEndToRange)(
53+
_In_ TfEditCookie ec,
54+
_Inout_ ITfRange *pRange,
55+
_In_ TfAnchor aPos) PURE;
56+
STDMETHOD(ShiftStartRegion)(
57+
_In_ TfEditCookie ec,
58+
_In_ TfShiftDir dir,
59+
_Out_ BOOL *pfNoRegion) PURE;
60+
STDMETHOD(ShiftEndRegion)(
61+
_In_ TfEditCookie ec,
62+
_In_ TfShiftDir dir,
63+
_Out_ BOOL *pfNoRegion) PURE;
64+
STDMETHOD(IsEmpty)(
65+
_In_ TfEditCookie ec,
66+
_Out_ BOOL *pfEmpty) PURE;
67+
STDMETHOD(Collapse)(
68+
_In_ TfEditCookie ec,
69+
_In_ TfAnchor aPos) PURE;
70+
STDMETHOD(IsEqualStart)(
71+
_In_ TfEditCookie ec,
72+
_In_ ITfRange *pWith,
73+
_In_ TfAnchor aPos,
74+
_Out_ BOOL *pfEqual) PURE;
75+
STDMETHOD(IsEqualEnd)(
76+
_In_ TfEditCookie ec,
77+
_In_ ITfRange *pWith,
78+
_In_ TfAnchor aPos,
79+
_Out_ BOOL *pfEqual) PURE;
80+
STDMETHOD(CompareStart)(
81+
_In_ TfEditCookie ec,
82+
_Inout_ ITfRange *pWith,
83+
_In_ TfAnchor aPos,
84+
_Out_ LONG *plResult) PURE;
85+
STDMETHOD(CompareEnd)(
86+
_In_ TfEditCookie ec,
87+
_In_ ITfRange *pWith,
88+
_In_ TfAnchor aPos,
89+
_Out_ LONG *plResult) PURE;
90+
STDMETHOD(AdjustForInsert)(
91+
_In_ TfEditCookie ec,
92+
_In_ ULONG cchInsert,
93+
_Out_ BOOL *pfInsertOk) PURE;
94+
STDMETHOD(GetGravity)(
95+
_Out_ TfGravity *pgStart,
96+
_Out_ TfGravity *pgEnd) PURE;
97+
STDMETHOD(SetGravity)(
98+
_In_ TfEditCookie ec,
99+
_In_ TfGravity gStart,
100+
_In_ TfGravity gEnd) PURE;
101+
STDMETHOD(Clone)(_Out_ ITfRange **ppClone) PURE;
102+
STDMETHOD(GetContext)(_Out_ ITfContext **ppContext) PURE;
103+
};
104+
#undef INTERFACE
105+
17106
BOOL WINAPI TF_InitSystem(VOID);
18107
BOOL WINAPI TF_UninitSystem(VOID);
19108
HRESULT WINAPI TF_GetGlobalCompartment(_Out_ ITfCompartmentMgr **ppCompMgr);

0 commit comments

Comments
 (0)