Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b90d6118
Commit
b90d6118
authored
Sep 04, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted docobj.h to IDL.
parent
e4ce323d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1469 additions
and
298 deletions
+1469
-298
Makefile.in
include/Makefile.in
+1
-1
docobj.h
include/docobj.h
+1072
-297
docobj.idl
include/docobj.idl
+396
-0
No files found.
include/Makefile.in
View file @
b90d6118
...
...
@@ -6,6 +6,7 @@ MODULE = none
IDL_SRCS
=
\
comcat.idl
\
docobj.idl
\
oaidl.idl
\
objidl.idl
\
ocidl.idl
\
...
...
@@ -67,7 +68,6 @@ WINDOWS_INCLUDES = \
dmusicf.h
\
dmusici.h
\
dmusics.h
\
docobj.h
\
dpaddr.h
\
dplay.h
\
dplay8.h
\
...
...
include/docobj.h
View file @
b90d6118
/*
* Copyright (C) 1999 Paul Quinn
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*** Autogenerated by WIDL 0.1 from docobj.idl - Do not edit ***/
#include <rpc.h>
#include <rpcndr.h>
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#ifndef __WIDL_DOCOBJ_H
#define __WIDL_DOCOBJ_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include <ocidl.h>
#include <objidl.h>
#include <oleidl.h>
#include <oaidl.h>
#include <servprov.h>
#ifndef __IOleDocumentView_FWD_DEFINED__
#define __IOleDocumentView_FWD_DEFINED__
typedef
struct
IOleDocumentView
IOleDocumentView
;
#endif
#ifndef __WINE_DOCOBJ_H
#define __WINE_DOCOBJ_H
#ifndef __IEnumOleDocumentViews_FWD_DEFINED__
#define __IEnumOleDocumentViews_FWD_DEFINED__
typedef
struct
IEnumOleDocumentViews
IEnumOleDocumentViews
;
#endif
#include <winbase.h>
#include <windef.h>
#include <wingdi.h>
#include <winuser.h>
#include <ole2.h>
#include <oaidl.h>
#ifndef __IOleDocument_FWD_DEFINED__
#define __IOleDocument_FWD_DEFINED__
typedef
struct
IOleDocument
IOleDocument
;
#endif
typedef
IOleDocument
*
LPOLEDOCUMENT
;
typedef
enum
{
DOCMISC_CANCREATEMULTIPLEVIEWS
=
1
,
DOCMISC_SUPPORTCOMPLEXRECTANGLES
=
2
,
DOCMISC_CANTOPENEDIT
=
4
,
DOCMISC_NOFILESUPPORT
=
8
}
DOCMISC
;
/*****************************************************************************
*
Declare the structures
*
IOleDocument interface
*/
typedef
enum
{
OLECMDF_SUPPORTED
=
0x1
,
OLECMDF_ENABLED
=
0x2
,
OLECMDF_LATCHED
=
0x4
,
OLECMDF_NINCHED
=
0x8
}
OLECMDF
;
#ifndef __IOleDocument_INTERFACE_DEFINED__
#define __IOleDocument_INTERFACE_DEFINED__
typedef
struct
_tagOLECMD
DEFINE_GUID
(
IID_IOleDocument
,
0xb722bcc5
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
#if defined(__cplusplus) && !defined(CINTERFACE)
struct
IOleDocument
:
public
IUnknown
{
ULONG
cmdID
;
DWORD
cmdf
;
}
OLECMD
;
virtual
HRESULT
STDMETHODCALLTYPE
CreateView
(
IOleInPlaceSite
*
pIPSite
,
IStream
*
pstm
,
DWORD
dwReserved
,
IOleDocumentView
**
ppView
)
=
0
;
typedef
struct
_tagOLECMDTEXT
{
DWORD
cmdtextf
;
ULONG
cwActual
;
ULONG
cwBuf
;
WCHAR
rgwz
[
1
];
}
OLECMDTEXT
;
virtual
HRESULT
STDMETHODCALLTYPE
GetDocMiscStatus
(
DWORD
*
pdwStatus
)
=
0
;
typedef
enum
{
PRINTFLAG_MAYBOTHERUSER
=
1
,
PRINTFLAG_PROMPTUSER
=
2
,
PRINTFLAG_USERMAYCHANGEPRINTER
=
4
,
PRINTFLAG_RECOMPOSETODEVICE
=
8
,
PRINTFLAG_DONTACTUALLYPRINT
=
16
,
PRINTFLAG_FORCEPROPERTIES
=
32
,
PRINTFLAG_PRINTTOFILE
=
64
}
PRINTFLAG
;
virtual
HRESULT
STDMETHODCALLTYPE
EnumViews
(
IEnumOleDocumentViews
**
ppEnum
,
IOleDocumentView
**
ppView
)
=
0
;
typedef
struct
tagPAGERANGE
{
LONG
nFromPage
;
LONG
nToPage
;
}
PAGERANGE
;
};
#else
typedef
struct
IOleDocumentVtbl
IOleDocumentVtbl
;
struct
IOleDocument
{
const
IOleDocumentVtbl
*
lpVtbl
;
};
struct
IOleDocumentVtbl
{
ICOM_MSVTABLE_COMPAT_FIELDS
typedef
struct
tagPAGESET
{
ULONG
cbStruct
;
BOOL
fOddPages
;
BOOL
fEvenPages
;
ULONG
cPageRange
;
PAGERANGE
rgPages
[
1
];
}
PAGESET
;
/*** IUnknown methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryInterface
)(
IOleDocument
*
This
,
REFIID
riid
,
void
**
ppvObject
);
typedef
enum
{
OLECMDTEXTF_NONE
=
0
,
OLECMDTEXTF_NAME
=
1
,
OLECMDTEXTF_STATUS
=
2
}
OLECMDTEXTF
;
ULONG
(
STDMETHODCALLTYPE
*
AddRef
)(
IOleDocument
*
This
);
typedef
enum
{
OLECMDEXECOPT_DODEFAULT
=
0
,
OLECMDEXECOPT_PROMPTUSER
=
1
,
OLECMDEXECOPT_DONTPROMPTUSER
=
2
,
OLECMDEXECOPT_SHOWHELP
=
3
}
OLECMDEXECOPT
;
ULONG
(
STDMETHODCALLTYPE
*
Release
)(
IOleDocument
*
This
);
typedef
enum
OLECMDID
{
OLECMDID_OPEN
=
1
,
OLECMDID_NEW
=
2
,
OLECMDID_SAVE
=
3
,
OLECMDID_SAVEAS
=
4
,
OLECMDID_SAVECOPYAS
=
5
,
OLECMDID_PRINT
=
6
,
OLECMDID_PRINTPREVIEW
=
7
,
OLECMDID_PAGESETUP
=
8
,
OLECMDID_SPELL
=
9
,
OLECMDID_PROPERTIES
=
10
,
OLECMDID_CUT
=
11
,
OLECMDID_COPY
=
12
,
OLECMDID_PASTE
=
13
,
OLECMDID_PASTESPECIAL
=
14
,
OLECMDID_UNDO
=
15
,
OLECMDID_REDO
=
16
,
OLECMDID_SELECTALL
=
17
,
OLECMDID_CLEARSELECTION
=
18
,
OLECMDID_ZOOM
=
19
,
OLECMDID_GETZOOMRANGE
=
20
,
OLECMDID_UPDATECOMMANDS
=
21
,
OLECMDID_REFRESH
=
22
,
OLECMDID_STOP
=
23
,
OLECMDID_HIDETOOLBARS
=
24
,
OLECMDID_SETPROGRESSMAX
=
25
,
OLECMDID_SETPROGRESSPOS
=
26
,
OLECMDID_SETPROGRESSTEXT
=
27
,
OLECMDID_SETTITLE
=
28
,
OLECMDID_SETDOWNLOADSTATE
=
29
,
OLECMDID_STOPDOWNLOAD
=
30
,
OLECMDID_ONTOOLBARACTIVATED
=
31
,
OLECMDID_FIND
=
32
,
OLECMDID_DELETE
=
33
,
OLECMDID_HTTPEQUIV
=
34
,
OLECMDID_HTTPEQUIV_DONE
=
35
,
OLECMDID_ENABLE_INTERACTION
=
36
,
OLECMDID_ONUNLOAD
=
37
,
OLECMDID_PROPERTYBAG2
=
38
,
OLECMDID_PREREFRESH
=
39
,
/* iexplorer uses ... 44 */
OLECMDID_SHOWSCRIPTERROR
=
40
,
OLECMDID_SHOWMESSAGE
=
41
,
OLECMDID_SHOWFIND
=
42
,
OLECMDID_SHOWPAGESETUP
=
43
,
OLECMDID_SHOWPRINT
=
44
,
OLECMDID_CLOSE
=
45
,
OLECMDID_ALLOWUILESSSAVEAS
=
46
,
OLECMDID_DONTDOWNLOADCSS
=
47
,
OLECMDID_UPDATEPAGESTATUS
=
48
,
OLECMDID_PRINT2
=
49
,
OLECMDID_PRINTPREVIEW2
=
50
,
OLECMDID_SETPRINTTEMPLATE
=
51
,
OLECMDID_GETPRINTTEMPLATE
=
52
}
OLECMDID
;
/*** IOleDocument methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
CreateView
)(
IOleDocument
*
This
,
IOleInPlaceSite
*
pIPSite
,
IStream
*
pstm
,
DWORD
dwReserved
,
IOleDocumentView
**
ppView
);
#define OLECMDERR_E_FIRST (OLE_E_LAST+1)
#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)
#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1)
#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2)
#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3)
#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4)
HRESULT
(
STDMETHODCALLTYPE
*
GetDocMiscStatus
)(
IOleDocument
*
This
,
DWORD
*
pdwStatus
);
/*****************************************************************************
* Predeclare the interfaces
*/
DEFINE_GUID
(
IID_IOleDocument
,
0xb722bcc5
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
typedef
struct
IOleDocument
IOleDocument
,
*
LPOLEDOCUMENT
;
DEFINE_GUID
(
IID_IOleDocumentSite
,
0xb722bcc7
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
typedef
struct
IOleDocumentSite
IOleDocumentSite
,
*
LPOLEDOCUMENTSITE
;
HRESULT
(
STDMETHODCALLTYPE
*
EnumViews
)(
IOleDocument
*
This
,
IEnumOleDocumentViews
**
ppEnum
,
IOleDocumentView
**
ppView
);
DEFINE_GUID
(
IID_IOleDocumentView
,
0xb722bcc6
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
typedef
struct
IOleDocumentView
IOleDocumentView
,
*
LPOLEDOCUMENTVIEW
;
};
DEFINE_GUID
(
IID_IEnumOleDocumentViews
,
0xb722bcc6
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
typedef
struct
IEnumOleDocumentViews
IEnumOleDocumentViews
,
*
LPENUMOLEDOCUMENTVIEWS
;
/*** IUnknown methods ***/
#define IOleDocument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IOleDocument_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IOleDocument_Release(p) (p)->lpVtbl->Release(p)
/*** IOleDocument methods ***/
#define IOleDocument_CreateView(p,a,b,c,d) (p)->lpVtbl->CreateView(p,a,b,c,d)
#define IOleDocument_GetDocMiscStatus(p,a) (p)->lpVtbl->GetDocMiscStatus(p,a)
#define IOleDocument_EnumViews(p,a,b) (p)->lpVtbl->EnumViews(p,a,b)
DEFINE_GUID
(
IID_IOleCommandTarget
,
0xb722bccb
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
typedef
struct
IOleCommandTarget
IOleCommandTarget
,
*
LPOLECOMMANDTARGET
;
#endif
DEFINE_GUID
(
IID_IContinueCallback
,
0xb722bcca
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
typedef
struct
IContinueCallback
IContinueCallback
,
*
LPCONTINUECALLBACK
;
#define IOleDocument_METHODS \
ICOM_MSVTABLE_COMPAT_FIELDS \
/*** IUnknown methods ***/
\
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
STDMETHOD_(ULONG,Release)(THIS) PURE; \
/*** IOleDocument methods ***/
\
STDMETHOD_(HRESULT,CreateView)(THIS_ IOleInPlaceSite* pIPSite, IStream* pstm, DWORD dwReserved, IOleDocumentView** ppView) PURE; \
STDMETHOD_(HRESULT,GetDocMiscStatus)(THIS_ DWORD* pdwStatus) PURE; \
STDMETHOD_(HRESULT,EnumViews)(THIS_ IEnumOleDocumentViews** ppEnum, IOleDocumentView** ppView) PURE;
DEFINE_GUID
(
IID_IPrint
,
0xb722bcc9
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
typedef
struct
IPrint
IPrint
,
*
LPPRINT
;
HRESULT
CALLBACK
IOleDocument_CreateView_Proxy
(
IOleDocument
*
This
,
IOleInPlaceSite
*
pIPSite
,
IStream
*
pstm
,
DWORD
dwReserved
,
IOleDocumentView
**
ppView
);
void
__RPC_STUB
IOleDocument_CreateView_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocument_GetDocMiscStatus_Proxy
(
IOleDocument
*
This
,
DWORD
*
pdwStatus
);
void
__RPC_STUB
IOleDocument_GetDocMiscStatus_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocument_EnumViews_Proxy
(
IOleDocument
*
This
,
IEnumOleDocumentViews
**
ppEnum
,
IOleDocumentView
**
ppView
);
void
__RPC_STUB
IOleDocument_EnumViews_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
#endif
/* __IOleDocument_INTERFACE_DEFINED__ */
/*****************************************************************************
* IOleDocument interface
*/
#define INTERFACE IOleDocument
#define IOleDocument_METHODS \
IUnknown_METHODS \
STDMETHOD(CreateView)(THIS_ IOleInPlaceSite *pIPSite, IStream *pstm, DWORD dwReserved, IOleDocumentView **ppView) PURE; \
STDMETHOD(GetDocMiscStatus)(THIS_ DWORD *pdwStatus) PURE; \
STDMETHOD(EnumViews)(THIS_ IEnumOleDocumentViews **ppEnum, IOleDocumentView **ppView) PURE;
ICOM_DEFINE
(
IOleDocument
,
IUnknown
)
#undef INTERFACE
#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IOleDocument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IOleDocument_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IOleDocument_Release(p) (p)->lpVtbl->Release(p)
/*** IOleDocument methods ***/
#define IOleDocument_CreateView(p,a,b,c,d) (p)->lpVtbl->CreateView(p,a,b,c,d)
#define IOleDocument_GetDocMiscStatus(p,a) (p)->lpVtbl->GetDocMiscStatus(p,a)
#define IOleDocument_EnumViews(p,a,b) (p)->lpVtbl->EnumViews(p,a,b)
#ifndef __IOleDocumentSite_FWD_DEFINED__
#define __IOleDocumentSite_FWD_DEFINED__
typedef
struct
IOleDocumentSite
IOleDocumentSite
;
#endif
typedef
IOleDocumentSite
*
LPOLEDOCUMENTSITE
;
/*****************************************************************************
* IOleDocumentSite interface
*/
#define INTERFACE IOleDocumentSite
#define IOleDocumentSite_METHODS \
IUnknown_METHODS \
STDMETHOD(ActivateMe)(THIS_ IOleDocumentView *pViewToActivate) PURE;
ICOM_DEFINE
(
IOleDocumentSite
,
IUnknown
)
#undef INTERFACE
#ifndef __IOleDocumentSite_INTERFACE_DEFINED__
#define __IOleDocumentSite_INTERFACE_DEFINED__
DEFINE_GUID
(
IID_IOleDocumentSite
,
0xb722bcc7
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
#if defined(__cplusplus) && !defined(CINTERFACE)
struct
IOleDocumentSite
:
public
IUnknown
{
virtual
HRESULT
STDMETHODCALLTYPE
ActivateMe
(
IOleDocumentView
*
pViewToActivate
)
=
0
;
};
#else
typedef
struct
IOleDocumentSiteVtbl
IOleDocumentSiteVtbl
;
struct
IOleDocumentSite
{
const
IOleDocumentSiteVtbl
*
lpVtbl
;
};
struct
IOleDocumentSiteVtbl
{
ICOM_MSVTABLE_COMPAT_FIELDS
/*** IUnknown methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryInterface
)(
IOleDocumentSite
*
This
,
REFIID
riid
,
void
**
ppvObject
);
ULONG
(
STDMETHODCALLTYPE
*
AddRef
)(
IOleDocumentSite
*
This
);
ULONG
(
STDMETHODCALLTYPE
*
Release
)(
IOleDocumentSite
*
This
);
/*** IOleDocumentSite methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
ActivateMe
)(
IOleDocumentSite
*
This
,
IOleDocumentView
*
pViewToActivate
);
};
#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IOleDocumentSite_QueryInterface(p,a,b)
(p)->lpVtbl->QueryInterface(p,a,b)
#define IOleDocumentSite_AddRef(p)
(p)->lpVtbl->AddRef(p)
#define IOleDocumentSite_Release(p)
(p)->lpVtbl->Release(p)
#define IOleDocumentSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IOleDocumentSite_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IOleDocumentSite_Release(p) (p)->lpVtbl->Release(p)
/*** IOleDocumentSite methods ***/
#define IOleDocumentSite_ActivateMe(p,a) (p)->lpVtbl->ActivateMe(p,a)
#define IOleDocumentSite_ActivateMe(p,a) (p)->lpVtbl->ActivateMe(p,a)
#endif
#define IOleDocumentSite_METHODS \
ICOM_MSVTABLE_COMPAT_FIELDS \
/*** IUnknown methods ***/
\
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
STDMETHOD_(ULONG,Release)(THIS) PURE; \
/*** IOleDocumentSite methods ***/
\
STDMETHOD_(HRESULT,ActivateMe)(THIS_ IOleDocumentView* pViewToActivate) PURE;
HRESULT
CALLBACK
IOleDocumentSite_ActivateMe_Proxy
(
IOleDocumentSite
*
This
,
IOleDocumentView
*
pViewToActivate
);
void
__RPC_STUB
IOleDocumentSite_ActivateMe_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
#endif
/* __IOleDocumentSite_INTERFACE_DEFINED__ */
typedef
IOleDocumentView
*
LPOLEDOCUMENTVIEW
;
/*****************************************************************************
* IOleDocument
Site
interface
* IOleDocument
View
interface
*/
#define INTERFACE IOleDocumentView
#define IOleDocumentView_METHODS \
IUnknown_METHODS \
STDMETHOD(SetInPlaceSite)(THIS_ IOleInPlaceSite *pIPSite) PURE; \
STDMETHOD(GetInPlaceSite)(THIS_ IOleInPlaceSite **ppIPSite) PURE; \
STDMETHOD(GetDocument)(THIS_ IUnknown **ppunk) PURE; \
STDMETHOD(SetRect)(THIS_ LPRECT prcView) PURE; \
STDMETHOD(GetRect)(THIS_ LPRECT prcView) PURE; \
STDMETHOD(SetRectComplex)(THIS_ LPRECT prcView, LPRECT prcHScroll, LPRECT prcVScroll, LPRECT prcSizeBox) PURE; \
STDMETHOD(Show)(THIS_ BOOL fShow) PURE; \
STDMETHOD(UIActivate)(THIS_ BOOL fUIActivate) PURE; \
STDMETHOD(Open)(THIS) PURE; \
STDMETHOD(CloseView)(THIS_ DWORD dwReserved) PURE; \
STDMETHOD(SaveViewState)(THIS_ LPSTREAM pstm) PURE; \
STDMETHOD(ApplyViewState)(THIS_ LPSTREAM pstm) PURE; \
STDMETHOD(Clone)(THIS_ IOleInPlaceSite *pIPSiteNew, IOleDocumentView **ppViewNew) PURE;
ICOM_DEFINE
(
IOleDocumentView
,
IUnknown
)
#undef INTERFACE
#ifdef COBJMACROS
#ifndef __IOleDocumentView_INTERFACE_DEFINED__
#define __IOleDocumentView_INTERFACE_DEFINED__
DEFINE_GUID
(
IID_IOleDocumentView
,
0xb722bcc6
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
#if defined(__cplusplus) && !defined(CINTERFACE)
struct
IOleDocumentView
:
public
IUnknown
{
virtual
HRESULT
STDMETHODCALLTYPE
SetInPlaceSite
(
IOleInPlaceSite
*
pIPSite
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
GetInPlaceSite
(
IOleInPlaceSite
**
ppIPSite
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
GetDocument
(
IUnknown
**
ppunk
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
SetRect
(
LPRECT
prcView
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
GetRect
(
LPRECT
prcView
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
SetRectComplex
(
LPRECT
prcView
,
LPRECT
prcHScroll
,
LPRECT
prcVScroll
,
LPRECT
prcSizeBox
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Show
(
BOOL
fShow
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
UIActivate
(
BOOL
fUIActivate
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Open
(
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
CloseView
(
DWORD
dwReserved
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
SaveViewState
(
LPSTREAM
pstm
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
ApplyViewState
(
LPSTREAM
pstm
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Clone
(
IOleInPlaceSite
*
pIPSiteNew
,
IOleDocumentView
**
ppViewNew
)
=
0
;
};
#else
typedef
struct
IOleDocumentViewVtbl
IOleDocumentViewVtbl
;
struct
IOleDocumentView
{
const
IOleDocumentViewVtbl
*
lpVtbl
;
};
struct
IOleDocumentViewVtbl
{
ICOM_MSVTABLE_COMPAT_FIELDS
/*** IUnknown methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryInterface
)(
IOleDocumentView
*
This
,
REFIID
riid
,
void
**
ppvObject
);
ULONG
(
STDMETHODCALLTYPE
*
AddRef
)(
IOleDocumentView
*
This
);
ULONG
(
STDMETHODCALLTYPE
*
Release
)(
IOleDocumentView
*
This
);
/*** IOleDocumentView methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
SetInPlaceSite
)(
IOleDocumentView
*
This
,
IOleInPlaceSite
*
pIPSite
);
HRESULT
(
STDMETHODCALLTYPE
*
GetInPlaceSite
)(
IOleDocumentView
*
This
,
IOleInPlaceSite
**
ppIPSite
);
HRESULT
(
STDMETHODCALLTYPE
*
GetDocument
)(
IOleDocumentView
*
This
,
IUnknown
**
ppunk
);
HRESULT
(
STDMETHODCALLTYPE
*
SetRect
)(
IOleDocumentView
*
This
,
LPRECT
prcView
);
HRESULT
(
STDMETHODCALLTYPE
*
GetRect
)(
IOleDocumentView
*
This
,
LPRECT
prcView
);
HRESULT
(
STDMETHODCALLTYPE
*
SetRectComplex
)(
IOleDocumentView
*
This
,
LPRECT
prcView
,
LPRECT
prcHScroll
,
LPRECT
prcVScroll
,
LPRECT
prcSizeBox
);
HRESULT
(
STDMETHODCALLTYPE
*
Show
)(
IOleDocumentView
*
This
,
BOOL
fShow
);
HRESULT
(
STDMETHODCALLTYPE
*
UIActivate
)(
IOleDocumentView
*
This
,
BOOL
fUIActivate
);
HRESULT
(
STDMETHODCALLTYPE
*
Open
)(
IOleDocumentView
*
This
);
HRESULT
(
STDMETHODCALLTYPE
*
CloseView
)(
IOleDocumentView
*
This
,
DWORD
dwReserved
);
HRESULT
(
STDMETHODCALLTYPE
*
SaveViewState
)(
IOleDocumentView
*
This
,
LPSTREAM
pstm
);
HRESULT
(
STDMETHODCALLTYPE
*
ApplyViewState
)(
IOleDocumentView
*
This
,
LPSTREAM
pstm
);
HRESULT
(
STDMETHODCALLTYPE
*
Clone
)(
IOleDocumentView
*
This
,
IOleInPlaceSite
*
pIPSiteNew
,
IOleDocumentView
**
ppViewNew
);
};
/*** IUnknown methods ***/
#define IOleDocumentView_QueryInterface(p,a,b)
(p)->lpVtbl->QueryInterface(p,a,b)
#define IOleDocumentView_AddRef(p)
(p)->lpVtbl->AddRef(p)
#define IOleDocumentView_Release(p)
(p)->lpVtbl->Release(p)
#define IOleDocumentView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IOleDocumentView_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IOleDocumentView_Release(p) (p)->lpVtbl->Release(p)
/*** IOleDocumentView methods ***/
#define IOleDocumentView_SetInPlaceSite(p,a) (p)->lpVtbl->SetInPlaceSite(p,a)
#define IOleDocumentView_GetInPlaceSite(p,a) (p)->lpVtbl->GetInPlaceSite(p,a)
#define IOleDocumentView_GetDocument(p,a) (p)->lpVtbl->GetDocument(p,a)
#define IOleDocumentView_SetRect(p,a) (p)->lpVtbl->SetRect(p,a)
#define IOleDocumentView_GetRect(p,a) (p)->lpVtbl->GetRect(p,a)
#define IOleDocumentView_GetRectComplex(p,a,b,c,d) (p)->lpVtbl->GetRectComplex(p,a,b,c,d)
#define IOleDocumentView_Show(p,a) (p)->lpVtbl->Show(p,a)
#define IOleDocumentView_UIActivate(p,a) (p)->lpVtbl->UIActivate(p,a)
#define IOleDocumentView_Open(p) (p)->lpVtbl->Open(p)
#define IOleDocumentView_CloseView(p,a) (p)->lpVtbl->CloseView(p,a)
#define IOleDocumentView_SaveViewState(p,a) (p)->lpVtbl->SaveViewState(p,a)
#define IOleDocumentView_ApplyViewState(p,a) (p)->lpVtbl->ApplyViewState(p,a)
#define IOleDocumentView_Clone(p,a,b) (p)->lpVtbl->Clone(p,a,b)
#define IOleDocumentView_SetInPlaceSite(p,a) (p)->lpVtbl->SetInPlaceSite(p,a)
#define IOleDocumentView_GetInPlaceSite(p,a) (p)->lpVtbl->GetInPlaceSite(p,a)
#define IOleDocumentView_GetDocument(p,a) (p)->lpVtbl->GetDocument(p,a)
#define IOleDocumentView_SetRect(p,a) (p)->lpVtbl->SetRect(p,a)
#define IOleDocumentView_GetRect(p,a) (p)->lpVtbl->GetRect(p,a)
#define IOleDocumentView_SetRectComplex(p,a,b,c,d) (p)->lpVtbl->SetRectComplex(p,a,b,c,d)
#define IOleDocumentView_Show(p,a) (p)->lpVtbl->Show(p,a)
#define IOleDocumentView_UIActivate(p,a) (p)->lpVtbl->UIActivate(p,a)
#define IOleDocumentView_Open(p) (p)->lpVtbl->Open(p)
#define IOleDocumentView_CloseView(p,a) (p)->lpVtbl->CloseView(p,a)
#define IOleDocumentView_SaveViewState(p,a) (p)->lpVtbl->SaveViewState(p,a)
#define IOleDocumentView_ApplyViewState(p,a) (p)->lpVtbl->ApplyViewState(p,a)
#define IOleDocumentView_Clone(p,a,b) (p)->lpVtbl->Clone(p,a,b)
#endif
#define IOleDocumentView_METHODS \
ICOM_MSVTABLE_COMPAT_FIELDS \
/*** IUnknown methods ***/
\
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
STDMETHOD_(ULONG,Release)(THIS) PURE; \
/*** IOleDocumentView methods ***/
\
STDMETHOD_(HRESULT,SetInPlaceSite)(THIS_ IOleInPlaceSite* pIPSite) PURE; \
STDMETHOD_(HRESULT,GetInPlaceSite)(THIS_ IOleInPlaceSite** ppIPSite) PURE; \
STDMETHOD_(HRESULT,GetDocument)(THIS_ IUnknown** ppunk) PURE; \
STDMETHOD_(HRESULT,SetRect)(THIS_ LPRECT prcView) PURE; \
STDMETHOD_(HRESULT,GetRect)(THIS_ LPRECT prcView) PURE; \
STDMETHOD_(HRESULT,SetRectComplex)(THIS_ LPRECT prcView, LPRECT prcHScroll, LPRECT prcVScroll, LPRECT prcSizeBox) PURE; \
STDMETHOD_(HRESULT,Show)(THIS_ BOOL fShow) PURE; \
STDMETHOD_(HRESULT,UIActivate)(THIS_ BOOL fUIActivate) PURE; \
STDMETHOD_(HRESULT,Open)(THIS) PURE; \
STDMETHOD_(HRESULT,CloseView)(THIS_ DWORD dwReserved) PURE; \
STDMETHOD_(HRESULT,SaveViewState)(THIS_ LPSTREAM pstm) PURE; \
STDMETHOD_(HRESULT,ApplyViewState)(THIS_ LPSTREAM pstm) PURE; \
STDMETHOD_(HRESULT,Clone)(THIS_ IOleInPlaceSite* pIPSiteNew, IOleDocumentView** ppViewNew) PURE;
HRESULT
CALLBACK
IOleDocumentView_SetInPlaceSite_Proxy
(
IOleDocumentView
*
This
,
IOleInPlaceSite
*
pIPSite
);
void
__RPC_STUB
IOleDocumentView_SetInPlaceSite_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_GetInPlaceSite_Proxy
(
IOleDocumentView
*
This
,
IOleInPlaceSite
**
ppIPSite
);
void
__RPC_STUB
IOleDocumentView_GetInPlaceSite_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_GetDocument_Proxy
(
IOleDocumentView
*
This
,
IUnknown
**
ppunk
);
void
__RPC_STUB
IOleDocumentView_GetDocument_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_SetRect_Proxy
(
IOleDocumentView
*
This
,
LPRECT
prcView
);
void
__RPC_STUB
IOleDocumentView_SetRect_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_GetRect_Proxy
(
IOleDocumentView
*
This
,
LPRECT
prcView
);
void
__RPC_STUB
IOleDocumentView_GetRect_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_SetRectComplex_Proxy
(
IOleDocumentView
*
This
,
LPRECT
prcView
,
LPRECT
prcHScroll
,
LPRECT
prcVScroll
,
LPRECT
prcSizeBox
);
void
__RPC_STUB
IOleDocumentView_SetRectComplex_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_Show_Proxy
(
IOleDocumentView
*
This
,
BOOL
fShow
);
void
__RPC_STUB
IOleDocumentView_Show_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_UIActivate_Proxy
(
IOleDocumentView
*
This
,
BOOL
fUIActivate
);
void
__RPC_STUB
IOleDocumentView_UIActivate_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_Open_Proxy
(
IOleDocumentView
*
This
);
void
__RPC_STUB
IOleDocumentView_Open_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_CloseView_Proxy
(
IOleDocumentView
*
This
,
DWORD
dwReserved
);
void
__RPC_STUB
IOleDocumentView_CloseView_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_SaveViewState_Proxy
(
IOleDocumentView
*
This
,
LPSTREAM
pstm
);
void
__RPC_STUB
IOleDocumentView_SaveViewState_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_ApplyViewState_Proxy
(
IOleDocumentView
*
This
,
LPSTREAM
pstm
);
void
__RPC_STUB
IOleDocumentView_ApplyViewState_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleDocumentView_Clone_Proxy
(
IOleDocumentView
*
This
,
IOleInPlaceSite
*
pIPSiteNew
,
IOleDocumentView
**
ppViewNew
);
void
__RPC_STUB
IOleDocumentView_Clone_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
#endif
/* __IOleDocumentView_INTERFACE_DEFINED__ */
typedef
IEnumOleDocumentViews
*
LPENUMOLEDOCUMENTVIEWS
;
/*****************************************************************************
* I
OleDocumentSite
interface
* I
EnumOleDocumentViews
interface
*/
#define INTERFACE IEnumOleDocumentViews
#define IEnumOleDocumentViews_METHODS \
IUnknown_METHODS \
STDMETHOD(Next)(THIS_ ULONG cViews, IOleDocumentView **rgpView, ULONG *pcFetched) PURE; \
STDMETHOD(Skip)(THIS_ ULONG cViews) PURE; \
STDMETHOD(Reset)(THIS) PURE; \
STDMETHOD(Clone)(THIS_ IEnumOleDocumentViews **ppEnum) PURE;
ICOM_DEFINE
(
IEnumOleDocumentViews
,
IUnknown
)
#undef INTERFACE
#ifdef COBJMACROS
#ifndef __IEnumOleDocumentViews_INTERFACE_DEFINED__
#define __IEnumOleDocumentViews_INTERFACE_DEFINED__
DEFINE_GUID
(
IID_IEnumOleDocumentViews
,
0xb722bcc8
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
#if defined(__cplusplus) && !defined(CINTERFACE)
struct
IEnumOleDocumentViews
:
public
IUnknown
{
virtual
HRESULT
STDMETHODCALLTYPE
Next
(
ULONG
cViews
,
IOleDocumentView
**
rgpView
,
ULONG
*
pcFetched
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Skip
(
ULONG
cViews
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Reset
(
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Clone
(
IEnumOleDocumentViews
**
ppEnum
)
=
0
;
};
#else
typedef
struct
IEnumOleDocumentViewsVtbl
IEnumOleDocumentViewsVtbl
;
struct
IEnumOleDocumentViews
{
const
IEnumOleDocumentViewsVtbl
*
lpVtbl
;
};
struct
IEnumOleDocumentViewsVtbl
{
ICOM_MSVTABLE_COMPAT_FIELDS
/*** IUnknown methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryInterface
)(
IEnumOleDocumentViews
*
This
,
REFIID
riid
,
void
**
ppvObject
);
ULONG
(
STDMETHODCALLTYPE
*
AddRef
)(
IEnumOleDocumentViews
*
This
);
ULONG
(
STDMETHODCALLTYPE
*
Release
)(
IEnumOleDocumentViews
*
This
);
/*** IEnumOleDocumentViews methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
Next
)(
IEnumOleDocumentViews
*
This
,
ULONG
cViews
,
IOleDocumentView
**
rgpView
,
ULONG
*
pcFetched
);
HRESULT
(
STDMETHODCALLTYPE
*
Skip
)(
IEnumOleDocumentViews
*
This
,
ULONG
cViews
);
HRESULT
(
STDMETHODCALLTYPE
*
Reset
)(
IEnumOleDocumentViews
*
This
);
HRESULT
(
STDMETHODCALLTYPE
*
Clone
)(
IEnumOleDocumentViews
*
This
,
IEnumOleDocumentViews
**
ppEnum
);
};
/*** IUnknown methods ***/
#define IEnumOleDocumentViews_QueryInterface(p,a,b)
(p)->lpVtbl->QueryInterface(p,a,b)
#define IEnumOleDocumentViews_AddRef(p)
(p)->lpVtbl->AddRef(p)
#define IEnumOleDocumentViews_Release(p)
(p)->lpVtbl->Release(p)
#define IEnumOleDocumentViews_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IEnumOleDocumentViews_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IEnumOleDocumentViews_Release(p) (p)->lpVtbl->Release(p)
/*** IEnumOleDocumentViews methods ***/
#define IEnumOleDocumentViews_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
#define IEnumOleDocumentViews_Skip(p,a) (p)->lpVtbl->Skip(p,a)
#define IEnumOleDocumentViews_Reset(p) (p)->lpVtbl->Reset(p)
#define IEnumOleDocumentViews_Clone(p,a) (p)->lpVtbl->Clone(p,a)
#define IEnumOleDocumentViews_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
#define IEnumOleDocumentViews_Skip(p,a) (p)->lpVtbl->Skip(p,a)
#define IEnumOleDocumentViews_Reset(p) (p)->lpVtbl->Reset(p)
#define IEnumOleDocumentViews_Clone(p,a) (p)->lpVtbl->Clone(p,a)
#endif
#define IEnumOleDocumentViews_METHODS \
ICOM_MSVTABLE_COMPAT_FIELDS \
/*** IUnknown methods ***/
\
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
STDMETHOD_(ULONG,Release)(THIS) PURE; \
/*** IEnumOleDocumentViews methods ***/
\
STDMETHOD_(HRESULT,Next)(THIS_ ULONG cViews, IOleDocumentView** rgpView, ULONG* pcFetched) PURE; \
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cViews) PURE; \
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumOleDocumentViews** ppEnum) PURE;
HRESULT
CALLBACK
IEnumOleDocumentViews_RemoteNext_Proxy
(
IEnumOleDocumentViews
*
This
,
ULONG
cViews
,
IOleDocumentView
**
rgpView
,
ULONG
*
pcFetched
);
void
__RPC_STUB
IEnumOleDocumentViews_RemoteNext_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IEnumOleDocumentViews_Next_Proxy
(
IEnumOleDocumentViews
*
This
,
ULONG
cViews
,
IOleDocumentView
**
rgpView
,
ULONG
*
pcFetched
);
HRESULT
__RPC_STUB
IEnumOleDocumentViews_Next_Stub
(
IEnumOleDocumentViews
*
This
,
ULONG
cViews
,
IOleDocumentView
**
rgpView
,
ULONG
*
pcFetched
);
HRESULT
CALLBACK
IEnumOleDocumentViews_Skip_Proxy
(
IEnumOleDocumentViews
*
This
,
ULONG
cViews
);
void
__RPC_STUB
IEnumOleDocumentViews_Skip_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IEnumOleDocumentViews_Reset_Proxy
(
IEnumOleDocumentViews
*
This
);
void
__RPC_STUB
IEnumOleDocumentViews_Reset_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IEnumOleDocumentViews_Clone_Proxy
(
IEnumOleDocumentViews
*
This
,
IEnumOleDocumentViews
**
ppEnum
);
void
__RPC_STUB
IEnumOleDocumentViews_Clone_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
#endif
/* __IEnumOleDocumentViews_INTERFACE_DEFINED__ */
#ifndef __IOleCommandTarget_FWD_DEFINED__
#define __IOleCommandTarget_FWD_DEFINED__
typedef
struct
IOleCommandTarget
IOleCommandTarget
;
#endif
typedef
IOleCommandTarget
*
LPOLECOMMANDTARGET
;
typedef
enum
{
OLECMDF_SUPPORTED
=
0x1
,
OLECMDF_ENABLED
=
0x2
,
OLECMDF_LATCHED
=
0x4
,
OLECMDF_NINCHED
=
0x8
,
OLECMDF_INVISIBLE
=
0x10
,
OLECMDF_DEFHIDEONCTXTMENU
=
0x20
}
OLECMDF
;
typedef
struct
_tagOLECMD
{
ULONG
cmdID
;
DWORD
cmdf
;
}
OLECMD
;
typedef
struct
_tagOLECMDTEXT
{
DWORD
cmdtextf
;
ULONG
cwActual
;
ULONG
cwBuf
;
WCHAR
rgwz
[
1
];
}
OLECMDTEXT
;
typedef
enum
{
OLECMDTEXTF_NONE
=
0
,
OLECMDTEXTF_NAME
=
1
,
OLECMDTEXTF_STATUS
=
2
}
OLECMDTEXTF
;
typedef
enum
{
OLECMDEXECOPT_DODEFAULT
=
0
,
OLECMDEXECOPT_PROMPTUSER
=
1
,
OLECMDEXECOPT_DONTPROMPTUSER
=
2
,
OLECMDEXECOPT_SHOWHELP
=
3
}
OLECMDEXECOPT
;
typedef
enum
OLECMDID
{
OLECMDID_OPEN
=
1
,
OLECMDID_NEW
=
2
,
OLECMDID_SAVE
=
3
,
OLECMDID_SAVEAS
=
4
,
OLECMDID_SAVECOPYAS
=
5
,
OLECMDID_PRINT
=
6
,
OLECMDID_PRINTPREVIEW
=
7
,
OLECMDID_PAGESETUP
=
8
,
OLECMDID_SPELL
=
9
,
OLECMDID_PROPERTIES
=
10
,
OLECMDID_CUT
=
11
,
OLECMDID_COPY
=
12
,
OLECMDID_PASTE
=
13
,
OLECMDID_PASTESPECIAL
=
14
,
OLECMDID_UNDO
=
15
,
OLECMDID_REDO
=
16
,
OLECMDID_SELECTALL
=
17
,
OLECMDID_CLEARSELECTION
=
18
,
OLECMDID_ZOOM
=
19
,
OLECMDID_GETZOOMRANGE
=
20
,
OLECMDID_UPDATECOMMANDS
=
21
,
OLECMDID_REFRESH
=
22
,
OLECMDID_STOP
=
23
,
OLECMDID_HIDETOOLBARS
=
24
,
OLECMDID_SETPROGRESSMAX
=
25
,
OLECMDID_SETPROGRESSPOS
=
26
,
OLECMDID_SETPROGRESSTEXT
=
27
,
OLECMDID_SETTITLE
=
28
,
OLECMDID_SETDOWNLOADSTATE
=
29
,
OLECMDID_STOPDOWNLOAD
=
30
,
OLECMDID_ONTOOLBARACTIVATED
=
31
,
OLECMDID_FIND
=
32
,
OLECMDID_DELETE
=
33
,
OLECMDID_HTTPEQUIV
=
34
,
OLECMDID_HTTPEQUIV_DONE
=
35
,
OLECMDID_ENABLE_INTERACTION
=
36
,
OLECMDID_ONUNLOAD
=
37
,
OLECMDID_PROPERTYBAG2
=
38
,
OLECMDID_PREREFRESH
=
39
,
OLECMDID_SHOWSCRIPTERROR
=
40
,
OLECMDID_SHOWMESSAGE
=
41
,
OLECMDID_SHOWFIND
=
42
,
OLECMDID_SHOWPAGESETUP
=
43
,
OLECMDID_SHOWPRINT
=
44
,
OLECMDID_CLOSE
=
45
,
OLECMDID_ALLOWUILESSSAVEAS
=
46
,
OLECMDID_DONTDOWNLOADCSS
=
47
,
OLECMDID_UPDATEPAGESTATUS
=
48
,
OLECMDID_PRINT2
=
49
,
OLECMDID_PRINTPREVIEW2
=
50
,
OLECMDID_SETPRINTTEMPLATE
=
51
,
OLECMDID_GETPRINTTEMPLATE
=
52
}
OLECMDID
;
/*****************************************************************************
* IOleCommandTarget interface
*/
#define INTERFACE IOleCommandTarget
#define IOleCommandTarget_METHODS \
IUnknown_METHODS \
STDMETHOD(QueryStatus)(THIS_ const GUID *pguidCmdGroup, ULONG cCmds, OLECMD *prgCmds, OLECMDTEXT *pCmdText) PURE; \
STDMETHOD(Exec)(THIS_ const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) PURE;
ICOM_DEFINE
(
IOleCommandTarget
,
IUnknown
)
#undef INTERFACE
#ifndef __IOleCommandTarget_INTERFACE_DEFINED__
#define __IOleCommandTarget_INTERFACE_DEFINED__
DEFINE_GUID
(
IID_IOleCommandTarget
,
0xb722bccb
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
#if defined(__cplusplus) && !defined(CINTERFACE)
struct
IOleCommandTarget
:
public
IUnknown
{
virtual
HRESULT
STDMETHODCALLTYPE
QueryStatus
(
const
GUID
*
pguidCmdGroup
,
ULONG
cCmds
,
OLECMD
prgCmds
[],
OLECMDTEXT
*
pCmdText
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Exec
(
const
GUID
*
pguidCmdGroup
,
DWORD
nCmdID
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
)
=
0
;
};
#else
typedef
struct
IOleCommandTargetVtbl
IOleCommandTargetVtbl
;
struct
IOleCommandTarget
{
const
IOleCommandTargetVtbl
*
lpVtbl
;
};
struct
IOleCommandTargetVtbl
{
ICOM_MSVTABLE_COMPAT_FIELDS
/*** IUnknown methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryInterface
)(
IOleCommandTarget
*
This
,
REFIID
riid
,
void
**
ppvObject
);
ULONG
(
STDMETHODCALLTYPE
*
AddRef
)(
IOleCommandTarget
*
This
);
ULONG
(
STDMETHODCALLTYPE
*
Release
)(
IOleCommandTarget
*
This
);
/*** IOleCommandTarget methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryStatus
)(
IOleCommandTarget
*
This
,
const
GUID
*
pguidCmdGroup
,
ULONG
cCmds
,
OLECMD
prgCmds
[],
OLECMDTEXT
*
pCmdText
);
HRESULT
(
STDMETHODCALLTYPE
*
Exec
)(
IOleCommandTarget
*
This
,
const
GUID
*
pguidCmdGroup
,
DWORD
nCmdID
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
);
};
#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IOleCommandTarget_QueryInterface(p,a,b)
(p)->lpVtbl->QueryInterface(p,a,b)
#define IOleCommandTarget_AddRef(p)
(p)->lpVtbl->AddRef(p)
#define IOleCommandTarget_Release(p)
(p)->lpVtbl->Release(p)
#define IOleCommandTarget_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IOleCommandTarget_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IOleCommandTarget_Release(p) (p)->lpVtbl->Release(p)
/*** IOleCommandTarget methods ***/
#define IOleCommandTarget_QueryStatus(p,a,b,c,d) (p)->lpVtbl->QueryStatus(p,a,b,c,d)
#define IOleCommandTarget_Exec(p,a,b,c,d,e) (p)->lpVtbl->Exec(p,a,b,c,d,e)
#define IOleCommandTarget_QueryStatus(p,a,b,c,d) (p)->lpVtbl->QueryStatus(p,a,b,c,d)
#define IOleCommandTarget_Exec(p,a,b,c,d,e) (p)->lpVtbl->Exec(p,a,b,c,d,e)
#endif
#define IOleCommandTarget_METHODS \
ICOM_MSVTABLE_COMPAT_FIELDS \
/*** IUnknown methods ***/
\
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
STDMETHOD_(ULONG,Release)(THIS) PURE; \
/*** IOleCommandTarget methods ***/
\
STDMETHOD_(HRESULT,QueryStatus)(THIS_ const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText) PURE; \
STDMETHOD_(HRESULT,Exec)(THIS_ const GUID* pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut) PURE;
HRESULT
CALLBACK
IOleCommandTarget_QueryStatus_Proxy
(
IOleCommandTarget
*
This
,
const
GUID
*
pguidCmdGroup
,
ULONG
cCmds
,
OLECMD
prgCmds
[],
OLECMDTEXT
*
pCmdText
);
void
__RPC_STUB
IOleCommandTarget_QueryStatus_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IOleCommandTarget_Exec_Proxy
(
IOleCommandTarget
*
This
,
const
GUID
*
pguidCmdGroup
,
DWORD
nCmdID
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
);
void
__RPC_STUB
IOleCommandTarget_Exec_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
#endif
/* __IOleCommandTarget_INTERFACE_DEFINED__ */
#ifndef __IContinueCallback_FWD_DEFINED__
#define __IContinueCallback_FWD_DEFINED__
typedef
struct
IContinueCallback
IContinueCallback
;
#endif
typedef
IContinueCallback
*
LPCONTINUECALLBACK
;
/*****************************************************************************
* IContinueCallback interface
*/
#define INTERFACE IContinueCallback
#define IContinueCallback_METHODS \
IUnknown_METHODS \
STDMETHOD(FContinue)(THIS) PURE; \
STDMETHOD(FContinuePrinting)(THIS_ LONG nCntPrinted, LONG nCurPage, WCHAR *pwszPrintStatus) PURE;
ICOM_DEFINE
(
IContinueCallback
,
IUnknown
)
#undef INTERFACE
#ifndef __IContinueCallback_INTERFACE_DEFINED__
#define __IContinueCallback_INTERFACE_DEFINED__
DEFINE_GUID
(
IID_IContinueCallback
,
0xb722bcca
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
#if defined(__cplusplus) && !defined(CINTERFACE)
struct
IContinueCallback
:
public
IUnknown
{
virtual
HRESULT
STDMETHODCALLTYPE
FContinue
(
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
FContinuePrinting
(
LONG
nCntPrinted
,
LONG
nCurPage
,
WCHAR
*
pwszPrintStatus
)
=
0
;
};
#else
typedef
struct
IContinueCallbackVtbl
IContinueCallbackVtbl
;
struct
IContinueCallback
{
const
IContinueCallbackVtbl
*
lpVtbl
;
};
struct
IContinueCallbackVtbl
{
ICOM_MSVTABLE_COMPAT_FIELDS
/*** IUnknown methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryInterface
)(
IContinueCallback
*
This
,
REFIID
riid
,
void
**
ppvObject
);
ULONG
(
STDMETHODCALLTYPE
*
AddRef
)(
IContinueCallback
*
This
);
ULONG
(
STDMETHODCALLTYPE
*
Release
)(
IContinueCallback
*
This
);
/*** IContinueCallback methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
FContinue
)(
IContinueCallback
*
This
);
HRESULT
(
STDMETHODCALLTYPE
*
FContinuePrinting
)(
IContinueCallback
*
This
,
LONG
nCntPrinted
,
LONG
nCurPage
,
WCHAR
*
pwszPrintStatus
);
};
#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IContinueCallback_QueryInterface(p,a,b)
(p)->lpVtbl->QueryInterface(p,a,b)
#define IContinueCallback_AddRef(p)
(p)->lpVtbl->AddRef(p)
#define IContinueCallback_Release(p)
(p)->lpVtbl->Release(p)
#define IContinueCallback_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IContinueCallback_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IContinueCallback_Release(p) (p)->lpVtbl->Release(p)
/*** IContinueCallback methods ***/
#define IContinueCallback_FContinue(p)
(p)->lpVtbl->FContinue(p)
#define IContinueCallback_FContinue(p) (p)->lpVtbl->FContinue(p)
#define IContinueCallback_FContinuePrinting(p,a,b,c) (p)->lpVtbl->FContinuePrinting(p,a,b,c)
#endif
#define IContinueCallback_METHODS \
ICOM_MSVTABLE_COMPAT_FIELDS \
/*** IUnknown methods ***/
\
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
STDMETHOD_(ULONG,Release)(THIS) PURE; \
/*** IContinueCallback methods ***/
\
STDMETHOD_(HRESULT,FContinue)(THIS) PURE; \
STDMETHOD_(HRESULT,FContinuePrinting)(THIS_ LONG nCntPrinted, LONG nCurPage, WCHAR* pwszPrintStatus) PURE;
HRESULT
CALLBACK
IContinueCallback_FContinue_Proxy
(
IContinueCallback
*
This
);
void
__RPC_STUB
IContinueCallback_FContinue_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IContinueCallback_FContinuePrinting_Proxy
(
IContinueCallback
*
This
,
LONG
nCntPrinted
,
LONG
nCurPage
,
WCHAR
*
pwszPrintStatus
);
void
__RPC_STUB
IContinueCallback_FContinuePrinting_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
#endif
/* __IContinueCallback_INTERFACE_DEFINED__ */
#ifndef __IPrint_FWD_DEFINED__
#define __IPrint_FWD_DEFINED__
typedef
struct
IPrint
IPrint
;
#endif
typedef
IPrint
*
LPPRINT
;
typedef
enum
{
PRINTFLAG_MAYBOTHERUSER
=
1
,
PRINTFLAG_PROMPTUSER
=
2
,
PRINTFLAG_USERMAYCHANGEPRINTER
=
4
,
PRINTFLAG_RECOMPOSETODEVICE
=
8
,
PRINTFLAG_DONTACTUALLYPRINT
=
16
,
PRINTFLAG_FORCEPROPERTIES
=
32
,
PRINTFLAG_PRINTTOFILE
=
64
}
PRINTFLAG
;
typedef
struct
tagPAGERANGE
{
LONG
nFromPage
;
LONG
nToPage
;
}
PAGERANGE
;
typedef
struct
tagPAGESET
{
ULONG
cbStruct
;
BOOL
fOddPages
;
BOOL
fEvenPages
;
ULONG
cPageRange
;
PAGERANGE
rgPages
[
1
];
}
PAGESET
;
/*****************************************************************************
* IPrint interface
*/
#define INTERFACE IPrint
#define IPrint_METHODS \
IUnknown_METHODS \
STDMETHOD(SetInitialPageNum)(THIS_ LONG nFirstPage) PURE; \
STDMETHOD(GetPageInfo)(THIS_ LONG *pnFirstPage, LONG *pcPages) PURE; \
STDMETHOD(Print)(THIS_ DWORD grfFlags, DVTARGETDEVICE **pptd, PAGESET **ppPageSet, STGMEDIUM *pstgmOptions, IContinueCallback *pcallback, LONG nFirstPage, LONG *pcPagesPrinted, LONG *pnLastPage) PURE;
ICOM_DEFINE
(
IPrint
,
IUnknown
)
#undef INTERFACE
#ifdef COBJMACROS
#ifndef __IPrint_INTERFACE_DEFINED__
#define __IPrint_INTERFACE_DEFINED__
DEFINE_GUID
(
IID_IPrint
,
0xb722bcc9
,
0x4e68
,
0x101b
,
0xa2
,
0xbc
,
0x00
,
0xaa
,
0x00
,
0x40
,
0x47
,
0x70
);
#if defined(__cplusplus) && !defined(CINTERFACE)
struct
IPrint
:
public
IUnknown
{
virtual
HRESULT
STDMETHODCALLTYPE
SetInitialPageNum
(
LONG
nFirstPage
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
GetPageInfo
(
LONG
*
pnFirstPage
,
LONG
*
pcPages
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
Print
(
DWORD
grfFlags
,
DVTARGETDEVICE
**
pptd
,
PAGESET
**
ppPageSet
,
STGMEDIUM
*
pstgmOptions
,
IContinueCallback
*
pcallback
,
LONG
nFirstPage
,
LONG
*
pcPagesPrinted
,
LONG
*
pnLastPage
)
=
0
;
};
#else
typedef
struct
IPrintVtbl
IPrintVtbl
;
struct
IPrint
{
const
IPrintVtbl
*
lpVtbl
;
};
struct
IPrintVtbl
{
ICOM_MSVTABLE_COMPAT_FIELDS
/*** IUnknown methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
QueryInterface
)(
IPrint
*
This
,
REFIID
riid
,
void
**
ppvObject
);
ULONG
(
STDMETHODCALLTYPE
*
AddRef
)(
IPrint
*
This
);
ULONG
(
STDMETHODCALLTYPE
*
Release
)(
IPrint
*
This
);
/*** IPrint methods ***/
HRESULT
(
STDMETHODCALLTYPE
*
SetInitialPageNum
)(
IPrint
*
This
,
LONG
nFirstPage
);
HRESULT
(
STDMETHODCALLTYPE
*
GetPageInfo
)(
IPrint
*
This
,
LONG
*
pnFirstPage
,
LONG
*
pcPages
);
HRESULT
(
STDMETHODCALLTYPE
*
Print
)(
IPrint
*
This
,
DWORD
grfFlags
,
DVTARGETDEVICE
**
pptd
,
PAGESET
**
ppPageSet
,
STGMEDIUM
*
pstgmOptions
,
IContinueCallback
*
pcallback
,
LONG
nFirstPage
,
LONG
*
pcPagesPrinted
,
LONG
*
pnLastPage
);
};
/*** IUnknown methods ***/
#define IPrint_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IPrint_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IPrint_Release(p) (p)->lpVtbl->Release(p)
/*** Iprint methods ***/
#define IPrint_SetInitialPageNum(p,a) (p)->lpVtbl->SetInitialPageNum(p,a)
#define IPrint_GetPageInfo(p,a,b) (p)->lpVtbl->GetPageInfo(p,a,b)
#define IPrint_Print(p,a,b,c,d,e,f,g) (p)->lpVtbl->Print(p,a,b,c,d,e,f,g)
#define IPrint_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IPrint_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IPrint_Release(p) (p)->lpVtbl->Release(p)
/*** IPrint methods ***/
#define IPrint_SetInitialPageNum(p,a) (p)->lpVtbl->SetInitialPageNum(p,a)
#define IPrint_GetPageInfo(p,a,b) (p)->lpVtbl->GetPageInfo(p,a,b)
#define IPrint_Print(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Print(p,a,b,c,d,e,f,g,h)
#endif
#define IPrint_METHODS \
ICOM_MSVTABLE_COMPAT_FIELDS \
/*** IUnknown methods ***/
\
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
STDMETHOD_(ULONG,Release)(THIS) PURE; \
/*** IPrint methods ***/
\
STDMETHOD_(HRESULT,SetInitialPageNum)(THIS_ LONG nFirstPage) PURE; \
STDMETHOD_(HRESULT,GetPageInfo)(THIS_ LONG* pnFirstPage, LONG* pcPages) PURE; \
STDMETHOD_(HRESULT,Print)(THIS_ DWORD grfFlags, DVTARGETDEVICE** pptd, PAGESET** ppPageSet, STGMEDIUM* pstgmOptions, IContinueCallback* pcallback, LONG nFirstPage, LONG* pcPagesPrinted, LONG* pnLastPage) PURE;
HRESULT
CALLBACK
IPrint_SetInitialPageNum_Proxy
(
IPrint
*
This
,
LONG
nFirstPage
);
void
__RPC_STUB
IPrint_SetInitialPageNum_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IPrint_GetPageInfo_Proxy
(
IPrint
*
This
,
LONG
*
pnFirstPage
,
LONG
*
pcPages
);
void
__RPC_STUB
IPrint_GetPageInfo_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IPrint_RemotePrint_Proxy
(
IPrint
*
This
,
DWORD
grfFlags
,
DVTARGETDEVICE
**
pptd
,
PAGESET
**
pppageset
,
RemSTGMEDIUM
*
pstgmOptions
,
IContinueCallback
*
pcallback
,
LONG
nFirstPage
,
LONG
*
pcPagesPrinted
,
LONG
*
pnLastPage
);
void
__RPC_STUB
IPrint_RemotePrint_Stub
(
struct
IRpcStubBuffer
*
This
,
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
,
PRPC_MESSAGE
pRpcMessage
,
DWORD
*
pdwStubPhase
);
HRESULT
CALLBACK
IPrint_Print_Proxy
(
IPrint
*
This
,
DWORD
grfFlags
,
DVTARGETDEVICE
**
pptd
,
PAGESET
**
ppPageSet
,
STGMEDIUM
*
pstgmOptions
,
IContinueCallback
*
pcallback
,
LONG
nFirstPage
,
LONG
*
pcPagesPrinted
,
LONG
*
pnLastPage
);
HRESULT
__RPC_STUB
IPrint_Print_Stub
(
IPrint
*
This
,
DWORD
grfFlags
,
DVTARGETDEVICE
**
pptd
,
PAGESET
**
pppageset
,
RemSTGMEDIUM
*
pstgmOptions
,
IContinueCallback
*
pcallback
,
LONG
nFirstPage
,
LONG
*
pcPagesPrinted
,
LONG
*
pnLastPage
);
#endif
/* __IPrint_INTERFACE_DEFINED__ */
#define OLECMDERR_E_FIRST (OLE_E_LAST+1)
#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)
#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1)
#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2)
#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3)
#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4)
#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST
#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED
#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED
#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP
#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED
#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP
#define LPMSODOCUMENT LPOLEDOCUMENT
#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE
#define LPMSOVIEW LPOLEDOCUMENTVIEW
...
...
@@ -380,6 +1154,7 @@ ICOM_DEFINE(IPrint,IUnknown)
#define IID_IMsoView IID_IOleDocumentView
#define IID_IEnumMsoView IID_IEnumOleDocumentViews
#define IID_IMsoCommandTarget IID_IOleCommandTarget
#endif
/* __WINE_DOCOBJ_H */
#ifdef __cplusplus
}
#endif
#endif
/* __WIDL_DOCOBJ_H */
include/docobj.idl
0 → 100644
View file @
b90d6118
/*
*
Copyright
(
C
)
1999
Paul
Quinn
*
Copyright
(
C
)
2003
Alexandre
Julliard
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
59
Temple
Place
,
Suite
330
,
Boston
,
MA
02111
-
1307
USA
*/
import
"ocidl.idl"
;
import
"objidl.idl"
;
import
"oleidl.idl"
;
import
"oaidl.idl"
;
import
"servprov.idl"
;
interface
IOleDocumentView
;
interface
IEnumOleDocumentViews
;
/*****************************************************************************
*
IOleDocument
interface
*/
[
object
,
uuid
(
b722bcc5
-
4
e68
-
101b
-
a2bc
-
00
aa00404770
),
pointer_default
(
unique
)
]
interface
IOleDocument
:
IUnknown
{
typedef
[
unique
]
IOleDocument
*
LPOLEDOCUMENT
;
typedef
enum
{
DOCMISC_CANCREATEMULTIPLEVIEWS
=
1
,
DOCMISC_SUPPORTCOMPLEXRECTANGLES
=
2
,
DOCMISC_CANTOPENEDIT
=
4
,
DOCMISC_NOFILESUPPORT
=
8
}
DOCMISC
;
HRESULT
CreateView
(
[
in
,
unique
]
IOleInPlaceSite
*
pIPSite
,
[
in
,
unique
]
IStream
*
pstm
,
[
in
]
DWORD
dwReserved
,
[
out
]
IOleDocumentView
**
ppView
)
;
HRESULT
GetDocMiscStatus
(
[
out
]
DWORD
*
pdwStatus
)
;
HRESULT
EnumViews
(
[
out
]
IEnumOleDocumentViews
**
ppEnum
,
[
out
]
IOleDocumentView
**
ppView
)
;
}
/*****************************************************************************
*
IOleDocumentSite
interface
*/
[
object
,
uuid
(
b722bcc7
-
4
e68
-
101b
-
a2bc
-
00
aa00404770
),
pointer_default
(
unique
)
]
interface
IOleDocumentSite
:
IUnknown
{
typedef
[
unique
]
IOleDocumentSite
*
LPOLEDOCUMENTSITE
;
HRESULT
ActivateMe
(
[
in
]
IOleDocumentView
*
pViewToActivate
)
;
}
/*****************************************************************************
*
IOleDocumentView
interface
*/
[
object
,
uuid
(
b722bcc6
-
4
e68
-
101b
-
a2bc
-
00
aa00404770
),
pointer_default
(
unique
)
]
interface
IOleDocumentView
:
IUnknown
{
typedef
[
unique
]
IOleDocumentView
*
LPOLEDOCUMENTVIEW
;
HRESULT
SetInPlaceSite
(
[
in
,
unique
]
IOleInPlaceSite
*
pIPSite
)
;
HRESULT
GetInPlaceSite
(
[
out
]
IOleInPlaceSite
**
ppIPSite
)
;
HRESULT
GetDocument
(
[
out
]
IUnknown
**
ppunk
)
;
HRESULT
SetRect
(
[
in
]
LPRECT
prcView
)
;
HRESULT
GetRect
(
[
out
]
LPRECT
prcView
)
;
HRESULT
SetRectComplex
(
[
in
,
unique
]
LPRECT
prcView
,
[
in
,
unique
]
LPRECT
prcHScroll
,
[
in
,
unique
]
LPRECT
prcVScroll
,
[
in
,
unique
]
LPRECT
prcSizeBox
)
;
HRESULT
Show
(
[
in
]
BOOL
fShow
)
;
HRESULT
UIActivate
(
[
in
]
BOOL
fUIActivate
)
;
HRESULT
Open
()
;
HRESULT
CloseView
(
[
in
]
DWORD
dwReserved
)
;
HRESULT
SaveViewState
(
[
in
]
LPSTREAM
pstm
)
;
HRESULT
ApplyViewState
(
[
in
]
LPSTREAM
pstm
)
;
HRESULT
Clone
(
[
in
]
IOleInPlaceSite
*
pIPSiteNew
,
[
out
]
IOleDocumentView
**
ppViewNew
)
;
}
/*****************************************************************************
*
IEnumOleDocumentViews
interface
*/
[
object
,
uuid
(
b722bcc8
-
4
e68
-
101b
-
a2bc
-
00
aa00404770
),
pointer_default
(
unique
)
]
interface
IEnumOleDocumentViews
:
IUnknown
{
typedef
[
unique
]
IEnumOleDocumentViews
*
LPENUMOLEDOCUMENTVIEWS
;
[
local
]
HRESULT
Next
(
[
in
]
ULONG
cViews
,
[
out
]
IOleDocumentView
**
rgpView
,
[
out
]
ULONG
*
pcFetched
)
;
[
call_as
(
Next
)
]
HRESULT
RemoteNext
(
[
in
]
ULONG
cViews
,
[
out
,
size_is
(
cViews
),
length_is
(
*
pcFetched
)
]
IOleDocumentView
**
rgpView
,
[
out
]
ULONG
*
pcFetched
)
;
HRESULT
Skip
(
[
in
]
ULONG
cViews
)
;
HRESULT
Reset
()
;
HRESULT
Clone
(
[
out
]
IEnumOleDocumentViews
**
ppEnum
)
;
}
/*****************************************************************************
*
IOleCommandTarget
interface
*/
[
object
,
uuid
(
b722bccb
-
4
e68
-
101b
-
a2bc
-
00
aa00404770
),
pointer_default
(
unique
)
]
interface
IOleCommandTarget
:
IUnknown
{
typedef
[
unique
]
IOleCommandTarget
*
LPOLECOMMANDTARGET
;
typedef
enum
{
OLECMDF_SUPPORTED
=
0
x1
,
OLECMDF_ENABLED
=
0
x2
,
OLECMDF_LATCHED
=
0
x4
,
OLECMDF_NINCHED
=
0
x8
,
OLECMDF_INVISIBLE
=
0
x10
,
OLECMDF_DEFHIDEONCTXTMENU
=
0
x20
}
OLECMDF
;
typedef
struct
_tagOLECMD
{
ULONG
cmdID
;
DWORD
cmdf
;
}
OLECMD
;
typedef
struct
_tagOLECMDTEXT
{
DWORD
cmdtextf
;
ULONG
cwActual
;
ULONG
cwBuf
;
[
size_is
(
cwBuf
)
]
WCHAR
rgwz
[]
;
}
OLECMDTEXT
;
typedef
enum
{
OLECMDTEXTF_NONE
=
0
,
OLECMDTEXTF_NAME
=
1
,
OLECMDTEXTF_STATUS
=
2
}
OLECMDTEXTF
;
typedef
enum
{
OLECMDEXECOPT_DODEFAULT
=
0
,
OLECMDEXECOPT_PROMPTUSER
=
1
,
OLECMDEXECOPT_DONTPROMPTUSER
=
2
,
OLECMDEXECOPT_SHOWHELP
=
3
}
OLECMDEXECOPT
;
typedef
enum
OLECMDID
{
OLECMDID_OPEN
=
1
,
OLECMDID_NEW
=
2
,
OLECMDID_SAVE
=
3
,
OLECMDID_SAVEAS
=
4
,
OLECMDID_SAVECOPYAS
=
5
,
OLECMDID_PRINT
=
6
,
OLECMDID_PRINTPREVIEW
=
7
,
OLECMDID_PAGESETUP
=
8
,
OLECMDID_SPELL
=
9
,
OLECMDID_PROPERTIES
=
10
,
OLECMDID_CUT
=
11
,
OLECMDID_COPY
=
12
,
OLECMDID_PASTE
=
13
,
OLECMDID_PASTESPECIAL
=
14
,
OLECMDID_UNDO
=
15
,
OLECMDID_REDO
=
16
,
OLECMDID_SELECTALL
=
17
,
OLECMDID_CLEARSELECTION
=
18
,
OLECMDID_ZOOM
=
19
,
OLECMDID_GETZOOMRANGE
=
20
,
OLECMDID_UPDATECOMMANDS
=
21
,
OLECMDID_REFRESH
=
22
,
OLECMDID_STOP
=
23
,
OLECMDID_HIDETOOLBARS
=
24
,
OLECMDID_SETPROGRESSMAX
=
25
,
OLECMDID_SETPROGRESSPOS
=
26
,
OLECMDID_SETPROGRESSTEXT
=
27
,
OLECMDID_SETTITLE
=
28
,
OLECMDID_SETDOWNLOADSTATE
=
29
,
OLECMDID_STOPDOWNLOAD
=
30
,
OLECMDID_ONTOOLBARACTIVATED
=
31
,
OLECMDID_FIND
=
32
,
OLECMDID_DELETE
=
33
,
OLECMDID_HTTPEQUIV
=
34
,
OLECMDID_HTTPEQUIV_DONE
=
35
,
OLECMDID_ENABLE_INTERACTION
=
36
,
OLECMDID_ONUNLOAD
=
37
,
OLECMDID_PROPERTYBAG2
=
38
,
OLECMDID_PREREFRESH
=
39
,
/*
iexplorer
uses
...
44
*/
OLECMDID_SHOWSCRIPTERROR
=
40
,
OLECMDID_SHOWMESSAGE
=
41
,
OLECMDID_SHOWFIND
=
42
,
OLECMDID_SHOWPAGESETUP
=
43
,
OLECMDID_SHOWPRINT
=
44
,
OLECMDID_CLOSE
=
45
,
OLECMDID_ALLOWUILESSSAVEAS
=
46
,
OLECMDID_DONTDOWNLOADCSS
=
47
,
OLECMDID_UPDATEPAGESTATUS
=
48
,
OLECMDID_PRINT2
=
49
,
OLECMDID_PRINTPREVIEW2
=
50
,
OLECMDID_SETPRINTTEMPLATE
=
51
,
OLECMDID_GETPRINTTEMPLATE
=
52
}
OLECMDID
;
HRESULT
QueryStatus
(
[
in
,
unique
]
const
GUID
*
pguidCmdGroup
,
[
in
]
ULONG
cCmds
,
[
in
,
out
,
size_is
(
cCmds
)
]
OLECMD
prgCmds
[]
,
[
in
,
out
,
unique
]
OLECMDTEXT
*
pCmdText
)
;
HRESULT
Exec
(
[
in
,
unique
]
const
GUID
*
pguidCmdGroup
,
[
in
]
DWORD
nCmdID
,
[
in
]
DWORD
nCmdexecopt
,
[
in
,
unique
]
VARIANT
*
pvaIn
,
[
in
,
out
,
unique
]
VARIANT
*
pvaOut
)
;
}
/*****************************************************************************
*
IContinueCallback
interface
*/
[
object
,
uuid
(
b722bcca
-
4
e68
-
101b
-
a2bc
-
00
aa00404770
),
pointer_default
(
unique
)
]
interface
IContinueCallback
:
IUnknown
{
typedef
[
unique
]
IContinueCallback
*
LPCONTINUECALLBACK
;
HRESULT
FContinue
()
;
HRESULT
FContinuePrinting
(
[
in
]
LONG
nCntPrinted
,
[
in
]
LONG
nCurPage
,
[
in
,
unique
]
WCHAR
*
pwszPrintStatus
)
;
}
/*****************************************************************************
*
IPrint
interface
*/
[
object
,
uuid
(
b722bcc9
-
4
e68
-
101b
-
a2bc
-
00
aa00404770
),
pointer_default
(
unique
)
]
interface
IPrint
:
IUnknown
{
typedef
[
unique
]
IPrint
*
LPPRINT
;
typedef
enum
{
PRINTFLAG_MAYBOTHERUSER
=
1
,
PRINTFLAG_PROMPTUSER
=
2
,
PRINTFLAG_USERMAYCHANGEPRINTER
=
4
,
PRINTFLAG_RECOMPOSETODEVICE
=
8
,
PRINTFLAG_DONTACTUALLYPRINT
=
16
,
PRINTFLAG_FORCEPROPERTIES
=
32
,
PRINTFLAG_PRINTTOFILE
=
64
}
PRINTFLAG
;
typedef
struct
tagPAGERANGE
{
LONG
nFromPage
;
LONG
nToPage
;
}
PAGERANGE
;
typedef
struct
tagPAGESET
{
ULONG
cbStruct
;
BOOL
fOddPages
;
BOOL
fEvenPages
;
ULONG
cPageRange
;
[
size_is
(
cPageRange
)
]
PAGERANGE
rgPages
[]
;
}
PAGESET
;
HRESULT
SetInitialPageNum
(
[
in
]
LONG
nFirstPage
)
;
HRESULT
GetPageInfo
(
[
out
]
LONG
*
pnFirstPage
,
[
out
]
LONG
*
pcPages
)
;
[
local
]
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
)
;
[
call_as
(
Print
)
]
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
)
;
}
cpp_quote
(
"#define OLECMDERR_E_FIRST (OLE_E_LAST+1)"
)
cpp_quote
(
"#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)"
)
cpp_quote
(
"#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1)"
)
cpp_quote
(
"#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2)"
)
cpp_quote
(
"#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3)"
)
cpp_quote
(
"#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4)"
)
cpp_quote
(
"#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST"
)
cpp_quote
(
"#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED"
)
cpp_quote
(
"#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED"
)
cpp_quote
(
"#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP"
)
cpp_quote
(
"#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED"
)
cpp_quote
(
"#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP"
)
cpp_quote
(
"#define LPMSODOCUMENT LPOLEDOCUMENT"
)
cpp_quote
(
"#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE"
)
cpp_quote
(
"#define LPMSOVIEW LPOLEDOCUMENTVIEW"
)
cpp_quote
(
"#define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS"
)
cpp_quote
(
"#define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET"
)
cpp_quote
(
"#define IID_IMsoDocument IID_IOleDocument"
)
cpp_quote
(
"#define IID_IMsoDocumentSite IID_IOleDocumentSite"
)
cpp_quote
(
"#define IID_IMsoView IID_IOleDocumentView"
)
cpp_quote
(
"#define IID_IEnumMsoView IID_IEnumOleDocumentViews"
)
cpp_quote
(
"#define IID_IMsoCommandTarget IID_IOleCommandTarget"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment