ReactOS  0.4.14-dev-608-gd495a4f
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 
20 import "ocidl.idl";
21 import "objidl.idl";
22 import "oleidl.idl";
23 import "oaidl.idl";
24 import "servprov.idl";
25 
26 
27 interface IOleDocumentView;
28 interface 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  {
49  } DOCMISC;
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 
96  HRESULT GetInPlaceSite( [out] IOleInPlaceSite **ppIPSite );
97 
98  HRESULT GetDocument( [out] IUnknown **ppunk );
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 
114  HRESULT Open();
115 
117 
118  HRESULT SaveViewState( [in] LPSTREAM pstm );
119 
120  HRESULT ApplyViewState( [in] LPSTREAM pstm );
121 
122  HRESULT Clone(
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]
141  HRESULT Next(
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 
154  HRESULT Reset();
155 
156  HRESULT Clone( [out] IEnumOleDocumentViews **ppEnum );
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  {
180  } OLECMDF;
181 
182  typedef struct _tagOLECMD
183  {
186  } OLECMD;
187 
188  typedef struct _tagOLECMDTEXT
189  {
193  [size_is(cwBuf)] WCHAR rgwz[];
194  } OLECMDTEXT;
195 
196  typedef enum OLECMDTEXTF
197  {
201  } OLECMDTEXTF;
202 
203  typedef enum OLECMDEXECOPT
204  {
209  } OLECMDEXECOPT;
210 
211  typedef enum OLECMDID
212  {
252  /* iexplorer uses ... 44 */
290  } OLECMDID;
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 
298  HRESULT Exec(
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 
319  HRESULT FContinue();
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 ]
336 interface IPrint : IUnknown
337 {
338  typedef [unique] IPrint *LPPRINT;
339 
340  typedef enum
341  {
349  } PRINTFLAG;
350 
351  typedef struct tagPAGERANGE
352  {
355  } PAGERANGE;
356 
357  typedef struct tagPAGESET
358  {
364  } PAGESET;
365 
367  [in] LONG nFirstPage);
368 
370  [out] LONG *pnFirstPage,
371  [out] LONG *pcPages);
372 
373  [local]
374  HRESULT Print(
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 
397 cpp_quote("#define OLECMDERR_E_FIRST (OLE_E_LAST+1)")
398 cpp_quote("#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)")
399 cpp_quote("#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1)")
400 cpp_quote("#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2)")
401 cpp_quote("#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3)")
402 cpp_quote("#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4)")
403 
404 cpp_quote("#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST")
405 cpp_quote("#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED")
406 cpp_quote("#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED")
407 cpp_quote("#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP")
408 cpp_quote("#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED")
409 cpp_quote("#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP")
410 
411 cpp_quote("#define LPMSODOCUMENT LPOLEDOCUMENT")
412 cpp_quote("#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE")
413 cpp_quote("#define LPMSOVIEW LPOLEDOCUMENTVIEW")
414 cpp_quote("#define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS")
415 cpp_quote("#define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET")
416 cpp_quote("#define IID_IMsoDocument IID_IOleDocument")
417 cpp_quote("#define IID_IMsoDocumentSite IID_IOleDocumentSite")
418 cpp_quote("#define IID_IMsoView IID_IOleDocumentView")
419 cpp_quote("#define IID_IEnumMsoView IID_IEnumOleDocumentViews")
420 cpp_quote("#define IID_IMsoCommandTarget IID_IOleCommandTarget")
421 
422 cpp_quote("DEFINE_GUID(SID_SContainerDispatch, 0xb722be00,0x4e68,0x101b,0xa2,0xbc,0x00,0xaa,0x00,0x40,0x47,0x70);")
HRESULT ApplyViewState([in] LPSTREAM pstm)
HRESULT GetPageInfo([out] LONG *pnFirstPage, [out] LONG *pcPages)
HRESULT GetDocMiscStatus([out] DWORD *pdwStatus)
HRESULT UIActivate([in] BOOL fUIActivate)
struct IOleCommandTarget::_tagOLECMD OLECMD
HRESULT FContinue()
HRESULT CreateView([in, unique] IOleInPlaceSite *pIPSite, [in, unique] IStream *pstm, [in] DWORD dwReserved, [out] IOleDocumentView **ppView)
HRESULT RemoteNext([in] ULONG cViews, [out, size_is(cViews), length_is(*pcFetched)] IOleDocumentView **rgpView, [out] ULONG *pcFetched)
interface IStream * LPSTREAM
Definition: objfwd.h:10
HRESULT Next([in] ULONG cViews, [out] IOleDocumentView **rgpView, [out] ULONG *pcFetched)
HRESULT GetRect([out] LPRECT prcView)
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
HRESULT QueryStatus([in, unique] const GUID *pguidCmdGroup, [in] ULONG cCmds, [in, out, size_is(cCmds)] OLECMD prgCmds[], [in, out, unique] OLECMDTEXT *pCmdText)
IEnumOleDocumentViews * LPENUMOLEDOCUMENTVIEWS
Definition: docobj.idl:138
struct IOleCommandTarget::_tagOLECMDTEXT OLECMDTEXT
HRESULT Exec([in, unique] const GUID *pguidCmdGroup, [in] DWORD nCmdID, [in] DWORD nCmdexecopt, [in, unique] VARIANT *pvaIn, [in, out, unique] VARIANT *pvaOut)
PRINTFLAG
Definition: docobj.idl:340
HRESULT GetInPlaceSite([out] IOleInPlaceSite **ppIPSite)
HRESULT SaveViewState([in] LPSTREAM pstm)
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
IOleCommandTarget * LPOLECOMMANDTARGET
Definition: docobj.idl:170
struct IPrint::tagPAGERANGE PAGERANGE
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)
HRESULT SetRectComplex([in, unique] LPRECT prcView, [in, unique] LPRECT prcHScroll, [in, unique] LPRECT prcVScroll, [in, unique] LPRECT prcSizeBox)
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
IOleDocumentView * LPOLEDOCUMENTVIEW
Definition: docobj.idl:92
HRESULT GetDocument([out] IUnknown **ppunk)
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT SetRect([in] LPRECT prcView)
HRESULT FContinuePrinting([in] LONG nCntPrinted, [in] LONG nCurPage, [in, unique] WCHAR *pwszPrintStatus)
HRESULT SetInitialPageNum([in] LONG nFirstPage)
HRESULT Skip([in] ULONG cViews)
struct IPrint::tagPAGESET PAGESET
HRESULT SetInPlaceSite([in, unique] IOleInPlaceSite *pIPSite)
PAGERANGE rgPages[]
Definition: docobj.idl:363
#define local
Definition: zutil.h:30
IContinueCallback * LPCONTINUECALLBACK
Definition: docobj.idl:317
HRESULT Show([in] BOOL fShow)
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 Clone([in] IOleInPlaceSite *pIPSiteNew, [out] IOleDocumentView **ppViewNew)
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
_ForwardIter unique(_ForwardIter __first, _ForwardIter __last)
Definition: _algo.h:298
unsigned int ULONG
Definition: retypes.h:1
HRESULT CloseView([in] DWORD dwReserved)
HRESULT Clone([out] IEnumOleDocumentViews **ppEnum)
IOleDocumentSite * LPOLEDOCUMENTSITE
Definition: docobj.idl:76
IOleDocument * LPOLEDOCUMENT
Definition: docobj.idl:41
void * object
Definition: jmemsys.h:48
IPrint * LPPRINT
Definition: docobj.idl:338
HRESULT ActivateMe([in] IOleDocumentView *pViewToActivate)
HRESULT EnumViews([out] IEnumOleDocumentViews **ppEnum, [out] IOleDocumentView **ppView)