4 #pragma GCC system_header
11 #define OLECMDERR_E_UNKNOWNGROUP (-2147221244)
12 #define OLECMDERR_E_DISABLED (-2147221247)
13 #define OLECMDERR_E_NOHELP (-2147221246)
14 #define OLECMDERR_E_CANCELED (-2147221245)
15 #define OLECMDERR_E_NOTSUPPORTED (-2147221248)
22 OLECMDID_SAVECOPYAS
= 5,
24 OLECMDID_PRINTPREVIEW
= 7,
25 OLECMDID_PAGESETUP
= 8,
27 OLECMDID_PROPERTIES
= 10,
31 OLECMDID_PASTESPECIAL
= 14,
34 OLECMDID_SELECTALL
= 17,
35 OLECMDID_CLEARSELECTION
= 18,
37 OLECMDID_GETZOOMRANGE
= 20,
38 OLECMDID_UPDATECOMMANDS
= 21,
39 OLECMDID_REFRESH
= 22,
41 OLECMDID_HIDETOOLBARS
= 24,
42 OLECMDID_SETPROGRESSMAX
= 25,
43 OLECMDID_SETPROGRESSPOS
= 26,
44 OLECMDID_SETPROGRESSTEXT
= 27,
45 OLECMDID_SETTITLE
= 28,
46 OLECMDID_SETDOWNLOADSTATE
= 29,
47 OLECMDID_STOPDOWNLOAD
= 30
50 OLECMDF_SUPPORTED
= 1,
56 OLECMDEXECOPT_DODEFAULT
= 0,
57 OLECMDEXECOPT_PROMPTUSER
= 1,
58 OLECMDEXECOPT_DONTPROMPTUSER
= 2,
59 OLECMDEXECOPT_SHOWHELP
= 3
62 typedef struct _tagOLECMDTEXT
{
68 typedef struct _tagOLECMD
{
73 typedef _COM_interface IOleInPlaceSite
*LPOLEINPLACESITE
;
74 typedef _COM_interface IEnumOleDocumentViews
*LPENUMOLEDOCUMENTVIEWS
;
76 EXTERN_C
const IID IID_IContinueCallback
;
77 EXTERN_C
const IID IID_IEnumOleDocumentViews
;
78 EXTERN_C
const IID IID_IPrint
;
80 EXTERN_C
const IID IID_IOleDocumentView
;
81 #define INTERFACE IOleDocumentView
82 DECLARE_INTERFACE_(IOleDocumentView
,IUnknown
)
84 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
85 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
86 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
88 STDMETHOD(SetInPlaceSite
)(THIS_ LPOLEINPLACESITE
) PURE
;
89 STDMETHOD(GetInPlaceSite
)(THIS_ LPOLEINPLACESITE
*) PURE
;
90 STDMETHOD(GetDocument
)(THIS_ IUnknown
**) PURE
;
91 STDMETHOD(SetRect
)(THIS_ LPRECT
) PURE
;
92 STDMETHOD(GetRect
)(THIS_ LPRECT
) PURE
;
93 STDMETHOD(SetRectComplex
)(THIS_ LPRECT
,LPRECT
,LPRECT
,LPRECT
) PURE
;
94 STDMETHOD(Show
)(THIS_ BOOL
) PURE
;
95 STDMETHOD(UIActivate
)(THIS_ BOOL
) PURE
;
96 STDMETHOD(Open
)(THIS
) PURE
;
97 STDMETHOD(Close
)(THIS_ DWORD
) PURE
;
98 STDMETHOD(SaveViewState
)(THIS_ IStream
*) PURE
;
99 STDMETHOD(ApplyViewState
)(THIS_ IStream
*) PURE
;
100 STDMETHOD(Clone
)(THIS_ LPOLEINPLACESITE
,IOleDocumentView
**) PURE
;
103 DECLARE_ENUMERATOR_(IEnumOleDocumentViews
,IOleDocumentView
);
105 EXTERN_C
const IID IID_IOleDocument
;
106 #define INTERFACE IOleDocument
107 DECLARE_INTERFACE_(IOleDocument
,IUnknown
)
109 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
110 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
111 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
113 STDMETHOD(CreateView
)(THIS_ LPOLEINPLACESITE
,IStream
*,DWORD
,IOleDocumentView
**) PURE
;
114 STDMETHOD(GetDocMiscStatus
)(THIS_ DWORD
*) PURE
;
115 STDMETHOD(EnumViews
)(THIS_ LPENUMOLEDOCUMENTVIEWS
*,IOleDocumentView
**) PURE
;
119 EXTERN_C
const IID IID_IOleCommandTarget
;
120 #define INTERFACE IOleCommandTarget
121 DECLARE_INTERFACE_(IOleCommandTarget
,IUnknown
)
123 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
124 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
125 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
127 STDMETHOD(QueryStatus
)(THIS_
const GUID
*,ULONG
,OLECMD
*,OLECMDTEXT
*) PURE
;
128 STDMETHOD(Exec
)(THIS_
const GUID
*,DWORD
,DWORD
,VARIANTARG
*,VARIANTARG
*) PURE
;
132 EXTERN_C
const IID IID_IOleDocumentSite
;
133 #define INTERFACE IOleDocumentSite
134 DECLARE_INTERFACE_(IOleDocumentSite
,IUnknown
)
136 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
137 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
138 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
140 STDMETHOD(ActivateMe
)(THIS_ IOleDocumentView
*) PURE
;