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.

2839 lines
92 KiB

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