spellcheck.h 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165
  1. /*** Autogenerated by WIDL 7.7 from include/spellcheck.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __spellcheck_h__
  14. #define __spellcheck_h__
  15. /* Forward declarations */
  16. #ifndef __ISpellingError_FWD_DEFINED__
  17. #define __ISpellingError_FWD_DEFINED__
  18. typedef interface ISpellingError ISpellingError;
  19. #ifdef __cplusplus
  20. interface ISpellingError;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __IEnumSpellingError_FWD_DEFINED__
  24. #define __IEnumSpellingError_FWD_DEFINED__
  25. typedef interface IEnumSpellingError IEnumSpellingError;
  26. #ifdef __cplusplus
  27. interface IEnumSpellingError;
  28. #endif /* __cplusplus */
  29. #endif
  30. #ifndef __IOptionDescription_FWD_DEFINED__
  31. #define __IOptionDescription_FWD_DEFINED__
  32. typedef interface IOptionDescription IOptionDescription;
  33. #ifdef __cplusplus
  34. interface IOptionDescription;
  35. #endif /* __cplusplus */
  36. #endif
  37. #ifndef __ISpellCheckerChangedEventHandler_FWD_DEFINED__
  38. #define __ISpellCheckerChangedEventHandler_FWD_DEFINED__
  39. typedef interface ISpellCheckerChangedEventHandler ISpellCheckerChangedEventHandler;
  40. #ifdef __cplusplus
  41. interface ISpellCheckerChangedEventHandler;
  42. #endif /* __cplusplus */
  43. #endif
  44. #ifndef __ISpellChecker_FWD_DEFINED__
  45. #define __ISpellChecker_FWD_DEFINED__
  46. typedef interface ISpellChecker ISpellChecker;
  47. #ifdef __cplusplus
  48. interface ISpellChecker;
  49. #endif /* __cplusplus */
  50. #endif
  51. #ifndef __ISpellChecker2_FWD_DEFINED__
  52. #define __ISpellChecker2_FWD_DEFINED__
  53. typedef interface ISpellChecker2 ISpellChecker2;
  54. #ifdef __cplusplus
  55. interface ISpellChecker2;
  56. #endif /* __cplusplus */
  57. #endif
  58. #ifndef __ISpellCheckerFactory_FWD_DEFINED__
  59. #define __ISpellCheckerFactory_FWD_DEFINED__
  60. typedef interface ISpellCheckerFactory ISpellCheckerFactory;
  61. #ifdef __cplusplus
  62. interface ISpellCheckerFactory;
  63. #endif /* __cplusplus */
  64. #endif
  65. #ifndef __IUserDictionariesRegistrar_FWD_DEFINED__
  66. #define __IUserDictionariesRegistrar_FWD_DEFINED__
  67. typedef interface IUserDictionariesRegistrar IUserDictionariesRegistrar;
  68. #ifdef __cplusplus
  69. interface IUserDictionariesRegistrar;
  70. #endif /* __cplusplus */
  71. #endif
  72. #ifndef __SpellCheckerFactory_FWD_DEFINED__
  73. #define __SpellCheckerFactory_FWD_DEFINED__
  74. #ifdef __cplusplus
  75. typedef class SpellCheckerFactory SpellCheckerFactory;
  76. #else
  77. typedef struct SpellCheckerFactory SpellCheckerFactory;
  78. #endif /* defined __cplusplus */
  79. #endif /* defined __SpellCheckerFactory_FWD_DEFINED__ */
  80. /* Headers for imported files */
  81. #include <oaidl.h>
  82. #include <ocidl.h>
  83. #ifdef __cplusplus
  84. extern "C" {
  85. #endif
  86. #ifndef MIN_SPELLING_NTDDI
  87. #define MIN_SPELLING_NTDDI NTDDI_WIN8
  88. #endif
  89. #if NTDDI_VERSION >= MIN_SPELLING_NTDDI
  90. #include <winapifamily.h>
  91. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
  92. typedef enum WORDLIST_TYPE {
  93. WORDLIST_TYPE_IGNORE = 0,
  94. WORDLIST_TYPE_ADD = 1,
  95. WORDLIST_TYPE_EXCLUDE = 2,
  96. WORDLIST_TYPE_AUTOCORRECT = 3
  97. } WORDLIST_TYPE;
  98. /*****************************************************************************
  99. * ISpellingError interface
  100. */
  101. #ifndef __ISpellingError_INTERFACE_DEFINED__
  102. #define __ISpellingError_INTERFACE_DEFINED__
  103. typedef enum CORRECTIVE_ACTION {
  104. CORRECTIVE_ACTION_NONE = 0,
  105. CORRECTIVE_ACTION_GET_SUGGESTIONS = 1,
  106. CORRECTIVE_ACTION_REPLACE = 2,
  107. CORRECTIVE_ACTION_DELETE = 3
  108. } CORRECTIVE_ACTION;
  109. DEFINE_GUID(IID_ISpellingError, 0xb7c82d61, 0xfbe8, 0x4b47, 0x9b,0x27, 0x6c,0x0d,0x2e,0x0d,0xe0,0xa3);
  110. #if defined(__cplusplus) && !defined(CINTERFACE)
  111. MIDL_INTERFACE("b7c82d61-fbe8-4b47-9b27-6c0d2e0de0a3")
  112. ISpellingError : public IUnknown
  113. {
  114. virtual HRESULT STDMETHODCALLTYPE get_StartIndex(
  115. ULONG *val) = 0;
  116. virtual HRESULT STDMETHODCALLTYPE get_Length(
  117. ULONG *val) = 0;
  118. virtual HRESULT STDMETHODCALLTYPE get_CorrectiveAction(
  119. CORRECTIVE_ACTION *val) = 0;
  120. virtual HRESULT STDMETHODCALLTYPE get_Replacement(
  121. LPWSTR *val) = 0;
  122. };
  123. #ifdef __CRT_UUID_DECL
  124. __CRT_UUID_DECL(ISpellingError, 0xb7c82d61, 0xfbe8, 0x4b47, 0x9b,0x27, 0x6c,0x0d,0x2e,0x0d,0xe0,0xa3)
  125. #endif
  126. #else
  127. typedef struct ISpellingErrorVtbl {
  128. BEGIN_INTERFACE
  129. /*** IUnknown methods ***/
  130. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  131. ISpellingError *This,
  132. REFIID riid,
  133. void **ppvObject);
  134. ULONG (STDMETHODCALLTYPE *AddRef)(
  135. ISpellingError *This);
  136. ULONG (STDMETHODCALLTYPE *Release)(
  137. ISpellingError *This);
  138. /*** ISpellingError methods ***/
  139. HRESULT (STDMETHODCALLTYPE *get_StartIndex)(
  140. ISpellingError *This,
  141. ULONG *val);
  142. HRESULT (STDMETHODCALLTYPE *get_Length)(
  143. ISpellingError *This,
  144. ULONG *val);
  145. HRESULT (STDMETHODCALLTYPE *get_CorrectiveAction)(
  146. ISpellingError *This,
  147. CORRECTIVE_ACTION *val);
  148. HRESULT (STDMETHODCALLTYPE *get_Replacement)(
  149. ISpellingError *This,
  150. LPWSTR *val);
  151. END_INTERFACE
  152. } ISpellingErrorVtbl;
  153. interface ISpellingError {
  154. CONST_VTBL ISpellingErrorVtbl* lpVtbl;
  155. };
  156. #ifdef COBJMACROS
  157. #ifndef WIDL_C_INLINE_WRAPPERS
  158. /*** IUnknown methods ***/
  159. #define ISpellingError_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  160. #define ISpellingError_AddRef(This) (This)->lpVtbl->AddRef(This)
  161. #define ISpellingError_Release(This) (This)->lpVtbl->Release(This)
  162. /*** ISpellingError methods ***/
  163. #define ISpellingError_get_StartIndex(This,val) (This)->lpVtbl->get_StartIndex(This,val)
  164. #define ISpellingError_get_Length(This,val) (This)->lpVtbl->get_Length(This,val)
  165. #define ISpellingError_get_CorrectiveAction(This,val) (This)->lpVtbl->get_CorrectiveAction(This,val)
  166. #define ISpellingError_get_Replacement(This,val) (This)->lpVtbl->get_Replacement(This,val)
  167. #else
  168. /*** IUnknown methods ***/
  169. static FORCEINLINE HRESULT ISpellingError_QueryInterface(ISpellingError* This,REFIID riid,void **ppvObject) {
  170. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  171. }
  172. static FORCEINLINE ULONG ISpellingError_AddRef(ISpellingError* This) {
  173. return This->lpVtbl->AddRef(This);
  174. }
  175. static FORCEINLINE ULONG ISpellingError_Release(ISpellingError* This) {
  176. return This->lpVtbl->Release(This);
  177. }
  178. /*** ISpellingError methods ***/
  179. static FORCEINLINE HRESULT ISpellingError_get_StartIndex(ISpellingError* This,ULONG *val) {
  180. return This->lpVtbl->get_StartIndex(This,val);
  181. }
  182. static FORCEINLINE HRESULT ISpellingError_get_Length(ISpellingError* This,ULONG *val) {
  183. return This->lpVtbl->get_Length(This,val);
  184. }
  185. static FORCEINLINE HRESULT ISpellingError_get_CorrectiveAction(ISpellingError* This,CORRECTIVE_ACTION *val) {
  186. return This->lpVtbl->get_CorrectiveAction(This,val);
  187. }
  188. static FORCEINLINE HRESULT ISpellingError_get_Replacement(ISpellingError* This,LPWSTR *val) {
  189. return This->lpVtbl->get_Replacement(This,val);
  190. }
  191. #endif
  192. #endif
  193. #endif
  194. #endif /* __ISpellingError_INTERFACE_DEFINED__ */
  195. /*****************************************************************************
  196. * IEnumSpellingError interface
  197. */
  198. #ifndef __IEnumSpellingError_INTERFACE_DEFINED__
  199. #define __IEnumSpellingError_INTERFACE_DEFINED__
  200. DEFINE_GUID(IID_IEnumSpellingError, 0x803e3bd4, 0x2828, 0x4410, 0x82,0x90, 0x41,0x8d,0x1d,0x73,0xc7,0x62);
  201. #if defined(__cplusplus) && !defined(CINTERFACE)
  202. MIDL_INTERFACE("803e3bd4-2828-4410-8290-418d1d73c762")
  203. IEnumSpellingError : public IUnknown
  204. {
  205. virtual HRESULT STDMETHODCALLTYPE Next(
  206. ISpellingError **val) = 0;
  207. };
  208. #ifdef __CRT_UUID_DECL
  209. __CRT_UUID_DECL(IEnumSpellingError, 0x803e3bd4, 0x2828, 0x4410, 0x82,0x90, 0x41,0x8d,0x1d,0x73,0xc7,0x62)
  210. #endif
  211. #else
  212. typedef struct IEnumSpellingErrorVtbl {
  213. BEGIN_INTERFACE
  214. /*** IUnknown methods ***/
  215. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  216. IEnumSpellingError *This,
  217. REFIID riid,
  218. void **ppvObject);
  219. ULONG (STDMETHODCALLTYPE *AddRef)(
  220. IEnumSpellingError *This);
  221. ULONG (STDMETHODCALLTYPE *Release)(
  222. IEnumSpellingError *This);
  223. /*** IEnumSpellingError methods ***/
  224. HRESULT (STDMETHODCALLTYPE *Next)(
  225. IEnumSpellingError *This,
  226. ISpellingError **val);
  227. END_INTERFACE
  228. } IEnumSpellingErrorVtbl;
  229. interface IEnumSpellingError {
  230. CONST_VTBL IEnumSpellingErrorVtbl* lpVtbl;
  231. };
  232. #ifdef COBJMACROS
  233. #ifndef WIDL_C_INLINE_WRAPPERS
  234. /*** IUnknown methods ***/
  235. #define IEnumSpellingError_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  236. #define IEnumSpellingError_AddRef(This) (This)->lpVtbl->AddRef(This)
  237. #define IEnumSpellingError_Release(This) (This)->lpVtbl->Release(This)
  238. /*** IEnumSpellingError methods ***/
  239. #define IEnumSpellingError_Next(This,val) (This)->lpVtbl->Next(This,val)
  240. #else
  241. /*** IUnknown methods ***/
  242. static FORCEINLINE HRESULT IEnumSpellingError_QueryInterface(IEnumSpellingError* This,REFIID riid,void **ppvObject) {
  243. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  244. }
  245. static FORCEINLINE ULONG IEnumSpellingError_AddRef(IEnumSpellingError* This) {
  246. return This->lpVtbl->AddRef(This);
  247. }
  248. static FORCEINLINE ULONG IEnumSpellingError_Release(IEnumSpellingError* This) {
  249. return This->lpVtbl->Release(This);
  250. }
  251. /*** IEnumSpellingError methods ***/
  252. static FORCEINLINE HRESULT IEnumSpellingError_Next(IEnumSpellingError* This,ISpellingError **val) {
  253. return This->lpVtbl->Next(This,val);
  254. }
  255. #endif
  256. #endif
  257. #endif
  258. #endif /* __IEnumSpellingError_INTERFACE_DEFINED__ */
  259. /*****************************************************************************
  260. * IOptionDescription interface
  261. */
  262. #ifndef __IOptionDescription_INTERFACE_DEFINED__
  263. #define __IOptionDescription_INTERFACE_DEFINED__
  264. DEFINE_GUID(IID_IOptionDescription, 0x432e5f85, 0x35cf, 0x4606, 0xa8,0x01, 0x6f,0x70,0x27,0x7e,0x1d,0x7a);
  265. #if defined(__cplusplus) && !defined(CINTERFACE)
  266. MIDL_INTERFACE("432e5f85-35cf-4606-a801-6f70277e1d7a")
  267. IOptionDescription : public IUnknown
  268. {
  269. virtual HRESULT STDMETHODCALLTYPE get_Id(
  270. LPWSTR *val) = 0;
  271. virtual HRESULT STDMETHODCALLTYPE get_Heading(
  272. LPWSTR *val) = 0;
  273. virtual HRESULT STDMETHODCALLTYPE get_Description(
  274. LPWSTR *val) = 0;
  275. virtual HRESULT STDMETHODCALLTYPE get_Labels(
  276. IEnumString **val) = 0;
  277. };
  278. #ifdef __CRT_UUID_DECL
  279. __CRT_UUID_DECL(IOptionDescription, 0x432e5f85, 0x35cf, 0x4606, 0xa8,0x01, 0x6f,0x70,0x27,0x7e,0x1d,0x7a)
  280. #endif
  281. #else
  282. typedef struct IOptionDescriptionVtbl {
  283. BEGIN_INTERFACE
  284. /*** IUnknown methods ***/
  285. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  286. IOptionDescription *This,
  287. REFIID riid,
  288. void **ppvObject);
  289. ULONG (STDMETHODCALLTYPE *AddRef)(
  290. IOptionDescription *This);
  291. ULONG (STDMETHODCALLTYPE *Release)(
  292. IOptionDescription *This);
  293. /*** IOptionDescription methods ***/
  294. HRESULT (STDMETHODCALLTYPE *get_Id)(
  295. IOptionDescription *This,
  296. LPWSTR *val);
  297. HRESULT (STDMETHODCALLTYPE *get_Heading)(
  298. IOptionDescription *This,
  299. LPWSTR *val);
  300. HRESULT (STDMETHODCALLTYPE *get_Description)(
  301. IOptionDescription *This,
  302. LPWSTR *val);
  303. HRESULT (STDMETHODCALLTYPE *get_Labels)(
  304. IOptionDescription *This,
  305. IEnumString **val);
  306. END_INTERFACE
  307. } IOptionDescriptionVtbl;
  308. interface IOptionDescription {
  309. CONST_VTBL IOptionDescriptionVtbl* lpVtbl;
  310. };
  311. #ifdef COBJMACROS
  312. #ifndef WIDL_C_INLINE_WRAPPERS
  313. /*** IUnknown methods ***/
  314. #define IOptionDescription_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  315. #define IOptionDescription_AddRef(This) (This)->lpVtbl->AddRef(This)
  316. #define IOptionDescription_Release(This) (This)->lpVtbl->Release(This)
  317. /*** IOptionDescription methods ***/
  318. #define IOptionDescription_get_Id(This,val) (This)->lpVtbl->get_Id(This,val)
  319. #define IOptionDescription_get_Heading(This,val) (This)->lpVtbl->get_Heading(This,val)
  320. #define IOptionDescription_get_Description(This,val) (This)->lpVtbl->get_Description(This,val)
  321. #define IOptionDescription_get_Labels(This,val) (This)->lpVtbl->get_Labels(This,val)
  322. #else
  323. /*** IUnknown methods ***/
  324. static FORCEINLINE HRESULT IOptionDescription_QueryInterface(IOptionDescription* This,REFIID riid,void **ppvObject) {
  325. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  326. }
  327. static FORCEINLINE ULONG IOptionDescription_AddRef(IOptionDescription* This) {
  328. return This->lpVtbl->AddRef(This);
  329. }
  330. static FORCEINLINE ULONG IOptionDescription_Release(IOptionDescription* This) {
  331. return This->lpVtbl->Release(This);
  332. }
  333. /*** IOptionDescription methods ***/
  334. static FORCEINLINE HRESULT IOptionDescription_get_Id(IOptionDescription* This,LPWSTR *val) {
  335. return This->lpVtbl->get_Id(This,val);
  336. }
  337. static FORCEINLINE HRESULT IOptionDescription_get_Heading(IOptionDescription* This,LPWSTR *val) {
  338. return This->lpVtbl->get_Heading(This,val);
  339. }
  340. static FORCEINLINE HRESULT IOptionDescription_get_Description(IOptionDescription* This,LPWSTR *val) {
  341. return This->lpVtbl->get_Description(This,val);
  342. }
  343. static FORCEINLINE HRESULT IOptionDescription_get_Labels(IOptionDescription* This,IEnumString **val) {
  344. return This->lpVtbl->get_Labels(This,val);
  345. }
  346. #endif
  347. #endif
  348. #endif
  349. #endif /* __IOptionDescription_INTERFACE_DEFINED__ */
  350. #ifndef __ISpellChecker_FWD_DEFINED__
  351. #define __ISpellChecker_FWD_DEFINED__
  352. typedef interface ISpellChecker ISpellChecker;
  353. #ifdef __cplusplus
  354. interface ISpellChecker;
  355. #endif /* __cplusplus */
  356. #endif
  357. /*****************************************************************************
  358. * ISpellCheckerChangedEventHandler interface
  359. */
  360. #ifndef __ISpellCheckerChangedEventHandler_INTERFACE_DEFINED__
  361. #define __ISpellCheckerChangedEventHandler_INTERFACE_DEFINED__
  362. DEFINE_GUID(IID_ISpellCheckerChangedEventHandler, 0x0b83a5b0, 0x792f, 0x4eab, 0x97,0x99, 0xac,0xf5,0x2c,0x5e,0xd0,0x8a);
  363. #if defined(__cplusplus) && !defined(CINTERFACE)
  364. MIDL_INTERFACE("0b83a5b0-792f-4eab-9799-acf52c5ed08a")
  365. ISpellCheckerChangedEventHandler : public IUnknown
  366. {
  367. virtual HRESULT STDMETHODCALLTYPE Invoke(
  368. ISpellChecker *sender) = 0;
  369. };
  370. #ifdef __CRT_UUID_DECL
  371. __CRT_UUID_DECL(ISpellCheckerChangedEventHandler, 0x0b83a5b0, 0x792f, 0x4eab, 0x97,0x99, 0xac,0xf5,0x2c,0x5e,0xd0,0x8a)
  372. #endif
  373. #else
  374. typedef struct ISpellCheckerChangedEventHandlerVtbl {
  375. BEGIN_INTERFACE
  376. /*** IUnknown methods ***/
  377. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  378. ISpellCheckerChangedEventHandler *This,
  379. REFIID riid,
  380. void **ppvObject);
  381. ULONG (STDMETHODCALLTYPE *AddRef)(
  382. ISpellCheckerChangedEventHandler *This);
  383. ULONG (STDMETHODCALLTYPE *Release)(
  384. ISpellCheckerChangedEventHandler *This);
  385. /*** ISpellCheckerChangedEventHandler methods ***/
  386. HRESULT (STDMETHODCALLTYPE *Invoke)(
  387. ISpellCheckerChangedEventHandler *This,
  388. ISpellChecker *sender);
  389. END_INTERFACE
  390. } ISpellCheckerChangedEventHandlerVtbl;
  391. interface ISpellCheckerChangedEventHandler {
  392. CONST_VTBL ISpellCheckerChangedEventHandlerVtbl* lpVtbl;
  393. };
  394. #ifdef COBJMACROS
  395. #ifndef WIDL_C_INLINE_WRAPPERS
  396. /*** IUnknown methods ***/
  397. #define ISpellCheckerChangedEventHandler_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  398. #define ISpellCheckerChangedEventHandler_AddRef(This) (This)->lpVtbl->AddRef(This)
  399. #define ISpellCheckerChangedEventHandler_Release(This) (This)->lpVtbl->Release(This)
  400. /*** ISpellCheckerChangedEventHandler methods ***/
  401. #define ISpellCheckerChangedEventHandler_Invoke(This,sender) (This)->lpVtbl->Invoke(This,sender)
  402. #else
  403. /*** IUnknown methods ***/
  404. static FORCEINLINE HRESULT ISpellCheckerChangedEventHandler_QueryInterface(ISpellCheckerChangedEventHandler* This,REFIID riid,void **ppvObject) {
  405. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  406. }
  407. static FORCEINLINE ULONG ISpellCheckerChangedEventHandler_AddRef(ISpellCheckerChangedEventHandler* This) {
  408. return This->lpVtbl->AddRef(This);
  409. }
  410. static FORCEINLINE ULONG ISpellCheckerChangedEventHandler_Release(ISpellCheckerChangedEventHandler* This) {
  411. return This->lpVtbl->Release(This);
  412. }
  413. /*** ISpellCheckerChangedEventHandler methods ***/
  414. static FORCEINLINE HRESULT ISpellCheckerChangedEventHandler_Invoke(ISpellCheckerChangedEventHandler* This,ISpellChecker *sender) {
  415. return This->lpVtbl->Invoke(This,sender);
  416. }
  417. #endif
  418. #endif
  419. #endif
  420. #endif /* __ISpellCheckerChangedEventHandler_INTERFACE_DEFINED__ */
  421. /*****************************************************************************
  422. * ISpellChecker interface
  423. */
  424. #ifndef __ISpellChecker_INTERFACE_DEFINED__
  425. #define __ISpellChecker_INTERFACE_DEFINED__
  426. DEFINE_GUID(IID_ISpellChecker, 0xb6fd0b71, 0xe2bc, 0x4653, 0x8d,0x05, 0xf1,0x97,0xe4,0x12,0x77,0x0b);
  427. #if defined(__cplusplus) && !defined(CINTERFACE)
  428. MIDL_INTERFACE("b6fd0b71-e2bc-4653-8d05-f197e412770b")
  429. ISpellChecker : public IUnknown
  430. {
  431. virtual HRESULT STDMETHODCALLTYPE get_LanguageTag(
  432. LPWSTR *val) = 0;
  433. virtual HRESULT STDMETHODCALLTYPE Check(
  434. LPCWSTR text,
  435. IEnumSpellingError **val) = 0;
  436. virtual HRESULT STDMETHODCALLTYPE Suggest(
  437. LPCWSTR word,
  438. IEnumString **val) = 0;
  439. virtual HRESULT STDMETHODCALLTYPE Add(
  440. LPCWSTR word) = 0;
  441. virtual HRESULT STDMETHODCALLTYPE Ignore(
  442. LPCWSTR word) = 0;
  443. virtual HRESULT STDMETHODCALLTYPE AutoCorrect(
  444. LPCWSTR from,
  445. LPCWSTR to) = 0;
  446. virtual HRESULT STDMETHODCALLTYPE GetOptionValue(
  447. LPCWSTR option_id,
  448. BYTE *val) = 0;
  449. virtual HRESULT STDMETHODCALLTYPE get_OptionIds(
  450. IEnumString **val) = 0;
  451. virtual HRESULT STDMETHODCALLTYPE get_Id(
  452. LPWSTR *val) = 0;
  453. virtual HRESULT STDMETHODCALLTYPE get_LocalizedName(
  454. LPWSTR *val) = 0;
  455. virtual HRESULT STDMETHODCALLTYPE add_SpellCheckerChanged(
  456. ISpellCheckerChangedEventHandler *handler,
  457. DWORD *event_cookie) = 0;
  458. virtual HRESULT STDMETHODCALLTYPE remove_SpellCheckerChanged(
  459. DWORD event_cookie) = 0;
  460. virtual HRESULT STDMETHODCALLTYPE GetOptionDescription(
  461. LPCWSTR optionId,
  462. IOptionDescription **val) = 0;
  463. virtual HRESULT STDMETHODCALLTYPE ComprehensiveCheck(
  464. LPCWSTR text,
  465. IEnumSpellingError **val) = 0;
  466. };
  467. #ifdef __CRT_UUID_DECL
  468. __CRT_UUID_DECL(ISpellChecker, 0xb6fd0b71, 0xe2bc, 0x4653, 0x8d,0x05, 0xf1,0x97,0xe4,0x12,0x77,0x0b)
  469. #endif
  470. #else
  471. typedef struct ISpellCheckerVtbl {
  472. BEGIN_INTERFACE
  473. /*** IUnknown methods ***/
  474. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  475. ISpellChecker *This,
  476. REFIID riid,
  477. void **ppvObject);
  478. ULONG (STDMETHODCALLTYPE *AddRef)(
  479. ISpellChecker *This);
  480. ULONG (STDMETHODCALLTYPE *Release)(
  481. ISpellChecker *This);
  482. /*** ISpellChecker methods ***/
  483. HRESULT (STDMETHODCALLTYPE *get_LanguageTag)(
  484. ISpellChecker *This,
  485. LPWSTR *val);
  486. HRESULT (STDMETHODCALLTYPE *Check)(
  487. ISpellChecker *This,
  488. LPCWSTR text,
  489. IEnumSpellingError **val);
  490. HRESULT (STDMETHODCALLTYPE *Suggest)(
  491. ISpellChecker *This,
  492. LPCWSTR word,
  493. IEnumString **val);
  494. HRESULT (STDMETHODCALLTYPE *Add)(
  495. ISpellChecker *This,
  496. LPCWSTR word);
  497. HRESULT (STDMETHODCALLTYPE *Ignore)(
  498. ISpellChecker *This,
  499. LPCWSTR word);
  500. HRESULT (STDMETHODCALLTYPE *AutoCorrect)(
  501. ISpellChecker *This,
  502. LPCWSTR from,
  503. LPCWSTR to);
  504. HRESULT (STDMETHODCALLTYPE *GetOptionValue)(
  505. ISpellChecker *This,
  506. LPCWSTR option_id,
  507. BYTE *val);
  508. HRESULT (STDMETHODCALLTYPE *get_OptionIds)(
  509. ISpellChecker *This,
  510. IEnumString **val);
  511. HRESULT (STDMETHODCALLTYPE *get_Id)(
  512. ISpellChecker *This,
  513. LPWSTR *val);
  514. HRESULT (STDMETHODCALLTYPE *get_LocalizedName)(
  515. ISpellChecker *This,
  516. LPWSTR *val);
  517. HRESULT (STDMETHODCALLTYPE *add_SpellCheckerChanged)(
  518. ISpellChecker *This,
  519. ISpellCheckerChangedEventHandler *handler,
  520. DWORD *event_cookie);
  521. HRESULT (STDMETHODCALLTYPE *remove_SpellCheckerChanged)(
  522. ISpellChecker *This,
  523. DWORD event_cookie);
  524. HRESULT (STDMETHODCALLTYPE *GetOptionDescription)(
  525. ISpellChecker *This,
  526. LPCWSTR optionId,
  527. IOptionDescription **val);
  528. HRESULT (STDMETHODCALLTYPE *ComprehensiveCheck)(
  529. ISpellChecker *This,
  530. LPCWSTR text,
  531. IEnumSpellingError **val);
  532. END_INTERFACE
  533. } ISpellCheckerVtbl;
  534. interface ISpellChecker {
  535. CONST_VTBL ISpellCheckerVtbl* lpVtbl;
  536. };
  537. #ifdef COBJMACROS
  538. #ifndef WIDL_C_INLINE_WRAPPERS
  539. /*** IUnknown methods ***/
  540. #define ISpellChecker_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  541. #define ISpellChecker_AddRef(This) (This)->lpVtbl->AddRef(This)
  542. #define ISpellChecker_Release(This) (This)->lpVtbl->Release(This)
  543. /*** ISpellChecker methods ***/
  544. #define ISpellChecker_get_LanguageTag(This,val) (This)->lpVtbl->get_LanguageTag(This,val)
  545. #define ISpellChecker_Check(This,text,val) (This)->lpVtbl->Check(This,text,val)
  546. #define ISpellChecker_Suggest(This,word,val) (This)->lpVtbl->Suggest(This,word,val)
  547. #define ISpellChecker_Add(This,word) (This)->lpVtbl->Add(This,word)
  548. #define ISpellChecker_Ignore(This,word) (This)->lpVtbl->Ignore(This,word)
  549. #define ISpellChecker_AutoCorrect(This,from,to) (This)->lpVtbl->AutoCorrect(This,from,to)
  550. #define ISpellChecker_GetOptionValue(This,option_id,val) (This)->lpVtbl->GetOptionValue(This,option_id,val)
  551. #define ISpellChecker_get_OptionIds(This,val) (This)->lpVtbl->get_OptionIds(This,val)
  552. #define ISpellChecker_get_Id(This,val) (This)->lpVtbl->get_Id(This,val)
  553. #define ISpellChecker_get_LocalizedName(This,val) (This)->lpVtbl->get_LocalizedName(This,val)
  554. #define ISpellChecker_add_SpellCheckerChanged(This,handler,event_cookie) (This)->lpVtbl->add_SpellCheckerChanged(This,handler,event_cookie)
  555. #define ISpellChecker_remove_SpellCheckerChanged(This,event_cookie) (This)->lpVtbl->remove_SpellCheckerChanged(This,event_cookie)
  556. #define ISpellChecker_GetOptionDescription(This,optionId,val) (This)->lpVtbl->GetOptionDescription(This,optionId,val)
  557. #define ISpellChecker_ComprehensiveCheck(This,text,val) (This)->lpVtbl->ComprehensiveCheck(This,text,val)
  558. #else
  559. /*** IUnknown methods ***/
  560. static FORCEINLINE HRESULT ISpellChecker_QueryInterface(ISpellChecker* This,REFIID riid,void **ppvObject) {
  561. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  562. }
  563. static FORCEINLINE ULONG ISpellChecker_AddRef(ISpellChecker* This) {
  564. return This->lpVtbl->AddRef(This);
  565. }
  566. static FORCEINLINE ULONG ISpellChecker_Release(ISpellChecker* This) {
  567. return This->lpVtbl->Release(This);
  568. }
  569. /*** ISpellChecker methods ***/
  570. static FORCEINLINE HRESULT ISpellChecker_get_LanguageTag(ISpellChecker* This,LPWSTR *val) {
  571. return This->lpVtbl->get_LanguageTag(This,val);
  572. }
  573. static FORCEINLINE HRESULT ISpellChecker_Check(ISpellChecker* This,LPCWSTR text,IEnumSpellingError **val) {
  574. return This->lpVtbl->Check(This,text,val);
  575. }
  576. static FORCEINLINE HRESULT ISpellChecker_Suggest(ISpellChecker* This,LPCWSTR word,IEnumString **val) {
  577. return This->lpVtbl->Suggest(This,word,val);
  578. }
  579. static FORCEINLINE HRESULT ISpellChecker_Add(ISpellChecker* This,LPCWSTR word) {
  580. return This->lpVtbl->Add(This,word);
  581. }
  582. static FORCEINLINE HRESULT ISpellChecker_Ignore(ISpellChecker* This,LPCWSTR word) {
  583. return This->lpVtbl->Ignore(This,word);
  584. }
  585. static FORCEINLINE HRESULT ISpellChecker_AutoCorrect(ISpellChecker* This,LPCWSTR from,LPCWSTR to) {
  586. return This->lpVtbl->AutoCorrect(This,from,to);
  587. }
  588. static FORCEINLINE HRESULT ISpellChecker_GetOptionValue(ISpellChecker* This,LPCWSTR option_id,BYTE *val) {
  589. return This->lpVtbl->GetOptionValue(This,option_id,val);
  590. }
  591. static FORCEINLINE HRESULT ISpellChecker_get_OptionIds(ISpellChecker* This,IEnumString **val) {
  592. return This->lpVtbl->get_OptionIds(This,val);
  593. }
  594. static FORCEINLINE HRESULT ISpellChecker_get_Id(ISpellChecker* This,LPWSTR *val) {
  595. return This->lpVtbl->get_Id(This,val);
  596. }
  597. static FORCEINLINE HRESULT ISpellChecker_get_LocalizedName(ISpellChecker* This,LPWSTR *val) {
  598. return This->lpVtbl->get_LocalizedName(This,val);
  599. }
  600. static FORCEINLINE HRESULT ISpellChecker_add_SpellCheckerChanged(ISpellChecker* This,ISpellCheckerChangedEventHandler *handler,DWORD *event_cookie) {
  601. return This->lpVtbl->add_SpellCheckerChanged(This,handler,event_cookie);
  602. }
  603. static FORCEINLINE HRESULT ISpellChecker_remove_SpellCheckerChanged(ISpellChecker* This,DWORD event_cookie) {
  604. return This->lpVtbl->remove_SpellCheckerChanged(This,event_cookie);
  605. }
  606. static FORCEINLINE HRESULT ISpellChecker_GetOptionDescription(ISpellChecker* This,LPCWSTR optionId,IOptionDescription **val) {
  607. return This->lpVtbl->GetOptionDescription(This,optionId,val);
  608. }
  609. static FORCEINLINE HRESULT ISpellChecker_ComprehensiveCheck(ISpellChecker* This,LPCWSTR text,IEnumSpellingError **val) {
  610. return This->lpVtbl->ComprehensiveCheck(This,text,val);
  611. }
  612. #endif
  613. #endif
  614. #endif
  615. #endif /* __ISpellChecker_INTERFACE_DEFINED__ */
  616. /*****************************************************************************
  617. * ISpellChecker2 interface
  618. */
  619. #ifndef __ISpellChecker2_INTERFACE_DEFINED__
  620. #define __ISpellChecker2_INTERFACE_DEFINED__
  621. DEFINE_GUID(IID_ISpellChecker2, 0xe7ed1c71, 0x87f7, 0x4378, 0xa8,0x40, 0xc9,0x20,0x0d,0xac,0xee,0x47);
  622. #if defined(__cplusplus) && !defined(CINTERFACE)
  623. MIDL_INTERFACE("e7ed1c71-87f7-4378-a840-c9200dacee47")
  624. ISpellChecker2 : public ISpellChecker
  625. {
  626. virtual HRESULT STDMETHODCALLTYPE Remove(
  627. LPCWSTR word) = 0;
  628. };
  629. #ifdef __CRT_UUID_DECL
  630. __CRT_UUID_DECL(ISpellChecker2, 0xe7ed1c71, 0x87f7, 0x4378, 0xa8,0x40, 0xc9,0x20,0x0d,0xac,0xee,0x47)
  631. #endif
  632. #else
  633. typedef struct ISpellChecker2Vtbl {
  634. BEGIN_INTERFACE
  635. /*** IUnknown methods ***/
  636. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  637. ISpellChecker2 *This,
  638. REFIID riid,
  639. void **ppvObject);
  640. ULONG (STDMETHODCALLTYPE *AddRef)(
  641. ISpellChecker2 *This);
  642. ULONG (STDMETHODCALLTYPE *Release)(
  643. ISpellChecker2 *This);
  644. /*** ISpellChecker methods ***/
  645. HRESULT (STDMETHODCALLTYPE *get_LanguageTag)(
  646. ISpellChecker2 *This,
  647. LPWSTR *val);
  648. HRESULT (STDMETHODCALLTYPE *Check)(
  649. ISpellChecker2 *This,
  650. LPCWSTR text,
  651. IEnumSpellingError **val);
  652. HRESULT (STDMETHODCALLTYPE *Suggest)(
  653. ISpellChecker2 *This,
  654. LPCWSTR word,
  655. IEnumString **val);
  656. HRESULT (STDMETHODCALLTYPE *Add)(
  657. ISpellChecker2 *This,
  658. LPCWSTR word);
  659. HRESULT (STDMETHODCALLTYPE *Ignore)(
  660. ISpellChecker2 *This,
  661. LPCWSTR word);
  662. HRESULT (STDMETHODCALLTYPE *AutoCorrect)(
  663. ISpellChecker2 *This,
  664. LPCWSTR from,
  665. LPCWSTR to);
  666. HRESULT (STDMETHODCALLTYPE *GetOptionValue)(
  667. ISpellChecker2 *This,
  668. LPCWSTR option_id,
  669. BYTE *val);
  670. HRESULT (STDMETHODCALLTYPE *get_OptionIds)(
  671. ISpellChecker2 *This,
  672. IEnumString **val);
  673. HRESULT (STDMETHODCALLTYPE *get_Id)(
  674. ISpellChecker2 *This,
  675. LPWSTR *val);
  676. HRESULT (STDMETHODCALLTYPE *get_LocalizedName)(
  677. ISpellChecker2 *This,
  678. LPWSTR *val);
  679. HRESULT (STDMETHODCALLTYPE *add_SpellCheckerChanged)(
  680. ISpellChecker2 *This,
  681. ISpellCheckerChangedEventHandler *handler,
  682. DWORD *event_cookie);
  683. HRESULT (STDMETHODCALLTYPE *remove_SpellCheckerChanged)(
  684. ISpellChecker2 *This,
  685. DWORD event_cookie);
  686. HRESULT (STDMETHODCALLTYPE *GetOptionDescription)(
  687. ISpellChecker2 *This,
  688. LPCWSTR optionId,
  689. IOptionDescription **val);
  690. HRESULT (STDMETHODCALLTYPE *ComprehensiveCheck)(
  691. ISpellChecker2 *This,
  692. LPCWSTR text,
  693. IEnumSpellingError **val);
  694. /*** ISpellChecker2 methods ***/
  695. HRESULT (STDMETHODCALLTYPE *Remove)(
  696. ISpellChecker2 *This,
  697. LPCWSTR word);
  698. END_INTERFACE
  699. } ISpellChecker2Vtbl;
  700. interface ISpellChecker2 {
  701. CONST_VTBL ISpellChecker2Vtbl* lpVtbl;
  702. };
  703. #ifdef COBJMACROS
  704. #ifndef WIDL_C_INLINE_WRAPPERS
  705. /*** IUnknown methods ***/
  706. #define ISpellChecker2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  707. #define ISpellChecker2_AddRef(This) (This)->lpVtbl->AddRef(This)
  708. #define ISpellChecker2_Release(This) (This)->lpVtbl->Release(This)
  709. /*** ISpellChecker methods ***/
  710. #define ISpellChecker2_get_LanguageTag(This,val) (This)->lpVtbl->get_LanguageTag(This,val)
  711. #define ISpellChecker2_Check(This,text,val) (This)->lpVtbl->Check(This,text,val)
  712. #define ISpellChecker2_Suggest(This,word,val) (This)->lpVtbl->Suggest(This,word,val)
  713. #define ISpellChecker2_Add(This,word) (This)->lpVtbl->Add(This,word)
  714. #define ISpellChecker2_Ignore(This,word) (This)->lpVtbl->Ignore(This,word)
  715. #define ISpellChecker2_AutoCorrect(This,from,to) (This)->lpVtbl->AutoCorrect(This,from,to)
  716. #define ISpellChecker2_GetOptionValue(This,option_id,val) (This)->lpVtbl->GetOptionValue(This,option_id,val)
  717. #define ISpellChecker2_get_OptionIds(This,val) (This)->lpVtbl->get_OptionIds(This,val)
  718. #define ISpellChecker2_get_Id(This,val) (This)->lpVtbl->get_Id(This,val)
  719. #define ISpellChecker2_get_LocalizedName(This,val) (This)->lpVtbl->get_LocalizedName(This,val)
  720. #define ISpellChecker2_add_SpellCheckerChanged(This,handler,event_cookie) (This)->lpVtbl->add_SpellCheckerChanged(This,handler,event_cookie)
  721. #define ISpellChecker2_remove_SpellCheckerChanged(This,event_cookie) (This)->lpVtbl->remove_SpellCheckerChanged(This,event_cookie)
  722. #define ISpellChecker2_GetOptionDescription(This,optionId,val) (This)->lpVtbl->GetOptionDescription(This,optionId,val)
  723. #define ISpellChecker2_ComprehensiveCheck(This,text,val) (This)->lpVtbl->ComprehensiveCheck(This,text,val)
  724. /*** ISpellChecker2 methods ***/
  725. #define ISpellChecker2_Remove(This,word) (This)->lpVtbl->Remove(This,word)
  726. #else
  727. /*** IUnknown methods ***/
  728. static FORCEINLINE HRESULT ISpellChecker2_QueryInterface(ISpellChecker2* This,REFIID riid,void **ppvObject) {
  729. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  730. }
  731. static FORCEINLINE ULONG ISpellChecker2_AddRef(ISpellChecker2* This) {
  732. return This->lpVtbl->AddRef(This);
  733. }
  734. static FORCEINLINE ULONG ISpellChecker2_Release(ISpellChecker2* This) {
  735. return This->lpVtbl->Release(This);
  736. }
  737. /*** ISpellChecker methods ***/
  738. static FORCEINLINE HRESULT ISpellChecker2_get_LanguageTag(ISpellChecker2* This,LPWSTR *val) {
  739. return This->lpVtbl->get_LanguageTag(This,val);
  740. }
  741. static FORCEINLINE HRESULT ISpellChecker2_Check(ISpellChecker2* This,LPCWSTR text,IEnumSpellingError **val) {
  742. return This->lpVtbl->Check(This,text,val);
  743. }
  744. static FORCEINLINE HRESULT ISpellChecker2_Suggest(ISpellChecker2* This,LPCWSTR word,IEnumString **val) {
  745. return This->lpVtbl->Suggest(This,word,val);
  746. }
  747. static FORCEINLINE HRESULT ISpellChecker2_Add(ISpellChecker2* This,LPCWSTR word) {
  748. return This->lpVtbl->Add(This,word);
  749. }
  750. static FORCEINLINE HRESULT ISpellChecker2_Ignore(ISpellChecker2* This,LPCWSTR word) {
  751. return This->lpVtbl->Ignore(This,word);
  752. }
  753. static FORCEINLINE HRESULT ISpellChecker2_AutoCorrect(ISpellChecker2* This,LPCWSTR from,LPCWSTR to) {
  754. return This->lpVtbl->AutoCorrect(This,from,to);
  755. }
  756. static FORCEINLINE HRESULT ISpellChecker2_GetOptionValue(ISpellChecker2* This,LPCWSTR option_id,BYTE *val) {
  757. return This->lpVtbl->GetOptionValue(This,option_id,val);
  758. }
  759. static FORCEINLINE HRESULT ISpellChecker2_get_OptionIds(ISpellChecker2* This,IEnumString **val) {
  760. return This->lpVtbl->get_OptionIds(This,val);
  761. }
  762. static FORCEINLINE HRESULT ISpellChecker2_get_Id(ISpellChecker2* This,LPWSTR *val) {
  763. return This->lpVtbl->get_Id(This,val);
  764. }
  765. static FORCEINLINE HRESULT ISpellChecker2_get_LocalizedName(ISpellChecker2* This,LPWSTR *val) {
  766. return This->lpVtbl->get_LocalizedName(This,val);
  767. }
  768. static FORCEINLINE HRESULT ISpellChecker2_add_SpellCheckerChanged(ISpellChecker2* This,ISpellCheckerChangedEventHandler *handler,DWORD *event_cookie) {
  769. return This->lpVtbl->add_SpellCheckerChanged(This,handler,event_cookie);
  770. }
  771. static FORCEINLINE HRESULT ISpellChecker2_remove_SpellCheckerChanged(ISpellChecker2* This,DWORD event_cookie) {
  772. return This->lpVtbl->remove_SpellCheckerChanged(This,event_cookie);
  773. }
  774. static FORCEINLINE HRESULT ISpellChecker2_GetOptionDescription(ISpellChecker2* This,LPCWSTR optionId,IOptionDescription **val) {
  775. return This->lpVtbl->GetOptionDescription(This,optionId,val);
  776. }
  777. static FORCEINLINE HRESULT ISpellChecker2_ComprehensiveCheck(ISpellChecker2* This,LPCWSTR text,IEnumSpellingError **val) {
  778. return This->lpVtbl->ComprehensiveCheck(This,text,val);
  779. }
  780. /*** ISpellChecker2 methods ***/
  781. static FORCEINLINE HRESULT ISpellChecker2_Remove(ISpellChecker2* This,LPCWSTR word) {
  782. return This->lpVtbl->Remove(This,word);
  783. }
  784. #endif
  785. #endif
  786. #endif
  787. #endif /* __ISpellChecker2_INTERFACE_DEFINED__ */
  788. /*****************************************************************************
  789. * ISpellCheckerFactory interface
  790. */
  791. #ifndef __ISpellCheckerFactory_INTERFACE_DEFINED__
  792. #define __ISpellCheckerFactory_INTERFACE_DEFINED__
  793. DEFINE_GUID(IID_ISpellCheckerFactory, 0x8e018a9d, 0x2415, 0x4677, 0xbf,0x08, 0x79,0x4e,0xa6,0x1f,0x94,0xbb);
  794. #if defined(__cplusplus) && !defined(CINTERFACE)
  795. MIDL_INTERFACE("8e018a9d-2415-4677-bf08-794ea61f94bb")
  796. ISpellCheckerFactory : public IUnknown
  797. {
  798. virtual HRESULT STDMETHODCALLTYPE get_SupportedLanguages(
  799. IEnumString **val) = 0;
  800. virtual HRESULT STDMETHODCALLTYPE IsSupported(
  801. LPCWSTR languageTag,
  802. WINBOOL *val) = 0;
  803. virtual HRESULT STDMETHODCALLTYPE CreateSpellChecker(
  804. LPCWSTR languageTag,
  805. ISpellChecker **val) = 0;
  806. };
  807. #ifdef __CRT_UUID_DECL
  808. __CRT_UUID_DECL(ISpellCheckerFactory, 0x8e018a9d, 0x2415, 0x4677, 0xbf,0x08, 0x79,0x4e,0xa6,0x1f,0x94,0xbb)
  809. #endif
  810. #else
  811. typedef struct ISpellCheckerFactoryVtbl {
  812. BEGIN_INTERFACE
  813. /*** IUnknown methods ***/
  814. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  815. ISpellCheckerFactory *This,
  816. REFIID riid,
  817. void **ppvObject);
  818. ULONG (STDMETHODCALLTYPE *AddRef)(
  819. ISpellCheckerFactory *This);
  820. ULONG (STDMETHODCALLTYPE *Release)(
  821. ISpellCheckerFactory *This);
  822. /*** ISpellCheckerFactory methods ***/
  823. HRESULT (STDMETHODCALLTYPE *get_SupportedLanguages)(
  824. ISpellCheckerFactory *This,
  825. IEnumString **val);
  826. HRESULT (STDMETHODCALLTYPE *IsSupported)(
  827. ISpellCheckerFactory *This,
  828. LPCWSTR languageTag,
  829. WINBOOL *val);
  830. HRESULT (STDMETHODCALLTYPE *CreateSpellChecker)(
  831. ISpellCheckerFactory *This,
  832. LPCWSTR languageTag,
  833. ISpellChecker **val);
  834. END_INTERFACE
  835. } ISpellCheckerFactoryVtbl;
  836. interface ISpellCheckerFactory {
  837. CONST_VTBL ISpellCheckerFactoryVtbl* lpVtbl;
  838. };
  839. #ifdef COBJMACROS
  840. #ifndef WIDL_C_INLINE_WRAPPERS
  841. /*** IUnknown methods ***/
  842. #define ISpellCheckerFactory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  843. #define ISpellCheckerFactory_AddRef(This) (This)->lpVtbl->AddRef(This)
  844. #define ISpellCheckerFactory_Release(This) (This)->lpVtbl->Release(This)
  845. /*** ISpellCheckerFactory methods ***/
  846. #define ISpellCheckerFactory_get_SupportedLanguages(This,val) (This)->lpVtbl->get_SupportedLanguages(This,val)
  847. #define ISpellCheckerFactory_IsSupported(This,languageTag,val) (This)->lpVtbl->IsSupported(This,languageTag,val)
  848. #define ISpellCheckerFactory_CreateSpellChecker(This,languageTag,val) (This)->lpVtbl->CreateSpellChecker(This,languageTag,val)
  849. #else
  850. /*** IUnknown methods ***/
  851. static FORCEINLINE HRESULT ISpellCheckerFactory_QueryInterface(ISpellCheckerFactory* This,REFIID riid,void **ppvObject) {
  852. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  853. }
  854. static FORCEINLINE ULONG ISpellCheckerFactory_AddRef(ISpellCheckerFactory* This) {
  855. return This->lpVtbl->AddRef(This);
  856. }
  857. static FORCEINLINE ULONG ISpellCheckerFactory_Release(ISpellCheckerFactory* This) {
  858. return This->lpVtbl->Release(This);
  859. }
  860. /*** ISpellCheckerFactory methods ***/
  861. static FORCEINLINE HRESULT ISpellCheckerFactory_get_SupportedLanguages(ISpellCheckerFactory* This,IEnumString **val) {
  862. return This->lpVtbl->get_SupportedLanguages(This,val);
  863. }
  864. static FORCEINLINE HRESULT ISpellCheckerFactory_IsSupported(ISpellCheckerFactory* This,LPCWSTR languageTag,WINBOOL *val) {
  865. return This->lpVtbl->IsSupported(This,languageTag,val);
  866. }
  867. static FORCEINLINE HRESULT ISpellCheckerFactory_CreateSpellChecker(ISpellCheckerFactory* This,LPCWSTR languageTag,ISpellChecker **val) {
  868. return This->lpVtbl->CreateSpellChecker(This,languageTag,val);
  869. }
  870. #endif
  871. #endif
  872. #endif
  873. #endif /* __ISpellCheckerFactory_INTERFACE_DEFINED__ */
  874. #endif /* WINAPI_PARTITION_APP */
  875. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  876. /*****************************************************************************
  877. * IUserDictionariesRegistrar interface
  878. */
  879. #ifndef __IUserDictionariesRegistrar_INTERFACE_DEFINED__
  880. #define __IUserDictionariesRegistrar_INTERFACE_DEFINED__
  881. DEFINE_GUID(IID_IUserDictionariesRegistrar, 0xaa176b85, 0x0e12, 0x4844, 0x8e,0x1a, 0xee,0xf1,0xda,0x77,0xf5,0x86);
  882. #if defined(__cplusplus) && !defined(CINTERFACE)
  883. MIDL_INTERFACE("aa176b85-0e12-4844-8e1a-eef1da77f586")
  884. IUserDictionariesRegistrar : public IUnknown
  885. {
  886. virtual HRESULT STDMETHODCALLTYPE RegisterUserDictionary(
  887. LPCWSTR dictionaryPath,
  888. LPCWSTR languageTag) = 0;
  889. virtual HRESULT STDMETHODCALLTYPE UnregisterUserDictionary(
  890. LPCWSTR dictionaryPath,
  891. LPCWSTR languageTag) = 0;
  892. };
  893. #ifdef __CRT_UUID_DECL
  894. __CRT_UUID_DECL(IUserDictionariesRegistrar, 0xaa176b85, 0x0e12, 0x4844, 0x8e,0x1a, 0xee,0xf1,0xda,0x77,0xf5,0x86)
  895. #endif
  896. #else
  897. typedef struct IUserDictionariesRegistrarVtbl {
  898. BEGIN_INTERFACE
  899. /*** IUnknown methods ***/
  900. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  901. IUserDictionariesRegistrar *This,
  902. REFIID riid,
  903. void **ppvObject);
  904. ULONG (STDMETHODCALLTYPE *AddRef)(
  905. IUserDictionariesRegistrar *This);
  906. ULONG (STDMETHODCALLTYPE *Release)(
  907. IUserDictionariesRegistrar *This);
  908. /*** IUserDictionariesRegistrar methods ***/
  909. HRESULT (STDMETHODCALLTYPE *RegisterUserDictionary)(
  910. IUserDictionariesRegistrar *This,
  911. LPCWSTR dictionaryPath,
  912. LPCWSTR languageTag);
  913. HRESULT (STDMETHODCALLTYPE *UnregisterUserDictionary)(
  914. IUserDictionariesRegistrar *This,
  915. LPCWSTR dictionaryPath,
  916. LPCWSTR languageTag);
  917. END_INTERFACE
  918. } IUserDictionariesRegistrarVtbl;
  919. interface IUserDictionariesRegistrar {
  920. CONST_VTBL IUserDictionariesRegistrarVtbl* lpVtbl;
  921. };
  922. #ifdef COBJMACROS
  923. #ifndef WIDL_C_INLINE_WRAPPERS
  924. /*** IUnknown methods ***/
  925. #define IUserDictionariesRegistrar_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  926. #define IUserDictionariesRegistrar_AddRef(This) (This)->lpVtbl->AddRef(This)
  927. #define IUserDictionariesRegistrar_Release(This) (This)->lpVtbl->Release(This)
  928. /*** IUserDictionariesRegistrar methods ***/
  929. #define IUserDictionariesRegistrar_RegisterUserDictionary(This,dictionaryPath,languageTag) (This)->lpVtbl->RegisterUserDictionary(This,dictionaryPath,languageTag)
  930. #define IUserDictionariesRegistrar_UnregisterUserDictionary(This,dictionaryPath,languageTag) (This)->lpVtbl->UnregisterUserDictionary(This,dictionaryPath,languageTag)
  931. #else
  932. /*** IUnknown methods ***/
  933. static FORCEINLINE HRESULT IUserDictionariesRegistrar_QueryInterface(IUserDictionariesRegistrar* This,REFIID riid,void **ppvObject) {
  934. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  935. }
  936. static FORCEINLINE ULONG IUserDictionariesRegistrar_AddRef(IUserDictionariesRegistrar* This) {
  937. return This->lpVtbl->AddRef(This);
  938. }
  939. static FORCEINLINE ULONG IUserDictionariesRegistrar_Release(IUserDictionariesRegistrar* This) {
  940. return This->lpVtbl->Release(This);
  941. }
  942. /*** IUserDictionariesRegistrar methods ***/
  943. static FORCEINLINE HRESULT IUserDictionariesRegistrar_RegisterUserDictionary(IUserDictionariesRegistrar* This,LPCWSTR dictionaryPath,LPCWSTR languageTag) {
  944. return This->lpVtbl->RegisterUserDictionary(This,dictionaryPath,languageTag);
  945. }
  946. static FORCEINLINE HRESULT IUserDictionariesRegistrar_UnregisterUserDictionary(IUserDictionariesRegistrar* This,LPCWSTR dictionaryPath,LPCWSTR languageTag) {
  947. return This->lpVtbl->UnregisterUserDictionary(This,dictionaryPath,languageTag);
  948. }
  949. #endif
  950. #endif
  951. #endif
  952. #endif /* __IUserDictionariesRegistrar_INTERFACE_DEFINED__ */
  953. #endif /* WINAPI_PARTITION_DESKTOP */
  954. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
  955. #ifndef __MsSpellCheckLib_LIBRARY_DEFINED__
  956. #define __MsSpellCheckLib_LIBRARY_DEFINED__
  957. DEFINE_GUID(LIBID_MsSpellCheckLib, 0x4a250e01, 0x61ea, 0x400b, 0xa2,0x7d, 0xbf,0x37,0x44,0xbc,0xc9,0xf5);
  958. /*****************************************************************************
  959. * SpellCheckerFactory coclass
  960. */
  961. DEFINE_GUID(CLSID_SpellCheckerFactory, 0x7ab36653, 0x1796, 0x484b, 0xbd,0xfa, 0xe7,0x4f,0x1d,0xb7,0xc1,0xdc);
  962. #ifdef __cplusplus
  963. class DECLSPEC_UUID("7ab36653-1796-484b-bdfa-e74f1db7c1dc") SpellCheckerFactory;
  964. #ifdef __CRT_UUID_DECL
  965. __CRT_UUID_DECL(SpellCheckerFactory, 0x7ab36653, 0x1796, 0x484b, 0xbd,0xfa, 0xe7,0x4f,0x1d,0xb7,0xc1,0xdc)
  966. #endif
  967. #endif
  968. #endif /* __MsSpellCheckLib_LIBRARY_DEFINED__ */
  969. #endif /* WINAPI_PARTITION_APP */
  970. #endif /* MIN_SPELLING_NTDDI */
  971. /* Begin additional prototypes for all interfaces */
  972. /* End additional prototypes */
  973. #ifdef __cplusplus
  974. }
  975. #endif
  976. #endif /* __spellcheck_h__ */