|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| #ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| #define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| #endif
|
|
|
|
|
| #ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| #define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| #endif
|
|
|
| #include "rpc.h"
|
| #include "rpcndr.h"
|
|
|
| #ifndef __RPCNDR_H_VERSION__
|
| #error this stub requires an updated version of <rpcndr.h>
|
| #endif
|
|
|
| #ifndef COM_NO_WINDOWS_H
|
| #include "windows.h"
|
| #include "ole2.h"
|
| #endif
|
|
|
| #ifndef __documentsource_h__
|
| #define __documentsource_h__
|
|
|
| #if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| #pragma once
|
| #endif
|
|
|
| #ifndef DECLSPEC_XFGVIRT
|
| #if defined(_CONTROL_FLOW_GUARD_XFG)
|
| #define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| #else
|
| #define DECLSPEC_XFGVIRT(base, func)
|
| #endif
|
| #endif
|
|
|
|
|
|
|
| #ifndef __IPrintPreviewPageCollection_FWD_DEFINED__
|
| #define __IPrintPreviewPageCollection_FWD_DEFINED__
|
| typedef interface IPrintPreviewPageCollection IPrintPreviewPageCollection;
|
|
|
| #endif
|
|
|
|
|
| #ifndef __IPrintDocumentPageSource_FWD_DEFINED__
|
| #define __IPrintDocumentPageSource_FWD_DEFINED__
|
| typedef interface IPrintDocumentPageSource IPrintDocumentPageSource;
|
|
|
| #endif
|
|
|
|
|
| #ifndef __IPrintPreviewPageCollection_FWD_DEFINED__
|
| #define __IPrintPreviewPageCollection_FWD_DEFINED__
|
| typedef interface IPrintPreviewPageCollection IPrintPreviewPageCollection;
|
|
|
| #endif
|
|
|
|
|
| #ifndef __IPrintDocumentPageSource_FWD_DEFINED__
|
| #define __IPrintDocumentPageSource_FWD_DEFINED__
|
| typedef interface IPrintDocumentPageSource IPrintDocumentPageSource;
|
|
|
| #endif
|
|
|
|
|
|
|
| #include "oaidl.h"
|
| #include "ocidl.h"
|
| #include "Inspectable.h"
|
| #include "DocumentTarget.h"
|
|
|
| #ifdef __cplusplus
|
| extern "C"{
|
| #endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| #if (NTDDI_VERSION >= NTDDI_WIN8)
|
| #define JOB_PAGE_APPLICATION_DEFINED ( ( UINT32 )-1 )
|
|
|
|
|
|
|
| extern RPC_IF_HANDLE __MIDL_itf_documentsource_0000_0000_v0_0_c_ifspec;
|
| extern RPC_IF_HANDLE __MIDL_itf_documentsource_0000_0000_v0_0_s_ifspec;
|
|
|
| #ifndef __IPrintPreviewPageCollection_INTERFACE_DEFINED__
|
| #define __IPrintPreviewPageCollection_INTERFACE_DEFINED__
|
|
|
|
|
|
|
|
|
|
|
| EXTERN_C const IID IID_IPrintPreviewPageCollection;
|
|
|
| #if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
| MIDL_INTERFACE("0b31cc62-d7ec-4747-9d6e-f2537d870f2b")
|
| IPrintPreviewPageCollection : public IUnknown
|
| {
|
| public:
|
| virtual HRESULT STDMETHODCALLTYPE Paginate(
|
| UINT32 currentJobPage,
|
| __RPC__in_opt IInspectable *printTaskOptions) = 0;
|
|
|
| virtual HRESULT STDMETHODCALLTYPE MakePage(
|
| UINT32 desiredJobPage,
|
| FLOAT width,
|
| FLOAT height) = 0;
|
|
|
| };
|
|
|
|
|
| #else
|
|
|
| typedef struct IPrintPreviewPageCollectionVtbl
|
| {
|
| BEGIN_INTERFACE
|
|
|
| DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| __RPC__in IPrintPreviewPageCollection * This,
|
| __RPC__in REFIID riid,
|
|
|
| _COM_Outptr_ void **ppvObject);
|
|
|
| DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| __RPC__in IPrintPreviewPageCollection * This);
|
|
|
| DECLSPEC_XFGVIRT(IUnknown, Release)
|
| ULONG ( STDMETHODCALLTYPE *Release )(
|
| __RPC__in IPrintPreviewPageCollection * This);
|
|
|
| DECLSPEC_XFGVIRT(IPrintPreviewPageCollection, Paginate)
|
| HRESULT ( STDMETHODCALLTYPE *Paginate )(
|
| __RPC__in IPrintPreviewPageCollection * This,
|
| UINT32 currentJobPage,
|
| __RPC__in_opt IInspectable *printTaskOptions);
|
|
|
| DECLSPEC_XFGVIRT(IPrintPreviewPageCollection, MakePage)
|
| HRESULT ( STDMETHODCALLTYPE *MakePage )(
|
| __RPC__in IPrintPreviewPageCollection * This,
|
| UINT32 desiredJobPage,
|
| FLOAT width,
|
| FLOAT height);
|
|
|
| END_INTERFACE
|
| } IPrintPreviewPageCollectionVtbl;
|
|
|
| interface IPrintPreviewPageCollection
|
| {
|
| CONST_VTBL struct IPrintPreviewPageCollectionVtbl *lpVtbl;
|
| };
|
|
|
|
|
|
|
| #ifdef COBJMACROS
|
|
|
|
|
| #define IPrintPreviewPageCollection_QueryInterface(This,riid,ppvObject) \
|
| ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
|
|
| #define IPrintPreviewPageCollection_AddRef(This) \
|
| ( (This)->lpVtbl -> AddRef(This) )
|
|
|
| #define IPrintPreviewPageCollection_Release(This) \
|
| ( (This)->lpVtbl -> Release(This) )
|
|
|
|
|
| #define IPrintPreviewPageCollection_Paginate(This,currentJobPage,printTaskOptions) \
|
| ( (This)->lpVtbl -> Paginate(This,currentJobPage,printTaskOptions) )
|
|
|
| #define IPrintPreviewPageCollection_MakePage(This,desiredJobPage,width,height) \
|
| ( (This)->lpVtbl -> MakePage(This,desiredJobPage,width,height) )
|
|
|
| #endif
|
|
|
|
|
| #endif
|
|
|
|
|
|
|
|
|
| #endif
|
|
|
|
|
| #ifndef __IPrintDocumentPageSource_INTERFACE_DEFINED__
|
| #define __IPrintDocumentPageSource_INTERFACE_DEFINED__
|
|
|
|
|
|
|
|
|
|
|
| EXTERN_C const IID IID_IPrintDocumentPageSource;
|
|
|
| #if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
| MIDL_INTERFACE("a96bb1db-172e-4667-82b5-ad97a252318f")
|
| IPrintDocumentPageSource : public IUnknown
|
| {
|
| public:
|
| virtual HRESULT STDMETHODCALLTYPE GetPreviewPageCollection(
|
| __RPC__in_opt IPrintDocumentPackageTarget *docPackageTarget,
|
| __RPC__deref_out_opt IPrintPreviewPageCollection **docPageCollection) = 0;
|
|
|
| virtual HRESULT STDMETHODCALLTYPE MakeDocument(
|
| __RPC__in_opt IInspectable *printTaskOptions,
|
| __RPC__in_opt IPrintDocumentPackageTarget *docPackageTarget) = 0;
|
|
|
| };
|
|
|
|
|
| #else
|
|
|
| typedef struct IPrintDocumentPageSourceVtbl
|
| {
|
| BEGIN_INTERFACE
|
|
|
| DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| __RPC__in IPrintDocumentPageSource * This,
|
| __RPC__in REFIID riid,
|
|
|
| _COM_Outptr_ void **ppvObject);
|
|
|
| DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| __RPC__in IPrintDocumentPageSource * This);
|
|
|
| DECLSPEC_XFGVIRT(IUnknown, Release)
|
| ULONG ( STDMETHODCALLTYPE *Release )(
|
| __RPC__in IPrintDocumentPageSource * This);
|
|
|
| DECLSPEC_XFGVIRT(IPrintDocumentPageSource, GetPreviewPageCollection)
|
| HRESULT ( STDMETHODCALLTYPE *GetPreviewPageCollection )(
|
| __RPC__in IPrintDocumentPageSource * This,
|
| __RPC__in_opt IPrintDocumentPackageTarget *docPackageTarget,
|
| __RPC__deref_out_opt IPrintPreviewPageCollection **docPageCollection);
|
|
|
| DECLSPEC_XFGVIRT(IPrintDocumentPageSource, MakeDocument)
|
| HRESULT ( STDMETHODCALLTYPE *MakeDocument )(
|
| __RPC__in IPrintDocumentPageSource * This,
|
| __RPC__in_opt IInspectable *printTaskOptions,
|
| __RPC__in_opt IPrintDocumentPackageTarget *docPackageTarget);
|
|
|
| END_INTERFACE
|
| } IPrintDocumentPageSourceVtbl;
|
|
|
| interface IPrintDocumentPageSource
|
| {
|
| CONST_VTBL struct IPrintDocumentPageSourceVtbl *lpVtbl;
|
| };
|
|
|
|
|
|
|
| #ifdef COBJMACROS
|
|
|
|
|
| #define IPrintDocumentPageSource_QueryInterface(This,riid,ppvObject) \
|
| ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
|
|
| #define IPrintDocumentPageSource_AddRef(This) \
|
| ( (This)->lpVtbl -> AddRef(This) )
|
|
|
| #define IPrintDocumentPageSource_Release(This) \
|
| ( (This)->lpVtbl -> Release(This) )
|
|
|
|
|
| #define IPrintDocumentPageSource_GetPreviewPageCollection(This,docPackageTarget,docPageCollection) \
|
| ( (This)->lpVtbl -> GetPreviewPageCollection(This,docPackageTarget,docPageCollection) )
|
|
|
| #define IPrintDocumentPageSource_MakeDocument(This,printTaskOptions,docPackageTarget) \
|
| ( (This)->lpVtbl -> MakeDocument(This,printTaskOptions,docPackageTarget) )
|
|
|
| #endif
|
|
|
|
|
| #endif
|
|
|
|
|
|
|
|
|
| #endif
|
|
|
|
|
|
|
| #ifndef __PrintDocumentSource_LIBRARY_DEFINED__
|
| #define __PrintDocumentSource_LIBRARY_DEFINED__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| EXTERN_C const IID LIBID_PrintDocumentSource;
|
| #endif
|
|
|
|
|
|
|
|
|
| #endif
|
|
|
|
|
| extern RPC_IF_HANDLE __MIDL_itf_documentsource_0000_0003_v0_0_c_ifspec;
|
| extern RPC_IF_HANDLE __MIDL_itf_documentsource_0000_0003_v0_0_s_ifspec;
|
|
|
|
|
|
|
|
|
|
|
| #ifdef __cplusplus
|
| }
|
| #endif
|
|
|
| #endif
|
|
|
|
|
|
|