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

1647 lines
47 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for docobj.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext
  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__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __docobj_h__
  27. #define __docobj_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IOleDocument_FWD_DEFINED__
  33. #define __IOleDocument_FWD_DEFINED__
  34. typedef interface IOleDocument IOleDocument;
  35. #endif /* __IOleDocument_FWD_DEFINED__ */
  36. #ifndef __IOleDocumentSite_FWD_DEFINED__
  37. #define __IOleDocumentSite_FWD_DEFINED__
  38. typedef interface IOleDocumentSite IOleDocumentSite;
  39. #endif /* __IOleDocumentSite_FWD_DEFINED__ */
  40. #ifndef __IOleDocumentView_FWD_DEFINED__
  41. #define __IOleDocumentView_FWD_DEFINED__
  42. typedef interface IOleDocumentView IOleDocumentView;
  43. #endif /* __IOleDocumentView_FWD_DEFINED__ */
  44. #ifndef __IEnumOleDocumentViews_FWD_DEFINED__
  45. #define __IEnumOleDocumentViews_FWD_DEFINED__
  46. typedef interface IEnumOleDocumentViews IEnumOleDocumentViews;
  47. #endif /* __IEnumOleDocumentViews_FWD_DEFINED__ */
  48. #ifndef __IContinueCallback_FWD_DEFINED__
  49. #define __IContinueCallback_FWD_DEFINED__
  50. typedef interface IContinueCallback IContinueCallback;
  51. #endif /* __IContinueCallback_FWD_DEFINED__ */
  52. #ifndef __IPrint_FWD_DEFINED__
  53. #define __IPrint_FWD_DEFINED__
  54. typedef interface IPrint IPrint;
  55. #endif /* __IPrint_FWD_DEFINED__ */
  56. #ifndef __IOleCommandTarget_FWD_DEFINED__
  57. #define __IOleCommandTarget_FWD_DEFINED__
  58. typedef interface IOleCommandTarget IOleCommandTarget;
  59. #endif /* __IOleCommandTarget_FWD_DEFINED__ */
  60. /* header files for imported files */
  61. #include "ocidl.h"
  62. #ifdef __cplusplus
  63. extern "C"{
  64. #endif
  65. void * __RPC_USER MIDL_user_allocate(size_t);
  66. void __RPC_USER MIDL_user_free( void * );
  67. /* interface __MIDL_itf_docobj_0000 */
  68. /* [local] */
  69. //=--------------------------------------------------------------------------=
  70. // DocObj.h
  71. //=--------------------------------------------------------------------------=
  72. // (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.
  73. //
  74. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  75. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  76. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  77. // PARTICULAR PURPOSE.
  78. //=--------------------------------------------------------------------------=
  79. #pragma comment(lib,"uuid.lib")
  80. //--------------------------------------------------------------------------
  81. // OLE Document Object Interfaces.
  82. ////////////////////////////////////////////////////////////////////////////
  83. // Interface Definitions
  84. #ifndef _LPOLEDOCUMENT_DEFINED
  85. #define _LPOLEDOCUMENT_DEFINED
  86. extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_v0_0_c_ifspec;
  87. extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_v0_0_s_ifspec;
  88. #ifndef __IOleDocument_INTERFACE_DEFINED__
  89. #define __IOleDocument_INTERFACE_DEFINED__
  90. /* interface IOleDocument */
  91. /* [unique][uuid][object] */
  92. typedef /* [unique] */ IOleDocument *LPOLEDOCUMENT;
  93. typedef /* [public] */
  94. enum __MIDL_IOleDocument_0001
  95. { DOCMISC_CANCREATEMULTIPLEVIEWS = 1,
  96. DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2,
  97. DOCMISC_CANTOPENEDIT = 4,
  98. DOCMISC_NOFILESUPPORT = 8
  99. } DOCMISC;
  100. EXTERN_C const IID IID_IOleDocument;
  101. #if defined(__cplusplus) && !defined(CINTERFACE)
  102. MIDL_INTERFACE("b722bcc5-4e68-101b-a2bc-00aa00404770")
  103. IOleDocument : public IUnknown
  104. {
  105. public:
  106. virtual HRESULT STDMETHODCALLTYPE CreateView(
  107. /* [unique][in] */ IOleInPlaceSite *pIPSite,
  108. /* [unique][in] */ IStream *pstm,
  109. /* [in] */ DWORD dwReserved,
  110. /* [out] */ IOleDocumentView **ppView) = 0;
  111. virtual HRESULT STDMETHODCALLTYPE GetDocMiscStatus(
  112. /* [out] */ DWORD *pdwStatus) = 0;
  113. virtual HRESULT STDMETHODCALLTYPE EnumViews(
  114. /* [out] */ IEnumOleDocumentViews **ppEnum,
  115. /* [out] */ IOleDocumentView **ppView) = 0;
  116. };
  117. #else /* C style interface */
  118. typedef struct IOleDocumentVtbl
  119. {
  120. BEGIN_INTERFACE
  121. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  122. IOleDocument * This,
  123. /* [in] */ REFIID riid,
  124. /* [iid_is][out] */ void **ppvObject);
  125. ULONG ( STDMETHODCALLTYPE *AddRef )(
  126. IOleDocument * This);
  127. ULONG ( STDMETHODCALLTYPE *Release )(
  128. IOleDocument * This);
  129. HRESULT ( STDMETHODCALLTYPE *CreateView )(
  130. IOleDocument * This,
  131. /* [unique][in] */ IOleInPlaceSite *pIPSite,
  132. /* [unique][in] */ IStream *pstm,
  133. /* [in] */ DWORD dwReserved,
  134. /* [out] */ IOleDocumentView **ppView);
  135. HRESULT ( STDMETHODCALLTYPE *GetDocMiscStatus )(
  136. IOleDocument * This,
  137. /* [out] */ DWORD *pdwStatus);
  138. HRESULT ( STDMETHODCALLTYPE *EnumViews )(
  139. IOleDocument * This,
  140. /* [out] */ IEnumOleDocumentViews **ppEnum,
  141. /* [out] */ IOleDocumentView **ppView);
  142. END_INTERFACE
  143. } IOleDocumentVtbl;
  144. interface IOleDocument
  145. {
  146. CONST_VTBL struct IOleDocumentVtbl *lpVtbl;
  147. };
  148. #ifdef COBJMACROS
  149. #define IOleDocument_QueryInterface(This,riid,ppvObject) \
  150. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  151. #define IOleDocument_AddRef(This) \
  152. (This)->lpVtbl -> AddRef(This)
  153. #define IOleDocument_Release(This) \
  154. (This)->lpVtbl -> Release(This)
  155. #define IOleDocument_CreateView(This,pIPSite,pstm,dwReserved,ppView) \
  156. (This)->lpVtbl -> CreateView(This,pIPSite,pstm,dwReserved,ppView)
  157. #define IOleDocument_GetDocMiscStatus(This,pdwStatus) \
  158. (This)->lpVtbl -> GetDocMiscStatus(This,pdwStatus)
  159. #define IOleDocument_EnumViews(This,ppEnum,ppView) \
  160. (This)->lpVtbl -> EnumViews(This,ppEnum,ppView)
  161. #endif /* COBJMACROS */
  162. #endif /* C style interface */
  163. HRESULT STDMETHODCALLTYPE IOleDocument_CreateView_Proxy(
  164. IOleDocument * This,
  165. /* [unique][in] */ IOleInPlaceSite *pIPSite,
  166. /* [unique][in] */ IStream *pstm,
  167. /* [in] */ DWORD dwReserved,
  168. /* [out] */ IOleDocumentView **ppView);
  169. void __RPC_STUB IOleDocument_CreateView_Stub(
  170. IRpcStubBuffer *This,
  171. IRpcChannelBuffer *_pRpcChannelBuffer,
  172. PRPC_MESSAGE _pRpcMessage,
  173. DWORD *_pdwStubPhase);
  174. HRESULT STDMETHODCALLTYPE IOleDocument_GetDocMiscStatus_Proxy(
  175. IOleDocument * This,
  176. /* [out] */ DWORD *pdwStatus);
  177. void __RPC_STUB IOleDocument_GetDocMiscStatus_Stub(
  178. IRpcStubBuffer *This,
  179. IRpcChannelBuffer *_pRpcChannelBuffer,
  180. PRPC_MESSAGE _pRpcMessage,
  181. DWORD *_pdwStubPhase);
  182. HRESULT STDMETHODCALLTYPE IOleDocument_EnumViews_Proxy(
  183. IOleDocument * This,
  184. /* [out] */ IEnumOleDocumentViews **ppEnum,
  185. /* [out] */ IOleDocumentView **ppView);
  186. void __RPC_STUB IOleDocument_EnumViews_Stub(
  187. IRpcStubBuffer *This,
  188. IRpcChannelBuffer *_pRpcChannelBuffer,
  189. PRPC_MESSAGE _pRpcMessage,
  190. DWORD *_pdwStubPhase);
  191. #endif /* __IOleDocument_INTERFACE_DEFINED__ */
  192. /* interface __MIDL_itf_docobj_0261 */
  193. /* [local] */
  194. #endif
  195. #ifndef _LPOLEDOCUMENTSITE_DEFINED
  196. #define _LPOLEDOCUMENTSITE_DEFINED
  197. extern RPC_IF_HANDLE __MIDL_itf_docobj_0261_v0_0_c_ifspec;
  198. extern RPC_IF_HANDLE __MIDL_itf_docobj_0261_v0_0_s_ifspec;
  199. #ifndef __IOleDocumentSite_INTERFACE_DEFINED__
  200. #define __IOleDocumentSite_INTERFACE_DEFINED__
  201. /* interface IOleDocumentSite */
  202. /* [unique][uuid][object] */
  203. typedef /* [unique] */ IOleDocumentSite *LPOLEDOCUMENTSITE;
  204. EXTERN_C const IID IID_IOleDocumentSite;
  205. #if defined(__cplusplus) && !defined(CINTERFACE)
  206. MIDL_INTERFACE("b722bcc7-4e68-101b-a2bc-00aa00404770")
  207. IOleDocumentSite : public IUnknown
  208. {
  209. public:
  210. virtual HRESULT STDMETHODCALLTYPE ActivateMe(
  211. /* [in] */ IOleDocumentView *pViewToActivate) = 0;
  212. };
  213. #else /* C style interface */
  214. typedef struct IOleDocumentSiteVtbl
  215. {
  216. BEGIN_INTERFACE
  217. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  218. IOleDocumentSite * This,
  219. /* [in] */ REFIID riid,
  220. /* [iid_is][out] */ void **ppvObject);
  221. ULONG ( STDMETHODCALLTYPE *AddRef )(
  222. IOleDocumentSite * This);
  223. ULONG ( STDMETHODCALLTYPE *Release )(
  224. IOleDocumentSite * This);
  225. HRESULT ( STDMETHODCALLTYPE *ActivateMe )(
  226. IOleDocumentSite * This,
  227. /* [in] */ IOleDocumentView *pViewToActivate);
  228. END_INTERFACE
  229. } IOleDocumentSiteVtbl;
  230. interface IOleDocumentSite
  231. {
  232. CONST_VTBL struct IOleDocumentSiteVtbl *lpVtbl;
  233. };
  234. #ifdef COBJMACROS
  235. #define IOleDocumentSite_QueryInterface(This,riid,ppvObject) \
  236. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  237. #define IOleDocumentSite_AddRef(This) \
  238. (This)->lpVtbl -> AddRef(This)
  239. #define IOleDocumentSite_Release(This) \
  240. (This)->lpVtbl -> Release(This)
  241. #define IOleDocumentSite_ActivateMe(This,pViewToActivate) \
  242. (This)->lpVtbl -> ActivateMe(This,pViewToActivate)
  243. #endif /* COBJMACROS */
  244. #endif /* C style interface */
  245. HRESULT STDMETHODCALLTYPE IOleDocumentSite_ActivateMe_Proxy(
  246. IOleDocumentSite * This,
  247. /* [in] */ IOleDocumentView *pViewToActivate);
  248. void __RPC_STUB IOleDocumentSite_ActivateMe_Stub(
  249. IRpcStubBuffer *This,
  250. IRpcChannelBuffer *_pRpcChannelBuffer,
  251. PRPC_MESSAGE _pRpcMessage,
  252. DWORD *_pdwStubPhase);
  253. #endif /* __IOleDocumentSite_INTERFACE_DEFINED__ */
  254. /* interface __MIDL_itf_docobj_0262 */
  255. /* [local] */
  256. #endif
  257. #ifndef _LPOLEDOCUMENTVIEW_DEFINED
  258. #define _LPOLEDOCUMENTVIEW_DEFINED
  259. extern RPC_IF_HANDLE __MIDL_itf_docobj_0262_v0_0_c_ifspec;
  260. extern RPC_IF_HANDLE __MIDL_itf_docobj_0262_v0_0_s_ifspec;
  261. #ifndef __IOleDocumentView_INTERFACE_DEFINED__
  262. #define __IOleDocumentView_INTERFACE_DEFINED__
  263. /* interface IOleDocumentView */
  264. /* [unique][uuid][object] */
  265. typedef /* [unique] */ IOleDocumentView *LPOLEDOCUMENTVIEW;
  266. EXTERN_C const IID IID_IOleDocumentView;
  267. #if defined(__cplusplus) && !defined(CINTERFACE)
  268. MIDL_INTERFACE("b722bcc6-4e68-101b-a2bc-00aa00404770")
  269. IOleDocumentView : public IUnknown
  270. {
  271. public:
  272. virtual HRESULT STDMETHODCALLTYPE SetInPlaceSite(
  273. /* [unique][in] */ IOleInPlaceSite *pIPSite) = 0;
  274. virtual HRESULT STDMETHODCALLTYPE GetInPlaceSite(
  275. /* [out] */ IOleInPlaceSite **ppIPSite) = 0;
  276. virtual HRESULT STDMETHODCALLTYPE GetDocument(
  277. /* [out] */ IUnknown **ppunk) = 0;
  278. virtual /* [input_sync] */ HRESULT STDMETHODCALLTYPE SetRect(
  279. /* [in] */ LPRECT prcView) = 0;
  280. virtual HRESULT STDMETHODCALLTYPE GetRect(
  281. /* [out] */ LPRECT prcView) = 0;
  282. virtual /* [input_sync] */ HRESULT STDMETHODCALLTYPE SetRectComplex(
  283. /* [unique][in] */ LPRECT prcView,
  284. /* [unique][in] */ LPRECT prcHScroll,
  285. /* [unique][in] */ LPRECT prcVScroll,
  286. /* [unique][in] */ LPRECT prcSizeBox) = 0;
  287. virtual HRESULT STDMETHODCALLTYPE Show(
  288. /* [in] */ BOOL fShow) = 0;
  289. virtual HRESULT STDMETHODCALLTYPE UIActivate(
  290. /* [in] */ BOOL fUIActivate) = 0;
  291. virtual HRESULT STDMETHODCALLTYPE Open( void) = 0;
  292. virtual HRESULT STDMETHODCALLTYPE CloseView(
  293. DWORD dwReserved) = 0;
  294. virtual HRESULT STDMETHODCALLTYPE SaveViewState(
  295. /* [in] */ LPSTREAM pstm) = 0;
  296. virtual HRESULT STDMETHODCALLTYPE ApplyViewState(
  297. /* [in] */ LPSTREAM pstm) = 0;
  298. virtual HRESULT STDMETHODCALLTYPE Clone(
  299. /* [in] */ IOleInPlaceSite *pIPSiteNew,
  300. /* [out] */ IOleDocumentView **ppViewNew) = 0;
  301. };
  302. #else /* C style interface */
  303. typedef struct IOleDocumentViewVtbl
  304. {
  305. BEGIN_INTERFACE
  306. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  307. IOleDocumentView * This,
  308. /* [in] */ REFIID riid,
  309. /* [iid_is][out] */ void **ppvObject);
  310. ULONG ( STDMETHODCALLTYPE *AddRef )(
  311. IOleDocumentView * This);
  312. ULONG ( STDMETHODCALLTYPE *Release )(
  313. IOleDocumentView * This);
  314. HRESULT ( STDMETHODCALLTYPE *SetInPlaceSite )(
  315. IOleDocumentView * This,
  316. /* [unique][in] */ IOleInPlaceSite *pIPSite);
  317. HRESULT ( STDMETHODCALLTYPE *GetInPlaceSite )(
  318. IOleDocumentView * This,
  319. /* [out] */ IOleInPlaceSite **ppIPSite);
  320. HRESULT ( STDMETHODCALLTYPE *GetDocument )(
  321. IOleDocumentView * This,
  322. /* [out] */ IUnknown **ppunk);
  323. /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *SetRect )(
  324. IOleDocumentView * This,
  325. /* [in] */ LPRECT prcView);
  326. HRESULT ( STDMETHODCALLTYPE *GetRect )(
  327. IOleDocumentView * This,
  328. /* [out] */ LPRECT prcView);
  329. /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *SetRectComplex )(
  330. IOleDocumentView * This,
  331. /* [unique][in] */ LPRECT prcView,
  332. /* [unique][in] */ LPRECT prcHScroll,
  333. /* [unique][in] */ LPRECT prcVScroll,
  334. /* [unique][in] */ LPRECT prcSizeBox);
  335. HRESULT ( STDMETHODCALLTYPE *Show )(
  336. IOleDocumentView * This,
  337. /* [in] */ BOOL fShow);
  338. HRESULT ( STDMETHODCALLTYPE *UIActivate )(
  339. IOleDocumentView * This,
  340. /* [in] */ BOOL fUIActivate);
  341. HRESULT ( STDMETHODCALLTYPE *Open )(
  342. IOleDocumentView * This);
  343. HRESULT ( STDMETHODCALLTYPE *CloseView )(
  344. IOleDocumentView * This,
  345. DWORD dwReserved);
  346. HRESULT ( STDMETHODCALLTYPE *SaveViewState )(
  347. IOleDocumentView * This,
  348. /* [in] */ LPSTREAM pstm);
  349. HRESULT ( STDMETHODCALLTYPE *ApplyViewState )(
  350. IOleDocumentView * This,
  351. /* [in] */ LPSTREAM pstm);
  352. HRESULT ( STDMETHODCALLTYPE *Clone )(
  353. IOleDocumentView * This,
  354. /* [in] */ IOleInPlaceSite *pIPSiteNew,
  355. /* [out] */ IOleDocumentView **ppViewNew);
  356. END_INTERFACE
  357. } IOleDocumentViewVtbl;
  358. interface IOleDocumentView
  359. {
  360. CONST_VTBL struct IOleDocumentViewVtbl *lpVtbl;
  361. };
  362. #ifdef COBJMACROS
  363. #define IOleDocumentView_QueryInterface(This,riid,ppvObject) \
  364. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  365. #define IOleDocumentView_AddRef(This) \
  366. (This)->lpVtbl -> AddRef(This)
  367. #define IOleDocumentView_Release(This) \
  368. (This)->lpVtbl -> Release(This)
  369. #define IOleDocumentView_SetInPlaceSite(This,pIPSite) \
  370. (This)->lpVtbl -> SetInPlaceSite(This,pIPSite)
  371. #define IOleDocumentView_GetInPlaceSite(This,ppIPSite) \
  372. (This)->lpVtbl -> GetInPlaceSite(This,ppIPSite)
  373. #define IOleDocumentView_GetDocument(This,ppunk) \
  374. (This)->lpVtbl -> GetDocument(This,ppunk)
  375. #define IOleDocumentView_SetRect(This,prcView) \
  376. (This)->lpVtbl -> SetRect(This,prcView)
  377. #define IOleDocumentView_GetRect(This,prcView) \
  378. (This)->lpVtbl -> GetRect(This,prcView)
  379. #define IOleDocumentView_SetRectComplex(This,prcView,prcHScroll,prcVScroll,prcSizeBox) \
  380. (This)->lpVtbl -> SetRectComplex(This,prcView,prcHScroll,prcVScroll,prcSizeBox)
  381. #define IOleDocumentView_Show(This,fShow) \
  382. (This)->lpVtbl -> Show(This,fShow)
  383. #define IOleDocumentView_UIActivate(This,fUIActivate) \
  384. (This)->lpVtbl -> UIActivate(This,fUIActivate)
  385. #define IOleDocumentView_Open(This) \
  386. (This)->lpVtbl -> Open(This)
  387. #define IOleDocumentView_CloseView(This,dwReserved) \
  388. (This)->lpVtbl -> CloseView(This,dwReserved)
  389. #define IOleDocumentView_SaveViewState(This,pstm) \
  390. (This)->lpVtbl -> SaveViewState(This,pstm)
  391. #define IOleDocumentView_ApplyViewState(This,pstm) \
  392. (This)->lpVtbl -> ApplyViewState(This,pstm)
  393. #define IOleDocumentView_Clone(This,pIPSiteNew,ppViewNew) \
  394. (This)->lpVtbl -> Clone(This,pIPSiteNew,ppViewNew)
  395. #endif /* COBJMACROS */
  396. #endif /* C style interface */
  397. HRESULT STDMETHODCALLTYPE IOleDocumentView_SetInPlaceSite_Proxy(
  398. IOleDocumentView * This,
  399. /* [unique][in] */ IOleInPlaceSite *pIPSite);
  400. void __RPC_STUB IOleDocumentView_SetInPlaceSite_Stub(
  401. IRpcStubBuffer *This,
  402. IRpcChannelBuffer *_pRpcChannelBuffer,
  403. PRPC_MESSAGE _pRpcMessage,
  404. DWORD *_pdwStubPhase);
  405. HRESULT STDMETHODCALLTYPE IOleDocumentView_GetInPlaceSite_Proxy(
  406. IOleDocumentView * This,
  407. /* [out] */ IOleInPlaceSite **ppIPSite);
  408. void __RPC_STUB IOleDocumentView_GetInPlaceSite_Stub(
  409. IRpcStubBuffer *This,
  410. IRpcChannelBuffer *_pRpcChannelBuffer,
  411. PRPC_MESSAGE _pRpcMessage,
  412. DWORD *_pdwStubPhase);
  413. HRESULT STDMETHODCALLTYPE IOleDocumentView_GetDocument_Proxy(
  414. IOleDocumentView * This,
  415. /* [out] */ IUnknown **ppunk);
  416. void __RPC_STUB IOleDocumentView_GetDocument_Stub(
  417. IRpcStubBuffer *This,
  418. IRpcChannelBuffer *_pRpcChannelBuffer,
  419. PRPC_MESSAGE _pRpcMessage,
  420. DWORD *_pdwStubPhase);
  421. /* [input_sync] */ HRESULT STDMETHODCALLTYPE IOleDocumentView_SetRect_Proxy(
  422. IOleDocumentView * This,
  423. /* [in] */ LPRECT prcView);
  424. void __RPC_STUB IOleDocumentView_SetRect_Stub(
  425. IRpcStubBuffer *This,
  426. IRpcChannelBuffer *_pRpcChannelBuffer,
  427. PRPC_MESSAGE _pRpcMessage,
  428. DWORD *_pdwStubPhase);
  429. HRESULT STDMETHODCALLTYPE IOleDocumentView_GetRect_Proxy(
  430. IOleDocumentView * This,
  431. /* [out] */ LPRECT prcView);
  432. void __RPC_STUB IOleDocumentView_GetRect_Stub(
  433. IRpcStubBuffer *This,
  434. IRpcChannelBuffer *_pRpcChannelBuffer,
  435. PRPC_MESSAGE _pRpcMessage,
  436. DWORD *_pdwStubPhase);
  437. /* [input_sync] */ HRESULT STDMETHODCALLTYPE IOleDocumentView_SetRectComplex_Proxy(
  438. IOleDocumentView * This,
  439. /* [unique][in] */ LPRECT prcView,
  440. /* [unique][in] */ LPRECT prcHScroll,
  441. /* [unique][in] */ LPRECT prcVScroll,
  442. /* [unique][in] */ LPRECT prcSizeBox);
  443. void __RPC_STUB IOleDocumentView_SetRectComplex_Stub(
  444. IRpcStubBuffer *This,
  445. IRpcChannelBuffer *_pRpcChannelBuffer,
  446. PRPC_MESSAGE _pRpcMessage,
  447. DWORD *_pdwStubPhase);
  448. HRESULT STDMETHODCALLTYPE IOleDocumentView_Show_Proxy(
  449. IOleDocumentView * This,
  450. /* [in] */ BOOL fShow);
  451. void __RPC_STUB IOleDocumentView_Show_Stub(
  452. IRpcStubBuffer *This,
  453. IRpcChannelBuffer *_pRpcChannelBuffer,
  454. PRPC_MESSAGE _pRpcMessage,
  455. DWORD *_pdwStubPhase);
  456. HRESULT STDMETHODCALLTYPE IOleDocumentView_UIActivate_Proxy(
  457. IOleDocumentView * This,
  458. /* [in] */ BOOL fUIActivate);
  459. void __RPC_STUB IOleDocumentView_UIActivate_Stub(
  460. IRpcStubBuffer *This,
  461. IRpcChannelBuffer *_pRpcChannelBuffer,
  462. PRPC_MESSAGE _pRpcMessage,
  463. DWORD *_pdwStubPhase);
  464. HRESULT STDMETHODCALLTYPE IOleDocumentView_Open_Proxy(
  465. IOleDocumentView * This);
  466. void __RPC_STUB IOleDocumentView_Open_Stub(
  467. IRpcStubBuffer *This,
  468. IRpcChannelBuffer *_pRpcChannelBuffer,
  469. PRPC_MESSAGE _pRpcMessage,
  470. DWORD *_pdwStubPhase);
  471. HRESULT STDMETHODCALLTYPE IOleDocumentView_CloseView_Proxy(
  472. IOleDocumentView * This,
  473. DWORD dwReserved);
  474. void __RPC_STUB IOleDocumentView_CloseView_Stub(
  475. IRpcStubBuffer *This,
  476. IRpcChannelBuffer *_pRpcChannelBuffer,
  477. PRPC_MESSAGE _pRpcMessage,
  478. DWORD *_pdwStubPhase);
  479. HRESULT STDMETHODCALLTYPE IOleDocumentView_SaveViewState_Proxy(
  480. IOleDocumentView * This,
  481. /* [in] */ LPSTREAM pstm);
  482. void __RPC_STUB IOleDocumentView_SaveViewState_Stub(
  483. IRpcStubBuffer *This,
  484. IRpcChannelBuffer *_pRpcChannelBuffer,
  485. PRPC_MESSAGE _pRpcMessage,
  486. DWORD *_pdwStubPhase);
  487. HRESULT STDMETHODCALLTYPE IOleDocumentView_ApplyViewState_Proxy(
  488. IOleDocumentView * This,
  489. /* [in] */ LPSTREAM pstm);
  490. void __RPC_STUB IOleDocumentView_ApplyViewState_Stub(
  491. IRpcStubBuffer *This,
  492. IRpcChannelBuffer *_pRpcChannelBuffer,
  493. PRPC_MESSAGE _pRpcMessage,
  494. DWORD *_pdwStubPhase);
  495. HRESULT STDMETHODCALLTYPE IOleDocumentView_Clone_Proxy(
  496. IOleDocumentView * This,
  497. /* [in] */ IOleInPlaceSite *pIPSiteNew,
  498. /* [out] */ IOleDocumentView **ppViewNew);
  499. void __RPC_STUB IOleDocumentView_Clone_Stub(
  500. IRpcStubBuffer *This,
  501. IRpcChannelBuffer *_pRpcChannelBuffer,
  502. PRPC_MESSAGE _pRpcMessage,
  503. DWORD *_pdwStubPhase);
  504. #endif /* __IOleDocumentView_INTERFACE_DEFINED__ */
  505. /* interface __MIDL_itf_docobj_0263 */
  506. /* [local] */
  507. #endif
  508. #ifndef _LPENUMOLEDOCUMENTVIEWS_DEFINED
  509. #define _LPENUMOLEDOCUMENTVIEWS_DEFINED
  510. extern RPC_IF_HANDLE __MIDL_itf_docobj_0263_v0_0_c_ifspec;
  511. extern RPC_IF_HANDLE __MIDL_itf_docobj_0263_v0_0_s_ifspec;
  512. #ifndef __IEnumOleDocumentViews_INTERFACE_DEFINED__
  513. #define __IEnumOleDocumentViews_INTERFACE_DEFINED__
  514. /* interface IEnumOleDocumentViews */
  515. /* [unique][uuid][object] */
  516. typedef /* [unique] */ IEnumOleDocumentViews *LPENUMOLEDOCUMENTVIEWS;
  517. EXTERN_C const IID IID_IEnumOleDocumentViews;
  518. #if defined(__cplusplus) && !defined(CINTERFACE)
  519. MIDL_INTERFACE("b722bcc8-4e68-101b-a2bc-00aa00404770")
  520. IEnumOleDocumentViews : public IUnknown
  521. {
  522. public:
  523. virtual /* [local] */ HRESULT __stdcall Next(
  524. /* [in] */ ULONG cViews,
  525. /* [out] */ IOleDocumentView **rgpView,
  526. /* [out] */ ULONG *pcFetched) = 0;
  527. virtual HRESULT STDMETHODCALLTYPE Skip(
  528. /* [in] */ ULONG cViews) = 0;
  529. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  530. virtual HRESULT STDMETHODCALLTYPE Clone(
  531. /* [out] */ IEnumOleDocumentViews **ppEnum) = 0;
  532. };
  533. #else /* C style interface */
  534. typedef struct IEnumOleDocumentViewsVtbl
  535. {
  536. BEGIN_INTERFACE
  537. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  538. IEnumOleDocumentViews * This,
  539. /* [in] */ REFIID riid,
  540. /* [iid_is][out] */ void **ppvObject);
  541. ULONG ( STDMETHODCALLTYPE *AddRef )(
  542. IEnumOleDocumentViews * This);
  543. ULONG ( STDMETHODCALLTYPE *Release )(
  544. IEnumOleDocumentViews * This);
  545. /* [local] */ HRESULT ( __stdcall *Next )(
  546. IEnumOleDocumentViews * This,
  547. /* [in] */ ULONG cViews,
  548. /* [out] */ IOleDocumentView **rgpView,
  549. /* [out] */ ULONG *pcFetched);
  550. HRESULT ( STDMETHODCALLTYPE *Skip )(
  551. IEnumOleDocumentViews * This,
  552. /* [in] */ ULONG cViews);
  553. HRESULT ( STDMETHODCALLTYPE *Reset )(
  554. IEnumOleDocumentViews * This);
  555. HRESULT ( STDMETHODCALLTYPE *Clone )(
  556. IEnumOleDocumentViews * This,
  557. /* [out] */ IEnumOleDocumentViews **ppEnum);
  558. END_INTERFACE
  559. } IEnumOleDocumentViewsVtbl;
  560. interface IEnumOleDocumentViews
  561. {
  562. CONST_VTBL struct IEnumOleDocumentViewsVtbl *lpVtbl;
  563. };
  564. #ifdef COBJMACROS
  565. #define IEnumOleDocumentViews_QueryInterface(This,riid,ppvObject) \
  566. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  567. #define IEnumOleDocumentViews_AddRef(This) \
  568. (This)->lpVtbl -> AddRef(This)
  569. #define IEnumOleDocumentViews_Release(This) \
  570. (This)->lpVtbl -> Release(This)
  571. #define IEnumOleDocumentViews_Next(This,cViews,rgpView,pcFetched) \
  572. (This)->lpVtbl -> Next(This,cViews,rgpView,pcFetched)
  573. #define IEnumOleDocumentViews_Skip(This,cViews) \
  574. (This)->lpVtbl -> Skip(This,cViews)
  575. #define IEnumOleDocumentViews_Reset(This) \
  576. (This)->lpVtbl -> Reset(This)
  577. #define IEnumOleDocumentViews_Clone(This,ppEnum) \
  578. (This)->lpVtbl -> Clone(This,ppEnum)
  579. #endif /* COBJMACROS */
  580. #endif /* C style interface */
  581. /* [call_as] */ HRESULT __stdcall IEnumOleDocumentViews_RemoteNext_Proxy(
  582. IEnumOleDocumentViews * This,
  583. /* [in] */ ULONG cViews,
  584. /* [length_is][size_is][out] */ IOleDocumentView **rgpView,
  585. /* [out] */ ULONG *pcFetched);
  586. void __RPC_STUB IEnumOleDocumentViews_RemoteNext_Stub(
  587. IRpcStubBuffer *This,
  588. IRpcChannelBuffer *_pRpcChannelBuffer,
  589. PRPC_MESSAGE _pRpcMessage,
  590. DWORD *_pdwStubPhase);
  591. HRESULT STDMETHODCALLTYPE IEnumOleDocumentViews_Skip_Proxy(
  592. IEnumOleDocumentViews * This,
  593. /* [in] */ ULONG cViews);
  594. void __RPC_STUB IEnumOleDocumentViews_Skip_Stub(
  595. IRpcStubBuffer *This,
  596. IRpcChannelBuffer *_pRpcChannelBuffer,
  597. PRPC_MESSAGE _pRpcMessage,
  598. DWORD *_pdwStubPhase);
  599. HRESULT STDMETHODCALLTYPE IEnumOleDocumentViews_Reset_Proxy(
  600. IEnumOleDocumentViews * This);
  601. void __RPC_STUB IEnumOleDocumentViews_Reset_Stub(
  602. IRpcStubBuffer *This,
  603. IRpcChannelBuffer *_pRpcChannelBuffer,
  604. PRPC_MESSAGE _pRpcMessage,
  605. DWORD *_pdwStubPhase);
  606. HRESULT STDMETHODCALLTYPE IEnumOleDocumentViews_Clone_Proxy(
  607. IEnumOleDocumentViews * This,
  608. /* [out] */ IEnumOleDocumentViews **ppEnum);
  609. void __RPC_STUB IEnumOleDocumentViews_Clone_Stub(
  610. IRpcStubBuffer *This,
  611. IRpcChannelBuffer *_pRpcChannelBuffer,
  612. PRPC_MESSAGE _pRpcMessage,
  613. DWORD *_pdwStubPhase);
  614. #endif /* __IEnumOleDocumentViews_INTERFACE_DEFINED__ */
  615. /* interface __MIDL_itf_docobj_0264 */
  616. /* [local] */
  617. #endif
  618. #ifndef _LPCONTINUECALLBACK_DEFINED
  619. #define _LPCONTINUECALLBACK_DEFINED
  620. extern RPC_IF_HANDLE __MIDL_itf_docobj_0264_v0_0_c_ifspec;
  621. extern RPC_IF_HANDLE __MIDL_itf_docobj_0264_v0_0_s_ifspec;
  622. #ifndef __IContinueCallback_INTERFACE_DEFINED__
  623. #define __IContinueCallback_INTERFACE_DEFINED__
  624. /* interface IContinueCallback */
  625. /* [unique][uuid][object] */
  626. typedef /* [unique] */ IContinueCallback *LPCONTINUECALLBACK;
  627. EXTERN_C const IID IID_IContinueCallback;
  628. #if defined(__cplusplus) && !defined(CINTERFACE)
  629. MIDL_INTERFACE("b722bcca-4e68-101b-a2bc-00aa00404770")
  630. IContinueCallback : public IUnknown
  631. {
  632. public:
  633. virtual HRESULT STDMETHODCALLTYPE FContinue( void) = 0;
  634. virtual HRESULT STDMETHODCALLTYPE FContinuePrinting(
  635. /* [in] */ LONG nCntPrinted,
  636. /* [in] */ LONG nCurPage,
  637. /* [unique][in] */ wchar_t *pwszPrintStatus) = 0;
  638. };
  639. #else /* C style interface */
  640. typedef struct IContinueCallbackVtbl
  641. {
  642. BEGIN_INTERFACE
  643. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  644. IContinueCallback * This,
  645. /* [in] */ REFIID riid,
  646. /* [iid_is][out] */ void **ppvObject);
  647. ULONG ( STDMETHODCALLTYPE *AddRef )(
  648. IContinueCallback * This);
  649. ULONG ( STDMETHODCALLTYPE *Release )(
  650. IContinueCallback * This);
  651. HRESULT ( STDMETHODCALLTYPE *FContinue )(
  652. IContinueCallback * This);
  653. HRESULT ( STDMETHODCALLTYPE *FContinuePrinting )(
  654. IContinueCallback * This,
  655. /* [in] */ LONG nCntPrinted,
  656. /* [in] */ LONG nCurPage,
  657. /* [unique][in] */ wchar_t *pwszPrintStatus);
  658. END_INTERFACE
  659. } IContinueCallbackVtbl;
  660. interface IContinueCallback
  661. {
  662. CONST_VTBL struct IContinueCallbackVtbl *lpVtbl;
  663. };
  664. #ifdef COBJMACROS
  665. #define IContinueCallback_QueryInterface(This,riid,ppvObject) \
  666. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  667. #define IContinueCallback_AddRef(This) \
  668. (This)->lpVtbl -> AddRef(This)
  669. #define IContinueCallback_Release(This) \
  670. (This)->lpVtbl -> Release(This)
  671. #define IContinueCallback_FContinue(This) \
  672. (This)->lpVtbl -> FContinue(This)
  673. #define IContinueCallback_FContinuePrinting(This,nCntPrinted,nCurPage,pwszPrintStatus) \
  674. (This)->lpVtbl -> FContinuePrinting(This,nCntPrinted,nCurPage,pwszPrintStatus)
  675. #endif /* COBJMACROS */
  676. #endif /* C style interface */
  677. HRESULT STDMETHODCALLTYPE IContinueCallback_FContinue_Proxy(
  678. IContinueCallback * This);
  679. void __RPC_STUB IContinueCallback_FContinue_Stub(
  680. IRpcStubBuffer *This,
  681. IRpcChannelBuffer *_pRpcChannelBuffer,
  682. PRPC_MESSAGE _pRpcMessage,
  683. DWORD *_pdwStubPhase);
  684. HRESULT STDMETHODCALLTYPE IContinueCallback_FContinuePrinting_Proxy(
  685. IContinueCallback * This,
  686. /* [in] */ LONG nCntPrinted,
  687. /* [in] */ LONG nCurPage,
  688. /* [unique][in] */ wchar_t *pwszPrintStatus);
  689. void __RPC_STUB IContinueCallback_FContinuePrinting_Stub(
  690. IRpcStubBuffer *This,
  691. IRpcChannelBuffer *_pRpcChannelBuffer,
  692. PRPC_MESSAGE _pRpcMessage,
  693. DWORD *_pdwStubPhase);
  694. #endif /* __IContinueCallback_INTERFACE_DEFINED__ */
  695. /* interface __MIDL_itf_docobj_0265 */
  696. /* [local] */
  697. #endif
  698. #ifndef _LPPRINT_DEFINED
  699. #define _LPPRINT_DEFINED
  700. extern RPC_IF_HANDLE __MIDL_itf_docobj_0265_v0_0_c_ifspec;
  701. extern RPC_IF_HANDLE __MIDL_itf_docobj_0265_v0_0_s_ifspec;
  702. #ifndef __IPrint_INTERFACE_DEFINED__
  703. #define __IPrint_INTERFACE_DEFINED__
  704. /* interface IPrint */
  705. /* [unique][uuid][object] */
  706. typedef /* [unique] */ IPrint *LPPRINT;
  707. typedef /* [public] */
  708. enum __MIDL_IPrint_0001
  709. { PRINTFLAG_MAYBOTHERUSER = 1,
  710. PRINTFLAG_PROMPTUSER = 2,
  711. PRINTFLAG_USERMAYCHANGEPRINTER = 4,
  712. PRINTFLAG_RECOMPOSETODEVICE = 8,
  713. PRINTFLAG_DONTACTUALLYPRINT = 16,
  714. PRINTFLAG_FORCEPROPERTIES = 32,
  715. PRINTFLAG_PRINTTOFILE = 64
  716. } PRINTFLAG;
  717. typedef struct tagPAGERANGE
  718. {
  719. LONG nFromPage;
  720. LONG nToPage;
  721. } PAGERANGE;
  722. typedef struct tagPAGESET
  723. {
  724. ULONG cbStruct;
  725. BOOL fOddPages;
  726. BOOL fEvenPages;
  727. ULONG cPageRange;
  728. /* [size_is] */ PAGERANGE rgPages[ 1 ];
  729. } PAGESET;
  730. #define PAGESET_TOLASTPAGE ((WORD)(-1L))
  731. EXTERN_C const IID IID_IPrint;
  732. #if defined(__cplusplus) && !defined(CINTERFACE)
  733. MIDL_INTERFACE("b722bcc9-4e68-101b-a2bc-00aa00404770")
  734. IPrint : public IUnknown
  735. {
  736. public:
  737. virtual HRESULT STDMETHODCALLTYPE SetInitialPageNum(
  738. /* [in] */ LONG nFirstPage) = 0;
  739. virtual HRESULT STDMETHODCALLTYPE GetPageInfo(
  740. /* [out] */ LONG *pnFirstPage,
  741. /* [out] */ LONG *pcPages) = 0;
  742. virtual /* [local] */ HRESULT __stdcall Print(
  743. /* [in] */ DWORD grfFlags,
  744. /* [out][in] */ DVTARGETDEVICE **pptd,
  745. /* [out][in] */ PAGESET **ppPageSet,
  746. /* [unique][out][in] */ STGMEDIUM *pstgmOptions,
  747. /* [in] */ IContinueCallback *pcallback,
  748. /* [in] */ LONG nFirstPage,
  749. /* [out] */ LONG *pcPagesPrinted,
  750. /* [out] */ LONG *pnLastPage) = 0;
  751. };
  752. #else /* C style interface */
  753. typedef struct IPrintVtbl
  754. {
  755. BEGIN_INTERFACE
  756. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  757. IPrint * This,
  758. /* [in] */ REFIID riid,
  759. /* [iid_is][out] */ void **ppvObject);
  760. ULONG ( STDMETHODCALLTYPE *AddRef )(
  761. IPrint * This);
  762. ULONG ( STDMETHODCALLTYPE *Release )(
  763. IPrint * This);
  764. HRESULT ( STDMETHODCALLTYPE *SetInitialPageNum )(
  765. IPrint * This,
  766. /* [in] */ LONG nFirstPage);
  767. HRESULT ( STDMETHODCALLTYPE *GetPageInfo )(
  768. IPrint * This,
  769. /* [out] */ LONG *pnFirstPage,
  770. /* [out] */ LONG *pcPages);
  771. /* [local] */ HRESULT ( __stdcall *Print )(
  772. IPrint * This,
  773. /* [in] */ DWORD grfFlags,
  774. /* [out][in] */ DVTARGETDEVICE **pptd,
  775. /* [out][in] */ PAGESET **ppPageSet,
  776. /* [unique][out][in] */ STGMEDIUM *pstgmOptions,
  777. /* [in] */ IContinueCallback *pcallback,
  778. /* [in] */ LONG nFirstPage,
  779. /* [out] */ LONG *pcPagesPrinted,
  780. /* [out] */ LONG *pnLastPage);
  781. END_INTERFACE
  782. } IPrintVtbl;
  783. interface IPrint
  784. {
  785. CONST_VTBL struct IPrintVtbl *lpVtbl;
  786. };
  787. #ifdef COBJMACROS
  788. #define IPrint_QueryInterface(This,riid,ppvObject) \
  789. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  790. #define IPrint_AddRef(This) \
  791. (This)->lpVtbl -> AddRef(This)
  792. #define IPrint_Release(This) \
  793. (This)->lpVtbl -> Release(This)
  794. #define IPrint_SetInitialPageNum(This,nFirstPage) \
  795. (This)->lpVtbl -> SetInitialPageNum(This,nFirstPage)
  796. #define IPrint_GetPageInfo(This,pnFirstPage,pcPages) \
  797. (This)->lpVtbl -> GetPageInfo(This,pnFirstPage,pcPages)
  798. #define IPrint_Print(This,grfFlags,pptd,ppPageSet,pstgmOptions,pcallback,nFirstPage,pcPagesPrinted,pnLastPage) \
  799. (This)->lpVtbl -> Print(This,grfFlags,pptd,ppPageSet,pstgmOptions,pcallback,nFirstPage,pcPagesPrinted,pnLastPage)
  800. #endif /* COBJMACROS */
  801. #endif /* C style interface */
  802. HRESULT STDMETHODCALLTYPE IPrint_SetInitialPageNum_Proxy(
  803. IPrint * This,
  804. /* [in] */ LONG nFirstPage);
  805. void __RPC_STUB IPrint_SetInitialPageNum_Stub(
  806. IRpcStubBuffer *This,
  807. IRpcChannelBuffer *_pRpcChannelBuffer,
  808. PRPC_MESSAGE _pRpcMessage,
  809. DWORD *_pdwStubPhase);
  810. HRESULT STDMETHODCALLTYPE IPrint_GetPageInfo_Proxy(
  811. IPrint * This,
  812. /* [out] */ LONG *pnFirstPage,
  813. /* [out] */ LONG *pcPages);
  814. void __RPC_STUB IPrint_GetPageInfo_Stub(
  815. IRpcStubBuffer *This,
  816. IRpcChannelBuffer *_pRpcChannelBuffer,
  817. PRPC_MESSAGE _pRpcMessage,
  818. DWORD *_pdwStubPhase);
  819. /* [call_as] */ HRESULT __stdcall IPrint_RemotePrint_Proxy(
  820. IPrint * This,
  821. /* [in] */ DWORD grfFlags,
  822. /* [out][in] */ DVTARGETDEVICE **pptd,
  823. /* [out][in] */ PAGESET **pppageset,
  824. /* [unique][out][in] */ RemSTGMEDIUM *pstgmOptions,
  825. /* [in] */ IContinueCallback *pcallback,
  826. /* [in] */ LONG nFirstPage,
  827. /* [out] */ LONG *pcPagesPrinted,
  828. /* [out] */ LONG *pnLastPage);
  829. void __RPC_STUB IPrint_RemotePrint_Stub(
  830. IRpcStubBuffer *This,
  831. IRpcChannelBuffer *_pRpcChannelBuffer,
  832. PRPC_MESSAGE _pRpcMessage,
  833. DWORD *_pdwStubPhase);
  834. #endif /* __IPrint_INTERFACE_DEFINED__ */
  835. /* interface __MIDL_itf_docobj_0266 */
  836. /* [local] */
  837. #endif
  838. #ifndef _LPOLECOMMANDTARGET_DEFINED
  839. #define _LPOLECOMMANDTARGET_DEFINED
  840. extern RPC_IF_HANDLE __MIDL_itf_docobj_0266_v0_0_c_ifspec;
  841. extern RPC_IF_HANDLE __MIDL_itf_docobj_0266_v0_0_s_ifspec;
  842. #ifndef __IOleCommandTarget_INTERFACE_DEFINED__
  843. #define __IOleCommandTarget_INTERFACE_DEFINED__
  844. /* interface IOleCommandTarget */
  845. /* [unique][uuid][object] */
  846. typedef /* [unique] */ IOleCommandTarget *LPOLECOMMANDTARGET;
  847. typedef
  848. enum OLECMDF
  849. { OLECMDF_SUPPORTED = 0x1,
  850. OLECMDF_ENABLED = 0x2,
  851. OLECMDF_LATCHED = 0x4,
  852. OLECMDF_NINCHED = 0x8,
  853. OLECMDF_INVISIBLE = 0x10,
  854. OLECMDF_DEFHIDEONCTXTMENU = 0x20
  855. } OLECMDF;
  856. typedef struct _tagOLECMD
  857. {
  858. ULONG cmdID;
  859. DWORD cmdf;
  860. } OLECMD;
  861. typedef struct _tagOLECMDTEXT
  862. {
  863. DWORD cmdtextf;
  864. ULONG cwActual;
  865. ULONG cwBuf;
  866. /* [size_is] */ wchar_t rgwz[ 1 ];
  867. } OLECMDTEXT;
  868. typedef
  869. enum OLECMDTEXTF
  870. { OLECMDTEXTF_NONE = 0,
  871. OLECMDTEXTF_NAME = 1,
  872. OLECMDTEXTF_STATUS = 2
  873. } OLECMDTEXTF;
  874. typedef
  875. enum OLECMDEXECOPT
  876. { OLECMDEXECOPT_DODEFAULT = 0,
  877. OLECMDEXECOPT_PROMPTUSER = 1,
  878. OLECMDEXECOPT_DONTPROMPTUSER = 2,
  879. OLECMDEXECOPT_SHOWHELP = 3
  880. } OLECMDEXECOPT;
  881. /* OLECMDID_STOPDOWNLOAD and OLECMDID_ALLOWUILESSSAVEAS are supported for QueryStatus Only */
  882. typedef
  883. enum OLECMDID
  884. { OLECMDID_OPEN = 1,
  885. OLECMDID_NEW = 2,
  886. OLECMDID_SAVE = 3,
  887. OLECMDID_SAVEAS = 4,
  888. OLECMDID_SAVECOPYAS = 5,
  889. OLECMDID_PRINT = 6,
  890. OLECMDID_PRINTPREVIEW = 7,
  891. OLECMDID_PAGESETUP = 8,
  892. OLECMDID_SPELL = 9,
  893. OLECMDID_PROPERTIES = 10,
  894. OLECMDID_CUT = 11,
  895. OLECMDID_COPY = 12,
  896. OLECMDID_PASTE = 13,
  897. OLECMDID_PASTESPECIAL = 14,
  898. OLECMDID_UNDO = 15,
  899. OLECMDID_REDO = 16,
  900. OLECMDID_SELECTALL = 17,
  901. OLECMDID_CLEARSELECTION = 18,
  902. OLECMDID_ZOOM = 19,
  903. OLECMDID_GETZOOMRANGE = 20,
  904. OLECMDID_UPDATECOMMANDS = 21,
  905. OLECMDID_REFRESH = 22,
  906. OLECMDID_STOP = 23,
  907. OLECMDID_HIDETOOLBARS = 24,
  908. OLECMDID_SETPROGRESSMAX = 25,
  909. OLECMDID_SETPROGRESSPOS = 26,
  910. OLECMDID_SETPROGRESSTEXT = 27,
  911. OLECMDID_SETTITLE = 28,
  912. OLECMDID_SETDOWNLOADSTATE = 29,
  913. OLECMDID_STOPDOWNLOAD = 30,
  914. OLECMDID_ONTOOLBARACTIVATED = 31,
  915. OLECMDID_FIND = 32,
  916. OLECMDID_DELETE = 33,
  917. OLECMDID_HTTPEQUIV = 34,
  918. OLECMDID_HTTPEQUIV_DONE = 35,
  919. OLECMDID_ENABLE_INTERACTION = 36,
  920. OLECMDID_ONUNLOAD = 37,
  921. OLECMDID_PROPERTYBAG2 = 38,
  922. OLECMDID_PREREFRESH = 39,
  923. OLECMDID_SHOWSCRIPTERROR = 40,
  924. OLECMDID_SHOWMESSAGE = 41,
  925. OLECMDID_SHOWFIND = 42,
  926. OLECMDID_SHOWPAGESETUP = 43,
  927. OLECMDID_SHOWPRINT = 44,
  928. OLECMDID_CLOSE = 45,
  929. OLECMDID_ALLOWUILESSSAVEAS = 46,
  930. OLECMDID_DONTDOWNLOADCSS = 47,
  931. OLECMDID_UPDATEPAGESTATUS = 48,
  932. OLECMDID_PRINT2 = 49,
  933. OLECMDID_PRINTPREVIEW2 = 50,
  934. OLECMDID_SETPRINTTEMPLATE = 51,
  935. OLECMDID_GETPRINTTEMPLATE = 52
  936. } OLECMDID;
  937. #define OLECMDERR_E_FIRST (OLE_E_LAST+1)
  938. #define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)
  939. #define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1)
  940. #define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2)
  941. #define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3)
  942. #define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4)
  943. #define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST
  944. #define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED
  945. #define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED
  946. #define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP
  947. #define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED
  948. #define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP
  949. EXTERN_C const IID IID_IOleCommandTarget;
  950. #if defined(__cplusplus) && !defined(CINTERFACE)
  951. MIDL_INTERFACE("b722bccb-4e68-101b-a2bc-00aa00404770")
  952. IOleCommandTarget : public IUnknown
  953. {
  954. public:
  955. virtual /* [input_sync] */ HRESULT STDMETHODCALLTYPE QueryStatus(
  956. /* [unique][in] */ const GUID *pguidCmdGroup,
  957. /* [in] */ ULONG cCmds,
  958. /* [out][in][size_is] */ OLECMD prgCmds[ ],
  959. /* [unique][out][in] */ OLECMDTEXT *pCmdText) = 0;
  960. virtual HRESULT STDMETHODCALLTYPE Exec(
  961. /* [unique][in] */ const GUID *pguidCmdGroup,
  962. /* [in] */ DWORD nCmdID,
  963. /* [in] */ DWORD nCmdexecopt,
  964. /* [unique][in] */ VARIANT *pvaIn,
  965. /* [unique][out][in] */ VARIANT *pvaOut) = 0;
  966. };
  967. #else /* C style interface */
  968. typedef struct IOleCommandTargetVtbl
  969. {
  970. BEGIN_INTERFACE
  971. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  972. IOleCommandTarget * This,
  973. /* [in] */ REFIID riid,
  974. /* [iid_is][out] */ void **ppvObject);
  975. ULONG ( STDMETHODCALLTYPE *AddRef )(
  976. IOleCommandTarget * This);
  977. ULONG ( STDMETHODCALLTYPE *Release )(
  978. IOleCommandTarget * This);
  979. /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *QueryStatus )(
  980. IOleCommandTarget * This,
  981. /* [unique][in] */ const GUID *pguidCmdGroup,
  982. /* [in] */ ULONG cCmds,
  983. /* [out][in][size_is] */ OLECMD prgCmds[ ],
  984. /* [unique][out][in] */ OLECMDTEXT *pCmdText);
  985. HRESULT ( STDMETHODCALLTYPE *Exec )(
  986. IOleCommandTarget * This,
  987. /* [unique][in] */ const GUID *pguidCmdGroup,
  988. /* [in] */ DWORD nCmdID,
  989. /* [in] */ DWORD nCmdexecopt,
  990. /* [unique][in] */ VARIANT *pvaIn,
  991. /* [unique][out][in] */ VARIANT *pvaOut);
  992. END_INTERFACE
  993. } IOleCommandTargetVtbl;
  994. interface IOleCommandTarget
  995. {
  996. CONST_VTBL struct IOleCommandTargetVtbl *lpVtbl;
  997. };
  998. #ifdef COBJMACROS
  999. #define IOleCommandTarget_QueryInterface(This,riid,ppvObject) \
  1000. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1001. #define IOleCommandTarget_AddRef(This) \
  1002. (This)->lpVtbl -> AddRef(This)
  1003. #define IOleCommandTarget_Release(This) \
  1004. (This)->lpVtbl -> Release(This)
  1005. #define IOleCommandTarget_QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) \
  1006. (This)->lpVtbl -> QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText)
  1007. #define IOleCommandTarget_Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) \
  1008. (This)->lpVtbl -> Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut)
  1009. #endif /* COBJMACROS */
  1010. #endif /* C style interface */
  1011. /* [input_sync] */ HRESULT STDMETHODCALLTYPE IOleCommandTarget_QueryStatus_Proxy(
  1012. IOleCommandTarget * This,
  1013. /* [unique][in] */ const GUID *pguidCmdGroup,
  1014. /* [in] */ ULONG cCmds,
  1015. /* [out][in][size_is] */ OLECMD prgCmds[ ],
  1016. /* [unique][out][in] */ OLECMDTEXT *pCmdText);
  1017. void __RPC_STUB IOleCommandTarget_QueryStatus_Stub(
  1018. IRpcStubBuffer *This,
  1019. IRpcChannelBuffer *_pRpcChannelBuffer,
  1020. PRPC_MESSAGE _pRpcMessage,
  1021. DWORD *_pdwStubPhase);
  1022. HRESULT STDMETHODCALLTYPE IOleCommandTarget_Exec_Proxy(
  1023. IOleCommandTarget * This,
  1024. /* [unique][in] */ const GUID *pguidCmdGroup,
  1025. /* [in] */ DWORD nCmdID,
  1026. /* [in] */ DWORD nCmdexecopt,
  1027. /* [unique][in] */ VARIANT *pvaIn,
  1028. /* [unique][out][in] */ VARIANT *pvaOut);
  1029. void __RPC_STUB IOleCommandTarget_Exec_Stub(
  1030. IRpcStubBuffer *This,
  1031. IRpcChannelBuffer *_pRpcChannelBuffer,
  1032. PRPC_MESSAGE _pRpcMessage,
  1033. DWORD *_pdwStubPhase);
  1034. #endif /* __IOleCommandTarget_INTERFACE_DEFINED__ */
  1035. /* interface __MIDL_itf_docobj_0267 */
  1036. /* [local] */
  1037. #endif
  1038. typedef enum
  1039. {
  1040. OLECMDIDF_REFRESH_NORMAL = 0,
  1041. OLECMDIDF_REFRESH_IFEXPIRED = 1,
  1042. OLECMDIDF_REFRESH_CONTINUE = 2,
  1043. OLECMDIDF_REFRESH_COMPLETELY = 3,
  1044. OLECMDIDF_REFRESH_NO_CACHE = 4,
  1045. OLECMDIDF_REFRESH_RELOAD = 5,
  1046. OLECMDIDF_REFRESH_LEVELMASK = 0x00FF,
  1047. OLECMDIDF_REFRESH_CLEARUSERINPUT = 0x1000,
  1048. OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,
  1049. OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000
  1050. } OLECMDID_REFRESHFLAG;
  1051. ////////////////////////////////////////////////////////////////////////////
  1052. // Aliases to original office-compatible names
  1053. #define IMsoDocument IOleDocument
  1054. #define IMsoDocumentSite IOleDocumentSite
  1055. #define IMsoView IOleDocumentView
  1056. #define IEnumMsoView IEnumOleDocumentViews
  1057. #define IMsoCommandTarget IOleCommandTarget
  1058. #define LPMSODOCUMENT LPOLEDOCUMENT
  1059. #define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE
  1060. #define LPMSOVIEW LPOLEDOCUMENTVIEW
  1061. #define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS
  1062. #define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET
  1063. #define MSOCMD OLECMD
  1064. #define MSOCMDTEXT OLECMDTEXT
  1065. #define IID_IMsoDocument IID_IOleDocument
  1066. #define IID_IMsoDocumentSite IID_IOleDocumentSite
  1067. #define IID_IMsoView IID_IOleDocumentView
  1068. #define IID_IEnumMsoView IID_IEnumOleDocumentViews
  1069. #define IID_IMsoCommandTarget IID_IOleCommandTarget
  1070. #define MSOCMDF_SUPPORTED OLECMDF_SUPPORTED
  1071. #define MSOCMDF_ENABLED OLECMDF_ENABLED
  1072. #define MSOCMDF_LATCHED OLECMDF_LATCHED
  1073. #define MSOCMDF_NINCHED OLECMDF_NINCHED
  1074. #define MSOCMDTEXTF_NONE OLECMDTEXTF_NONE
  1075. #define MSOCMDTEXTF_NAME OLECMDTEXTF_NAME
  1076. #define MSOCMDTEXTF_STATUS OLECMDTEXTF_STATUS
  1077. #define MSOCMDEXECOPT_DODEFAULT OLECMDEXECOPT_DODEFAULT
  1078. #define MSOCMDEXECOPT_PROMPTUSER OLECMDEXECOPT_PROMPTUSER
  1079. #define MSOCMDEXECOPT_DONTPROMPTUSER OLECMDEXECOPT_DONTPROMPTUSER
  1080. #define MSOCMDEXECOPT_SHOWHELP OLECMDEXECOPT_SHOWHELP
  1081. #define MSOCMDID_OPEN OLECMDID_OPEN
  1082. #define MSOCMDID_NEW OLECMDID_NEW
  1083. #define MSOCMDID_SAVE OLECMDID_SAVE
  1084. #define MSOCMDID_SAVEAS OLECMDID_SAVEAS
  1085. #define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS
  1086. #define MSOCMDID_PRINT OLECMDID_PRINT
  1087. #define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW
  1088. #define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP
  1089. #define MSOCMDID_SPELL OLECMDID_SPELL
  1090. #define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES
  1091. #define MSOCMDID_CUT OLECMDID_CUT
  1092. #define MSOCMDID_COPY OLECMDID_COPY
  1093. #define MSOCMDID_PASTE OLECMDID_PASTE
  1094. #define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL
  1095. #define MSOCMDID_UNDO OLECMDID_UNDO
  1096. #define MSOCMDID_REDO OLECMDID_REDO
  1097. #define MSOCMDID_SELECTALL OLECMDID_SELECTALL
  1098. #define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION
  1099. #define MSOCMDID_ZOOM OLECMDID_ZOOM
  1100. #define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE
  1101. EXTERN_C const GUID SID_SContainerDispatch;
  1102. extern RPC_IF_HANDLE __MIDL_itf_docobj_0267_v0_0_c_ifspec;
  1103. extern RPC_IF_HANDLE __MIDL_itf_docobj_0267_v0_0_s_ifspec;
  1104. /* Additional Prototypes for ALL interfaces */
  1105. unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * );
  1106. unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * );
  1107. unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * );
  1108. void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * );
  1109. /* [local] */ HRESULT __stdcall IEnumOleDocumentViews_Next_Proxy(
  1110. IEnumOleDocumentViews * This,
  1111. /* [in] */ ULONG cViews,
  1112. /* [out] */ IOleDocumentView **rgpView,
  1113. /* [out] */ ULONG *pcFetched);
  1114. /* [call_as] */ HRESULT __stdcall IEnumOleDocumentViews_Next_Stub(
  1115. IEnumOleDocumentViews * This,
  1116. /* [in] */ ULONG cViews,
  1117. /* [length_is][size_is][out] */ IOleDocumentView **rgpView,
  1118. /* [out] */ ULONG *pcFetched);
  1119. /* [local] */ HRESULT __stdcall IPrint_Print_Proxy(
  1120. IPrint * This,
  1121. /* [in] */ DWORD grfFlags,
  1122. /* [out][in] */ DVTARGETDEVICE **pptd,
  1123. /* [out][in] */ PAGESET **ppPageSet,
  1124. /* [unique][out][in] */ STGMEDIUM *pstgmOptions,
  1125. /* [in] */ IContinueCallback *pcallback,
  1126. /* [in] */ LONG nFirstPage,
  1127. /* [out] */ LONG *pcPagesPrinted,
  1128. /* [out] */ LONG *pnLastPage);
  1129. /* [call_as] */ HRESULT __stdcall IPrint_Print_Stub(
  1130. IPrint * This,
  1131. /* [in] */ DWORD grfFlags,
  1132. /* [out][in] */ DVTARGETDEVICE **pptd,
  1133. /* [out][in] */ PAGESET **pppageset,
  1134. /* [unique][out][in] */ RemSTGMEDIUM *pstgmOptions,
  1135. /* [in] */ IContinueCallback *pcallback,
  1136. /* [in] */ LONG nFirstPage,
  1137. /* [out] */ LONG *pcPagesPrinted,
  1138. /* [out] */ LONG *pnLastPage);
  1139. /* end of Additional Prototypes */
  1140. #ifdef __cplusplus
  1141. }
  1142. #endif
  1143. #endif