Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2840 lines
92 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0345 */
  4. /* Compiler settings for textstor.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __textstor_h__
  27. #define __textstor_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ITextStoreACP_FWD_DEFINED__
  33. #define __ITextStoreACP_FWD_DEFINED__
  34. typedef interface ITextStoreACP ITextStoreACP;
  35. #endif /* __ITextStoreACP_FWD_DEFINED__ */
  36. #ifndef __ITextStoreACPSink_FWD_DEFINED__
  37. #define __ITextStoreACPSink_FWD_DEFINED__
  38. typedef interface ITextStoreACPSink ITextStoreACPSink;
  39. #endif /* __ITextStoreACPSink_FWD_DEFINED__ */
  40. #ifndef __IAnchor_FWD_DEFINED__
  41. #define __IAnchor_FWD_DEFINED__
  42. typedef interface IAnchor IAnchor;
  43. #endif /* __IAnchor_FWD_DEFINED__ */
  44. #ifndef __ITextStoreAnchor_FWD_DEFINED__
  45. #define __ITextStoreAnchor_FWD_DEFINED__
  46. typedef interface ITextStoreAnchor ITextStoreAnchor;
  47. #endif /* __ITextStoreAnchor_FWD_DEFINED__ */
  48. #ifndef __ITextStoreAnchorSink_FWD_DEFINED__
  49. #define __ITextStoreAnchorSink_FWD_DEFINED__
  50. typedef interface ITextStoreAnchorSink ITextStoreAnchorSink;
  51. #endif /* __ITextStoreAnchorSink_FWD_DEFINED__ */
  52. /* header files for imported files */
  53. #include "oaidl.h"
  54. #ifdef __cplusplus
  55. extern "C"{
  56. #endif
  57. void * __RPC_USER MIDL_user_allocate(size_t);
  58. void __RPC_USER MIDL_user_free( void * );
  59. /* interface __MIDL_itf_textstor_0000 */
  60. /* [local] */
  61. DEFINE_GUID (GUID_TS_SERVICE_DATAOBJECT, 0x6086fbb5, 0xe225, 0x46ce, 0xa7, 0x70, 0xc1, 0xbb, 0xd3, 0xe0, 0x5d, 0x7b);
  62. DEFINE_GUID (GUID_TS_SERVICE_ACCESSIBLE, 0xf9786200, 0xa5bf, 0x4a0f, 0x8c, 0x24, 0xfb, 0x16, 0xf5, 0xd1, 0xaa, 0xbb);
  63. DEFINE_GUID (GUID_TS_SERVICE_ACTIVEX, 0xea937a50, 0xc9a6, 0x4b7d, 0x89, 0x4a, 0x49, 0xd9, 0x9b, 0x78, 0x48, 0x34);
  64. #define TS_E_INVALIDPOS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
  65. #define TS_E_NOLOCK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201)
  66. #define TS_E_NOOBJECT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0202)
  67. #define TS_E_NOSERVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0203)
  68. #define TS_E_NOINTERFACE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0204)
  69. #define TS_E_NOSELECTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0205)
  70. #define TS_E_NOLAYOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0206)
  71. #define TS_E_INVALIDPOINT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0207)
  72. #define TS_E_SYNCHRONOUS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0208)
  73. #define TS_E_READONLY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0209)
  74. #define TS_E_FORMAT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x020a)
  75. #define TS_S_ASYNC MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_ITF, 0x0300)
  76. #define TS_AS_TEXT_CHANGE ( 0x1 )
  77. #define TS_AS_SEL_CHANGE ( 0x2 )
  78. #define TS_AS_LAYOUT_CHANGE ( 0x4 )
  79. #define TS_AS_ATTR_CHANGE ( 0x8 )
  80. #define TS_AS_STATUS_CHANGE ( 0x10 )
  81. #define TS_AS_ALL_SINKS ( TS_AS_TEXT_CHANGE | TS_AS_SEL_CHANGE | TS_AS_LAYOUT_CHANGE | TS_AS_ATTR_CHANGE | TS_AS_STATUS_CHANGE )
  82. #define TS_LF_SYNC ( 0x1 )
  83. #define TS_LF_READ ( 0x2 )
  84. #define TS_LF_READWRITE ( 0x6 )
  85. #define TS_SD_READONLY ( 0x1 )
  86. #define TS_SD_LOADING ( 0x2 )
  87. #define TS_SS_DISJOINTSEL ( 0x1 )
  88. #define TS_SS_REGIONS ( 0x2 )
  89. #define TS_SS_TRANSITORY ( 0x4 )
  90. #define TS_SS_NOHIDDENTEXT ( 0x8 )
  91. #define TS_SD_MASKALL ( TS_SD_READONLY | TS_SD_LOADING )
  92. #define TS_ST_CORRECTION ( 0x1 )
  93. #define TS_ST_COMPOSITION ( 0x2 )
  94. #define TS_IE_CORRECTION ( 0x1 )
  95. #define TS_IE_COMPOSITION ( 0x2 )
  96. #define TS_TC_CORRECTION ( 0x1 )
  97. #define TS_IAS_NOQUERY ( 0x1 )
  98. #define TS_IAS_QUERYONLY ( 0x2 )
  99. typedef /* [uuid] */ DECLSPEC_UUID("fec4f516-c503-45b1-a5fd-7a3d8ab07049") struct TS_STATUS
  100. {
  101. DWORD dwDynamicFlags;
  102. DWORD dwStaticFlags;
  103. } TS_STATUS;
  104. typedef /* [uuid] */ DECLSPEC_UUID("f3181bd6-bcf0-41d3-a81c-474b17ec38fb") struct TS_TEXTCHANGE
  105. {
  106. LONG acpStart;
  107. LONG acpOldEnd;
  108. LONG acpNewEnd;
  109. } TS_TEXTCHANGE;
  110. typedef /* [public][public][public][public][public][public][public][public][uuid] */ DECLSPEC_UUID("05fcf85b-5e9c-4c3e-ab71-29471d4f38e7")
  111. enum __MIDL___MIDL_itf_textstor_0000_0001
  112. { TS_AE_NONE = 0,
  113. TS_AE_START = 1,
  114. TS_AE_END = 2
  115. } TsActiveSelEnd;
  116. typedef /* [uuid] */ DECLSPEC_UUID("7ecc3ffa-8f73-4d91-98ed-76f8ac5b1600") struct TS_SELECTIONSTYLE
  117. {
  118. TsActiveSelEnd ase;
  119. BOOL fInterimChar;
  120. } TS_SELECTIONSTYLE;
  121. typedef /* [uuid] */ DECLSPEC_UUID("c4b9c33b-8a0d-4426-bebe-d444a4701fe9") struct TS_SELECTION_ACP
  122. {
  123. LONG acpStart;
  124. LONG acpEnd;
  125. TS_SELECTIONSTYLE style;
  126. } TS_SELECTION_ACP;
  127. typedef /* [uuid] */ DECLSPEC_UUID("b03413d2-0723-4c4e-9e08-2e9c1ff3772b") struct TS_SELECTION_ANCHOR
  128. {
  129. IAnchor *paStart;
  130. IAnchor *paEnd;
  131. TS_SELECTIONSTYLE style;
  132. } TS_SELECTION_ANCHOR;
  133. #define TS_DEFAULT_SELECTION ( ( ULONG )-1 )
  134. #define GXFPF_ROUND_NEAREST ( 0x1 )
  135. #define GXFPF_NEAREST ( 0x2 )
  136. #define TS_CHAR_EMBEDDED ( 0xfffc )
  137. #define TS_CHAR_REGION ( 0 )
  138. #define TS_CHAR_REPLACEMENT ( 0xfffd )
  139. typedef /* [uuid] */ DECLSPEC_UUID("ef3457d9-8446-49a7-a9e6-b50d9d5f3fd9") GUID TS_ATTRID;
  140. typedef /* [uuid] */ DECLSPEC_UUID("2cc2b33f-1174-4507-b8d9-5bc0eb37c197") struct TS_ATTRVAL
  141. {
  142. TS_ATTRID idAttr;
  143. DWORD dwOverlapId;
  144. VARIANT varValue;
  145. } TS_ATTRVAL;
  146. #define TS_ATTR_FIND_BACKWARDS ( 0x1 )
  147. #define TS_ATTR_FIND_WANT_OFFSET ( 0x2 )
  148. #define TS_ATTR_FIND_UPDATESTART ( 0x4 )
  149. #define TS_ATTR_FIND_WANT_VALUE ( 0x8 )
  150. #define TS_ATTR_FIND_WANT_END ( 0x10 )
  151. #define TS_ATTR_FIND_HIDDEN ( 0x20 )
  152. typedef /* [uuid] */ DECLSPEC_UUID("1faf509e-44c1-458e-950a-38a96705a62b") DWORD TsViewCookie;
  153. #define TS_VCOOKIE_NUL ( 0xffffffff )
  154. typedef /* [public][public][public][uuid] */ DECLSPEC_UUID("7899d7c4-5f07-493c-a89a-fac8e777f476")
  155. enum __MIDL___MIDL_itf_textstor_0000_0002
  156. { TS_LC_CREATE = 0,
  157. TS_LC_CHANGE = 1,
  158. TS_LC_DESTROY = 2
  159. } TsLayoutCode;
  160. typedef /* [public][public][public][uuid] */ DECLSPEC_UUID("033b0df0-f193-4170-b47b-141afc247878")
  161. enum __MIDL___MIDL_itf_textstor_0000_0003
  162. { TS_RT_PLAIN = 0,
  163. TS_RT_HIDDEN = TS_RT_PLAIN + 1,
  164. TS_RT_OPAQUE = TS_RT_HIDDEN + 1
  165. } TsRunType;
  166. typedef /* [uuid] */ DECLSPEC_UUID("a6231949-37c5-4b74-a24e-2a26c327201d") struct TS_RUNINFO
  167. {
  168. ULONG uCount;
  169. TsRunType type;
  170. } TS_RUNINFO;
  171. extern RPC_IF_HANDLE __MIDL_itf_textstor_0000_v0_0_c_ifspec;
  172. extern RPC_IF_HANDLE __MIDL_itf_textstor_0000_v0_0_s_ifspec;
  173. #ifndef __ITextStoreACP_INTERFACE_DEFINED__
  174. #define __ITextStoreACP_INTERFACE_DEFINED__
  175. /* interface ITextStoreACP */
  176. /* [unique][uuid][object] */
  177. EXTERN_C const IID IID_ITextStoreACP;
  178. #if defined(__cplusplus) && !defined(CINTERFACE)
  179. MIDL_INTERFACE("28888fe3-c2a0-483a-a3ea-8cb1ce51ff3d")
  180. ITextStoreACP : public IUnknown
  181. {
  182. public:
  183. virtual HRESULT STDMETHODCALLTYPE AdviseSink(
  184. /* [in] */ REFIID riid,
  185. /* [iid_is][in] */ IUnknown *punk,
  186. /* [in] */ DWORD dwMask) = 0;
  187. virtual HRESULT STDMETHODCALLTYPE UnadviseSink(
  188. /* [in] */ IUnknown *punk) = 0;
  189. virtual HRESULT STDMETHODCALLTYPE RequestLock(
  190. /* [in] */ DWORD dwLockFlags,
  191. /* [out] */ HRESULT *phrSession) = 0;
  192. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  193. /* [out] */ TS_STATUS *pdcs) = 0;
  194. virtual HRESULT STDMETHODCALLTYPE QueryInsert(
  195. /* [in] */ LONG acpTestStart,
  196. /* [in] */ LONG acpTestEnd,
  197. /* [in] */ ULONG cch,
  198. /* [out] */ LONG *pacpResultStart,
  199. /* [out] */ LONG *pacpResultEnd) = 0;
  200. virtual HRESULT STDMETHODCALLTYPE GetSelection(
  201. /* [in] */ ULONG ulIndex,
  202. /* [in] */ ULONG ulCount,
  203. /* [length_is][size_is][out] */ TS_SELECTION_ACP *pSelection,
  204. /* [out] */ ULONG *pcFetched) = 0;
  205. virtual HRESULT STDMETHODCALLTYPE SetSelection(
  206. /* [in] */ ULONG ulCount,
  207. /* [size_is][in] */ const TS_SELECTION_ACP *pSelection) = 0;
  208. virtual HRESULT STDMETHODCALLTYPE GetText(
  209. /* [in] */ LONG acpStart,
  210. /* [in] */ LONG acpEnd,
  211. /* [length_is][size_is][out] */ WCHAR *pchPlain,
  212. /* [in] */ ULONG cchPlainReq,
  213. /* [out] */ ULONG *pcchPlainRet,
  214. /* [length_is][size_is][out] */ TS_RUNINFO *prgRunInfo,
  215. /* [in] */ ULONG cRunInfoReq,
  216. /* [out] */ ULONG *pcRunInfoRet,
  217. /* [out] */ LONG *pacpNext) = 0;
  218. virtual HRESULT STDMETHODCALLTYPE SetText(
  219. /* [in] */ DWORD dwFlags,
  220. /* [in] */ LONG acpStart,
  221. /* [in] */ LONG acpEnd,
  222. /* [size_is][in] */ const WCHAR *pchText,
  223. /* [in] */ ULONG cch,
  224. /* [out] */ TS_TEXTCHANGE *pChange) = 0;
  225. virtual HRESULT STDMETHODCALLTYPE GetFormattedText(
  226. /* [in] */ LONG acpStart,
  227. /* [in] */ LONG acpEnd,
  228. /* [out] */ IDataObject **ppDataObject) = 0;
  229. virtual HRESULT STDMETHODCALLTYPE GetEmbedded(
  230. /* [in] */ LONG acpPos,
  231. /* [in] */ REFGUID rguidService,
  232. /* [in] */ REFIID riid,
  233. /* [iid_is][out] */ IUnknown **ppunk) = 0;
  234. virtual HRESULT STDMETHODCALLTYPE QueryInsertEmbedded(
  235. /* [in] */ const GUID *pguidService,
  236. /* [in] */ const FORMATETC *pFormatEtc,
  237. /* [out] */ BOOL *pfInsertable) = 0;
  238. virtual HRESULT STDMETHODCALLTYPE InsertEmbedded(
  239. /* [in] */ DWORD dwFlags,
  240. /* [in] */ LONG acpStart,
  241. /* [in] */ LONG acpEnd,
  242. /* [in] */ IDataObject *pDataObject,
  243. /* [out] */ TS_TEXTCHANGE *pChange) = 0;
  244. virtual HRESULT STDMETHODCALLTYPE InsertTextAtSelection(
  245. /* [in] */ DWORD dwFlags,
  246. /* [size_is][in] */ const WCHAR *pchText,
  247. /* [in] */ ULONG cch,
  248. /* [out] */ LONG *pacpStart,
  249. /* [out] */ LONG *pacpEnd,
  250. /* [out] */ TS_TEXTCHANGE *pChange) = 0;
  251. virtual HRESULT STDMETHODCALLTYPE InsertEmbeddedAtSelection(
  252. /* [in] */ DWORD dwFlags,
  253. /* [in] */ IDataObject *pDataObject,
  254. /* [out] */ LONG *pacpStart,
  255. /* [out] */ LONG *pacpEnd,
  256. /* [out] */ TS_TEXTCHANGE *pChange) = 0;
  257. virtual HRESULT STDMETHODCALLTYPE RequestSupportedAttrs(
  258. /* [in] */ DWORD dwFlags,
  259. /* [in] */ ULONG cFilterAttrs,
  260. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs) = 0;
  261. virtual HRESULT STDMETHODCALLTYPE RequestAttrsAtPosition(
  262. /* [in] */ LONG acpPos,
  263. /* [in] */ ULONG cFilterAttrs,
  264. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  265. /* [in] */ DWORD dwFlags) = 0;
  266. virtual HRESULT STDMETHODCALLTYPE RequestAttrsTransitioningAtPosition(
  267. /* [in] */ LONG acpPos,
  268. /* [in] */ ULONG cFilterAttrs,
  269. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  270. /* [in] */ DWORD dwFlags) = 0;
  271. virtual HRESULT STDMETHODCALLTYPE FindNextAttrTransition(
  272. /* [in] */ LONG acpStart,
  273. /* [in] */ LONG acpHalt,
  274. /* [in] */ ULONG cFilterAttrs,
  275. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  276. /* [in] */ DWORD dwFlags,
  277. /* [out] */ LONG *pacpNext,
  278. /* [out] */ BOOL *pfFound,
  279. /* [out] */ LONG *plFoundOffset) = 0;
  280. virtual HRESULT STDMETHODCALLTYPE RetrieveRequestedAttrs(
  281. /* [in] */ ULONG ulCount,
  282. /* [length_is][size_is][out] */ TS_ATTRVAL *paAttrVals,
  283. /* [out] */ ULONG *pcFetched) = 0;
  284. virtual HRESULT STDMETHODCALLTYPE GetEndACP(
  285. /* [out] */ LONG *pacp) = 0;
  286. virtual HRESULT STDMETHODCALLTYPE GetActiveView(
  287. /* [out] */ TsViewCookie *pvcView) = 0;
  288. virtual HRESULT STDMETHODCALLTYPE GetACPFromPoint(
  289. /* [in] */ TsViewCookie vcView,
  290. /* [in] */ const POINT *ptScreen,
  291. /* [in] */ DWORD dwFlags,
  292. /* [out] */ LONG *pacp) = 0;
  293. virtual HRESULT STDMETHODCALLTYPE GetTextExt(
  294. /* [in] */ TsViewCookie vcView,
  295. /* [in] */ LONG acpStart,
  296. /* [in] */ LONG acpEnd,
  297. /* [out] */ RECT *prc,
  298. /* [out] */ BOOL *pfClipped) = 0;
  299. virtual HRESULT STDMETHODCALLTYPE GetScreenExt(
  300. /* [in] */ TsViewCookie vcView,
  301. /* [out] */ RECT *prc) = 0;
  302. virtual HRESULT STDMETHODCALLTYPE GetWnd(
  303. /* [in] */ TsViewCookie vcView,
  304. /* [out] */ HWND *phwnd) = 0;
  305. };
  306. #else /* C style interface */
  307. typedef struct ITextStoreACPVtbl
  308. {
  309. BEGIN_INTERFACE
  310. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  311. ITextStoreACP * This,
  312. /* [in] */ REFIID riid,
  313. /* [iid_is][out] */ void **ppvObject);
  314. ULONG ( STDMETHODCALLTYPE *AddRef )(
  315. ITextStoreACP * This);
  316. ULONG ( STDMETHODCALLTYPE *Release )(
  317. ITextStoreACP * This);
  318. HRESULT ( STDMETHODCALLTYPE *AdviseSink )(
  319. ITextStoreACP * This,
  320. /* [in] */ REFIID riid,
  321. /* [iid_is][in] */ IUnknown *punk,
  322. /* [in] */ DWORD dwMask);
  323. HRESULT ( STDMETHODCALLTYPE *UnadviseSink )(
  324. ITextStoreACP * This,
  325. /* [in] */ IUnknown *punk);
  326. HRESULT ( STDMETHODCALLTYPE *RequestLock )(
  327. ITextStoreACP * This,
  328. /* [in] */ DWORD dwLockFlags,
  329. /* [out] */ HRESULT *phrSession);
  330. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  331. ITextStoreACP * This,
  332. /* [out] */ TS_STATUS *pdcs);
  333. HRESULT ( STDMETHODCALLTYPE *QueryInsert )(
  334. ITextStoreACP * This,
  335. /* [in] */ LONG acpTestStart,
  336. /* [in] */ LONG acpTestEnd,
  337. /* [in] */ ULONG cch,
  338. /* [out] */ LONG *pacpResultStart,
  339. /* [out] */ LONG *pacpResultEnd);
  340. HRESULT ( STDMETHODCALLTYPE *GetSelection )(
  341. ITextStoreACP * This,
  342. /* [in] */ ULONG ulIndex,
  343. /* [in] */ ULONG ulCount,
  344. /* [length_is][size_is][out] */ TS_SELECTION_ACP *pSelection,
  345. /* [out] */ ULONG *pcFetched);
  346. HRESULT ( STDMETHODCALLTYPE *SetSelection )(
  347. ITextStoreACP * This,
  348. /* [in] */ ULONG ulCount,
  349. /* [size_is][in] */ const TS_SELECTION_ACP *pSelection);
  350. HRESULT ( STDMETHODCALLTYPE *GetText )(
  351. ITextStoreACP * This,
  352. /* [in] */ LONG acpStart,
  353. /* [in] */ LONG acpEnd,
  354. /* [length_is][size_is][out] */ WCHAR *pchPlain,
  355. /* [in] */ ULONG cchPlainReq,
  356. /* [out] */ ULONG *pcchPlainRet,
  357. /* [length_is][size_is][out] */ TS_RUNINFO *prgRunInfo,
  358. /* [in] */ ULONG cRunInfoReq,
  359. /* [out] */ ULONG *pcRunInfoRet,
  360. /* [out] */ LONG *pacpNext);
  361. HRESULT ( STDMETHODCALLTYPE *SetText )(
  362. ITextStoreACP * This,
  363. /* [in] */ DWORD dwFlags,
  364. /* [in] */ LONG acpStart,
  365. /* [in] */ LONG acpEnd,
  366. /* [size_is][in] */ const WCHAR *pchText,
  367. /* [in] */ ULONG cch,
  368. /* [out] */ TS_TEXTCHANGE *pChange);
  369. HRESULT ( STDMETHODCALLTYPE *GetFormattedText )(
  370. ITextStoreACP * This,
  371. /* [in] */ LONG acpStart,
  372. /* [in] */ LONG acpEnd,
  373. /* [out] */ IDataObject **ppDataObject);
  374. HRESULT ( STDMETHODCALLTYPE *GetEmbedded )(
  375. ITextStoreACP * This,
  376. /* [in] */ LONG acpPos,
  377. /* [in] */ REFGUID rguidService,
  378. /* [in] */ REFIID riid,
  379. /* [iid_is][out] */ IUnknown **ppunk);
  380. HRESULT ( STDMETHODCALLTYPE *QueryInsertEmbedded )(
  381. ITextStoreACP * This,
  382. /* [in] */ const GUID *pguidService,
  383. /* [in] */ const FORMATETC *pFormatEtc,
  384. /* [out] */ BOOL *pfInsertable);
  385. HRESULT ( STDMETHODCALLTYPE *InsertEmbedded )(
  386. ITextStoreACP * This,
  387. /* [in] */ DWORD dwFlags,
  388. /* [in] */ LONG acpStart,
  389. /* [in] */ LONG acpEnd,
  390. /* [in] */ IDataObject *pDataObject,
  391. /* [out] */ TS_TEXTCHANGE *pChange);
  392. HRESULT ( STDMETHODCALLTYPE *InsertTextAtSelection )(
  393. ITextStoreACP * This,
  394. /* [in] */ DWORD dwFlags,
  395. /* [size_is][in] */ const WCHAR *pchText,
  396. /* [in] */ ULONG cch,
  397. /* [out] */ LONG *pacpStart,
  398. /* [out] */ LONG *pacpEnd,
  399. /* [out] */ TS_TEXTCHANGE *pChange);
  400. HRESULT ( STDMETHODCALLTYPE *InsertEmbeddedAtSelection )(
  401. ITextStoreACP * This,
  402. /* [in] */ DWORD dwFlags,
  403. /* [in] */ IDataObject *pDataObject,
  404. /* [out] */ LONG *pacpStart,
  405. /* [out] */ LONG *pacpEnd,
  406. /* [out] */ TS_TEXTCHANGE *pChange);
  407. HRESULT ( STDMETHODCALLTYPE *RequestSupportedAttrs )(
  408. ITextStoreACP * This,
  409. /* [in] */ DWORD dwFlags,
  410. /* [in] */ ULONG cFilterAttrs,
  411. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs);
  412. HRESULT ( STDMETHODCALLTYPE *RequestAttrsAtPosition )(
  413. ITextStoreACP * This,
  414. /* [in] */ LONG acpPos,
  415. /* [in] */ ULONG cFilterAttrs,
  416. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  417. /* [in] */ DWORD dwFlags);
  418. HRESULT ( STDMETHODCALLTYPE *RequestAttrsTransitioningAtPosition )(
  419. ITextStoreACP * This,
  420. /* [in] */ LONG acpPos,
  421. /* [in] */ ULONG cFilterAttrs,
  422. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  423. /* [in] */ DWORD dwFlags);
  424. HRESULT ( STDMETHODCALLTYPE *FindNextAttrTransition )(
  425. ITextStoreACP * This,
  426. /* [in] */ LONG acpStart,
  427. /* [in] */ LONG acpHalt,
  428. /* [in] */ ULONG cFilterAttrs,
  429. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  430. /* [in] */ DWORD dwFlags,
  431. /* [out] */ LONG *pacpNext,
  432. /* [out] */ BOOL *pfFound,
  433. /* [out] */ LONG *plFoundOffset);
  434. HRESULT ( STDMETHODCALLTYPE *RetrieveRequestedAttrs )(
  435. ITextStoreACP * This,
  436. /* [in] */ ULONG ulCount,
  437. /* [length_is][size_is][out] */ TS_ATTRVAL *paAttrVals,
  438. /* [out] */ ULONG *pcFetched);
  439. HRESULT ( STDMETHODCALLTYPE *GetEndACP )(
  440. ITextStoreACP * This,
  441. /* [out] */ LONG *pacp);
  442. HRESULT ( STDMETHODCALLTYPE *GetActiveView )(
  443. ITextStoreACP * This,
  444. /* [out] */ TsViewCookie *pvcView);
  445. HRESULT ( STDMETHODCALLTYPE *GetACPFromPoint )(
  446. ITextStoreACP * This,
  447. /* [in] */ TsViewCookie vcView,
  448. /* [in] */ const POINT *ptScreen,
  449. /* [in] */ DWORD dwFlags,
  450. /* [out] */ LONG *pacp);
  451. HRESULT ( STDMETHODCALLTYPE *GetTextExt )(
  452. ITextStoreACP * This,
  453. /* [in] */ TsViewCookie vcView,
  454. /* [in] */ LONG acpStart,
  455. /* [in] */ LONG acpEnd,
  456. /* [out] */ RECT *prc,
  457. /* [out] */ BOOL *pfClipped);
  458. HRESULT ( STDMETHODCALLTYPE *GetScreenExt )(
  459. ITextStoreACP * This,
  460. /* [in] */ TsViewCookie vcView,
  461. /* [out] */ RECT *prc);
  462. HRESULT ( STDMETHODCALLTYPE *GetWnd )(
  463. ITextStoreACP * This,
  464. /* [in] */ TsViewCookie vcView,
  465. /* [out] */ HWND *phwnd);
  466. END_INTERFACE
  467. } ITextStoreACPVtbl;
  468. interface ITextStoreACP
  469. {
  470. CONST_VTBL struct ITextStoreACPVtbl *lpVtbl;
  471. };
  472. #ifdef COBJMACROS
  473. #define ITextStoreACP_QueryInterface(This,riid,ppvObject) \
  474. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  475. #define ITextStoreACP_AddRef(This) \
  476. (This)->lpVtbl -> AddRef(This)
  477. #define ITextStoreACP_Release(This) \
  478. (This)->lpVtbl -> Release(This)
  479. #define ITextStoreACP_AdviseSink(This,riid,punk,dwMask) \
  480. (This)->lpVtbl -> AdviseSink(This,riid,punk,dwMask)
  481. #define ITextStoreACP_UnadviseSink(This,punk) \
  482. (This)->lpVtbl -> UnadviseSink(This,punk)
  483. #define ITextStoreACP_RequestLock(This,dwLockFlags,phrSession) \
  484. (This)->lpVtbl -> RequestLock(This,dwLockFlags,phrSession)
  485. #define ITextStoreACP_GetStatus(This,pdcs) \
  486. (This)->lpVtbl -> GetStatus(This,pdcs)
  487. #define ITextStoreACP_QueryInsert(This,acpTestStart,acpTestEnd,cch,pacpResultStart,pacpResultEnd) \
  488. (This)->lpVtbl -> QueryInsert(This,acpTestStart,acpTestEnd,cch,pacpResultStart,pacpResultEnd)
  489. #define ITextStoreACP_GetSelection(This,ulIndex,ulCount,pSelection,pcFetched) \
  490. (This)->lpVtbl -> GetSelection(This,ulIndex,ulCount,pSelection,pcFetched)
  491. #define ITextStoreACP_SetSelection(This,ulCount,pSelection) \
  492. (This)->lpVtbl -> SetSelection(This,ulCount,pSelection)
  493. #define ITextStoreACP_GetText(This,acpStart,acpEnd,pchPlain,cchPlainReq,pcchPlainRet,prgRunInfo,cRunInfoReq,pcRunInfoRet,pacpNext) \
  494. (This)->lpVtbl -> GetText(This,acpStart,acpEnd,pchPlain,cchPlainReq,pcchPlainRet,prgRunInfo,cRunInfoReq,pcRunInfoRet,pacpNext)
  495. #define ITextStoreACP_SetText(This,dwFlags,acpStart,acpEnd,pchText,cch,pChange) \
  496. (This)->lpVtbl -> SetText(This,dwFlags,acpStart,acpEnd,pchText,cch,pChange)
  497. #define ITextStoreACP_GetFormattedText(This,acpStart,acpEnd,ppDataObject) \
  498. (This)->lpVtbl -> GetFormattedText(This,acpStart,acpEnd,ppDataObject)
  499. #define ITextStoreACP_GetEmbedded(This,acpPos,rguidService,riid,ppunk) \
  500. (This)->lpVtbl -> GetEmbedded(This,acpPos,rguidService,riid,ppunk)
  501. #define ITextStoreACP_QueryInsertEmbedded(This,pguidService,pFormatEtc,pfInsertable) \
  502. (This)->lpVtbl -> QueryInsertEmbedded(This,pguidService,pFormatEtc,pfInsertable)
  503. #define ITextStoreACP_InsertEmbedded(This,dwFlags,acpStart,acpEnd,pDataObject,pChange) \
  504. (This)->lpVtbl -> InsertEmbedded(This,dwFlags,acpStart,acpEnd,pDataObject,pChange)
  505. #define ITextStoreACP_InsertTextAtSelection(This,dwFlags,pchText,cch,pacpStart,pacpEnd,pChange) \
  506. (This)->lpVtbl -> InsertTextAtSelection(This,dwFlags,pchText,cch,pacpStart,pacpEnd,pChange)
  507. #define ITextStoreACP_InsertEmbeddedAtSelection(This,dwFlags,pDataObject,pacpStart,pacpEnd,pChange) \
  508. (This)->lpVtbl -> InsertEmbeddedAtSelection(This,dwFlags,pDataObject,pacpStart,pacpEnd,pChange)
  509. #define ITextStoreACP_RequestSupportedAttrs(This,dwFlags,cFilterAttrs,paFilterAttrs) \
  510. (This)->lpVtbl -> RequestSupportedAttrs(This,dwFlags,cFilterAttrs,paFilterAttrs)
  511. #define ITextStoreACP_RequestAttrsAtPosition(This,acpPos,cFilterAttrs,paFilterAttrs,dwFlags) \
  512. (This)->lpVtbl -> RequestAttrsAtPosition(This,acpPos,cFilterAttrs,paFilterAttrs,dwFlags)
  513. #define ITextStoreACP_RequestAttrsTransitioningAtPosition(This,acpPos,cFilterAttrs,paFilterAttrs,dwFlags) \
  514. (This)->lpVtbl -> RequestAttrsTransitioningAtPosition(This,acpPos,cFilterAttrs,paFilterAttrs,dwFlags)
  515. #define ITextStoreACP_FindNextAttrTransition(This,acpStart,acpHalt,cFilterAttrs,paFilterAttrs,dwFlags,pacpNext,pfFound,plFoundOffset) \
  516. (This)->lpVtbl -> FindNextAttrTransition(This,acpStart,acpHalt,cFilterAttrs,paFilterAttrs,dwFlags,pacpNext,pfFound,plFoundOffset)
  517. #define ITextStoreACP_RetrieveRequestedAttrs(This,ulCount,paAttrVals,pcFetched) \
  518. (This)->lpVtbl -> RetrieveRequestedAttrs(This,ulCount,paAttrVals,pcFetched)
  519. #define ITextStoreACP_GetEndACP(This,pacp) \
  520. (This)->lpVtbl -> GetEndACP(This,pacp)
  521. #define ITextStoreACP_GetActiveView(This,pvcView) \
  522. (This)->lpVtbl -> GetActiveView(This,pvcView)
  523. #define ITextStoreACP_GetACPFromPoint(This,vcView,ptScreen,dwFlags,pacp) \
  524. (This)->lpVtbl -> GetACPFromPoint(This,vcView,ptScreen,dwFlags,pacp)
  525. #define ITextStoreACP_GetTextExt(This,vcView,acpStart,acpEnd,prc,pfClipped) \
  526. (This)->lpVtbl -> GetTextExt(This,vcView,acpStart,acpEnd,prc,pfClipped)
  527. #define ITextStoreACP_GetScreenExt(This,vcView,prc) \
  528. (This)->lpVtbl -> GetScreenExt(This,vcView,prc)
  529. #define ITextStoreACP_GetWnd(This,vcView,phwnd) \
  530. (This)->lpVtbl -> GetWnd(This,vcView,phwnd)
  531. #endif /* COBJMACROS */
  532. #endif /* C style interface */
  533. HRESULT STDMETHODCALLTYPE ITextStoreACP_AdviseSink_Proxy(
  534. ITextStoreACP * This,
  535. /* [in] */ REFIID riid,
  536. /* [iid_is][in] */ IUnknown *punk,
  537. /* [in] */ DWORD dwMask);
  538. void __RPC_STUB ITextStoreACP_AdviseSink_Stub(
  539. IRpcStubBuffer *This,
  540. IRpcChannelBuffer *_pRpcChannelBuffer,
  541. PRPC_MESSAGE _pRpcMessage,
  542. DWORD *_pdwStubPhase);
  543. HRESULT STDMETHODCALLTYPE ITextStoreACP_UnadviseSink_Proxy(
  544. ITextStoreACP * This,
  545. /* [in] */ IUnknown *punk);
  546. void __RPC_STUB ITextStoreACP_UnadviseSink_Stub(
  547. IRpcStubBuffer *This,
  548. IRpcChannelBuffer *_pRpcChannelBuffer,
  549. PRPC_MESSAGE _pRpcMessage,
  550. DWORD *_pdwStubPhase);
  551. HRESULT STDMETHODCALLTYPE ITextStoreACP_RequestLock_Proxy(
  552. ITextStoreACP * This,
  553. /* [in] */ DWORD dwLockFlags,
  554. /* [out] */ HRESULT *phrSession);
  555. void __RPC_STUB ITextStoreACP_RequestLock_Stub(
  556. IRpcStubBuffer *This,
  557. IRpcChannelBuffer *_pRpcChannelBuffer,
  558. PRPC_MESSAGE _pRpcMessage,
  559. DWORD *_pdwStubPhase);
  560. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetStatus_Proxy(
  561. ITextStoreACP * This,
  562. /* [out] */ TS_STATUS *pdcs);
  563. void __RPC_STUB ITextStoreACP_GetStatus_Stub(
  564. IRpcStubBuffer *This,
  565. IRpcChannelBuffer *_pRpcChannelBuffer,
  566. PRPC_MESSAGE _pRpcMessage,
  567. DWORD *_pdwStubPhase);
  568. HRESULT STDMETHODCALLTYPE ITextStoreACP_QueryInsert_Proxy(
  569. ITextStoreACP * This,
  570. /* [in] */ LONG acpTestStart,
  571. /* [in] */ LONG acpTestEnd,
  572. /* [in] */ ULONG cch,
  573. /* [out] */ LONG *pacpResultStart,
  574. /* [out] */ LONG *pacpResultEnd);
  575. void __RPC_STUB ITextStoreACP_QueryInsert_Stub(
  576. IRpcStubBuffer *This,
  577. IRpcChannelBuffer *_pRpcChannelBuffer,
  578. PRPC_MESSAGE _pRpcMessage,
  579. DWORD *_pdwStubPhase);
  580. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetSelection_Proxy(
  581. ITextStoreACP * This,
  582. /* [in] */ ULONG ulIndex,
  583. /* [in] */ ULONG ulCount,
  584. /* [length_is][size_is][out] */ TS_SELECTION_ACP *pSelection,
  585. /* [out] */ ULONG *pcFetched);
  586. void __RPC_STUB ITextStoreACP_GetSelection_Stub(
  587. IRpcStubBuffer *This,
  588. IRpcChannelBuffer *_pRpcChannelBuffer,
  589. PRPC_MESSAGE _pRpcMessage,
  590. DWORD *_pdwStubPhase);
  591. HRESULT STDMETHODCALLTYPE ITextStoreACP_SetSelection_Proxy(
  592. ITextStoreACP * This,
  593. /* [in] */ ULONG ulCount,
  594. /* [size_is][in] */ const TS_SELECTION_ACP *pSelection);
  595. void __RPC_STUB ITextStoreACP_SetSelection_Stub(
  596. IRpcStubBuffer *This,
  597. IRpcChannelBuffer *_pRpcChannelBuffer,
  598. PRPC_MESSAGE _pRpcMessage,
  599. DWORD *_pdwStubPhase);
  600. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetText_Proxy(
  601. ITextStoreACP * This,
  602. /* [in] */ LONG acpStart,
  603. /* [in] */ LONG acpEnd,
  604. /* [length_is][size_is][out] */ WCHAR *pchPlain,
  605. /* [in] */ ULONG cchPlainReq,
  606. /* [out] */ ULONG *pcchPlainRet,
  607. /* [length_is][size_is][out] */ TS_RUNINFO *prgRunInfo,
  608. /* [in] */ ULONG cRunInfoReq,
  609. /* [out] */ ULONG *pcRunInfoRet,
  610. /* [out] */ LONG *pacpNext);
  611. void __RPC_STUB ITextStoreACP_GetText_Stub(
  612. IRpcStubBuffer *This,
  613. IRpcChannelBuffer *_pRpcChannelBuffer,
  614. PRPC_MESSAGE _pRpcMessage,
  615. DWORD *_pdwStubPhase);
  616. HRESULT STDMETHODCALLTYPE ITextStoreACP_SetText_Proxy(
  617. ITextStoreACP * This,
  618. /* [in] */ DWORD dwFlags,
  619. /* [in] */ LONG acpStart,
  620. /* [in] */ LONG acpEnd,
  621. /* [size_is][in] */ const WCHAR *pchText,
  622. /* [in] */ ULONG cch,
  623. /* [out] */ TS_TEXTCHANGE *pChange);
  624. void __RPC_STUB ITextStoreACP_SetText_Stub(
  625. IRpcStubBuffer *This,
  626. IRpcChannelBuffer *_pRpcChannelBuffer,
  627. PRPC_MESSAGE _pRpcMessage,
  628. DWORD *_pdwStubPhase);
  629. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetFormattedText_Proxy(
  630. ITextStoreACP * This,
  631. /* [in] */ LONG acpStart,
  632. /* [in] */ LONG acpEnd,
  633. /* [out] */ IDataObject **ppDataObject);
  634. void __RPC_STUB ITextStoreACP_GetFormattedText_Stub(
  635. IRpcStubBuffer *This,
  636. IRpcChannelBuffer *_pRpcChannelBuffer,
  637. PRPC_MESSAGE _pRpcMessage,
  638. DWORD *_pdwStubPhase);
  639. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetEmbedded_Proxy(
  640. ITextStoreACP * This,
  641. /* [in] */ LONG acpPos,
  642. /* [in] */ REFGUID rguidService,
  643. /* [in] */ REFIID riid,
  644. /* [iid_is][out] */ IUnknown **ppunk);
  645. void __RPC_STUB ITextStoreACP_GetEmbedded_Stub(
  646. IRpcStubBuffer *This,
  647. IRpcChannelBuffer *_pRpcChannelBuffer,
  648. PRPC_MESSAGE _pRpcMessage,
  649. DWORD *_pdwStubPhase);
  650. HRESULT STDMETHODCALLTYPE ITextStoreACP_QueryInsertEmbedded_Proxy(
  651. ITextStoreACP * This,
  652. /* [in] */ const GUID *pguidService,
  653. /* [in] */ const FORMATETC *pFormatEtc,
  654. /* [out] */ BOOL *pfInsertable);
  655. void __RPC_STUB ITextStoreACP_QueryInsertEmbedded_Stub(
  656. IRpcStubBuffer *This,
  657. IRpcChannelBuffer *_pRpcChannelBuffer,
  658. PRPC_MESSAGE _pRpcMessage,
  659. DWORD *_pdwStubPhase);
  660. HRESULT STDMETHODCALLTYPE ITextStoreACP_InsertEmbedded_Proxy(
  661. ITextStoreACP * This,
  662. /* [in] */ DWORD dwFlags,
  663. /* [in] */ LONG acpStart,
  664. /* [in] */ LONG acpEnd,
  665. /* [in] */ IDataObject *pDataObject,
  666. /* [out] */ TS_TEXTCHANGE *pChange);
  667. void __RPC_STUB ITextStoreACP_InsertEmbedded_Stub(
  668. IRpcStubBuffer *This,
  669. IRpcChannelBuffer *_pRpcChannelBuffer,
  670. PRPC_MESSAGE _pRpcMessage,
  671. DWORD *_pdwStubPhase);
  672. HRESULT STDMETHODCALLTYPE ITextStoreACP_InsertTextAtSelection_Proxy(
  673. ITextStoreACP * This,
  674. /* [in] */ DWORD dwFlags,
  675. /* [size_is][in] */ const WCHAR *pchText,
  676. /* [in] */ ULONG cch,
  677. /* [out] */ LONG *pacpStart,
  678. /* [out] */ LONG *pacpEnd,
  679. /* [out] */ TS_TEXTCHANGE *pChange);
  680. void __RPC_STUB ITextStoreACP_InsertTextAtSelection_Stub(
  681. IRpcStubBuffer *This,
  682. IRpcChannelBuffer *_pRpcChannelBuffer,
  683. PRPC_MESSAGE _pRpcMessage,
  684. DWORD *_pdwStubPhase);
  685. HRESULT STDMETHODCALLTYPE ITextStoreACP_InsertEmbeddedAtSelection_Proxy(
  686. ITextStoreACP * This,
  687. /* [in] */ DWORD dwFlags,
  688. /* [in] */ IDataObject *pDataObject,
  689. /* [out] */ LONG *pacpStart,
  690. /* [out] */ LONG *pacpEnd,
  691. /* [out] */ TS_TEXTCHANGE *pChange);
  692. void __RPC_STUB ITextStoreACP_InsertEmbeddedAtSelection_Stub(
  693. IRpcStubBuffer *This,
  694. IRpcChannelBuffer *_pRpcChannelBuffer,
  695. PRPC_MESSAGE _pRpcMessage,
  696. DWORD *_pdwStubPhase);
  697. HRESULT STDMETHODCALLTYPE ITextStoreACP_RequestSupportedAttrs_Proxy(
  698. ITextStoreACP * This,
  699. /* [in] */ DWORD dwFlags,
  700. /* [in] */ ULONG cFilterAttrs,
  701. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs);
  702. void __RPC_STUB ITextStoreACP_RequestSupportedAttrs_Stub(
  703. IRpcStubBuffer *This,
  704. IRpcChannelBuffer *_pRpcChannelBuffer,
  705. PRPC_MESSAGE _pRpcMessage,
  706. DWORD *_pdwStubPhase);
  707. HRESULT STDMETHODCALLTYPE ITextStoreACP_RequestAttrsAtPosition_Proxy(
  708. ITextStoreACP * This,
  709. /* [in] */ LONG acpPos,
  710. /* [in] */ ULONG cFilterAttrs,
  711. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  712. /* [in] */ DWORD dwFlags);
  713. void __RPC_STUB ITextStoreACP_RequestAttrsAtPosition_Stub(
  714. IRpcStubBuffer *This,
  715. IRpcChannelBuffer *_pRpcChannelBuffer,
  716. PRPC_MESSAGE _pRpcMessage,
  717. DWORD *_pdwStubPhase);
  718. HRESULT STDMETHODCALLTYPE ITextStoreACP_RequestAttrsTransitioningAtPosition_Proxy(
  719. ITextStoreACP * This,
  720. /* [in] */ LONG acpPos,
  721. /* [in] */ ULONG cFilterAttrs,
  722. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  723. /* [in] */ DWORD dwFlags);
  724. void __RPC_STUB ITextStoreACP_RequestAttrsTransitioningAtPosition_Stub(
  725. IRpcStubBuffer *This,
  726. IRpcChannelBuffer *_pRpcChannelBuffer,
  727. PRPC_MESSAGE _pRpcMessage,
  728. DWORD *_pdwStubPhase);
  729. HRESULT STDMETHODCALLTYPE ITextStoreACP_FindNextAttrTransition_Proxy(
  730. ITextStoreACP * This,
  731. /* [in] */ LONG acpStart,
  732. /* [in] */ LONG acpHalt,
  733. /* [in] */ ULONG cFilterAttrs,
  734. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  735. /* [in] */ DWORD dwFlags,
  736. /* [out] */ LONG *pacpNext,
  737. /* [out] */ BOOL *pfFound,
  738. /* [out] */ LONG *plFoundOffset);
  739. void __RPC_STUB ITextStoreACP_FindNextAttrTransition_Stub(
  740. IRpcStubBuffer *This,
  741. IRpcChannelBuffer *_pRpcChannelBuffer,
  742. PRPC_MESSAGE _pRpcMessage,
  743. DWORD *_pdwStubPhase);
  744. HRESULT STDMETHODCALLTYPE ITextStoreACP_RetrieveRequestedAttrs_Proxy(
  745. ITextStoreACP * This,
  746. /* [in] */ ULONG ulCount,
  747. /* [length_is][size_is][out] */ TS_ATTRVAL *paAttrVals,
  748. /* [out] */ ULONG *pcFetched);
  749. void __RPC_STUB ITextStoreACP_RetrieveRequestedAttrs_Stub(
  750. IRpcStubBuffer *This,
  751. IRpcChannelBuffer *_pRpcChannelBuffer,
  752. PRPC_MESSAGE _pRpcMessage,
  753. DWORD *_pdwStubPhase);
  754. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetEndACP_Proxy(
  755. ITextStoreACP * This,
  756. /* [out] */ LONG *pacp);
  757. void __RPC_STUB ITextStoreACP_GetEndACP_Stub(
  758. IRpcStubBuffer *This,
  759. IRpcChannelBuffer *_pRpcChannelBuffer,
  760. PRPC_MESSAGE _pRpcMessage,
  761. DWORD *_pdwStubPhase);
  762. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetActiveView_Proxy(
  763. ITextStoreACP * This,
  764. /* [out] */ TsViewCookie *pvcView);
  765. void __RPC_STUB ITextStoreACP_GetActiveView_Stub(
  766. IRpcStubBuffer *This,
  767. IRpcChannelBuffer *_pRpcChannelBuffer,
  768. PRPC_MESSAGE _pRpcMessage,
  769. DWORD *_pdwStubPhase);
  770. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetACPFromPoint_Proxy(
  771. ITextStoreACP * This,
  772. /* [in] */ TsViewCookie vcView,
  773. /* [in] */ const POINT *ptScreen,
  774. /* [in] */ DWORD dwFlags,
  775. /* [out] */ LONG *pacp);
  776. void __RPC_STUB ITextStoreACP_GetACPFromPoint_Stub(
  777. IRpcStubBuffer *This,
  778. IRpcChannelBuffer *_pRpcChannelBuffer,
  779. PRPC_MESSAGE _pRpcMessage,
  780. DWORD *_pdwStubPhase);
  781. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetTextExt_Proxy(
  782. ITextStoreACP * This,
  783. /* [in] */ TsViewCookie vcView,
  784. /* [in] */ LONG acpStart,
  785. /* [in] */ LONG acpEnd,
  786. /* [out] */ RECT *prc,
  787. /* [out] */ BOOL *pfClipped);
  788. void __RPC_STUB ITextStoreACP_GetTextExt_Stub(
  789. IRpcStubBuffer *This,
  790. IRpcChannelBuffer *_pRpcChannelBuffer,
  791. PRPC_MESSAGE _pRpcMessage,
  792. DWORD *_pdwStubPhase);
  793. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetScreenExt_Proxy(
  794. ITextStoreACP * This,
  795. /* [in] */ TsViewCookie vcView,
  796. /* [out] */ RECT *prc);
  797. void __RPC_STUB ITextStoreACP_GetScreenExt_Stub(
  798. IRpcStubBuffer *This,
  799. IRpcChannelBuffer *_pRpcChannelBuffer,
  800. PRPC_MESSAGE _pRpcMessage,
  801. DWORD *_pdwStubPhase);
  802. HRESULT STDMETHODCALLTYPE ITextStoreACP_GetWnd_Proxy(
  803. ITextStoreACP * This,
  804. /* [in] */ TsViewCookie vcView,
  805. /* [out] */ HWND *phwnd);
  806. void __RPC_STUB ITextStoreACP_GetWnd_Stub(
  807. IRpcStubBuffer *This,
  808. IRpcChannelBuffer *_pRpcChannelBuffer,
  809. PRPC_MESSAGE _pRpcMessage,
  810. DWORD *_pdwStubPhase);
  811. #endif /* __ITextStoreACP_INTERFACE_DEFINED__ */
  812. #ifndef __ITextStoreACPSink_INTERFACE_DEFINED__
  813. #define __ITextStoreACPSink_INTERFACE_DEFINED__
  814. /* interface ITextStoreACPSink */
  815. /* [unique][uuid][object] */
  816. EXTERN_C const IID IID_ITextStoreACPSink;
  817. #if defined(__cplusplus) && !defined(CINTERFACE)
  818. MIDL_INTERFACE("22d44c94-a419-4542-a272-ae26093ececf")
  819. ITextStoreACPSink : public IUnknown
  820. {
  821. public:
  822. virtual HRESULT STDMETHODCALLTYPE OnTextChange(
  823. /* [in] */ DWORD dwFlags,
  824. /* [in] */ const TS_TEXTCHANGE *pChange) = 0;
  825. virtual HRESULT STDMETHODCALLTYPE OnSelectionChange( void) = 0;
  826. virtual HRESULT STDMETHODCALLTYPE OnLayoutChange(
  827. /* [in] */ TsLayoutCode lcode,
  828. /* [in] */ TsViewCookie vcView) = 0;
  829. virtual HRESULT STDMETHODCALLTYPE OnStatusChange(
  830. /* [in] */ DWORD dwFlags) = 0;
  831. virtual HRESULT STDMETHODCALLTYPE OnAttrsChange(
  832. /* [in] */ LONG acpStart,
  833. /* [in] */ LONG acpEnd,
  834. /* [in] */ ULONG cAttrs,
  835. /* [size_is][in] */ const TS_ATTRID *paAttrs) = 0;
  836. virtual HRESULT STDMETHODCALLTYPE OnLockGranted(
  837. /* [in] */ DWORD dwLockFlags) = 0;
  838. virtual HRESULT STDMETHODCALLTYPE OnStartEditTransaction( void) = 0;
  839. virtual HRESULT STDMETHODCALLTYPE OnEndEditTransaction( void) = 0;
  840. };
  841. #else /* C style interface */
  842. typedef struct ITextStoreACPSinkVtbl
  843. {
  844. BEGIN_INTERFACE
  845. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  846. ITextStoreACPSink * This,
  847. /* [in] */ REFIID riid,
  848. /* [iid_is][out] */ void **ppvObject);
  849. ULONG ( STDMETHODCALLTYPE *AddRef )(
  850. ITextStoreACPSink * This);
  851. ULONG ( STDMETHODCALLTYPE *Release )(
  852. ITextStoreACPSink * This);
  853. HRESULT ( STDMETHODCALLTYPE *OnTextChange )(
  854. ITextStoreACPSink * This,
  855. /* [in] */ DWORD dwFlags,
  856. /* [in] */ const TS_TEXTCHANGE *pChange);
  857. HRESULT ( STDMETHODCALLTYPE *OnSelectionChange )(
  858. ITextStoreACPSink * This);
  859. HRESULT ( STDMETHODCALLTYPE *OnLayoutChange )(
  860. ITextStoreACPSink * This,
  861. /* [in] */ TsLayoutCode lcode,
  862. /* [in] */ TsViewCookie vcView);
  863. HRESULT ( STDMETHODCALLTYPE *OnStatusChange )(
  864. ITextStoreACPSink * This,
  865. /* [in] */ DWORD dwFlags);
  866. HRESULT ( STDMETHODCALLTYPE *OnAttrsChange )(
  867. ITextStoreACPSink * This,
  868. /* [in] */ LONG acpStart,
  869. /* [in] */ LONG acpEnd,
  870. /* [in] */ ULONG cAttrs,
  871. /* [size_is][in] */ const TS_ATTRID *paAttrs);
  872. HRESULT ( STDMETHODCALLTYPE *OnLockGranted )(
  873. ITextStoreACPSink * This,
  874. /* [in] */ DWORD dwLockFlags);
  875. HRESULT ( STDMETHODCALLTYPE *OnStartEditTransaction )(
  876. ITextStoreACPSink * This);
  877. HRESULT ( STDMETHODCALLTYPE *OnEndEditTransaction )(
  878. ITextStoreACPSink * This);
  879. END_INTERFACE
  880. } ITextStoreACPSinkVtbl;
  881. interface ITextStoreACPSink
  882. {
  883. CONST_VTBL struct ITextStoreACPSinkVtbl *lpVtbl;
  884. };
  885. #ifdef COBJMACROS
  886. #define ITextStoreACPSink_QueryInterface(This,riid,ppvObject) \
  887. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  888. #define ITextStoreACPSink_AddRef(This) \
  889. (This)->lpVtbl -> AddRef(This)
  890. #define ITextStoreACPSink_Release(This) \
  891. (This)->lpVtbl -> Release(This)
  892. #define ITextStoreACPSink_OnTextChange(This,dwFlags,pChange) \
  893. (This)->lpVtbl -> OnTextChange(This,dwFlags,pChange)
  894. #define ITextStoreACPSink_OnSelectionChange(This) \
  895. (This)->lpVtbl -> OnSelectionChange(This)
  896. #define ITextStoreACPSink_OnLayoutChange(This,lcode,vcView) \
  897. (This)->lpVtbl -> OnLayoutChange(This,lcode,vcView)
  898. #define ITextStoreACPSink_OnStatusChange(This,dwFlags) \
  899. (This)->lpVtbl -> OnStatusChange(This,dwFlags)
  900. #define ITextStoreACPSink_OnAttrsChange(This,acpStart,acpEnd,cAttrs,paAttrs) \
  901. (This)->lpVtbl -> OnAttrsChange(This,acpStart,acpEnd,cAttrs,paAttrs)
  902. #define ITextStoreACPSink_OnLockGranted(This,dwLockFlags) \
  903. (This)->lpVtbl -> OnLockGranted(This,dwLockFlags)
  904. #define ITextStoreACPSink_OnStartEditTransaction(This) \
  905. (This)->lpVtbl -> OnStartEditTransaction(This)
  906. #define ITextStoreACPSink_OnEndEditTransaction(This) \
  907. (This)->lpVtbl -> OnEndEditTransaction(This)
  908. #endif /* COBJMACROS */
  909. #endif /* C style interface */
  910. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnTextChange_Proxy(
  911. ITextStoreACPSink * This,
  912. /* [in] */ DWORD dwFlags,
  913. /* [in] */ const TS_TEXTCHANGE *pChange);
  914. void __RPC_STUB ITextStoreACPSink_OnTextChange_Stub(
  915. IRpcStubBuffer *This,
  916. IRpcChannelBuffer *_pRpcChannelBuffer,
  917. PRPC_MESSAGE _pRpcMessage,
  918. DWORD *_pdwStubPhase);
  919. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnSelectionChange_Proxy(
  920. ITextStoreACPSink * This);
  921. void __RPC_STUB ITextStoreACPSink_OnSelectionChange_Stub(
  922. IRpcStubBuffer *This,
  923. IRpcChannelBuffer *_pRpcChannelBuffer,
  924. PRPC_MESSAGE _pRpcMessage,
  925. DWORD *_pdwStubPhase);
  926. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnLayoutChange_Proxy(
  927. ITextStoreACPSink * This,
  928. /* [in] */ TsLayoutCode lcode,
  929. /* [in] */ TsViewCookie vcView);
  930. void __RPC_STUB ITextStoreACPSink_OnLayoutChange_Stub(
  931. IRpcStubBuffer *This,
  932. IRpcChannelBuffer *_pRpcChannelBuffer,
  933. PRPC_MESSAGE _pRpcMessage,
  934. DWORD *_pdwStubPhase);
  935. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnStatusChange_Proxy(
  936. ITextStoreACPSink * This,
  937. /* [in] */ DWORD dwFlags);
  938. void __RPC_STUB ITextStoreACPSink_OnStatusChange_Stub(
  939. IRpcStubBuffer *This,
  940. IRpcChannelBuffer *_pRpcChannelBuffer,
  941. PRPC_MESSAGE _pRpcMessage,
  942. DWORD *_pdwStubPhase);
  943. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnAttrsChange_Proxy(
  944. ITextStoreACPSink * This,
  945. /* [in] */ LONG acpStart,
  946. /* [in] */ LONG acpEnd,
  947. /* [in] */ ULONG cAttrs,
  948. /* [size_is][in] */ const TS_ATTRID *paAttrs);
  949. void __RPC_STUB ITextStoreACPSink_OnAttrsChange_Stub(
  950. IRpcStubBuffer *This,
  951. IRpcChannelBuffer *_pRpcChannelBuffer,
  952. PRPC_MESSAGE _pRpcMessage,
  953. DWORD *_pdwStubPhase);
  954. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnLockGranted_Proxy(
  955. ITextStoreACPSink * This,
  956. /* [in] */ DWORD dwLockFlags);
  957. void __RPC_STUB ITextStoreACPSink_OnLockGranted_Stub(
  958. IRpcStubBuffer *This,
  959. IRpcChannelBuffer *_pRpcChannelBuffer,
  960. PRPC_MESSAGE _pRpcMessage,
  961. DWORD *_pdwStubPhase);
  962. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnStartEditTransaction_Proxy(
  963. ITextStoreACPSink * This);
  964. void __RPC_STUB ITextStoreACPSink_OnStartEditTransaction_Stub(
  965. IRpcStubBuffer *This,
  966. IRpcChannelBuffer *_pRpcChannelBuffer,
  967. PRPC_MESSAGE _pRpcMessage,
  968. DWORD *_pdwStubPhase);
  969. HRESULT STDMETHODCALLTYPE ITextStoreACPSink_OnEndEditTransaction_Proxy(
  970. ITextStoreACPSink * This);
  971. void __RPC_STUB ITextStoreACPSink_OnEndEditTransaction_Stub(
  972. IRpcStubBuffer *This,
  973. IRpcChannelBuffer *_pRpcChannelBuffer,
  974. PRPC_MESSAGE _pRpcMessage,
  975. DWORD *_pdwStubPhase);
  976. #endif /* __ITextStoreACPSink_INTERFACE_DEFINED__ */
  977. #ifndef __IAnchor_INTERFACE_DEFINED__
  978. #define __IAnchor_INTERFACE_DEFINED__
  979. /* interface IAnchor */
  980. /* [unique][uuid][object] */
  981. typedef /* [public][public][public][uuid] */ DECLSPEC_UUID("daa8601e-7695-426f-9bb7-498a6aa64b68")
  982. enum __MIDL_IAnchor_0001
  983. { TS_GR_BACKWARD = 0,
  984. TS_GR_FORWARD = 1
  985. } TsGravity;
  986. typedef /* [public][public][uuid] */ DECLSPEC_UUID("898e19df-4fb4-4af3-8daf-9b3c1145c79d")
  987. enum __MIDL_IAnchor_0002
  988. { TS_SD_BACKWARD = 0,
  989. TS_SD_FORWARD = 1
  990. } TsShiftDir;
  991. #define TS_CH_PRECEDING_DEL ( 1 )
  992. #define TS_CH_FOLLOWING_DEL ( 2 )
  993. #define TS_SHIFT_COUNT_HIDDEN ( 0x1 )
  994. #define TS_SHIFT_HALT_HIDDEN ( 0x2 )
  995. #define TS_SHIFT_HALT_VISIBLE ( 0x4 )
  996. #define TS_SHIFT_COUNT_ONLY ( 0x8 )
  997. EXTERN_C const IID IID_IAnchor;
  998. #if defined(__cplusplus) && !defined(CINTERFACE)
  999. MIDL_INTERFACE("0feb7e34-5a60-4356-8ef7-abdec2ff7cf8")
  1000. IAnchor : public IUnknown
  1001. {
  1002. public:
  1003. virtual HRESULT STDMETHODCALLTYPE SetGravity(
  1004. /* [in] */ TsGravity gravity) = 0;
  1005. virtual HRESULT STDMETHODCALLTYPE GetGravity(
  1006. /* [out] */ TsGravity *pgravity) = 0;
  1007. virtual HRESULT STDMETHODCALLTYPE IsEqual(
  1008. /* [in] */ IAnchor *paWith,
  1009. /* [out] */ BOOL *pfEqual) = 0;
  1010. virtual HRESULT STDMETHODCALLTYPE Compare(
  1011. /* [in] */ IAnchor *paWith,
  1012. /* [out] */ LONG *plResult) = 0;
  1013. virtual HRESULT STDMETHODCALLTYPE Shift(
  1014. /* [in] */ DWORD dwFlags,
  1015. /* [in] */ LONG cchReq,
  1016. /* [out] */ LONG *pcch,
  1017. /* [in] */ IAnchor *paHaltAnchor) = 0;
  1018. virtual HRESULT STDMETHODCALLTYPE ShiftTo(
  1019. /* [in] */ IAnchor *paSite) = 0;
  1020. virtual HRESULT STDMETHODCALLTYPE ShiftRegion(
  1021. /* [in] */ DWORD dwFlags,
  1022. /* [in] */ TsShiftDir dir,
  1023. /* [out] */ BOOL *pfNoRegion) = 0;
  1024. virtual HRESULT STDMETHODCALLTYPE SetChangeHistoryMask(
  1025. /* [in] */ DWORD dwMask) = 0;
  1026. virtual HRESULT STDMETHODCALLTYPE GetChangeHistory(
  1027. /* [out] */ DWORD *pdwHistory) = 0;
  1028. virtual HRESULT STDMETHODCALLTYPE ClearChangeHistory( void) = 0;
  1029. virtual HRESULT STDMETHODCALLTYPE Clone(
  1030. /* [out] */ IAnchor **ppaClone) = 0;
  1031. };
  1032. #else /* C style interface */
  1033. typedef struct IAnchorVtbl
  1034. {
  1035. BEGIN_INTERFACE
  1036. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1037. IAnchor * This,
  1038. /* [in] */ REFIID riid,
  1039. /* [iid_is][out] */ void **ppvObject);
  1040. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1041. IAnchor * This);
  1042. ULONG ( STDMETHODCALLTYPE *Release )(
  1043. IAnchor * This);
  1044. HRESULT ( STDMETHODCALLTYPE *SetGravity )(
  1045. IAnchor * This,
  1046. /* [in] */ TsGravity gravity);
  1047. HRESULT ( STDMETHODCALLTYPE *GetGravity )(
  1048. IAnchor * This,
  1049. /* [out] */ TsGravity *pgravity);
  1050. HRESULT ( STDMETHODCALLTYPE *IsEqual )(
  1051. IAnchor * This,
  1052. /* [in] */ IAnchor *paWith,
  1053. /* [out] */ BOOL *pfEqual);
  1054. HRESULT ( STDMETHODCALLTYPE *Compare )(
  1055. IAnchor * This,
  1056. /* [in] */ IAnchor *paWith,
  1057. /* [out] */ LONG *plResult);
  1058. HRESULT ( STDMETHODCALLTYPE *Shift )(
  1059. IAnchor * This,
  1060. /* [in] */ DWORD dwFlags,
  1061. /* [in] */ LONG cchReq,
  1062. /* [out] */ LONG *pcch,
  1063. /* [in] */ IAnchor *paHaltAnchor);
  1064. HRESULT ( STDMETHODCALLTYPE *ShiftTo )(
  1065. IAnchor * This,
  1066. /* [in] */ IAnchor *paSite);
  1067. HRESULT ( STDMETHODCALLTYPE *ShiftRegion )(
  1068. IAnchor * This,
  1069. /* [in] */ DWORD dwFlags,
  1070. /* [in] */ TsShiftDir dir,
  1071. /* [out] */ BOOL *pfNoRegion);
  1072. HRESULT ( STDMETHODCALLTYPE *SetChangeHistoryMask )(
  1073. IAnchor * This,
  1074. /* [in] */ DWORD dwMask);
  1075. HRESULT ( STDMETHODCALLTYPE *GetChangeHistory )(
  1076. IAnchor * This,
  1077. /* [out] */ DWORD *pdwHistory);
  1078. HRESULT ( STDMETHODCALLTYPE *ClearChangeHistory )(
  1079. IAnchor * This);
  1080. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1081. IAnchor * This,
  1082. /* [out] */ IAnchor **ppaClone);
  1083. END_INTERFACE
  1084. } IAnchorVtbl;
  1085. interface IAnchor
  1086. {
  1087. CONST_VTBL struct IAnchorVtbl *lpVtbl;
  1088. };
  1089. #ifdef COBJMACROS
  1090. #define IAnchor_QueryInterface(This,riid,ppvObject) \
  1091. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1092. #define IAnchor_AddRef(This) \
  1093. (This)->lpVtbl -> AddRef(This)
  1094. #define IAnchor_Release(This) \
  1095. (This)->lpVtbl -> Release(This)
  1096. #define IAnchor_SetGravity(This,gravity) \
  1097. (This)->lpVtbl -> SetGravity(This,gravity)
  1098. #define IAnchor_GetGravity(This,pgravity) \
  1099. (This)->lpVtbl -> GetGravity(This,pgravity)
  1100. #define IAnchor_IsEqual(This,paWith,pfEqual) \
  1101. (This)->lpVtbl -> IsEqual(This,paWith,pfEqual)
  1102. #define IAnchor_Compare(This,paWith,plResult) \
  1103. (This)->lpVtbl -> Compare(This,paWith,plResult)
  1104. #define IAnchor_Shift(This,dwFlags,cchReq,pcch,paHaltAnchor) \
  1105. (This)->lpVtbl -> Shift(This,dwFlags,cchReq,pcch,paHaltAnchor)
  1106. #define IAnchor_ShiftTo(This,paSite) \
  1107. (This)->lpVtbl -> ShiftTo(This,paSite)
  1108. #define IAnchor_ShiftRegion(This,dwFlags,dir,pfNoRegion) \
  1109. (This)->lpVtbl -> ShiftRegion(This,dwFlags,dir,pfNoRegion)
  1110. #define IAnchor_SetChangeHistoryMask(This,dwMask) \
  1111. (This)->lpVtbl -> SetChangeHistoryMask(This,dwMask)
  1112. #define IAnchor_GetChangeHistory(This,pdwHistory) \
  1113. (This)->lpVtbl -> GetChangeHistory(This,pdwHistory)
  1114. #define IAnchor_ClearChangeHistory(This) \
  1115. (This)->lpVtbl -> ClearChangeHistory(This)
  1116. #define IAnchor_Clone(This,ppaClone) \
  1117. (This)->lpVtbl -> Clone(This,ppaClone)
  1118. #endif /* COBJMACROS */
  1119. #endif /* C style interface */
  1120. HRESULT STDMETHODCALLTYPE IAnchor_SetGravity_Proxy(
  1121. IAnchor * This,
  1122. /* [in] */ TsGravity gravity);
  1123. void __RPC_STUB IAnchor_SetGravity_Stub(
  1124. IRpcStubBuffer *This,
  1125. IRpcChannelBuffer *_pRpcChannelBuffer,
  1126. PRPC_MESSAGE _pRpcMessage,
  1127. DWORD *_pdwStubPhase);
  1128. HRESULT STDMETHODCALLTYPE IAnchor_GetGravity_Proxy(
  1129. IAnchor * This,
  1130. /* [out] */ TsGravity *pgravity);
  1131. void __RPC_STUB IAnchor_GetGravity_Stub(
  1132. IRpcStubBuffer *This,
  1133. IRpcChannelBuffer *_pRpcChannelBuffer,
  1134. PRPC_MESSAGE _pRpcMessage,
  1135. DWORD *_pdwStubPhase);
  1136. HRESULT STDMETHODCALLTYPE IAnchor_IsEqual_Proxy(
  1137. IAnchor * This,
  1138. /* [in] */ IAnchor *paWith,
  1139. /* [out] */ BOOL *pfEqual);
  1140. void __RPC_STUB IAnchor_IsEqual_Stub(
  1141. IRpcStubBuffer *This,
  1142. IRpcChannelBuffer *_pRpcChannelBuffer,
  1143. PRPC_MESSAGE _pRpcMessage,
  1144. DWORD *_pdwStubPhase);
  1145. HRESULT STDMETHODCALLTYPE IAnchor_Compare_Proxy(
  1146. IAnchor * This,
  1147. /* [in] */ IAnchor *paWith,
  1148. /* [out] */ LONG *plResult);
  1149. void __RPC_STUB IAnchor_Compare_Stub(
  1150. IRpcStubBuffer *This,
  1151. IRpcChannelBuffer *_pRpcChannelBuffer,
  1152. PRPC_MESSAGE _pRpcMessage,
  1153. DWORD *_pdwStubPhase);
  1154. HRESULT STDMETHODCALLTYPE IAnchor_Shift_Proxy(
  1155. IAnchor * This,
  1156. /* [in] */ DWORD dwFlags,
  1157. /* [in] */ LONG cchReq,
  1158. /* [out] */ LONG *pcch,
  1159. /* [in] */ IAnchor *paHaltAnchor);
  1160. void __RPC_STUB IAnchor_Shift_Stub(
  1161. IRpcStubBuffer *This,
  1162. IRpcChannelBuffer *_pRpcChannelBuffer,
  1163. PRPC_MESSAGE _pRpcMessage,
  1164. DWORD *_pdwStubPhase);
  1165. HRESULT STDMETHODCALLTYPE IAnchor_ShiftTo_Proxy(
  1166. IAnchor * This,
  1167. /* [in] */ IAnchor *paSite);
  1168. void __RPC_STUB IAnchor_ShiftTo_Stub(
  1169. IRpcStubBuffer *This,
  1170. IRpcChannelBuffer *_pRpcChannelBuffer,
  1171. PRPC_MESSAGE _pRpcMessage,
  1172. DWORD *_pdwStubPhase);
  1173. HRESULT STDMETHODCALLTYPE IAnchor_ShiftRegion_Proxy(
  1174. IAnchor * This,
  1175. /* [in] */ DWORD dwFlags,
  1176. /* [in] */ TsShiftDir dir,
  1177. /* [out] */ BOOL *pfNoRegion);
  1178. void __RPC_STUB IAnchor_ShiftRegion_Stub(
  1179. IRpcStubBuffer *This,
  1180. IRpcChannelBuffer *_pRpcChannelBuffer,
  1181. PRPC_MESSAGE _pRpcMessage,
  1182. DWORD *_pdwStubPhase);
  1183. HRESULT STDMETHODCALLTYPE IAnchor_SetChangeHistoryMask_Proxy(
  1184. IAnchor * This,
  1185. /* [in] */ DWORD dwMask);
  1186. void __RPC_STUB IAnchor_SetChangeHistoryMask_Stub(
  1187. IRpcStubBuffer *This,
  1188. IRpcChannelBuffer *_pRpcChannelBuffer,
  1189. PRPC_MESSAGE _pRpcMessage,
  1190. DWORD *_pdwStubPhase);
  1191. HRESULT STDMETHODCALLTYPE IAnchor_GetChangeHistory_Proxy(
  1192. IAnchor * This,
  1193. /* [out] */ DWORD *pdwHistory);
  1194. void __RPC_STUB IAnchor_GetChangeHistory_Stub(
  1195. IRpcStubBuffer *This,
  1196. IRpcChannelBuffer *_pRpcChannelBuffer,
  1197. PRPC_MESSAGE _pRpcMessage,
  1198. DWORD *_pdwStubPhase);
  1199. HRESULT STDMETHODCALLTYPE IAnchor_ClearChangeHistory_Proxy(
  1200. IAnchor * This);
  1201. void __RPC_STUB IAnchor_ClearChangeHistory_Stub(
  1202. IRpcStubBuffer *This,
  1203. IRpcChannelBuffer *_pRpcChannelBuffer,
  1204. PRPC_MESSAGE _pRpcMessage,
  1205. DWORD *_pdwStubPhase);
  1206. HRESULT STDMETHODCALLTYPE IAnchor_Clone_Proxy(
  1207. IAnchor * This,
  1208. /* [out] */ IAnchor **ppaClone);
  1209. void __RPC_STUB IAnchor_Clone_Stub(
  1210. IRpcStubBuffer *This,
  1211. IRpcChannelBuffer *_pRpcChannelBuffer,
  1212. PRPC_MESSAGE _pRpcMessage,
  1213. DWORD *_pdwStubPhase);
  1214. #endif /* __IAnchor_INTERFACE_DEFINED__ */
  1215. #ifndef __ITextStoreAnchor_INTERFACE_DEFINED__
  1216. #define __ITextStoreAnchor_INTERFACE_DEFINED__
  1217. /* interface ITextStoreAnchor */
  1218. /* [unique][uuid][object] */
  1219. #define TS_GTA_HIDDEN ( 0x1 )
  1220. #define TS_GEA_HIDDEN ( 0x1 )
  1221. EXTERN_C const IID IID_ITextStoreAnchor;
  1222. #if defined(__cplusplus) && !defined(CINTERFACE)
  1223. MIDL_INTERFACE("9b2077b0-5f18-4dec-bee9-3cc722f5dfe0")
  1224. ITextStoreAnchor : public IUnknown
  1225. {
  1226. public:
  1227. virtual HRESULT STDMETHODCALLTYPE AdviseSink(
  1228. /* [in] */ REFIID riid,
  1229. /* [iid_is][in] */ IUnknown *punk,
  1230. /* [in] */ DWORD dwMask) = 0;
  1231. virtual HRESULT STDMETHODCALLTYPE UnadviseSink(
  1232. /* [in] */ IUnknown *punk) = 0;
  1233. virtual HRESULT STDMETHODCALLTYPE RequestLock(
  1234. /* [in] */ DWORD dwLockFlags,
  1235. /* [out] */ HRESULT *phrSession) = 0;
  1236. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  1237. /* [out] */ TS_STATUS *pdcs) = 0;
  1238. virtual HRESULT STDMETHODCALLTYPE QueryInsert(
  1239. /* [in] */ IAnchor *paTestStart,
  1240. /* [in] */ IAnchor *paTestEnd,
  1241. /* [in] */ ULONG cch,
  1242. /* [out] */ IAnchor **ppaResultStart,
  1243. /* [out] */ IAnchor **ppaResultEnd) = 0;
  1244. virtual HRESULT STDMETHODCALLTYPE GetSelection(
  1245. /* [in] */ ULONG ulIndex,
  1246. /* [in] */ ULONG ulCount,
  1247. /* [length_is][size_is][out] */ TS_SELECTION_ANCHOR *pSelection,
  1248. /* [out] */ ULONG *pcFetched) = 0;
  1249. virtual HRESULT STDMETHODCALLTYPE SetSelection(
  1250. /* [in] */ ULONG ulCount,
  1251. /* [size_is][in] */ const TS_SELECTION_ANCHOR *pSelection) = 0;
  1252. virtual HRESULT STDMETHODCALLTYPE GetText(
  1253. /* [in] */ DWORD dwFlags,
  1254. /* [in] */ IAnchor *paStart,
  1255. /* [in] */ IAnchor *paEnd,
  1256. /* [length_is][size_is][out] */ WCHAR *pchText,
  1257. /* [in] */ ULONG cchReq,
  1258. /* [out] */ ULONG *pcch,
  1259. /* [in] */ BOOL fUpdateAnchor) = 0;
  1260. virtual HRESULT STDMETHODCALLTYPE SetText(
  1261. /* [in] */ DWORD dwFlags,
  1262. /* [in] */ IAnchor *paStart,
  1263. /* [in] */ IAnchor *paEnd,
  1264. /* [size_is][in] */ const WCHAR *pchText,
  1265. /* [in] */ ULONG cch) = 0;
  1266. virtual HRESULT STDMETHODCALLTYPE GetFormattedText(
  1267. /* [in] */ IAnchor *paStart,
  1268. /* [in] */ IAnchor *paEnd,
  1269. /* [out] */ IDataObject **ppDataObject) = 0;
  1270. virtual HRESULT STDMETHODCALLTYPE GetEmbedded(
  1271. /* [in] */ DWORD dwFlags,
  1272. /* [in] */ IAnchor *paPos,
  1273. /* [in] */ REFGUID rguidService,
  1274. /* [in] */ REFIID riid,
  1275. /* [iid_is][out] */ IUnknown **ppunk) = 0;
  1276. virtual HRESULT STDMETHODCALLTYPE InsertEmbedded(
  1277. /* [in] */ DWORD dwFlags,
  1278. /* [in] */ IAnchor *paStart,
  1279. /* [in] */ IAnchor *paEnd,
  1280. /* [in] */ IDataObject *pDataObject) = 0;
  1281. virtual HRESULT STDMETHODCALLTYPE RequestSupportedAttrs(
  1282. /* [in] */ DWORD dwFlags,
  1283. /* [in] */ ULONG cFilterAttrs,
  1284. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs) = 0;
  1285. virtual HRESULT STDMETHODCALLTYPE RequestAttrsAtPosition(
  1286. /* [in] */ IAnchor *paPos,
  1287. /* [in] */ ULONG cFilterAttrs,
  1288. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1289. /* [in] */ DWORD dwFlags) = 0;
  1290. virtual HRESULT STDMETHODCALLTYPE RequestAttrsTransitioningAtPosition(
  1291. /* [in] */ IAnchor *paPos,
  1292. /* [in] */ ULONG cFilterAttrs,
  1293. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1294. /* [in] */ DWORD dwFlags) = 0;
  1295. virtual HRESULT STDMETHODCALLTYPE FindNextAttrTransition(
  1296. /* [in] */ IAnchor *paStart,
  1297. /* [in] */ IAnchor *paHalt,
  1298. /* [in] */ ULONG cFilterAttrs,
  1299. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1300. /* [in] */ DWORD dwFlags,
  1301. /* [out] */ BOOL *pfFound,
  1302. /* [out] */ LONG *plFoundOffset) = 0;
  1303. virtual HRESULT STDMETHODCALLTYPE RetrieveRequestedAttrs(
  1304. /* [in] */ ULONG ulCount,
  1305. /* [length_is][size_is][out] */ TS_ATTRVAL *paAttrVals,
  1306. /* [out] */ ULONG *pcFetched) = 0;
  1307. virtual HRESULT STDMETHODCALLTYPE GetStart(
  1308. /* [out] */ IAnchor **ppaStart) = 0;
  1309. virtual HRESULT STDMETHODCALLTYPE GetEnd(
  1310. /* [out] */ IAnchor **ppaEnd) = 0;
  1311. virtual HRESULT STDMETHODCALLTYPE GetActiveView(
  1312. /* [out] */ TsViewCookie *pvcView) = 0;
  1313. virtual HRESULT STDMETHODCALLTYPE GetAnchorFromPoint(
  1314. /* [in] */ TsViewCookie vcView,
  1315. /* [in] */ const POINT *ptScreen,
  1316. /* [in] */ DWORD dwFlags,
  1317. /* [out] */ IAnchor **ppaSite) = 0;
  1318. virtual HRESULT STDMETHODCALLTYPE GetTextExt(
  1319. /* [in] */ TsViewCookie vcView,
  1320. /* [in] */ IAnchor *paStart,
  1321. /* [in] */ IAnchor *paEnd,
  1322. /* [out] */ RECT *prc,
  1323. /* [out] */ BOOL *pfClipped) = 0;
  1324. virtual HRESULT STDMETHODCALLTYPE GetScreenExt(
  1325. /* [in] */ TsViewCookie vcView,
  1326. /* [out] */ RECT *prc) = 0;
  1327. virtual HRESULT STDMETHODCALLTYPE GetWnd(
  1328. /* [in] */ TsViewCookie vcView,
  1329. /* [out] */ HWND *phwnd) = 0;
  1330. virtual HRESULT STDMETHODCALLTYPE QueryInsertEmbedded(
  1331. /* [in] */ const GUID *pguidService,
  1332. /* [in] */ const FORMATETC *pFormatEtc,
  1333. /* [out] */ BOOL *pfInsertable) = 0;
  1334. virtual HRESULT STDMETHODCALLTYPE InsertTextAtSelection(
  1335. /* [in] */ DWORD dwFlags,
  1336. /* [size_is][in] */ const WCHAR *pchText,
  1337. /* [in] */ ULONG cch,
  1338. /* [out] */ IAnchor **ppaStart,
  1339. /* [out] */ IAnchor **ppaEnd) = 0;
  1340. virtual HRESULT STDMETHODCALLTYPE InsertEmbeddedAtSelection(
  1341. /* [in] */ DWORD dwFlags,
  1342. /* [in] */ IDataObject *pDataObject,
  1343. /* [out] */ IAnchor **ppaStart,
  1344. /* [out] */ IAnchor **ppaEnd) = 0;
  1345. };
  1346. #else /* C style interface */
  1347. typedef struct ITextStoreAnchorVtbl
  1348. {
  1349. BEGIN_INTERFACE
  1350. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1351. ITextStoreAnchor * This,
  1352. /* [in] */ REFIID riid,
  1353. /* [iid_is][out] */ void **ppvObject);
  1354. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1355. ITextStoreAnchor * This);
  1356. ULONG ( STDMETHODCALLTYPE *Release )(
  1357. ITextStoreAnchor * This);
  1358. HRESULT ( STDMETHODCALLTYPE *AdviseSink )(
  1359. ITextStoreAnchor * This,
  1360. /* [in] */ REFIID riid,
  1361. /* [iid_is][in] */ IUnknown *punk,
  1362. /* [in] */ DWORD dwMask);
  1363. HRESULT ( STDMETHODCALLTYPE *UnadviseSink )(
  1364. ITextStoreAnchor * This,
  1365. /* [in] */ IUnknown *punk);
  1366. HRESULT ( STDMETHODCALLTYPE *RequestLock )(
  1367. ITextStoreAnchor * This,
  1368. /* [in] */ DWORD dwLockFlags,
  1369. /* [out] */ HRESULT *phrSession);
  1370. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  1371. ITextStoreAnchor * This,
  1372. /* [out] */ TS_STATUS *pdcs);
  1373. HRESULT ( STDMETHODCALLTYPE *QueryInsert )(
  1374. ITextStoreAnchor * This,
  1375. /* [in] */ IAnchor *paTestStart,
  1376. /* [in] */ IAnchor *paTestEnd,
  1377. /* [in] */ ULONG cch,
  1378. /* [out] */ IAnchor **ppaResultStart,
  1379. /* [out] */ IAnchor **ppaResultEnd);
  1380. HRESULT ( STDMETHODCALLTYPE *GetSelection )(
  1381. ITextStoreAnchor * This,
  1382. /* [in] */ ULONG ulIndex,
  1383. /* [in] */ ULONG ulCount,
  1384. /* [length_is][size_is][out] */ TS_SELECTION_ANCHOR *pSelection,
  1385. /* [out] */ ULONG *pcFetched);
  1386. HRESULT ( STDMETHODCALLTYPE *SetSelection )(
  1387. ITextStoreAnchor * This,
  1388. /* [in] */ ULONG ulCount,
  1389. /* [size_is][in] */ const TS_SELECTION_ANCHOR *pSelection);
  1390. HRESULT ( STDMETHODCALLTYPE *GetText )(
  1391. ITextStoreAnchor * This,
  1392. /* [in] */ DWORD dwFlags,
  1393. /* [in] */ IAnchor *paStart,
  1394. /* [in] */ IAnchor *paEnd,
  1395. /* [length_is][size_is][out] */ WCHAR *pchText,
  1396. /* [in] */ ULONG cchReq,
  1397. /* [out] */ ULONG *pcch,
  1398. /* [in] */ BOOL fUpdateAnchor);
  1399. HRESULT ( STDMETHODCALLTYPE *SetText )(
  1400. ITextStoreAnchor * This,
  1401. /* [in] */ DWORD dwFlags,
  1402. /* [in] */ IAnchor *paStart,
  1403. /* [in] */ IAnchor *paEnd,
  1404. /* [size_is][in] */ const WCHAR *pchText,
  1405. /* [in] */ ULONG cch);
  1406. HRESULT ( STDMETHODCALLTYPE *GetFormattedText )(
  1407. ITextStoreAnchor * This,
  1408. /* [in] */ IAnchor *paStart,
  1409. /* [in] */ IAnchor *paEnd,
  1410. /* [out] */ IDataObject **ppDataObject);
  1411. HRESULT ( STDMETHODCALLTYPE *GetEmbedded )(
  1412. ITextStoreAnchor * This,
  1413. /* [in] */ DWORD dwFlags,
  1414. /* [in] */ IAnchor *paPos,
  1415. /* [in] */ REFGUID rguidService,
  1416. /* [in] */ REFIID riid,
  1417. /* [iid_is][out] */ IUnknown **ppunk);
  1418. HRESULT ( STDMETHODCALLTYPE *InsertEmbedded )(
  1419. ITextStoreAnchor * This,
  1420. /* [in] */ DWORD dwFlags,
  1421. /* [in] */ IAnchor *paStart,
  1422. /* [in] */ IAnchor *paEnd,
  1423. /* [in] */ IDataObject *pDataObject);
  1424. HRESULT ( STDMETHODCALLTYPE *RequestSupportedAttrs )(
  1425. ITextStoreAnchor * This,
  1426. /* [in] */ DWORD dwFlags,
  1427. /* [in] */ ULONG cFilterAttrs,
  1428. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs);
  1429. HRESULT ( STDMETHODCALLTYPE *RequestAttrsAtPosition )(
  1430. ITextStoreAnchor * This,
  1431. /* [in] */ IAnchor *paPos,
  1432. /* [in] */ ULONG cFilterAttrs,
  1433. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1434. /* [in] */ DWORD dwFlags);
  1435. HRESULT ( STDMETHODCALLTYPE *RequestAttrsTransitioningAtPosition )(
  1436. ITextStoreAnchor * This,
  1437. /* [in] */ IAnchor *paPos,
  1438. /* [in] */ ULONG cFilterAttrs,
  1439. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1440. /* [in] */ DWORD dwFlags);
  1441. HRESULT ( STDMETHODCALLTYPE *FindNextAttrTransition )(
  1442. ITextStoreAnchor * This,
  1443. /* [in] */ IAnchor *paStart,
  1444. /* [in] */ IAnchor *paHalt,
  1445. /* [in] */ ULONG cFilterAttrs,
  1446. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1447. /* [in] */ DWORD dwFlags,
  1448. /* [out] */ BOOL *pfFound,
  1449. /* [out] */ LONG *plFoundOffset);
  1450. HRESULT ( STDMETHODCALLTYPE *RetrieveRequestedAttrs )(
  1451. ITextStoreAnchor * This,
  1452. /* [in] */ ULONG ulCount,
  1453. /* [length_is][size_is][out] */ TS_ATTRVAL *paAttrVals,
  1454. /* [out] */ ULONG *pcFetched);
  1455. HRESULT ( STDMETHODCALLTYPE *GetStart )(
  1456. ITextStoreAnchor * This,
  1457. /* [out] */ IAnchor **ppaStart);
  1458. HRESULT ( STDMETHODCALLTYPE *GetEnd )(
  1459. ITextStoreAnchor * This,
  1460. /* [out] */ IAnchor **ppaEnd);
  1461. HRESULT ( STDMETHODCALLTYPE *GetActiveView )(
  1462. ITextStoreAnchor * This,
  1463. /* [out] */ TsViewCookie *pvcView);
  1464. HRESULT ( STDMETHODCALLTYPE *GetAnchorFromPoint )(
  1465. ITextStoreAnchor * This,
  1466. /* [in] */ TsViewCookie vcView,
  1467. /* [in] */ const POINT *ptScreen,
  1468. /* [in] */ DWORD dwFlags,
  1469. /* [out] */ IAnchor **ppaSite);
  1470. HRESULT ( STDMETHODCALLTYPE *GetTextExt )(
  1471. ITextStoreAnchor * This,
  1472. /* [in] */ TsViewCookie vcView,
  1473. /* [in] */ IAnchor *paStart,
  1474. /* [in] */ IAnchor *paEnd,
  1475. /* [out] */ RECT *prc,
  1476. /* [out] */ BOOL *pfClipped);
  1477. HRESULT ( STDMETHODCALLTYPE *GetScreenExt )(
  1478. ITextStoreAnchor * This,
  1479. /* [in] */ TsViewCookie vcView,
  1480. /* [out] */ RECT *prc);
  1481. HRESULT ( STDMETHODCALLTYPE *GetWnd )(
  1482. ITextStoreAnchor * This,
  1483. /* [in] */ TsViewCookie vcView,
  1484. /* [out] */ HWND *phwnd);
  1485. HRESULT ( STDMETHODCALLTYPE *QueryInsertEmbedded )(
  1486. ITextStoreAnchor * This,
  1487. /* [in] */ const GUID *pguidService,
  1488. /* [in] */ const FORMATETC *pFormatEtc,
  1489. /* [out] */ BOOL *pfInsertable);
  1490. HRESULT ( STDMETHODCALLTYPE *InsertTextAtSelection )(
  1491. ITextStoreAnchor * This,
  1492. /* [in] */ DWORD dwFlags,
  1493. /* [size_is][in] */ const WCHAR *pchText,
  1494. /* [in] */ ULONG cch,
  1495. /* [out] */ IAnchor **ppaStart,
  1496. /* [out] */ IAnchor **ppaEnd);
  1497. HRESULT ( STDMETHODCALLTYPE *InsertEmbeddedAtSelection )(
  1498. ITextStoreAnchor * This,
  1499. /* [in] */ DWORD dwFlags,
  1500. /* [in] */ IDataObject *pDataObject,
  1501. /* [out] */ IAnchor **ppaStart,
  1502. /* [out] */ IAnchor **ppaEnd);
  1503. END_INTERFACE
  1504. } ITextStoreAnchorVtbl;
  1505. interface ITextStoreAnchor
  1506. {
  1507. CONST_VTBL struct ITextStoreAnchorVtbl *lpVtbl;
  1508. };
  1509. #ifdef COBJMACROS
  1510. #define ITextStoreAnchor_QueryInterface(This,riid,ppvObject) \
  1511. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1512. #define ITextStoreAnchor_AddRef(This) \
  1513. (This)->lpVtbl -> AddRef(This)
  1514. #define ITextStoreAnchor_Release(This) \
  1515. (This)->lpVtbl -> Release(This)
  1516. #define ITextStoreAnchor_AdviseSink(This,riid,punk,dwMask) \
  1517. (This)->lpVtbl -> AdviseSink(This,riid,punk,dwMask)
  1518. #define ITextStoreAnchor_UnadviseSink(This,punk) \
  1519. (This)->lpVtbl -> UnadviseSink(This,punk)
  1520. #define ITextStoreAnchor_RequestLock(This,dwLockFlags,phrSession) \
  1521. (This)->lpVtbl -> RequestLock(This,dwLockFlags,phrSession)
  1522. #define ITextStoreAnchor_GetStatus(This,pdcs) \
  1523. (This)->lpVtbl -> GetStatus(This,pdcs)
  1524. #define ITextStoreAnchor_QueryInsert(This,paTestStart,paTestEnd,cch,ppaResultStart,ppaResultEnd) \
  1525. (This)->lpVtbl -> QueryInsert(This,paTestStart,paTestEnd,cch,ppaResultStart,ppaResultEnd)
  1526. #define ITextStoreAnchor_GetSelection(This,ulIndex,ulCount,pSelection,pcFetched) \
  1527. (This)->lpVtbl -> GetSelection(This,ulIndex,ulCount,pSelection,pcFetched)
  1528. #define ITextStoreAnchor_SetSelection(This,ulCount,pSelection) \
  1529. (This)->lpVtbl -> SetSelection(This,ulCount,pSelection)
  1530. #define ITextStoreAnchor_GetText(This,dwFlags,paStart,paEnd,pchText,cchReq,pcch,fUpdateAnchor) \
  1531. (This)->lpVtbl -> GetText(This,dwFlags,paStart,paEnd,pchText,cchReq,pcch,fUpdateAnchor)
  1532. #define ITextStoreAnchor_SetText(This,dwFlags,paStart,paEnd,pchText,cch) \
  1533. (This)->lpVtbl -> SetText(This,dwFlags,paStart,paEnd,pchText,cch)
  1534. #define ITextStoreAnchor_GetFormattedText(This,paStart,paEnd,ppDataObject) \
  1535. (This)->lpVtbl -> GetFormattedText(This,paStart,paEnd,ppDataObject)
  1536. #define ITextStoreAnchor_GetEmbedded(This,dwFlags,paPos,rguidService,riid,ppunk) \
  1537. (This)->lpVtbl -> GetEmbedded(This,dwFlags,paPos,rguidService,riid,ppunk)
  1538. #define ITextStoreAnchor_InsertEmbedded(This,dwFlags,paStart,paEnd,pDataObject) \
  1539. (This)->lpVtbl -> InsertEmbedded(This,dwFlags,paStart,paEnd,pDataObject)
  1540. #define ITextStoreAnchor_RequestSupportedAttrs(This,dwFlags,cFilterAttrs,paFilterAttrs) \
  1541. (This)->lpVtbl -> RequestSupportedAttrs(This,dwFlags,cFilterAttrs,paFilterAttrs)
  1542. #define ITextStoreAnchor_RequestAttrsAtPosition(This,paPos,cFilterAttrs,paFilterAttrs,dwFlags) \
  1543. (This)->lpVtbl -> RequestAttrsAtPosition(This,paPos,cFilterAttrs,paFilterAttrs,dwFlags)
  1544. #define ITextStoreAnchor_RequestAttrsTransitioningAtPosition(This,paPos,cFilterAttrs,paFilterAttrs,dwFlags) \
  1545. (This)->lpVtbl -> RequestAttrsTransitioningAtPosition(This,paPos,cFilterAttrs,paFilterAttrs,dwFlags)
  1546. #define ITextStoreAnchor_FindNextAttrTransition(This,paStart,paHalt,cFilterAttrs,paFilterAttrs,dwFlags,pfFound,plFoundOffset) \
  1547. (This)->lpVtbl -> FindNextAttrTransition(This,paStart,paHalt,cFilterAttrs,paFilterAttrs,dwFlags,pfFound,plFoundOffset)
  1548. #define ITextStoreAnchor_RetrieveRequestedAttrs(This,ulCount,paAttrVals,pcFetched) \
  1549. (This)->lpVtbl -> RetrieveRequestedAttrs(This,ulCount,paAttrVals,pcFetched)
  1550. #define ITextStoreAnchor_GetStart(This,ppaStart) \
  1551. (This)->lpVtbl -> GetStart(This,ppaStart)
  1552. #define ITextStoreAnchor_GetEnd(This,ppaEnd) \
  1553. (This)->lpVtbl -> GetEnd(This,ppaEnd)
  1554. #define ITextStoreAnchor_GetActiveView(This,pvcView) \
  1555. (This)->lpVtbl -> GetActiveView(This,pvcView)
  1556. #define ITextStoreAnchor_GetAnchorFromPoint(This,vcView,ptScreen,dwFlags,ppaSite) \
  1557. (This)->lpVtbl -> GetAnchorFromPoint(This,vcView,ptScreen,dwFlags,ppaSite)
  1558. #define ITextStoreAnchor_GetTextExt(This,vcView,paStart,paEnd,prc,pfClipped) \
  1559. (This)->lpVtbl -> GetTextExt(This,vcView,paStart,paEnd,prc,pfClipped)
  1560. #define ITextStoreAnchor_GetScreenExt(This,vcView,prc) \
  1561. (This)->lpVtbl -> GetScreenExt(This,vcView,prc)
  1562. #define ITextStoreAnchor_GetWnd(This,vcView,phwnd) \
  1563. (This)->lpVtbl -> GetWnd(This,vcView,phwnd)
  1564. #define ITextStoreAnchor_QueryInsertEmbedded(This,pguidService,pFormatEtc,pfInsertable) \
  1565. (This)->lpVtbl -> QueryInsertEmbedded(This,pguidService,pFormatEtc,pfInsertable)
  1566. #define ITextStoreAnchor_InsertTextAtSelection(This,dwFlags,pchText,cch,ppaStart,ppaEnd) \
  1567. (This)->lpVtbl -> InsertTextAtSelection(This,dwFlags,pchText,cch,ppaStart,ppaEnd)
  1568. #define ITextStoreAnchor_InsertEmbeddedAtSelection(This,dwFlags,pDataObject,ppaStart,ppaEnd) \
  1569. (This)->lpVtbl -> InsertEmbeddedAtSelection(This,dwFlags,pDataObject,ppaStart,ppaEnd)
  1570. #endif /* COBJMACROS */
  1571. #endif /* C style interface */
  1572. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_AdviseSink_Proxy(
  1573. ITextStoreAnchor * This,
  1574. /* [in] */ REFIID riid,
  1575. /* [iid_is][in] */ IUnknown *punk,
  1576. /* [in] */ DWORD dwMask);
  1577. void __RPC_STUB ITextStoreAnchor_AdviseSink_Stub(
  1578. IRpcStubBuffer *This,
  1579. IRpcChannelBuffer *_pRpcChannelBuffer,
  1580. PRPC_MESSAGE _pRpcMessage,
  1581. DWORD *_pdwStubPhase);
  1582. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_UnadviseSink_Proxy(
  1583. ITextStoreAnchor * This,
  1584. /* [in] */ IUnknown *punk);
  1585. void __RPC_STUB ITextStoreAnchor_UnadviseSink_Stub(
  1586. IRpcStubBuffer *This,
  1587. IRpcChannelBuffer *_pRpcChannelBuffer,
  1588. PRPC_MESSAGE _pRpcMessage,
  1589. DWORD *_pdwStubPhase);
  1590. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_RequestLock_Proxy(
  1591. ITextStoreAnchor * This,
  1592. /* [in] */ DWORD dwLockFlags,
  1593. /* [out] */ HRESULT *phrSession);
  1594. void __RPC_STUB ITextStoreAnchor_RequestLock_Stub(
  1595. IRpcStubBuffer *This,
  1596. IRpcChannelBuffer *_pRpcChannelBuffer,
  1597. PRPC_MESSAGE _pRpcMessage,
  1598. DWORD *_pdwStubPhase);
  1599. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetStatus_Proxy(
  1600. ITextStoreAnchor * This,
  1601. /* [out] */ TS_STATUS *pdcs);
  1602. void __RPC_STUB ITextStoreAnchor_GetStatus_Stub(
  1603. IRpcStubBuffer *This,
  1604. IRpcChannelBuffer *_pRpcChannelBuffer,
  1605. PRPC_MESSAGE _pRpcMessage,
  1606. DWORD *_pdwStubPhase);
  1607. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_QueryInsert_Proxy(
  1608. ITextStoreAnchor * This,
  1609. /* [in] */ IAnchor *paTestStart,
  1610. /* [in] */ IAnchor *paTestEnd,
  1611. /* [in] */ ULONG cch,
  1612. /* [out] */ IAnchor **ppaResultStart,
  1613. /* [out] */ IAnchor **ppaResultEnd);
  1614. void __RPC_STUB ITextStoreAnchor_QueryInsert_Stub(
  1615. IRpcStubBuffer *This,
  1616. IRpcChannelBuffer *_pRpcChannelBuffer,
  1617. PRPC_MESSAGE _pRpcMessage,
  1618. DWORD *_pdwStubPhase);
  1619. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetSelection_Proxy(
  1620. ITextStoreAnchor * This,
  1621. /* [in] */ ULONG ulIndex,
  1622. /* [in] */ ULONG ulCount,
  1623. /* [length_is][size_is][out] */ TS_SELECTION_ANCHOR *pSelection,
  1624. /* [out] */ ULONG *pcFetched);
  1625. void __RPC_STUB ITextStoreAnchor_GetSelection_Stub(
  1626. IRpcStubBuffer *This,
  1627. IRpcChannelBuffer *_pRpcChannelBuffer,
  1628. PRPC_MESSAGE _pRpcMessage,
  1629. DWORD *_pdwStubPhase);
  1630. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_SetSelection_Proxy(
  1631. ITextStoreAnchor * This,
  1632. /* [in] */ ULONG ulCount,
  1633. /* [size_is][in] */ const TS_SELECTION_ANCHOR *pSelection);
  1634. void __RPC_STUB ITextStoreAnchor_SetSelection_Stub(
  1635. IRpcStubBuffer *This,
  1636. IRpcChannelBuffer *_pRpcChannelBuffer,
  1637. PRPC_MESSAGE _pRpcMessage,
  1638. DWORD *_pdwStubPhase);
  1639. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetText_Proxy(
  1640. ITextStoreAnchor * This,
  1641. /* [in] */ DWORD dwFlags,
  1642. /* [in] */ IAnchor *paStart,
  1643. /* [in] */ IAnchor *paEnd,
  1644. /* [length_is][size_is][out] */ WCHAR *pchText,
  1645. /* [in] */ ULONG cchReq,
  1646. /* [out] */ ULONG *pcch,
  1647. /* [in] */ BOOL fUpdateAnchor);
  1648. void __RPC_STUB ITextStoreAnchor_GetText_Stub(
  1649. IRpcStubBuffer *This,
  1650. IRpcChannelBuffer *_pRpcChannelBuffer,
  1651. PRPC_MESSAGE _pRpcMessage,
  1652. DWORD *_pdwStubPhase);
  1653. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_SetText_Proxy(
  1654. ITextStoreAnchor * This,
  1655. /* [in] */ DWORD dwFlags,
  1656. /* [in] */ IAnchor *paStart,
  1657. /* [in] */ IAnchor *paEnd,
  1658. /* [size_is][in] */ const WCHAR *pchText,
  1659. /* [in] */ ULONG cch);
  1660. void __RPC_STUB ITextStoreAnchor_SetText_Stub(
  1661. IRpcStubBuffer *This,
  1662. IRpcChannelBuffer *_pRpcChannelBuffer,
  1663. PRPC_MESSAGE _pRpcMessage,
  1664. DWORD *_pdwStubPhase);
  1665. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetFormattedText_Proxy(
  1666. ITextStoreAnchor * This,
  1667. /* [in] */ IAnchor *paStart,
  1668. /* [in] */ IAnchor *paEnd,
  1669. /* [out] */ IDataObject **ppDataObject);
  1670. void __RPC_STUB ITextStoreAnchor_GetFormattedText_Stub(
  1671. IRpcStubBuffer *This,
  1672. IRpcChannelBuffer *_pRpcChannelBuffer,
  1673. PRPC_MESSAGE _pRpcMessage,
  1674. DWORD *_pdwStubPhase);
  1675. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetEmbedded_Proxy(
  1676. ITextStoreAnchor * This,
  1677. /* [in] */ DWORD dwFlags,
  1678. /* [in] */ IAnchor *paPos,
  1679. /* [in] */ REFGUID rguidService,
  1680. /* [in] */ REFIID riid,
  1681. /* [iid_is][out] */ IUnknown **ppunk);
  1682. void __RPC_STUB ITextStoreAnchor_GetEmbedded_Stub(
  1683. IRpcStubBuffer *This,
  1684. IRpcChannelBuffer *_pRpcChannelBuffer,
  1685. PRPC_MESSAGE _pRpcMessage,
  1686. DWORD *_pdwStubPhase);
  1687. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_InsertEmbedded_Proxy(
  1688. ITextStoreAnchor * This,
  1689. /* [in] */ DWORD dwFlags,
  1690. /* [in] */ IAnchor *paStart,
  1691. /* [in] */ IAnchor *paEnd,
  1692. /* [in] */ IDataObject *pDataObject);
  1693. void __RPC_STUB ITextStoreAnchor_InsertEmbedded_Stub(
  1694. IRpcStubBuffer *This,
  1695. IRpcChannelBuffer *_pRpcChannelBuffer,
  1696. PRPC_MESSAGE _pRpcMessage,
  1697. DWORD *_pdwStubPhase);
  1698. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_RequestSupportedAttrs_Proxy(
  1699. ITextStoreAnchor * This,
  1700. /* [in] */ DWORD dwFlags,
  1701. /* [in] */ ULONG cFilterAttrs,
  1702. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs);
  1703. void __RPC_STUB ITextStoreAnchor_RequestSupportedAttrs_Stub(
  1704. IRpcStubBuffer *This,
  1705. IRpcChannelBuffer *_pRpcChannelBuffer,
  1706. PRPC_MESSAGE _pRpcMessage,
  1707. DWORD *_pdwStubPhase);
  1708. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_RequestAttrsAtPosition_Proxy(
  1709. ITextStoreAnchor * This,
  1710. /* [in] */ IAnchor *paPos,
  1711. /* [in] */ ULONG cFilterAttrs,
  1712. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1713. /* [in] */ DWORD dwFlags);
  1714. void __RPC_STUB ITextStoreAnchor_RequestAttrsAtPosition_Stub(
  1715. IRpcStubBuffer *This,
  1716. IRpcChannelBuffer *_pRpcChannelBuffer,
  1717. PRPC_MESSAGE _pRpcMessage,
  1718. DWORD *_pdwStubPhase);
  1719. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_RequestAttrsTransitioningAtPosition_Proxy(
  1720. ITextStoreAnchor * This,
  1721. /* [in] */ IAnchor *paPos,
  1722. /* [in] */ ULONG cFilterAttrs,
  1723. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1724. /* [in] */ DWORD dwFlags);
  1725. void __RPC_STUB ITextStoreAnchor_RequestAttrsTransitioningAtPosition_Stub(
  1726. IRpcStubBuffer *This,
  1727. IRpcChannelBuffer *_pRpcChannelBuffer,
  1728. PRPC_MESSAGE _pRpcMessage,
  1729. DWORD *_pdwStubPhase);
  1730. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_FindNextAttrTransition_Proxy(
  1731. ITextStoreAnchor * This,
  1732. /* [in] */ IAnchor *paStart,
  1733. /* [in] */ IAnchor *paHalt,
  1734. /* [in] */ ULONG cFilterAttrs,
  1735. /* [unique][size_is][in] */ const TS_ATTRID *paFilterAttrs,
  1736. /* [in] */ DWORD dwFlags,
  1737. /* [out] */ BOOL *pfFound,
  1738. /* [out] */ LONG *plFoundOffset);
  1739. void __RPC_STUB ITextStoreAnchor_FindNextAttrTransition_Stub(
  1740. IRpcStubBuffer *This,
  1741. IRpcChannelBuffer *_pRpcChannelBuffer,
  1742. PRPC_MESSAGE _pRpcMessage,
  1743. DWORD *_pdwStubPhase);
  1744. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_RetrieveRequestedAttrs_Proxy(
  1745. ITextStoreAnchor * This,
  1746. /* [in] */ ULONG ulCount,
  1747. /* [length_is][size_is][out] */ TS_ATTRVAL *paAttrVals,
  1748. /* [out] */ ULONG *pcFetched);
  1749. void __RPC_STUB ITextStoreAnchor_RetrieveRequestedAttrs_Stub(
  1750. IRpcStubBuffer *This,
  1751. IRpcChannelBuffer *_pRpcChannelBuffer,
  1752. PRPC_MESSAGE _pRpcMessage,
  1753. DWORD *_pdwStubPhase);
  1754. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetStart_Proxy(
  1755. ITextStoreAnchor * This,
  1756. /* [out] */ IAnchor **ppaStart);
  1757. void __RPC_STUB ITextStoreAnchor_GetStart_Stub(
  1758. IRpcStubBuffer *This,
  1759. IRpcChannelBuffer *_pRpcChannelBuffer,
  1760. PRPC_MESSAGE _pRpcMessage,
  1761. DWORD *_pdwStubPhase);
  1762. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetEnd_Proxy(
  1763. ITextStoreAnchor * This,
  1764. /* [out] */ IAnchor **ppaEnd);
  1765. void __RPC_STUB ITextStoreAnchor_GetEnd_Stub(
  1766. IRpcStubBuffer *This,
  1767. IRpcChannelBuffer *_pRpcChannelBuffer,
  1768. PRPC_MESSAGE _pRpcMessage,
  1769. DWORD *_pdwStubPhase);
  1770. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetActiveView_Proxy(
  1771. ITextStoreAnchor * This,
  1772. /* [out] */ TsViewCookie *pvcView);
  1773. void __RPC_STUB ITextStoreAnchor_GetActiveView_Stub(
  1774. IRpcStubBuffer *This,
  1775. IRpcChannelBuffer *_pRpcChannelBuffer,
  1776. PRPC_MESSAGE _pRpcMessage,
  1777. DWORD *_pdwStubPhase);
  1778. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetAnchorFromPoint_Proxy(
  1779. ITextStoreAnchor * This,
  1780. /* [in] */ TsViewCookie vcView,
  1781. /* [in] */ const POINT *ptScreen,
  1782. /* [in] */ DWORD dwFlags,
  1783. /* [out] */ IAnchor **ppaSite);
  1784. void __RPC_STUB ITextStoreAnchor_GetAnchorFromPoint_Stub(
  1785. IRpcStubBuffer *This,
  1786. IRpcChannelBuffer *_pRpcChannelBuffer,
  1787. PRPC_MESSAGE _pRpcMessage,
  1788. DWORD *_pdwStubPhase);
  1789. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetTextExt_Proxy(
  1790. ITextStoreAnchor * This,
  1791. /* [in] */ TsViewCookie vcView,
  1792. /* [in] */ IAnchor *paStart,
  1793. /* [in] */ IAnchor *paEnd,
  1794. /* [out] */ RECT *prc,
  1795. /* [out] */ BOOL *pfClipped);
  1796. void __RPC_STUB ITextStoreAnchor_GetTextExt_Stub(
  1797. IRpcStubBuffer *This,
  1798. IRpcChannelBuffer *_pRpcChannelBuffer,
  1799. PRPC_MESSAGE _pRpcMessage,
  1800. DWORD *_pdwStubPhase);
  1801. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetScreenExt_Proxy(
  1802. ITextStoreAnchor * This,
  1803. /* [in] */ TsViewCookie vcView,
  1804. /* [out] */ RECT *prc);
  1805. void __RPC_STUB ITextStoreAnchor_GetScreenExt_Stub(
  1806. IRpcStubBuffer *This,
  1807. IRpcChannelBuffer *_pRpcChannelBuffer,
  1808. PRPC_MESSAGE _pRpcMessage,
  1809. DWORD *_pdwStubPhase);
  1810. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_GetWnd_Proxy(
  1811. ITextStoreAnchor * This,
  1812. /* [in] */ TsViewCookie vcView,
  1813. /* [out] */ HWND *phwnd);
  1814. void __RPC_STUB ITextStoreAnchor_GetWnd_Stub(
  1815. IRpcStubBuffer *This,
  1816. IRpcChannelBuffer *_pRpcChannelBuffer,
  1817. PRPC_MESSAGE _pRpcMessage,
  1818. DWORD *_pdwStubPhase);
  1819. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_QueryInsertEmbedded_Proxy(
  1820. ITextStoreAnchor * This,
  1821. /* [in] */ const GUID *pguidService,
  1822. /* [in] */ const FORMATETC *pFormatEtc,
  1823. /* [out] */ BOOL *pfInsertable);
  1824. void __RPC_STUB ITextStoreAnchor_QueryInsertEmbedded_Stub(
  1825. IRpcStubBuffer *This,
  1826. IRpcChannelBuffer *_pRpcChannelBuffer,
  1827. PRPC_MESSAGE _pRpcMessage,
  1828. DWORD *_pdwStubPhase);
  1829. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_InsertTextAtSelection_Proxy(
  1830. ITextStoreAnchor * This,
  1831. /* [in] */ DWORD dwFlags,
  1832. /* [size_is][in] */ const WCHAR *pchText,
  1833. /* [in] */ ULONG cch,
  1834. /* [out] */ IAnchor **ppaStart,
  1835. /* [out] */ IAnchor **ppaEnd);
  1836. void __RPC_STUB ITextStoreAnchor_InsertTextAtSelection_Stub(
  1837. IRpcStubBuffer *This,
  1838. IRpcChannelBuffer *_pRpcChannelBuffer,
  1839. PRPC_MESSAGE _pRpcMessage,
  1840. DWORD *_pdwStubPhase);
  1841. HRESULT STDMETHODCALLTYPE ITextStoreAnchor_InsertEmbeddedAtSelection_Proxy(
  1842. ITextStoreAnchor * This,
  1843. /* [in] */ DWORD dwFlags,
  1844. /* [in] */ IDataObject *pDataObject,
  1845. /* [out] */ IAnchor **ppaStart,
  1846. /* [out] */ IAnchor **ppaEnd);
  1847. void __RPC_STUB ITextStoreAnchor_InsertEmbeddedAtSelection_Stub(
  1848. IRpcStubBuffer *This,
  1849. IRpcChannelBuffer *_pRpcChannelBuffer,
  1850. PRPC_MESSAGE _pRpcMessage,
  1851. DWORD *_pdwStubPhase);
  1852. #endif /* __ITextStoreAnchor_INTERFACE_DEFINED__ */
  1853. #ifndef __ITextStoreAnchorSink_INTERFACE_DEFINED__
  1854. #define __ITextStoreAnchorSink_INTERFACE_DEFINED__
  1855. /* interface ITextStoreAnchorSink */
  1856. /* [unique][uuid][object] */
  1857. EXTERN_C const IID IID_ITextStoreAnchorSink;
  1858. #if defined(__cplusplus) && !defined(CINTERFACE)
  1859. MIDL_INTERFACE("aa80e905-2021-11d2-93e0-0060b067b86e")
  1860. ITextStoreAnchorSink : public IUnknown
  1861. {
  1862. public:
  1863. virtual HRESULT STDMETHODCALLTYPE OnTextChange(
  1864. /* [in] */ DWORD dwFlags,
  1865. /* [in] */ IAnchor *paStart,
  1866. /* [in] */ IAnchor *paEnd) = 0;
  1867. virtual HRESULT STDMETHODCALLTYPE OnSelectionChange( void) = 0;
  1868. virtual HRESULT STDMETHODCALLTYPE OnLayoutChange(
  1869. /* [in] */ TsLayoutCode lcode,
  1870. /* [in] */ TsViewCookie vcView) = 0;
  1871. virtual HRESULT STDMETHODCALLTYPE OnStatusChange(
  1872. /* [in] */ DWORD dwFlags) = 0;
  1873. virtual HRESULT STDMETHODCALLTYPE OnAttrsChange(
  1874. /* [in] */ IAnchor *paStart,
  1875. /* [in] */ IAnchor *paEnd,
  1876. /* [in] */ ULONG cAttrs,
  1877. /* [size_is][in] */ const TS_ATTRID *paAttrs) = 0;
  1878. virtual HRESULT STDMETHODCALLTYPE OnLockGranted(
  1879. /* [in] */ DWORD dwLockFlags) = 0;
  1880. virtual HRESULT STDMETHODCALLTYPE OnStartEditTransaction( void) = 0;
  1881. virtual HRESULT STDMETHODCALLTYPE OnEndEditTransaction( void) = 0;
  1882. };
  1883. #else /* C style interface */
  1884. typedef struct ITextStoreAnchorSinkVtbl
  1885. {
  1886. BEGIN_INTERFACE
  1887. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1888. ITextStoreAnchorSink * This,
  1889. /* [in] */ REFIID riid,
  1890. /* [iid_is][out] */ void **ppvObject);
  1891. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1892. ITextStoreAnchorSink * This);
  1893. ULONG ( STDMETHODCALLTYPE *Release )(
  1894. ITextStoreAnchorSink * This);
  1895. HRESULT ( STDMETHODCALLTYPE *OnTextChange )(
  1896. ITextStoreAnchorSink * This,
  1897. /* [in] */ DWORD dwFlags,
  1898. /* [in] */ IAnchor *paStart,
  1899. /* [in] */ IAnchor *paEnd);
  1900. HRESULT ( STDMETHODCALLTYPE *OnSelectionChange )(
  1901. ITextStoreAnchorSink * This);
  1902. HRESULT ( STDMETHODCALLTYPE *OnLayoutChange )(
  1903. ITextStoreAnchorSink * This,
  1904. /* [in] */ TsLayoutCode lcode,
  1905. /* [in] */ TsViewCookie vcView);
  1906. HRESULT ( STDMETHODCALLTYPE *OnStatusChange )(
  1907. ITextStoreAnchorSink * This,
  1908. /* [in] */ DWORD dwFlags);
  1909. HRESULT ( STDMETHODCALLTYPE *OnAttrsChange )(
  1910. ITextStoreAnchorSink * This,
  1911. /* [in] */ IAnchor *paStart,
  1912. /* [in] */ IAnchor *paEnd,
  1913. /* [in] */ ULONG cAttrs,
  1914. /* [size_is][in] */ const TS_ATTRID *paAttrs);
  1915. HRESULT ( STDMETHODCALLTYPE *OnLockGranted )(
  1916. ITextStoreAnchorSink * This,
  1917. /* [in] */ DWORD dwLockFlags);
  1918. HRESULT ( STDMETHODCALLTYPE *OnStartEditTransaction )(
  1919. ITextStoreAnchorSink * This);
  1920. HRESULT ( STDMETHODCALLTYPE *OnEndEditTransaction )(
  1921. ITextStoreAnchorSink * This);
  1922. END_INTERFACE
  1923. } ITextStoreAnchorSinkVtbl;
  1924. interface ITextStoreAnchorSink
  1925. {
  1926. CONST_VTBL struct ITextStoreAnchorSinkVtbl *lpVtbl;
  1927. };
  1928. #ifdef COBJMACROS
  1929. #define ITextStoreAnchorSink_QueryInterface(This,riid,ppvObject) \
  1930. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1931. #define ITextStoreAnchorSink_AddRef(This) \
  1932. (This)->lpVtbl -> AddRef(This)
  1933. #define ITextStoreAnchorSink_Release(This) \
  1934. (This)->lpVtbl -> Release(This)
  1935. #define ITextStoreAnchorSink_OnTextChange(This,dwFlags,paStart,paEnd) \
  1936. (This)->lpVtbl -> OnTextChange(This,dwFlags,paStart,paEnd)
  1937. #define ITextStoreAnchorSink_OnSelectionChange(This) \
  1938. (This)->lpVtbl -> OnSelectionChange(This)
  1939. #define ITextStoreAnchorSink_OnLayoutChange(This,lcode,vcView) \
  1940. (This)->lpVtbl -> OnLayoutChange(This,lcode,vcView)
  1941. #define ITextStoreAnchorSink_OnStatusChange(This,dwFlags) \
  1942. (This)->lpVtbl -> OnStatusChange(This,dwFlags)
  1943. #define ITextStoreAnchorSink_OnAttrsChange(This,paStart,paEnd,cAttrs,paAttrs) \
  1944. (This)->lpVtbl -> OnAttrsChange(This,paStart,paEnd,cAttrs,paAttrs)
  1945. #define ITextStoreAnchorSink_OnLockGranted(This,dwLockFlags) \
  1946. (This)->lpVtbl -> OnLockGranted(This,dwLockFlags)
  1947. #define ITextStoreAnchorSink_OnStartEditTransaction(This) \
  1948. (This)->lpVtbl -> OnStartEditTransaction(This)
  1949. #define ITextStoreAnchorSink_OnEndEditTransaction(This) \
  1950. (This)->lpVtbl -> OnEndEditTransaction(This)
  1951. #endif /* COBJMACROS */
  1952. #endif /* C style interface */
  1953. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnTextChange_Proxy(
  1954. ITextStoreAnchorSink * This,
  1955. /* [in] */ DWORD dwFlags,
  1956. /* [in] */ IAnchor *paStart,
  1957. /* [in] */ IAnchor *paEnd);
  1958. void __RPC_STUB ITextStoreAnchorSink_OnTextChange_Stub(
  1959. IRpcStubBuffer *This,
  1960. IRpcChannelBuffer *_pRpcChannelBuffer,
  1961. PRPC_MESSAGE _pRpcMessage,
  1962. DWORD *_pdwStubPhase);
  1963. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnSelectionChange_Proxy(
  1964. ITextStoreAnchorSink * This);
  1965. void __RPC_STUB ITextStoreAnchorSink_OnSelectionChange_Stub(
  1966. IRpcStubBuffer *This,
  1967. IRpcChannelBuffer *_pRpcChannelBuffer,
  1968. PRPC_MESSAGE _pRpcMessage,
  1969. DWORD *_pdwStubPhase);
  1970. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnLayoutChange_Proxy(
  1971. ITextStoreAnchorSink * This,
  1972. /* [in] */ TsLayoutCode lcode,
  1973. /* [in] */ TsViewCookie vcView);
  1974. void __RPC_STUB ITextStoreAnchorSink_OnLayoutChange_Stub(
  1975. IRpcStubBuffer *This,
  1976. IRpcChannelBuffer *_pRpcChannelBuffer,
  1977. PRPC_MESSAGE _pRpcMessage,
  1978. DWORD *_pdwStubPhase);
  1979. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnStatusChange_Proxy(
  1980. ITextStoreAnchorSink * This,
  1981. /* [in] */ DWORD dwFlags);
  1982. void __RPC_STUB ITextStoreAnchorSink_OnStatusChange_Stub(
  1983. IRpcStubBuffer *This,
  1984. IRpcChannelBuffer *_pRpcChannelBuffer,
  1985. PRPC_MESSAGE _pRpcMessage,
  1986. DWORD *_pdwStubPhase);
  1987. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnAttrsChange_Proxy(
  1988. ITextStoreAnchorSink * This,
  1989. /* [in] */ IAnchor *paStart,
  1990. /* [in] */ IAnchor *paEnd,
  1991. /* [in] */ ULONG cAttrs,
  1992. /* [size_is][in] */ const TS_ATTRID *paAttrs);
  1993. void __RPC_STUB ITextStoreAnchorSink_OnAttrsChange_Stub(
  1994. IRpcStubBuffer *This,
  1995. IRpcChannelBuffer *_pRpcChannelBuffer,
  1996. PRPC_MESSAGE _pRpcMessage,
  1997. DWORD *_pdwStubPhase);
  1998. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnLockGranted_Proxy(
  1999. ITextStoreAnchorSink * This,
  2000. /* [in] */ DWORD dwLockFlags);
  2001. void __RPC_STUB ITextStoreAnchorSink_OnLockGranted_Stub(
  2002. IRpcStubBuffer *This,
  2003. IRpcChannelBuffer *_pRpcChannelBuffer,
  2004. PRPC_MESSAGE _pRpcMessage,
  2005. DWORD *_pdwStubPhase);
  2006. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnStartEditTransaction_Proxy(
  2007. ITextStoreAnchorSink * This);
  2008. void __RPC_STUB ITextStoreAnchorSink_OnStartEditTransaction_Stub(
  2009. IRpcStubBuffer *This,
  2010. IRpcChannelBuffer *_pRpcChannelBuffer,
  2011. PRPC_MESSAGE _pRpcMessage,
  2012. DWORD *_pdwStubPhase);
  2013. HRESULT STDMETHODCALLTYPE ITextStoreAnchorSink_OnEndEditTransaction_Proxy(
  2014. ITextStoreAnchorSink * This);
  2015. void __RPC_STUB ITextStoreAnchorSink_OnEndEditTransaction_Stub(
  2016. IRpcStubBuffer *This,
  2017. IRpcChannelBuffer *_pRpcChannelBuffer,
  2018. PRPC_MESSAGE _pRpcMessage,
  2019. DWORD *_pdwStubPhase);
  2020. #endif /* __ITextStoreAnchorSink_INTERFACE_DEFINED__ */
  2021. /* Additional Prototypes for ALL interfaces */
  2022. unsigned long __RPC_USER CLIPFORMAT_UserSize( unsigned long *, unsigned long , CLIPFORMAT * );
  2023. unsigned char * __RPC_USER CLIPFORMAT_UserMarshal( unsigned long *, unsigned char *, CLIPFORMAT * );
  2024. unsigned char * __RPC_USER CLIPFORMAT_UserUnmarshal(unsigned long *, unsigned char *, CLIPFORMAT * );
  2025. void __RPC_USER CLIPFORMAT_UserFree( unsigned long *, CLIPFORMAT * );
  2026. unsigned long __RPC_USER HWND_UserSize( unsigned long *, unsigned long , HWND * );
  2027. unsigned char * __RPC_USER HWND_UserMarshal( unsigned long *, unsigned char *, HWND * );
  2028. unsigned char * __RPC_USER HWND_UserUnmarshal(unsigned long *, unsigned char *, HWND * );
  2029. void __RPC_USER HWND_UserFree( unsigned long *, HWND * );
  2030. unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * );
  2031. unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * );
  2032. unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * );
  2033. void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * );
  2034. /* end of Additional Prototypes */
  2035. #ifdef __cplusplus
  2036. }
  2037. #endif
  2038. #endif