PageRenderTime 57ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/LIBS/Extensions/inc/singlefileeditor.h

http://sando.codeplex.com
C++ Header | 3643 lines | 2329 code | 1224 blank | 90 comment | 24 complexity | c3e1ad9b98b82c322f614b76b2f55154 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.0

Large files files are truncated, but you can click here to view the full file

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 7.00.0499 */
  3. /* Compiler settings for singlefileeditor.idl:
  4. Oicf, W0, 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. /* verify that the <rpcsal.h> version is high enough to compile this file*/
  18. #ifndef __REQUIRED_RPCSAL_H_VERSION__
  19. #define __REQUIRED_RPCSAL_H_VERSION__ 100
  20. #endif
  21. #include "rpc.h"
  22. #include "rpcndr.h"
  23. #ifndef __RPCNDR_H_VERSION__
  24. #error this stub requires an updated version of <rpcndr.h>
  25. #endif // __RPCNDR_H_VERSION__
  26. #ifndef __singlefileeditor_h__
  27. #define __singlefileeditor_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IVsIntellisenseHost_FWD_DEFINED__
  33. #define __IVsIntellisenseHost_FWD_DEFINED__
  34. typedef interface IVsIntellisenseHost IVsIntellisenseHost;
  35. #endif /* __IVsIntellisenseHost_FWD_DEFINED__ */
  36. #ifndef __IVsTextViewIntellisenseHost_FWD_DEFINED__
  37. #define __IVsTextViewIntellisenseHost_FWD_DEFINED__
  38. typedef interface IVsTextViewIntellisenseHost IVsTextViewIntellisenseHost;
  39. #endif /* __IVsTextViewIntellisenseHost_FWD_DEFINED__ */
  40. #ifndef __IVsTextViewIntellisenseHostProvider_FWD_DEFINED__
  41. #define __IVsTextViewIntellisenseHostProvider_FWD_DEFINED__
  42. typedef interface IVsTextViewIntellisenseHostProvider IVsTextViewIntellisenseHostProvider;
  43. #endif /* __IVsTextViewIntellisenseHostProvider_FWD_DEFINED__ */
  44. #ifndef __VsIntellisenseCompletor_FWD_DEFINED__
  45. #define __VsIntellisenseCompletor_FWD_DEFINED__
  46. #ifdef __cplusplus
  47. typedef class VsIntellisenseCompletor VsIntellisenseCompletor;
  48. #else
  49. typedef struct VsIntellisenseCompletor VsIntellisenseCompletor;
  50. #endif /* __cplusplus */
  51. #endif /* __VsIntellisenseCompletor_FWD_DEFINED__ */
  52. #ifndef __IVsIntellisenseCompletor_FWD_DEFINED__
  53. #define __IVsIntellisenseCompletor_FWD_DEFINED__
  54. typedef interface IVsIntellisenseCompletor IVsIntellisenseCompletor;
  55. #endif /* __IVsIntellisenseCompletor_FWD_DEFINED__ */
  56. #ifndef __VsIntellisenseLangTip_FWD_DEFINED__
  57. #define __VsIntellisenseLangTip_FWD_DEFINED__
  58. #ifdef __cplusplus
  59. typedef class VsIntellisenseLangTip VsIntellisenseLangTip;
  60. #else
  61. typedef struct VsIntellisenseLangTip VsIntellisenseLangTip;
  62. #endif /* __cplusplus */
  63. #endif /* __VsIntellisenseLangTip_FWD_DEFINED__ */
  64. #ifndef __IVsIntellisenseLangTip_FWD_DEFINED__
  65. #define __IVsIntellisenseLangTip_FWD_DEFINED__
  66. typedef interface IVsIntellisenseLangTip IVsIntellisenseLangTip;
  67. #endif /* __IVsIntellisenseLangTip_FWD_DEFINED__ */
  68. #ifndef __IVsContainedLanguageHost_FWD_DEFINED__
  69. #define __IVsContainedLanguageHost_FWD_DEFINED__
  70. typedef interface IVsContainedLanguageHost IVsContainedLanguageHost;
  71. #endif /* __IVsContainedLanguageHost_FWD_DEFINED__ */
  72. #ifndef __IVsContainedLanguageHostEvents_FWD_DEFINED__
  73. #define __IVsContainedLanguageHostEvents_FWD_DEFINED__
  74. typedef interface IVsContainedLanguageHostEvents IVsContainedLanguageHostEvents;
  75. #endif /* __IVsContainedLanguageHostEvents_FWD_DEFINED__ */
  76. #ifndef __IVsContainedLanguage_FWD_DEFINED__
  77. #define __IVsContainedLanguage_FWD_DEFINED__
  78. typedef interface IVsContainedLanguage IVsContainedLanguage;
  79. #endif /* __IVsContainedLanguage_FWD_DEFINED__ */
  80. #ifndef __IVsContainedLanguageColorizer_FWD_DEFINED__
  81. #define __IVsContainedLanguageColorizer_FWD_DEFINED__
  82. typedef interface IVsContainedLanguageColorizer IVsContainedLanguageColorizer;
  83. #endif /* __IVsContainedLanguageColorizer_FWD_DEFINED__ */
  84. #ifndef __IVsContainedLanguageCodeSupport_FWD_DEFINED__
  85. #define __IVsContainedLanguageCodeSupport_FWD_DEFINED__
  86. typedef interface IVsContainedLanguageCodeSupport IVsContainedLanguageCodeSupport;
  87. #endif /* __IVsContainedLanguageCodeSupport_FWD_DEFINED__ */
  88. #ifndef __IVsContainedLanguageStaticEventBinding_FWD_DEFINED__
  89. #define __IVsContainedLanguageStaticEventBinding_FWD_DEFINED__
  90. typedef interface IVsContainedLanguageStaticEventBinding IVsContainedLanguageStaticEventBinding;
  91. #endif /* __IVsContainedLanguageStaticEventBinding_FWD_DEFINED__ */
  92. #ifndef __IVsWebFormDesignerSupport_FWD_DEFINED__
  93. #define __IVsWebFormDesignerSupport_FWD_DEFINED__
  94. typedef interface IVsWebFormDesignerSupport IVsWebFormDesignerSupport;
  95. #endif /* __IVsWebFormDesignerSupport_FWD_DEFINED__ */
  96. #ifndef __IVsEnumCodeBlocks_FWD_DEFINED__
  97. #define __IVsEnumCodeBlocks_FWD_DEFINED__
  98. typedef interface IVsEnumCodeBlocks IVsEnumCodeBlocks;
  99. #endif /* __IVsEnumCodeBlocks_FWD_DEFINED__ */
  100. #ifndef __IVsContainedCode_FWD_DEFINED__
  101. #define __IVsContainedCode_FWD_DEFINED__
  102. typedef interface IVsContainedCode IVsContainedCode;
  103. #endif /* __IVsContainedCode_FWD_DEFINED__ */
  104. #ifndef __IVsContainedLanguageFactory_FWD_DEFINED__
  105. #define __IVsContainedLanguageFactory_FWD_DEFINED__
  106. typedef interface IVsContainedLanguageFactory IVsContainedLanguageFactory;
  107. #endif /* __IVsContainedLanguageFactory_FWD_DEFINED__ */
  108. #ifndef __IVsContainedLanguageProjectNameProvider_FWD_DEFINED__
  109. #define __IVsContainedLanguageProjectNameProvider_FWD_DEFINED__
  110. typedef interface IVsContainedLanguageProjectNameProvider IVsContainedLanguageProjectNameProvider;
  111. #endif /* __IVsContainedLanguageProjectNameProvider_FWD_DEFINED__ */
  112. #ifndef __IVsEnumBufferCoordinatorSpans_FWD_DEFINED__
  113. #define __IVsEnumBufferCoordinatorSpans_FWD_DEFINED__
  114. typedef interface IVsEnumBufferCoordinatorSpans IVsEnumBufferCoordinatorSpans;
  115. #endif /* __IVsEnumBufferCoordinatorSpans_FWD_DEFINED__ */
  116. #ifndef __VsTextBufferCoordinator_FWD_DEFINED__
  117. #define __VsTextBufferCoordinator_FWD_DEFINED__
  118. #ifdef __cplusplus
  119. typedef class VsTextBufferCoordinator VsTextBufferCoordinator;
  120. #else
  121. typedef struct VsTextBufferCoordinator VsTextBufferCoordinator;
  122. #endif /* __cplusplus */
  123. #endif /* __VsTextBufferCoordinator_FWD_DEFINED__ */
  124. #ifndef __IVsTextBufferCoordinator_FWD_DEFINED__
  125. #define __IVsTextBufferCoordinator_FWD_DEFINED__
  126. typedef interface IVsTextBufferCoordinator IVsTextBufferCoordinator;
  127. #endif /* __IVsTextBufferCoordinator_FWD_DEFINED__ */
  128. #ifndef __IVsSetSpanMappingEvents_FWD_DEFINED__
  129. #define __IVsSetSpanMappingEvents_FWD_DEFINED__
  130. typedef interface IVsSetSpanMappingEvents IVsSetSpanMappingEvents;
  131. #endif /* __IVsSetSpanMappingEvents_FWD_DEFINED__ */
  132. #ifndef __IVsExternalCompletionSet_FWD_DEFINED__
  133. #define __IVsExternalCompletionSet_FWD_DEFINED__
  134. typedef interface IVsExternalCompletionSet IVsExternalCompletionSet;
  135. #endif /* __IVsExternalCompletionSet_FWD_DEFINED__ */
  136. #ifndef __IVsExpansionIntellisenseHost_FWD_DEFINED__
  137. #define __IVsExpansionIntellisenseHost_FWD_DEFINED__
  138. typedef interface IVsExpansionIntellisenseHost IVsExpansionIntellisenseHost;
  139. #endif /* __IVsExpansionIntellisenseHost_FWD_DEFINED__ */
  140. #ifndef __IVsReportExternalErrors_FWD_DEFINED__
  141. #define __IVsReportExternalErrors_FWD_DEFINED__
  142. typedef interface IVsReportExternalErrors IVsReportExternalErrors;
  143. #endif /* __IVsReportExternalErrors_FWD_DEFINED__ */
  144. #ifndef __IVsEnumExternalErrors_FWD_DEFINED__
  145. #define __IVsEnumExternalErrors_FWD_DEFINED__
  146. typedef interface IVsEnumExternalErrors IVsEnumExternalErrors;
  147. #endif /* __IVsEnumExternalErrors_FWD_DEFINED__ */
  148. /* header files for imported files */
  149. #include "oaidl.h"
  150. #include "oleidl.h"
  151. #include "textmgr.h"
  152. #include "textmgr2.h"
  153. #include "vsshell.h"
  154. #ifdef __cplusplus
  155. extern "C"{
  156. #endif
  157. /* interface __MIDL_itf_singlefileeditor_0000_0000 */
  158. /* [local] */
  159. #pragma once
  160. typedef struct _TEXTSPANPAIR
  161. {
  162. TextSpan span1;
  163. TextSpan span2;
  164. } TextSpanPair;
  165. typedef struct _TEXTSPANANDCOOKIE
  166. {
  167. ULONG ulHTMLCookie;
  168. TextSpan CodeSpan;
  169. } TextSpanAndCookie;
  170. enum IntellisenseHostFlags
  171. { IHF_READONLYCONTEXT = 0x1,
  172. IHF_NOSEPARATESUBJECT = 0x2,
  173. IHF_SINGLELINESUBJECT = 0x4,
  174. IHF_FORCECOMMITTOCONTEXT = 0x8,
  175. IHF_OVERTYPE = 0x10
  176. } ;
  177. typedef
  178. enum _CODEMEMBERTYPE
  179. { CODEMEMBERTYPE_EVENTS = 0x1,
  180. CODEMEMBERTYPE_EVENT_HANDLERS = 0x2,
  181. CODEMEMBERTYPE_USER_FUNCTIONS = 0x4
  182. } CODEMEMBERTYPE;
  183. enum ContainedLanguageRefreshMode
  184. { CLRM_COMPILEFILE = 1,
  185. CLRM_COMPILEPROJECT = 2
  186. } ;
  187. typedef
  188. enum _CONTAINEDLANGUAGERENAMETYPE
  189. { CLRT_CLASS = 0,
  190. CLRT_CLASSMEMBER = ( CLRT_CLASS + 1 ) ,
  191. CLRT_NAMESPACE = ( CLRT_CLASSMEMBER + 1 ) ,
  192. CLRT_OTHER = ( CLRT_NAMESPACE + 1 )
  193. } ContainedLanguageRenameType;
  194. extern RPC_IF_HANDLE __MIDL_itf_singlefileeditor_0000_0000_v0_0_c_ifspec;
  195. extern RPC_IF_HANDLE __MIDL_itf_singlefileeditor_0000_0000_v0_0_s_ifspec;
  196. #ifndef __SingleFileEditor_LIBRARY_DEFINED__
  197. #define __SingleFileEditor_LIBRARY_DEFINED__
  198. /* library SingleFileEditor */
  199. /* [version][uuid] */
  200. #define E_CONTAINEDLANGUAGE_CANNOTFINDITEM MAKE_HRESULT(1, FACILITY_ITF, 0x8003)
  201. #define E_CONTAINEDLANGUAGE_RENAMECANCELLED MAKE_HRESULT(1, FACILITY_ITF, 0x8004)
  202. typedef struct _tag_NewSpanMapping
  203. {
  204. TextSpanPair tspSpans;
  205. VARIANT varUserData;
  206. } NewSpanMapping;
  207. typedef struct _tag_ExternalError
  208. {
  209. long iLine;
  210. long iCol;
  211. long iErrorID;
  212. BOOL fError;
  213. BSTR bstrText;
  214. BSTR bstrFileName;
  215. } ExternalError;
  216. enum BufferCoordinatorReplicationDirection
  217. { BCRD_PRIMARY_TO_SECONDARY = 1,
  218. BCRD_SECONDARY_TO_PRIMARY = 2
  219. } ;
  220. enum _BufferCoordinatorMappingMode
  221. { BCMM_NORMAL = 0,
  222. BCMM_EXTENDEDLEFT = 0x2,
  223. BCMM_EXTENDEDRIGHT = 0x1,
  224. BCMM_EXTENDED = 0x3,
  225. BCMM_ENTIREBUFFER = 0x4
  226. } ;
  227. typedef DWORD BufferCoordinatorMappingMode;
  228. EXTERN_C const IID LIBID_SingleFileEditor;
  229. #ifndef __IVsIntellisenseHost_INTERFACE_DEFINED__
  230. #define __IVsIntellisenseHost_INTERFACE_DEFINED__
  231. /* interface IVsIntellisenseHost */
  232. /* [object][uuid] */
  233. EXTERN_C const IID IID_IVsIntellisenseHost;
  234. #if defined(__cplusplus) && !defined(CINTERFACE)
  235. MIDL_INTERFACE("0377986B-C450-453c-A7BE-67116C9129A6")
  236. IVsIntellisenseHost : public IOleCommandTarget
  237. {
  238. public:
  239. virtual HRESULT STDMETHODCALLTYPE GetHostFlags(
  240. /* [retval][out] */ __RPC__out DWORD *pdwFlags) = 0;
  241. virtual HRESULT STDMETHODCALLTYPE GetContextBuffer(
  242. /* [retval][out] */ __RPC__deref_out_opt IVsTextLines **ppCtxBuffer) = 0;
  243. virtual HRESULT STDMETHODCALLTYPE GetContextFocalPoint(
  244. /* [out] */ __RPC__out TextSpan *pSpan,
  245. __RPC__in long *piLen) = 0;
  246. virtual HRESULT STDMETHODCALLTYPE SetContextCaretPos(
  247. /* [in] */ long iLine,
  248. /* [in] */ long iIndex) = 0;
  249. virtual HRESULT STDMETHODCALLTYPE GetContextCaretPos(
  250. /* [out] */ __RPC__out long *piLine,
  251. /* [out] */ __RPC__out long *piIndex) = 0;
  252. virtual HRESULT STDMETHODCALLTYPE SetContextSelection(
  253. /* [in] */ long iStartLine,
  254. /* [in] */ long iStartIndex,
  255. /* [in] */ long iEndLine,
  256. /* [in] */ long iEndIndex) = 0;
  257. virtual HRESULT STDMETHODCALLTYPE GetContextSelection(
  258. /* [out] */ __RPC__out TextSpan *pSelectionSpan) = 0;
  259. virtual HRESULT STDMETHODCALLTYPE GetSubjectText(
  260. /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubjectText) = 0;
  261. virtual HRESULT STDMETHODCALLTYPE SetSubjectCaretPos(
  262. /* [in] */ long iIndex) = 0;
  263. virtual HRESULT STDMETHODCALLTYPE GetSubjectCaretPos(
  264. /* [out] */ __RPC__out long *piIndex) = 0;
  265. virtual HRESULT STDMETHODCALLTYPE SetSubjectSelection(
  266. /* [in] */ long iAnchorIndex,
  267. /* [in] */ long iEndIndex) = 0;
  268. virtual HRESULT STDMETHODCALLTYPE GetSubjectSelection(
  269. /* [out] */ __RPC__out long *piAnchorIndex,
  270. /* [out] */ __RPC__out long *piEndIndex) = 0;
  271. virtual HRESULT STDMETHODCALLTYPE ReplaceSubjectTextSpan(
  272. /* [in] */ long iStartIndex,
  273. /* [in] */ long iEndIndex,
  274. /* [in] */ __RPC__in LPCWSTR pszText) = 0;
  275. virtual HRESULT STDMETHODCALLTYPE UpdateCompletionStatus(
  276. /* [in] */ __RPC__in_opt IVsCompletionSet *pCompSet,
  277. /* [in] */ DWORD dwFlags) = 0;
  278. virtual HRESULT STDMETHODCALLTYPE UpdateTipWindow(
  279. /* [in] */ __RPC__in_opt IVsTipWindow *pTipWindow,
  280. /* [in] */ DWORD dwFlags) = 0;
  281. virtual HRESULT STDMETHODCALLTYPE HighlightMatchingBrace(
  282. /* [in] */ DWORD dwFlags,
  283. /* [in] */ ULONG cSpans,
  284. /* [size_is][in] */ __RPC__in_ecount_full(cSpans) TextSpan *rgBaseSpans) = 0;
  285. virtual HRESULT STDMETHODCALLTYPE BeforeCompletorCommit( void) = 0;
  286. virtual HRESULT STDMETHODCALLTYPE AfterCompletorCommit( void) = 0;
  287. virtual HRESULT STDMETHODCALLTYPE GetServiceProvider(
  288. /* [out] */ __RPC__deref_out_opt IServiceProvider **ppSP) = 0;
  289. virtual HRESULT STDMETHODCALLTYPE GetHostWindow(
  290. /* [out] */ __RPC__deref_out_opt HWND *hwnd) = 0;
  291. virtual HRESULT STDMETHODCALLTYPE GetContextLocation(
  292. /* [in] */ long iPos,
  293. /* [in] */ long iLen,
  294. /* [in] */ BOOL fUseCaretPosition,
  295. /* [out] */ __RPC__out RECT *prc,
  296. /* [out] */ __RPC__out long *piTopX) = 0;
  297. virtual HRESULT STDMETHODCALLTYPE UpdateSmartTagWindow(
  298. /* [in] */ __RPC__in_opt IVsSmartTagTipWindow *pSmartTagWnd,
  299. /* [in] */ DWORD dwFlags) = 0;
  300. virtual HRESULT STDMETHODCALLTYPE GetSmartTagRect(
  301. /* [out] */ __RPC__out RECT *rcSmartTag) = 0;
  302. };
  303. #else /* C style interface */
  304. typedef struct IVsIntellisenseHostVtbl
  305. {
  306. BEGIN_INTERFACE
  307. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  308. IVsIntellisenseHost * This,
  309. /* [in] */ __RPC__in REFIID riid,
  310. /* [iid_is][out] */
  311. __RPC__deref_out void **ppvObject);
  312. ULONG ( STDMETHODCALLTYPE *AddRef )(
  313. IVsIntellisenseHost * This);
  314. ULONG ( STDMETHODCALLTYPE *Release )(
  315. IVsIntellisenseHost * This);
  316. /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *QueryStatus )(
  317. IVsIntellisenseHost * This,
  318. /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup,
  319. /* [in] */ ULONG cCmds,
  320. /* [out][in][size_is] */ __RPC__inout_ecount_full(cCmds) OLECMD prgCmds[ ],
  321. /* [unique][out][in] */ __RPC__inout_opt OLECMDTEXT *pCmdText);
  322. HRESULT ( STDMETHODCALLTYPE *Exec )(
  323. IVsIntellisenseHost * This,
  324. /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup,
  325. /* [in] */ DWORD nCmdID,
  326. /* [in] */ DWORD nCmdexecopt,
  327. /* [unique][in] */ __RPC__in_opt VARIANT *pvaIn,
  328. /* [unique][out][in] */ __RPC__inout_opt VARIANT *pvaOut);
  329. HRESULT ( STDMETHODCALLTYPE *GetHostFlags )(
  330. IVsIntellisenseHost * This,
  331. /* [retval][out] */ __RPC__out DWORD *pdwFlags);
  332. HRESULT ( STDMETHODCALLTYPE *GetContextBuffer )(
  333. IVsIntellisenseHost * This,
  334. /* [retval][out] */ __RPC__deref_out_opt IVsTextLines **ppCtxBuffer);
  335. HRESULT ( STDMETHODCALLTYPE *GetContextFocalPoint )(
  336. IVsIntellisenseHost * This,
  337. /* [out] */ __RPC__out TextSpan *pSpan,
  338. __RPC__in long *piLen);
  339. HRESULT ( STDMETHODCALLTYPE *SetContextCaretPos )(
  340. IVsIntellisenseHost * This,
  341. /* [in] */ long iLine,
  342. /* [in] */ long iIndex);
  343. HRESULT ( STDMETHODCALLTYPE *GetContextCaretPos )(
  344. IVsIntellisenseHost * This,
  345. /* [out] */ __RPC__out long *piLine,
  346. /* [out] */ __RPC__out long *piIndex);
  347. HRESULT ( STDMETHODCALLTYPE *SetContextSelection )(
  348. IVsIntellisenseHost * This,
  349. /* [in] */ long iStartLine,
  350. /* [in] */ long iStartIndex,
  351. /* [in] */ long iEndLine,
  352. /* [in] */ long iEndIndex);
  353. HRESULT ( STDMETHODCALLTYPE *GetContextSelection )(
  354. IVsIntellisenseHost * This,
  355. /* [out] */ __RPC__out TextSpan *pSelectionSpan);
  356. HRESULT ( STDMETHODCALLTYPE *GetSubjectText )(
  357. IVsIntellisenseHost * This,
  358. /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubjectText);
  359. HRESULT ( STDMETHODCALLTYPE *SetSubjectCaretPos )(
  360. IVsIntellisenseHost * This,
  361. /* [in] */ long iIndex);
  362. HRESULT ( STDMETHODCALLTYPE *GetSubjectCaretPos )(
  363. IVsIntellisenseHost * This,
  364. /* [out] */ __RPC__out long *piIndex);
  365. HRESULT ( STDMETHODCALLTYPE *SetSubjectSelection )(
  366. IVsIntellisenseHost * This,
  367. /* [in] */ long iAnchorIndex,
  368. /* [in] */ long iEndIndex);
  369. HRESULT ( STDMETHODCALLTYPE *GetSubjectSelection )(
  370. IVsIntellisenseHost * This,
  371. /* [out] */ __RPC__out long *piAnchorIndex,
  372. /* [out] */ __RPC__out long *piEndIndex);
  373. HRESULT ( STDMETHODCALLTYPE *ReplaceSubjectTextSpan )(
  374. IVsIntellisenseHost * This,
  375. /* [in] */ long iStartIndex,
  376. /* [in] */ long iEndIndex,
  377. /* [in] */ __RPC__in LPCWSTR pszText);
  378. HRESULT ( STDMETHODCALLTYPE *UpdateCompletionStatus )(
  379. IVsIntellisenseHost * This,
  380. /* [in] */ __RPC__in_opt IVsCompletionSet *pCompSet,
  381. /* [in] */ DWORD dwFlags);
  382. HRESULT ( STDMETHODCALLTYPE *UpdateTipWindow )(
  383. IVsIntellisenseHost * This,
  384. /* [in] */ __RPC__in_opt IVsTipWindow *pTipWindow,
  385. /* [in] */ DWORD dwFlags);
  386. HRESULT ( STDMETHODCALLTYPE *HighlightMatchingBrace )(
  387. IVsIntellisenseHost * This,
  388. /* [in] */ DWORD dwFlags,
  389. /* [in] */ ULONG cSpans,
  390. /* [size_is][in] */ __RPC__in_ecount_full(cSpans) TextSpan *rgBaseSpans);
  391. HRESULT ( STDMETHODCALLTYPE *BeforeCompletorCommit )(
  392. IVsIntellisenseHost * This);
  393. HRESULT ( STDMETHODCALLTYPE *AfterCompletorCommit )(
  394. IVsIntellisenseHost * This);
  395. HRESULT ( STDMETHODCALLTYPE *GetServiceProvider )(
  396. IVsIntellisenseHost * This,
  397. /* [out] */ __RPC__deref_out_opt IServiceProvider **ppSP);
  398. HRESULT ( STDMETHODCALLTYPE *GetHostWindow )(
  399. IVsIntellisenseHost * This,
  400. /* [out] */ __RPC__deref_out_opt HWND *hwnd);
  401. HRESULT ( STDMETHODCALLTYPE *GetContextLocation )(
  402. IVsIntellisenseHost * This,
  403. /* [in] */ long iPos,
  404. /* [in] */ long iLen,
  405. /* [in] */ BOOL fUseCaretPosition,
  406. /* [out] */ __RPC__out RECT *prc,
  407. /* [out] */ __RPC__out long *piTopX);
  408. HRESULT ( STDMETHODCALLTYPE *UpdateSmartTagWindow )(
  409. IVsIntellisenseHost * This,
  410. /* [in] */ __RPC__in_opt IVsSmartTagTipWindow *pSmartTagWnd,
  411. /* [in] */ DWORD dwFlags);
  412. HRESULT ( STDMETHODCALLTYPE *GetSmartTagRect )(
  413. IVsIntellisenseHost * This,
  414. /* [out] */ __RPC__out RECT *rcSmartTag);
  415. END_INTERFACE
  416. } IVsIntellisenseHostVtbl;
  417. interface IVsIntellisenseHost
  418. {
  419. CONST_VTBL struct IVsIntellisenseHostVtbl *lpVtbl;
  420. };
  421. #ifdef COBJMACROS
  422. #define IVsIntellisenseHost_QueryInterface(This,riid,ppvObject) \
  423. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  424. #define IVsIntellisenseHost_AddRef(This) \
  425. ( (This)->lpVtbl -> AddRef(This) )
  426. #define IVsIntellisenseHost_Release(This) \
  427. ( (This)->lpVtbl -> Release(This) )
  428. #define IVsIntellisenseHost_QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) \
  429. ( (This)->lpVtbl -> QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) )
  430. #define IVsIntellisenseHost_Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) \
  431. ( (This)->lpVtbl -> Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) )
  432. #define IVsIntellisenseHost_GetHostFlags(This,pdwFlags) \
  433. ( (This)->lpVtbl -> GetHostFlags(This,pdwFlags) )
  434. #define IVsIntellisenseHost_GetContextBuffer(This,ppCtxBuffer) \
  435. ( (This)->lpVtbl -> GetContextBuffer(This,ppCtxBuffer) )
  436. #define IVsIntellisenseHost_GetContextFocalPoint(This,pSpan,piLen) \
  437. ( (This)->lpVtbl -> GetContextFocalPoint(This,pSpan,piLen) )
  438. #define IVsIntellisenseHost_SetContextCaretPos(This,iLine,iIndex) \
  439. ( (This)->lpVtbl -> SetContextCaretPos(This,iLine,iIndex) )
  440. #define IVsIntellisenseHost_GetContextCaretPos(This,piLine,piIndex) \
  441. ( (This)->lpVtbl -> GetContextCaretPos(This,piLine,piIndex) )
  442. #define IVsIntellisenseHost_SetContextSelection(This,iStartLine,iStartIndex,iEndLine,iEndIndex) \
  443. ( (This)->lpVtbl -> SetContextSelection(This,iStartLine,iStartIndex,iEndLine,iEndIndex) )
  444. #define IVsIntellisenseHost_GetContextSelection(This,pSelectionSpan) \
  445. ( (This)->lpVtbl -> GetContextSelection(This,pSelectionSpan) )
  446. #define IVsIntellisenseHost_GetSubjectText(This,pbstrSubjectText) \
  447. ( (This)->lpVtbl -> GetSubjectText(This,pbstrSubjectText) )
  448. #define IVsIntellisenseHost_SetSubjectCaretPos(This,iIndex) \
  449. ( (This)->lpVtbl -> SetSubjectCaretPos(This,iIndex) )
  450. #define IVsIntellisenseHost_GetSubjectCaretPos(This,piIndex) \
  451. ( (This)->lpVtbl -> GetSubjectCaretPos(This,piIndex) )
  452. #define IVsIntellisenseHost_SetSubjectSelection(This,iAnchorIndex,iEndIndex) \
  453. ( (This)->lpVtbl -> SetSubjectSelection(This,iAnchorIndex,iEndIndex) )
  454. #define IVsIntellisenseHost_GetSubjectSelection(This,piAnchorIndex,piEndIndex) \
  455. ( (This)->lpVtbl -> GetSubjectSelection(This,piAnchorIndex,piEndIndex) )
  456. #define IVsIntellisenseHost_ReplaceSubjectTextSpan(This,iStartIndex,iEndIndex,pszText) \
  457. ( (This)->lpVtbl -> ReplaceSubjectTextSpan(This,iStartIndex,iEndIndex,pszText) )
  458. #define IVsIntellisenseHost_UpdateCompletionStatus(This,pCompSet,dwFlags) \
  459. ( (This)->lpVtbl -> UpdateCompletionStatus(This,pCompSet,dwFlags) )
  460. #define IVsIntellisenseHost_UpdateTipWindow(This,pTipWindow,dwFlags) \
  461. ( (This)->lpVtbl -> UpdateTipWindow(This,pTipWindow,dwFlags) )
  462. #define IVsIntellisenseHost_HighlightMatchingBrace(This,dwFlags,cSpans,rgBaseSpans) \
  463. ( (This)->lpVtbl -> HighlightMatchingBrace(This,dwFlags,cSpans,rgBaseSpans) )
  464. #define IVsIntellisenseHost_BeforeCompletorCommit(This) \
  465. ( (This)->lpVtbl -> BeforeCompletorCommit(This) )
  466. #define IVsIntellisenseHost_AfterCompletorCommit(This) \
  467. ( (This)->lpVtbl -> AfterCompletorCommit(This) )
  468. #define IVsIntellisenseHost_GetServiceProvider(This,ppSP) \
  469. ( (This)->lpVtbl -> GetServiceProvider(This,ppSP) )
  470. #define IVsIntellisenseHost_GetHostWindow(This,hwnd) \
  471. ( (This)->lpVtbl -> GetHostWindow(This,hwnd) )
  472. #define IVsIntellisenseHost_GetContextLocation(This,iPos,iLen,fUseCaretPosition,prc,piTopX) \
  473. ( (This)->lpVtbl -> GetContextLocation(This,iPos,iLen,fUseCaretPosition,prc,piTopX) )
  474. #define IVsIntellisenseHost_UpdateSmartTagWindow(This,pSmartTagWnd,dwFlags) \
  475. ( (This)->lpVtbl -> UpdateSmartTagWindow(This,pSmartTagWnd,dwFlags) )
  476. #define IVsIntellisenseHost_GetSmartTagRect(This,rcSmartTag) \
  477. ( (This)->lpVtbl -> GetSmartTagRect(This,rcSmartTag) )
  478. #endif /* COBJMACROS */
  479. #endif /* C style interface */
  480. #endif /* __IVsIntellisenseHost_INTERFACE_DEFINED__ */
  481. #ifndef __IVsTextViewIntellisenseHost_INTERFACE_DEFINED__
  482. #define __IVsTextViewIntellisenseHost_INTERFACE_DEFINED__
  483. /* interface IVsTextViewIntellisenseHost */
  484. /* [object][uuid] */
  485. EXTERN_C const IID IID_IVsTextViewIntellisenseHost;
  486. #if defined(__cplusplus) && !defined(CINTERFACE)
  487. MIDL_INTERFACE("0816A38B-2B41-4d2a-B1FF-23C1E28D8A18")
  488. IVsTextViewIntellisenseHost : public IVsIntellisenseHost
  489. {
  490. public:
  491. virtual HRESULT STDMETHODCALLTYPE SetSubjectFromPrimaryBuffer(
  492. __RPC__in TextSpan *pSpanInPrimary) = 0;
  493. };
  494. #else /* C style interface */
  495. typedef struct IVsTextViewIntellisenseHostVtbl
  496. {
  497. BEGIN_INTERFACE
  498. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  499. IVsTextViewIntellisenseHost * This,
  500. /* [in] */ __RPC__in REFIID riid,
  501. /* [iid_is][out] */
  502. __RPC__deref_out void **ppvObject);
  503. ULONG ( STDMETHODCALLTYPE *AddRef )(
  504. IVsTextViewIntellisenseHost * This);
  505. ULONG ( STDMETHODCALLTYPE *Release )(
  506. IVsTextViewIntellisenseHost * This);
  507. /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *QueryStatus )(
  508. IVsTextViewIntellisenseHost * This,
  509. /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup,
  510. /* [in] */ ULONG cCmds,
  511. /* [out][in][size_is] */ __RPC__inout_ecount_full(cCmds) OLECMD prgCmds[ ],
  512. /* [unique][out][in] */ __RPC__inout_opt OLECMDTEXT *pCmdText);
  513. HRESULT ( STDMETHODCALLTYPE *Exec )(
  514. IVsTextViewIntellisenseHost * This,
  515. /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup,
  516. /* [in] */ DWORD nCmdID,
  517. /* [in] */ DWORD nCmdexecopt,
  518. /* [unique][in] */ __RPC__in_opt VARIANT *pvaIn,
  519. /* [unique][out][in] */ __RPC__inout_opt VARIANT *pvaOut);
  520. HRESULT ( STDMETHODCALLTYPE *GetHostFlags )(
  521. IVsTextViewIntellisenseHost * This,
  522. /* [retval][out] */ __RPC__out DWORD *pdwFlags);
  523. HRESULT ( STDMETHODCALLTYPE *GetContextBuffer )(
  524. IVsTextViewIntellisenseHost * This,
  525. /* [retval][out] */ __RPC__deref_out_opt IVsTextLines **ppCtxBuffer);
  526. HRESULT ( STDMETHODCALLTYPE *GetContextFocalPoint )(
  527. IVsTextViewIntellisenseHost * This,
  528. /* [out] */ __RPC__out TextSpan *pSpan,
  529. __RPC__in long *piLen);
  530. HRESULT ( STDMETHODCALLTYPE *SetContextCaretPos )(
  531. IVsTextViewIntellisenseHost * This,
  532. /* [in] */ long iLine,
  533. /* [in] */ long iIndex);
  534. HRESULT ( STDMETHODCALLTYPE *GetContextCaretPos )(
  535. IVsTextViewIntellisenseHost * This,
  536. /* [out] */ __RPC__out long *piLine,
  537. /* [out] */ __RPC__out long *piIndex);
  538. HRESULT ( STDMETHODCALLTYPE *SetContextSelection )(
  539. IVsTextViewIntellisenseHost * This,
  540. /* [in] */ long iStartLine,
  541. /* [in] */ long iStartIndex,
  542. /* [in] */ long iEndLine,
  543. /* [in] */ long iEndIndex);
  544. HRESULT ( STDMETHODCALLTYPE *GetContextSelection )(
  545. IVsTextViewIntellisenseHost * This,
  546. /* [out] */ __RPC__out TextSpan *pSelectionSpan);
  547. HRESULT ( STDMETHODCALLTYPE *GetSubjectText )(
  548. IVsTextViewIntellisenseHost * This,
  549. /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubjectText);
  550. HRESULT ( STDMETHODCALLTYPE *SetSubjectCaretPos )(
  551. IVsTextViewIntellisenseHost * This,
  552. /* [in] */ long iIndex);
  553. HRESULT ( STDMETHODCALLTYPE *GetSubjectCaretPos )(
  554. IVsTextViewIntellisenseHost * This,
  555. /* [out] */ __RPC__out long *piIndex);
  556. HRESULT ( STDMETHODCALLTYPE *SetSubjectSelection )(
  557. IVsTextViewIntellisenseHost * This,
  558. /* [in] */ long iAnchorIndex,
  559. /* [in] */ long iEndIndex);
  560. HRESULT ( STDMETHODCALLTYPE *GetSubjectSelection )(
  561. IVsTextViewIntellisenseHost * This,
  562. /* [out] */ __RPC__out long *piAnchorIndex,
  563. /* [out] */ __RPC__out long *piEndIndex);
  564. HRESULT ( STDMETHODCALLTYPE *ReplaceSubjectTextSpan )(
  565. IVsTextViewIntellisenseHost * This,
  566. /* [in] */ long iStartIndex,
  567. /* [in] */ long iEndIndex,
  568. /* [in] */ __RPC__in LPCWSTR pszText);
  569. HRESULT ( STDMETHODCALLTYPE *UpdateCompletionStatus )(
  570. IVsTextViewIntellisenseHost * This,
  571. /* [in] */ __RPC__in_opt IVsCompletionSet *pCompSet,
  572. /* [in] */ DWORD dwFlags);
  573. HRESULT ( STDMETHODCALLTYPE *UpdateTipWindow )(
  574. IVsTextViewIntellisenseHost * This,
  575. /* [in] */ __RPC__in_opt IVsTipWindow *pTipWindow,
  576. /* [in] */ DWORD dwFlags);
  577. HRESULT ( STDMETHODCALLTYPE *HighlightMatchingBrace )(
  578. IVsTextViewIntellisenseHost * This,
  579. /* [in] */ DWORD dwFlags,
  580. /* [in] */ ULONG cSpans,
  581. /* [size_is][in] */ __RPC__in_ecount_full(cSpans) TextSpan *rgBaseSpans);
  582. HRESULT ( STDMETHODCALLTYPE *BeforeCompletorCommit )(
  583. IVsTextViewIntellisenseHost * This);
  584. HRESULT ( STDMETHODCALLTYPE *AfterCompletorCommit )(
  585. IVsTextViewIntellisenseHost * This);
  586. HRESULT ( STDMETHODCALLTYPE *GetServiceProvider )(
  587. IVsTextViewIntellisenseHost * This,
  588. /* [out] */ __RPC__deref_out_opt IServiceProvider **ppSP);
  589. HRESULT ( STDMETHODCALLTYPE *GetHostWindow )(
  590. IVsTextViewIntellisenseHost * This,
  591. /* [out] */ __RPC__deref_out_opt HWND *hwnd);
  592. HRESULT ( STDMETHODCALLTYPE *GetContextLocation )(
  593. IVsTextViewIntellisenseHost * This,
  594. /* [in] */ long iPos,
  595. /* [in] */ long iLen,
  596. /* [in] */ BOOL fUseCaretPosition,
  597. /* [out] */ __RPC__out RECT *prc,
  598. /* [out] */ __RPC__out long *piTopX);
  599. HRESULT ( STDMETHODCALLTYPE *UpdateSmartTagWindow )(
  600. IVsTextViewIntellisenseHost * This,
  601. /* [in] */ __RPC__in_opt IVsSmartTagTipWindow *pSmartTagWnd,
  602. /* [in] */ DWORD dwFlags);
  603. HRESULT ( STDMETHODCALLTYPE *GetSmartTagRect )(
  604. IVsTextViewIntellisenseHost * This,
  605. /* [out] */ __RPC__out RECT *rcSmartTag);
  606. HRESULT ( STDMETHODCALLTYPE *SetSubjectFromPrimaryBuffer )(
  607. IVsTextViewIntellisenseHost * This,
  608. __RPC__in TextSpan *pSpanInPrimary);
  609. END_INTERFACE
  610. } IVsTextViewIntellisenseHostVtbl;
  611. interface IVsTextViewIntellisenseHost
  612. {
  613. CONST_VTBL struct IVsTextViewIntellisenseHostVtbl *lpVtbl;
  614. };
  615. #ifdef COBJMACROS
  616. #define IVsTextViewIntellisenseHost_QueryInterface(This,riid,ppvObject) \
  617. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  618. #define IVsTextViewIntellisenseHost_AddRef(This) \
  619. ( (This)->lpVtbl -> AddRef(This) )
  620. #define IVsTextViewIntellisenseHost_Release(This) \
  621. ( (This)->lpVtbl -> Release(This) )
  622. #define IVsTextViewIntellisenseHost_QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) \
  623. ( (This)->lpVtbl -> QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) )
  624. #define IVsTextViewIntellisenseHost_Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) \
  625. ( (This)->lpVtbl -> Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) )
  626. #define IVsTextViewIntellisenseHost_GetHostFlags(This,pdwFlags) \
  627. ( (This)->lpVtbl -> GetHostFlags(This,pdwFlags) )
  628. #define IVsTextViewIntellisenseHost_GetContextBuffer(This,ppCtxBuffer) \
  629. ( (This)->lpVtbl -> GetContextBuffer(This,ppCtxBuffer) )
  630. #define IVsTextViewIntellisenseHost_GetContextFocalPoint(This,pSpan,piLen) \
  631. ( (This)->lpVtbl -> GetContextFocalPoint(This,pSpan,piLen) )
  632. #define IVsTextViewIntellisenseHost_SetContextCaretPos(This,iLine,iIndex) \
  633. ( (This)->lpVtbl -> SetContextCaretPos(This,iLine,iIndex) )
  634. #define IVsTextViewIntellisenseHost_GetContextCaretPos(This,piLine,piIndex) \
  635. ( (This)->lpVtbl -> GetContextCaretPos(This,piLine,piIndex) )
  636. #define IVsTextViewIntellisenseHost_SetContextSelection(This,iStartLine,iStartIndex,iEndLine,iEndIndex) \
  637. ( (This)->lpVtbl -> SetContextSelection(This,iStartLine,iStartIndex,iEndLine,iEndIndex) )
  638. #define IVsTextViewIntellisenseHost_GetContextSelection(This,pSelectionSpan) \
  639. ( (This)->lpVtbl -> GetContextSelection(This,pSelectionSpan) )
  640. #define IVsTextViewIntellisenseHost_GetSubjectText(This,pbstrSubjectText) \
  641. ( (This)->lpVtbl -> GetSubjectText(This,pbstrSubjectText) )
  642. #define IVsTextViewIntellisenseHost_SetSubjectCaretPos(This,iIndex) \
  643. ( (This)->lpVtbl -> SetSubjectCaretPos(This,iIndex) )
  644. #define IVsTextViewIntellisenseHost_GetSubjectCaretPos(This,piIndex) \
  645. ( (This)->lpVtbl -> GetSubjectCaretPos(This,piIndex) )
  646. #define IVsTextViewIntellisenseHost_SetSubjectSelection(This,iAnchorIndex,iEndIndex) \
  647. ( (This)->lpVtbl -> SetSubjectSelection(This,iAnchorIndex,iEndIndex) )
  648. #define IVsTextViewIntellisenseHost_GetSubjectSelection(This,piAnchorIndex,piEndIndex) \
  649. ( (This)->lpVtbl -> GetSubjectSelection(This,piAnchorIndex,piEndIndex) )
  650. #define IVsTextViewIntellisenseHost_ReplaceSubjectTextSpan(This,iStartIndex,iEndIndex,pszText) \
  651. ( (This)->lpVtbl -> ReplaceSubjectTextSpan(This,iStartIndex,iEndIndex,pszText) )
  652. #define IVsTextViewIntellisenseHost_UpdateCompletionStatus(This,pCompSet,dwFlags) \
  653. ( (This)->lpVtbl -> UpdateCompletionStatus(This,pCompSet,dwFlags) )
  654. #define IVsTextViewIntellisenseHost_UpdateTipWindow(This,pTipWindow,dwFlags) \
  655. ( (This)->lpVtbl -> UpdateTipWindow(This,pTipWindow,dwFlags) )
  656. #define IVsTextViewIntellisenseHost_HighlightMatchingBrace(This,dwFlags,cSpans,rgBaseSpans) \
  657. ( (This)->lpVtbl -> HighlightMatchingBrace(This,dwFlags,cSpans,rgBaseSpans) )
  658. #define IVsTextViewIntellisenseHost_BeforeCompletorCommit(This) \
  659. ( (This)->lpVtbl -> BeforeCompletorCommit(This) )
  660. #define IVsTextViewIntellisenseHost_AfterCompletorCommit(This) \
  661. ( (This)->lpVtbl -> AfterCompletorCommit(This) )
  662. #define IVsTextViewIntellisenseHost_GetServiceProvider(This,ppSP) \
  663. ( (This)->lpVtbl -> GetServiceProvider(This,ppSP) )
  664. #define IVsTextViewIntellisenseHost_GetHostWindow(This,hwnd) \
  665. ( (This)->lpVtbl -> GetHostWindow(This,hwnd) )
  666. #define IVsTextViewIntellisenseHost_GetContextLocation(This,iPos,iLen,fUseCaretPosition,prc,piTopX) \
  667. ( (This)->lpVtbl -> GetContextLocation(This,iPos,iLen,fUseCaretPosition,prc,piTopX) )
  668. #define IVsTextViewIntellisenseHost_UpdateSmartTagWindow(This,pSmartTagWnd,dwFlags) \
  669. ( (This)->lpVtbl -> UpdateSmartTagWindow(This,pSmartTagWnd,dwFlags) )
  670. #define IVsTextViewIntellisenseHost_GetSmartTagRect(This,rcSmartTag) \
  671. ( (This)->lpVtbl -> GetSmartTagRect(This,rcSmartTag) )
  672. #define IVsTextViewIntellisenseHost_SetSubjectFromPrimaryBuffer(This,pSpanInPrimary) \
  673. ( (This)->lpVtbl -> SetSubjectFromPrimaryBuffer(This,pSpanInPrimary) )
  674. #endif /* COBJMACROS */
  675. #endif /* C style interface */
  676. #endif /* __IVsTextViewIntellisenseHost_INTERFACE_DEFINED__ */
  677. #ifndef __IVsTextViewIntellisenseHostProvider_INTERFACE_DEFINED__
  678. #define __IVsTextViewIntellisenseHostProvider_INTERFACE_DEFINED__
  679. /* interface IVsTextViewIntellisenseHostProvider */
  680. /* [object][uuid] */
  681. EXTERN_C const IID IID_IVsTextViewIntellisenseHostProvider;
  682. #if defined(__cplusplus) && !defined(CINTERFACE)
  683. MIDL_INTERFACE("2E758295-344B-48d6-86AC-BD81F89CB4B8")
  684. IVsTextViewIntellisenseHostProvider : public IUnknown
  685. {
  686. public:
  687. virtual HRESULT STDMETHODCALLTYPE CreateIntellisenseHost(
  688. /* [in] */ __RPC__in_opt IVsTextBufferCoordinator *pBufferCoordinator,
  689. /* [in] */ __RPC__in REFIID riid,
  690. /* [iid_is][out] */ __RPC__deref_out_opt void **ppunkHost) = 0;
  691. };
  692. #else /* C style interface */
  693. typedef struct IVsTextViewIntellisenseHostProviderVtbl
  694. {
  695. BEGIN_INTERFACE
  696. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  697. IVsTextViewIntellisenseHostProvider * This,
  698. /* [in] */ __RPC__in REFIID riid,
  699. /* [iid_is][out] */
  700. __RPC__deref_out void **ppvObject);
  701. ULONG ( STDMETHODCALLTYPE *AddRef )(
  702. IVsTextViewIntellisenseHostProvider * This);
  703. ULONG ( STDMETHODCALLTYPE *Release )(
  704. IVsTextViewIntellisenseHostProvider * This);
  705. HRESULT ( STDMETHODCALLTYPE *CreateIntellisenseHost )(
  706. IVsTextViewIntellisenseHostProvider * This,
  707. /* [in] */ __RPC__in_opt IVsTextBufferCoordinator *pBufferCoordinator,
  708. /* [in] */ __RPC__in REFIID riid,
  709. /* [iid_is][out] */ __RPC__deref_out_opt void **ppunkHost);
  710. END_INTERFACE
  711. } IVsTextViewIntellisenseHostProviderVtbl;
  712. interface IVsTextViewIntellisenseHostProvider
  713. {
  714. CONST_VTBL struct IVsTextViewIntellisenseHostProviderVtbl *lpVtbl;
  715. };
  716. #ifdef COBJMACROS
  717. #define IVsTextViewIntellisenseHostProvider_QueryInterface(This,riid,ppvObject) \
  718. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  719. #define IVsTextViewIntellisenseHostProvider_AddRef(This) \
  720. ( (This)->lpVtbl -> AddRef(This) )
  721. #define IVsTextViewIntellisenseHostProvider_Release(This) \
  722. ( (This)->lpVtbl -> Release(This) )
  723. #define IVsTextViewIntellisenseHostProvider_CreateIntellisenseHost(This,pBufferCoordinator,riid,ppunkHost) \
  724. ( (This)->lpVtbl -> CreateIntellisenseHost(This,pBufferCoordinator,riid,ppunkHost) )
  725. #endif /* COBJMACROS */
  726. #endif /* C style interface */
  727. #endif /* __IVsTextViewIntellisenseHostProvider_INTERFACE_DEFINED__ */
  728. EXTERN_C const CLSID CLSID_VsIntellisenseCompletor;
  729. #ifdef __cplusplus
  730. class DECLSPEC_UUID("F2073DB0-75B9-43ae-8681-0962C0CD4BE2")
  731. VsIntellisenseCompletor;
  732. #endif
  733. #ifndef __IVsIntellisenseCompletor_INTERFACE_DEFINED__
  734. #define __IVsIntellisenseCompletor_INTERFACE_DEFINED__
  735. /* interface IVsIntellisenseCompletor */
  736. /* [object][uuid] */
  737. EXTERN_C const IID IID_IVsIntellisenseCompletor;
  738. #if defined(__cplusplus) && !defined(CINTERFACE)
  739. MIDL_INTERFACE("05DFCF7A-C78A-4e20-AAFB-4A0F4D26E0FB")
  740. IVsIntellisenseCompletor : public IOleCommandTarget
  741. {
  742. public:
  743. virtual HRESULT STDMETHODCALLTYPE Initialize(
  744. __RPC__in_opt IVsIntellisenseHost *pHost,
  745. __RPC__in HWND hwndParent) = 0;
  746. virtual HRESULT STDMETHODCALLTYPE Update(
  747. __RPC__in_opt IVsCompletionSet *pCompSet,
  748. DWORD dwFlags) = 0;
  749. virtual HRESULT STDMETHODCALLTYPE GetWidth(
  750. __RPC__in DWORD *dwWidth) = 0;
  751. virtual HRESULT STDMETHODCALLTYPE GetHeight(
  752. __RPC__in DWORD *dwHeight) = 0;
  753. virtual HRESULT STDMETHODCALLTYPE GetCompletionSpan(
  754. __RPC__in TextSpan *ts) = 0;
  755. virtual HRESULT STDMETHODCALLTYPE SetLocation(
  756. __RPC__in POINT *p) = 0;
  757. virtual HRESULT STDMETHODCALLTYPE Hide( void) = 0;
  758. virtual HRESULT STDMETHODCALLTYPE IsActive(
  759. /* [out] */ __RPC__out BOOL *pfIsActive) = 0;
  760. virtual HRESULT STDMETHODCALLTYPE GetWindowHandle(
  761. /* [out] */ __RPC__deref_out_opt HWND *phwnd) = 0;
  762. };
  763. #else /* C style interface */
  764. typedef struct IVsIntellisenseCompletorVtbl
  765. {
  766. BEGIN_INTERFACE
  767. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  768. IVsIntellisenseCompletor * This,
  769. /* [in] */ __RPC__in REFIID riid,
  770. /* [iid_is][out] */
  771. __RPC__deref_out void **ppvObject);
  772. ULONG ( STDMETHODCALLTYPE *AddRef )(
  773. IVsIntellisenseCompletor * This);
  774. ULONG ( STDMETHODCALLTYPE *Release )(
  775. IVsIntellisenseCompletor * This);
  776. /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *QueryStatus )(
  777. IVsIntellisenseCompletor * This,
  778. /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup,
  779. /* [in] */ ULONG cCmds,
  780. /* [out][in][size_is] */ __RPC__inout_ecount_full(cCmds) OLECMD prgCmds[ ],
  781. /* [unique][out][in] */ __RPC__inout_opt OLECMDTEXT *pCmdText);
  782. HRESULT ( STDMETHODCALLTYPE *Exec )(
  783. IVsIntellisenseCompletor * This,
  784. /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup,
  785. /* [in] */ DWORD nCmdID,
  786. /* [in] */ DWORD nCmdexecopt,
  787. /* [unique][in] */ __RPC__in_opt VARIANT *pvaIn,
  788. /* [unique][out][in] */ __RPC__inout_opt VARIANT *pvaOut);
  789. HRESULT ( STDMETHODCALLTYPE *Initialize )(
  790. IVsIntellisenseCompletor * This,
  791. __RPC__in_opt IVsIntellisenseHost *pHost,
  792. __RPC__in HWND hwndParent);
  793. HRESULT ( STDMETHODCALLTYPE *Update )(
  794. IVsIntellisenseCompletor * This,
  795. __RPC__in_opt IVsCompletionSet *pCompSet,
  796. DWORD dwFlags);
  797. HRESULT ( STDMETHODCALLTYPE *GetWidth )(
  798. IVsIntellisenseCompletor * This,
  799. __RPC__in DWORD *dwWidth);
  800. HRESULT ( STDMETHODCALLTYPE *GetHeight )(
  801. IVsIntellisenseCompletor * This,
  802. __RPC__in DWORD *dwHeight);
  803. HRESULT ( STDMETHODCALLTYPE *GetCompletionSpan )(
  804. IVsIntellisenseCompletor * This,
  805. __RPC__in TextSpan *ts);
  806. HRESULT ( STDMETHODCALLTYPE *SetLocation )(
  807. IVsIntellisenseCompletor * This,
  808. __RPC__in POINT *p);
  809. HRESULT ( STDMETHODCALLTYPE *Hide )(
  810. IVsIntellisenseCompletor * This);
  811. HRESULT ( STDMETHODCALLTYPE *IsActive )(
  812. IVsIntellisenseCompletor * This,
  813. /* [out] */ __RPC__out BOOL *pfIsActive);
  814. HRESULT ( STDMETHODCALLTYPE *GetWindowHandle )(
  815. IVsIntellisenseCompletor * This,
  816. /* [out] */ __RPC__deref_out_opt HWND *phwnd);
  817. END_INTERFACE
  818. } IVsIntellisenseCompletorVtbl;
  819. interface IVsIntellisenseCompletor
  820. {
  821. CONST_VTBL struct IVsIntellisenseCompletorVtbl *lpVtbl;
  822. };
  823. #ifdef COBJMACROS
  824. #define IVsIntellisenseCompletor_QueryInterface(This,riid,ppvObject) \
  825. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  826. #define IVsIntellisenseCompletor_AddRef(This) \
  827. ( (This)->lpVtbl -> AddRef(This) )
  828. #define IVsIntellisenseCompletor_Release(This) \
  829. ( (This)->lpVtbl -> Release(This) )
  830. #define IVsIntellisenseCompletor_QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) \
  831. ( (This)->lpVtbl -> QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) )
  832. #define IVsIntellisenseCompletor_Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) \
  833. ( (This)->lpVtbl -> Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) )
  834. #define IVsIntellisenseCompletor_Initialize(This,pHost,hwndParent) \
  835. ( (This)->lpVtbl -> Initialize(This,pHost,hwndParent) )
  836. #define IVsIntellisenseCompletor_Update(This,pCompSet,dwFlags) \
  837. ( (This)->lpVtbl -> Update(This,pCompSet,dwFlags) )
  838. #define IVsIntellisenseCompletor_GetWidth(This,dwWidth) \
  839. ( (This)->lpVtbl -> GetWidth(This,dwWidth) )
  840. #define IVsIntellisenseCompletor_GetHeight(This,dwHeight) \
  841. ( (This)->lpVtbl -> GetHeight(This,dwHeight) )
  842. #define IVsIntellisenseCompletor_GetCompletionSpan(This,ts) \
  843. ( (This)->lpVtbl -> GetCompletionSpan(This,ts) )
  844. #define IVsIntellisenseCompletor_SetLocation(This,p) \
  845. ( (This)->lpVtbl -> SetLocation(This,p) )
  846. #define IVsIntellisenseCompletor_Hide(This) \
  847. ( (This)->lpVtbl -> Hide(This) )
  848. #define IVsIntellisenseCompletor_IsActive(This,pfIsActive) \
  849. ( (This)->lpVtbl -> IsActive(This,pfIsActive) )
  850. #define IVsIntellisenseCompletor_GetWindowHandle(This,phwnd) \
  851. ( (This)->lpVtbl -> GetWindowHandle(This,phwnd) )
  852. #endif /* COBJMACROS */
  853. #endif /* C style interface */
  854. #endif /* __IVsIntellisenseCompletor_INTERFACE_DEFINED__ */
  855. EXTERN_C const CLSID CLSID_VsIntellisenseLangTip;
  856. #ifdef __cplusplus
  857. class DECLSPEC_UUID("39F4B568-7166-42b3-87E6-6B856864AE55")
  858. VsIntellisenseLangTip;
  859. #endif
  860. #ifndef __IVsIntellisenseLangTip_INTERFACE_DEFINED__
  861. #define __IVsIntellisenseLangTip_INTERFACE_DEFINED__
  862. /* interface IVsIntellisenseLangTip */
  863. /* [object][uuid] */
  864. EXTERN_C const IID IID_IVsIntellisenseLangTip;
  865. #if defined(__cplusplus) && !defined(CINTERFACE)
  866. MIDL_INTERFACE("1E34D422-7120-4d9e-96FF-E880B665D30D")
  867. IVsIntellisenseLangTip : public IUnknown
  868. {
  869. public:
  870. virtual HRESULT STDMETHODCALLTYPE Initialize(
  871. /* [in] */ __RPC__in_opt IVsIntellisenseHost *pHost) = 0;
  872. virtual HRESULT STDMETHODCALLTYPE GetSizePreferences(
  873. /* [in] */ __RPC__in RECT *prcCtxBounds,
  874. /* [in] */ __RPC__in TIPSIZEDATA *pSizeData) = 0;
  875. virtual HRESULT STDMETHODCALLTYPE Create(
  876. /* [in] */ __RPC__in_opt IVsTipWindow *pTipWnd) = 0;
  877. virtual HRESULT STDMETHODCALLTYPE Update(
  878. /* [in] */ __RPC__in_opt IVsTipWindow *pTipWnd,
  879. /* [in] */ DWORD dwFlags) = 0;
  880. virtual HRESULT STDMETHODCALLTYPE UpdatePosition( void) = 0;
  881. virtual HRESULT STDMETHODCALLTYPE GetSizeY(
  882. /* [out] */ __RPC__out short *pSizeY) = 0;
  883. virtual HRESULT STDMETHODCALLTYPE Close(
  884. /* [in] */ BOOL fDeleteThis) = 0;
  885. virtual HRESULT STDMETHODCALLTYPE IsActive(
  886. /* [out] */ __RPC__out BOOL *pfIsActive) = 0;
  887. virtual HRESULT STDMETHODCALLTYPE GetOverloadCount(
  888. /* [out] */ __RPC__out long *plOverloadCount) = 0;
  889. virtual HRESULT STDMETHODCALLTYPE ScrollUp( void) = 0;
  890. virtual HRESULT STDMETHODCALLTYPE ScrollDown( void) = 0;
  891. };
  892. #else /* C style interface */
  893. typedef struct IVsIntellisenseLangTipVtbl
  894. {
  895. BEGIN_INTERFACE
  896. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  897. IVsIntellisenseLangTip * This,
  898. /* [in] */ __RPC__in REFIID riid,
  899. /* [iid_is][out] */
  900. __RPC__deref_out void **ppvObject);
  901. ULONG ( STDMETHODCALLTYPE *AddRef )(
  902. IVsIntellisenseLangTip * This);
  903. ULONG ( STDMETHODCALLTYPE *Release )(
  904. IVsIntellisenseLangTip * This);
  905. HRESULT ( STDMETHODCALLTYPE *Initialize )(
  906. IVsIntellisenseLangTip * This,
  907. /* [in] */ __RPC__in_opt IVsIntellisenseHost *pHost);
  908. HRESULT ( STDMETHODCALLTYPE *GetSizePreferences )(
  909. IVsIntellisenseLangTip * This,
  910. /* [in] */ __RPC__in RECT *prcCtxBounds,
  911. /* [in] */ __RPC__in TIPSIZEDATA *pSizeData);
  912. HRESULT ( STDMETHODCALLTYPE *Create )(
  913. IVsIntellisenseLangTip * This,
  914. /* [in] */ __RPC__in_opt IVsTipWindow *pTipWnd);
  915. HRESULT ( STDMETHODCALLTYPE *Update )(
  916. IVsIntellisenseLangTip * This,
  917. /* [in] */ __RPC__in_opt IVsTipWindow *pTipWnd,
  918. /* [in] */ DWORD dwFlags);
  919. HRESULT ( STDMETHODCALLTYPE *UpdatePosition )(
  920. IVsIntellisenseLangTip * This);
  921. HRESULT ( STDMETHODCALLTYPE *GetSizeY )(
  922. IVsIntellisenseLangTip * This,
  923. /* [out] */ __RPC__out short *pSizeY);
  924. HRESULT ( STDMETHODCALLTYPE *Close )(
  925. IVsIntellisenseLangTip * This,
  926. /* [in] */ BOOL fDeleteThis);
  927. HRESULT ( STDMETHODCALLTYPE *IsActive )(
  928. IVsIntellisenseLangTip * This,
  929. /* [out] */ __RPC__out BOOL *pfIsActive);
  930. HRESULT ( STDMETHODCALLTYPE *GetOverloadCount )(
  931. IVsIntellisenseLangTip * This,
  932. /* [out] */ __RPC__out long *plOverloadCount);
  933. HRESULT ( STDMETHODCALLTYPE *ScrollUp )(
  934. IVsIntellisenseLangTip * This);
  935. HRESULT ( STDMETHODCALLTYPE *ScrollDown )(
  936. IVsIntellisenseLangTip * This);
  937. END_INTERFACE
  938. } IVsIntellisenseLangTipVtbl;
  939. interface IVsIntellisenseLangTip
  940. {
  941. CONST_VTBL struct IVsInt

Large files files are truncated, but you can click here to view the full file