ReactOS 0.4.15-dev-7906-g1b85a5f
docobj.idl
Go to the documentation of this file.
1/*
2 * Copyright (C) 1999 Paul Quinn
3 * Copyright (C) 2003 Alexandre Julliard
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20import "ocidl.idl";
21import "objidl.idl";
22import "oleidl.idl";
23import "oaidl.idl";
24import "servprov.idl";
25
26
27interface IOleDocumentView;
28interface IEnumOleDocumentViews;
29
30
31/*****************************************************************************
32 * IOleDocument interface
33 */
34[
35 object,
36 uuid(b722bcc5-4e68-101b-a2bc-00aa00404770),
38]
40{
42
43 typedef enum
44 {
50
52 [in, unique] IOleInPlaceSite *pIPSite,
53 [in, unique] IStream *pstm,
55 [out] IOleDocumentView **ppView);
56
58 [out] DWORD *pdwStatus);
59
61 [out] IEnumOleDocumentViews **ppEnum,
62 [out] IOleDocumentView **ppView);
63}
64
65
66/*****************************************************************************
67 * IOleDocumentSite interface
68 */
69[
70 object,
71 uuid(b722bcc7-4e68-101b-a2bc-00aa00404770),
73]
75{
77
78 HRESULT ActivateMe( [in] IOleDocumentView *pViewToActivate );
79}
80
81
82/*****************************************************************************
83 * IOleDocumentView interface
84 */
85[
86 object,
87 uuid(b722bcc6-4e68-101b-a2bc-00aa00404770),
89]
91{
93
95
97
99
100 HRESULT SetRect( [in] LPRECT prcView );
101
102 HRESULT GetRect( [out] LPRECT prcView );
103
105 [in, unique] LPRECT prcView,
106 [in, unique] LPRECT prcHScroll,
107 [in, unique] LPRECT prcVScroll,
108 [in, unique] LPRECT prcSizeBox);
109
110 HRESULT Show( [in] BOOL fShow );
111
112 HRESULT UIActivate( [in] BOOL fUIActivate );
113
115
117
119
121
123 [in] IOleInPlaceSite *pIPSiteNew,
124 [out] IOleDocumentView **ppViewNew);
125}
126
127
128/*****************************************************************************
129 * IEnumOleDocumentViews interface
130 */
131[
132 object,
133 uuid(b722bcc8-4e68-101b-a2bc-00aa00404770),
135]
137{
139
140 [local]
142 [in] ULONG cViews,
143 [out] IOleDocumentView **rgpView,
144 [out] ULONG *pcFetched);
145
146 [call_as(Next)]
148 [in] ULONG cViews,
149 [out, size_is(cViews), length_is(*pcFetched)] IOleDocumentView **rgpView,
150 [out] ULONG *pcFetched);
151
152 HRESULT Skip( [in] ULONG cViews );
153
155
157}
158
159
160/*****************************************************************************
161 * IOleCommandTarget interface
162 */
163[
164 object,
165 uuid(b722bccb-4e68-101b-a2bc-00aa00404770),
167]
169{
171
172 typedef enum OLECMDF
173 {
181
182 typedef struct _tagOLECMD
183 {
187
188 typedef struct _tagOLECMDTEXT
189 {
193 [size_is(cwBuf)] WCHAR rgwz[];
195
196 typedef enum OLECMDTEXTF
197 {
202
203 typedef enum OLECMDEXECOPT
204 {
210
211 typedef enum OLECMDID
212 {
252 /* iexplorer uses ... 44 */
291
293 [in, unique] const GUID *pguidCmdGroup,
294 [in] ULONG cCmds,
295 [in, out, size_is(cCmds)] OLECMD prgCmds[],
296 [in, out, unique] OLECMDTEXT *pCmdText);
297
299 [in, unique] const GUID *pguidCmdGroup,
300 [in] DWORD nCmdID,
301 [in] DWORD nCmdexecopt,
302 [in, unique] VARIANT *pvaIn,
303 [in, out, unique] VARIANT *pvaOut);
304}
305
306
307/*****************************************************************************
308 * IContinueCallback interface
309 */
310[
311 object,
312 uuid(b722bcca-4e68-101b-a2bc-00aa00404770),
314]
316{
318
320
322 [in] LONG nCntPrinted,
323 [in] LONG nCurPage,
324 [in, unique] WCHAR *pwszPrintStatus);
325}
326
327
328/*****************************************************************************
329 * IPrint interface
330 */
331[
332 object,
333 uuid(b722bcc9-4e68-101b-a2bc-00aa00404770),
335]
336interface IPrint : IUnknown
337{
339
340 typedef enum
341 {
350
351 typedef struct tagPAGERANGE
352 {
356
357 typedef struct tagPAGESET
358 {
365
367 [in] LONG nFirstPage);
368
370 [out] LONG *pnFirstPage,
371 [out] LONG *pcPages);
372
373 [local]
375 [in] DWORD grfFlags,
376 [in, out] DVTARGETDEVICE **pptd,
377 [in, out] PAGESET **ppPageSet,
378 [in, out, unique] STGMEDIUM *pstgmOptions,
379 [in] IContinueCallback *pcallback,
380 [in] LONG nFirstPage,
381 [out] LONG *pcPagesPrinted,
382 [out] LONG *pnLastPage);
383
384 [call_as(Print)]
386 [in] DWORD grfFlags,
387 [in, out] DVTARGETDEVICE **pptd,
388 [in, out] PAGESET **pppageset,
389 [in, out, unique] RemSTGMEDIUM *pstgmOptions,
390 [in] IContinueCallback *pcallback,
391 [in] LONG nFirstPage,
392 [out] LONG *pcPagesPrinted,
393 [out] LONG *pnLastPage);
394}
395
396
397cpp_quote("#define OLECMDERR_E_FIRST (OLE_E_LAST+1)")
398cpp_quote("#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)")
399cpp_quote("#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1)")
400cpp_quote("#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2)")
401cpp_quote("#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3)")
402cpp_quote("#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4)")
403
404cpp_quote("#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST")
405cpp_quote("#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED")
406cpp_quote("#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED")
407cpp_quote("#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP")
408cpp_quote("#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED")
409cpp_quote("#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP")
410
411cpp_quote("#define LPMSODOCUMENT LPOLEDOCUMENT")
412cpp_quote("#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE")
413cpp_quote("#define LPMSOVIEW LPOLEDOCUMENTVIEW")
414cpp_quote("#define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS")
415cpp_quote("#define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET")
416cpp_quote("#define IID_IMsoDocument IID_IOleDocument")
417cpp_quote("#define IID_IMsoDocumentSite IID_IOleDocumentSite")
418cpp_quote("#define IID_IMsoView IID_IOleDocumentView")
419cpp_quote("#define IID_IEnumMsoView IID_IEnumOleDocumentViews")
420cpp_quote("#define IID_IMsoCommandTarget IID_IOleCommandTarget")
421
422cpp_quote("DEFINE_GUID(SID_SContainerDispatch, 0xb722be00,0x4e68,0x101b,0xa2,0xbc,0x00,0xaa,0x00,0x40,0x47,0x70);")
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
Definition: d3d10.idl:491
coclass PSFactoryBuffer pointer_default(unique)] interface ObjectRpcBaseTypes
Definition: dcom.idl:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define local
Definition: zutil.h:30
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLuint in
Definition: glext.h:9616
IContinueCallback * LPCONTINUECALLBACK
Definition: docobj.idl:317
HRESULT FContinuePrinting([in] LONG nCntPrinted, [in] LONG nCurPage, [in, unique] WCHAR *pwszPrintStatus)
HRESULT FContinue()
HRESULT Skip([in] ULONG cViews)
IEnumOleDocumentViews * LPENUMOLEDOCUMENTVIEWS
Definition: docobj.idl:138
HRESULT RemoteNext([in] ULONG cViews, [out, size_is(cViews), length_is(*pcFetched)] IOleDocumentView **rgpView, [out] ULONG *pcFetched)
HRESULT Clone([out] IEnumOleDocumentViews **ppEnum)
HRESULT Next([in] ULONG cViews, [out] IOleDocumentView **rgpView, [out] ULONG *pcFetched)
struct IOleCommandTarget::_tagOLECMDTEXT OLECMDTEXT
HRESULT QueryStatus([in, unique] const GUID *pguidCmdGroup, [in] ULONG cCmds, [in, out, size_is(cCmds)] OLECMD prgCmds[], [in, out, unique] OLECMDTEXT *pCmdText)
@ OLECMDID_SETPRINTTEMPLATE
Definition: docobj.idl:264
@ OLECMDID_SHOWSCRIPTERROR
Definition: docobj.idl:253
@ OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM
Definition: docobj.idl:283
@ OLECMDID_PAGEACTIONUIQUERY
Definition: docobj.idl:267
@ OLECMDID_WINDOWSTATECHANGED
Definition: docobj.idl:276
@ OLECMDID_GETPRINTTEMPLATE
Definition: docobj.idl:265
@ OLECMDID_UPDATEBACKFORWARDSTATE
Definition: docobj.idl:273
@ OLECMDID_PAGEACTIONBLOCKED
Definition: docobj.idl:266
@ OLECMDID_UPDATETRAVELENTRY_DATARECOVERY
Definition: docobj.idl:278
@ OLECMDID_LAYOUT_VIEWPORT_WIDTH
Definition: docobj.idl:282
@ OLECMDID_SETDOWNLOADSTATE
Definition: docobj.idl:241
@ OLECMDID_USER_OPTICAL_ZOOM
Definition: docobj.idl:284
@ OLECMDID_FOCUSVIEWCONTROLS
Definition: docobj.idl:268
@ OLECMDID_FOCUSVIEWCONTROLSQUERY
Definition: docobj.idl:269
@ OLECMDID_ENABLE_VISIBILITY
Definition: docobj.idl:288
@ OLECMDID_UPDATEPAGESTATUS
Definition: docobj.idl:261
@ OLECMDID_DONTDOWNLOADCSS
Definition: docobj.idl:260
@ OLECMDID_SHOWPAGEACTIONMENU
Definition: docobj.idl:270
@ OLECMDID_SETPROGRESSTEXT
Definition: docobj.idl:239
@ OLECMDID_ACTIVEXINSTALLSCOPE
Definition: docobj.idl:277
@ OLECMDID_OPTICAL_GETZOOMRANGE
Definition: docobj.idl:275
@ OLECMDID_UPDATETRAVELENTRY
Definition: docobj.idl:272
@ OLECMDID_ONTOOLBARACTIVATED
Definition: docobj.idl:243
@ OLECMDID_ALLOWUILESSSAVEAS
Definition: docobj.idl:259
@ OLECMDID_GETUSERSCALABLE
Definition: docobj.idl:286
@ OLECMDID_ENABLE_INTERACTION
Definition: docobj.idl:248
@ OLECMDEXECOPT_PROMPTUSER
Definition: docobj.idl:206
@ OLECMDEXECOPT_DONTPROMPTUSER
Definition: docobj.idl:207
struct IOleCommandTarget::_tagOLECMD OLECMD
HRESULT Exec([in, unique] const GUID *pguidCmdGroup, [in] DWORD nCmdID, [in] DWORD nCmdexecopt, [in, unique] VARIANT *pvaIn, [in, out, unique] VARIANT *pvaOut)
@ OLECMDF_DEFHIDEONCTXTMENU
Definition: docobj.idl:179
IOleCommandTarget * LPOLECOMMANDTARGET
Definition: docobj.idl:170
HRESULT ActivateMe([in] IOleDocumentView *pViewToActivate)
IOleDocumentSite * LPOLEDOCUMENTSITE
Definition: docobj.idl:76
HRESULT Clone([in] IOleInPlaceSite *pIPSiteNew, [out] IOleDocumentView **ppViewNew)
HRESULT SetRectComplex([in, unique] LPRECT prcView, [in, unique] LPRECT prcHScroll, [in, unique] LPRECT prcVScroll, [in, unique] LPRECT prcSizeBox)
HRESULT GetRect([out] LPRECT prcView)
HRESULT ApplyViewState([in] LPSTREAM pstm)
HRESULT SaveViewState([in] LPSTREAM pstm)
HRESULT GetInPlaceSite([out] IOleInPlaceSite **ppIPSite)
HRESULT Show([in] BOOL fShow)
HRESULT SetRect([in] LPRECT prcView)
HRESULT CloseView([in] DWORD dwReserved)
HRESULT UIActivate([in] BOOL fUIActivate)
HRESULT GetDocument([out] IUnknown **ppunk)
HRESULT SetInPlaceSite([in, unique] IOleInPlaceSite *pIPSite)
IOleDocumentView * LPOLEDOCUMENTVIEW
Definition: docobj.idl:92
HRESULT CreateView([in, unique] IOleInPlaceSite *pIPSite, [in, unique] IStream *pstm, [in] DWORD dwReserved, [out] IOleDocumentView **ppView)
HRESULT EnumViews([out] IEnumOleDocumentViews **ppEnum, [out] IOleDocumentView **ppView)
HRESULT GetDocMiscStatus([out] DWORD *pdwStatus)
IOleDocument * LPOLEDOCUMENT
Definition: docobj.idl:41
@ DOCMISC_CANTOPENEDIT
Definition: docobj.idl:47
@ DOCMISC_NOFILESUPPORT
Definition: docobj.idl:48
@ DOCMISC_SUPPORTCOMPLEXRECTANGLES
Definition: docobj.idl:46
@ DOCMISC_CANCREATEMULTIPLEVIEWS
Definition: docobj.idl:45
HRESULT SetInitialPageNum([in] LONG nFirstPage)
struct IPrint::tagPAGESET PAGESET
PRINTFLAG
Definition: docobj.idl:341
@ PRINTFLAG_RECOMPOSETODEVICE
Definition: docobj.idl:345
@ PRINTFLAG_DONTACTUALLYPRINT
Definition: docobj.idl:346
@ PRINTFLAG_FORCEPROPERTIES
Definition: docobj.idl:347
@ PRINTFLAG_PRINTTOFILE
Definition: docobj.idl:348
@ PRINTFLAG_USERMAYCHANGEPRINTER
Definition: docobj.idl:344
@ PRINTFLAG_MAYBOTHERUSER
Definition: docobj.idl:342
@ PRINTFLAG_PROMPTUSER
Definition: docobj.idl:343
IPrint * LPPRINT
Definition: docobj.idl:338
HRESULT GetPageInfo([out] LONG *pnFirstPage, [out] LONG *pcPages)
struct IPrint::tagPAGERANGE PAGERANGE
HRESULT RemotePrint([in] DWORD grfFlags, [in, out] DVTARGETDEVICE **pptd, [in, out] PAGESET **pppageset, [in, out, unique] RemSTGMEDIUM *pstgmOptions, [in] IContinueCallback *pcallback, [in] LONG nFirstPage, [out] LONG *pcPagesPrinted, [out] LONG *pnLastPage)
HRESULT Print([in] DWORD grfFlags, [in, out] DVTARGETDEVICE **pptd, [in, out] PAGESET **ppPageSet, [in, out, unique] STGMEDIUM *pstgmOptions, [in] IContinueCallback *pcallback, [in] LONG nFirstPage, [out] LONG *pcPagesPrinted, [out] LONG *pnLastPage)
Definition: msctf.idl:550
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
interface IStream * LPSTREAM
Definition: objfwd.h:10
long LONG
Definition: pedump.c:60
static FILE * out
Definition: regtests2xml.c:44
PAGERANGE rgPages[]
Definition: docobj.idl:363
uint32_t ULONG
Definition: typedefs.h:59
__wchar_t WCHAR
Definition: xmlstorage.h:180