master
  1/*** Autogenerated by WIDL 10.4 from include/xpsrassvc.idl - Do not edit ***/
  2
  3#ifdef _WIN32
  4#ifndef __REQUIRED_RPCNDR_H_VERSION__
  5#define __REQUIRED_RPCNDR_H_VERSION__ 475
  6#endif
  7#include <rpc.h>
  8#include <rpcndr.h>
  9#endif
 10
 11#ifndef COM_NO_WINDOWS_H
 12#include <windows.h>
 13#include <ole2.h>
 14#endif
 15
 16#ifndef __xpsrassvc_h__
 17#define __xpsrassvc_h__
 18
 19/* Forward declarations */
 20
 21#ifndef __IXpsRasterizerNotificationCallback_FWD_DEFINED__
 22#define __IXpsRasterizerNotificationCallback_FWD_DEFINED__
 23typedef interface IXpsRasterizerNotificationCallback IXpsRasterizerNotificationCallback;
 24#ifdef __cplusplus
 25interface IXpsRasterizerNotificationCallback;
 26#endif /* __cplusplus */
 27#endif
 28
 29#ifndef __IXpsRasterizer_FWD_DEFINED__
 30#define __IXpsRasterizer_FWD_DEFINED__
 31typedef interface IXpsRasterizer IXpsRasterizer;
 32#ifdef __cplusplus
 33interface IXpsRasterizer;
 34#endif /* __cplusplus */
 35#endif
 36
 37#ifndef __IXpsRasterizationFactory_FWD_DEFINED__
 38#define __IXpsRasterizationFactory_FWD_DEFINED__
 39typedef interface IXpsRasterizationFactory IXpsRasterizationFactory;
 40#ifdef __cplusplus
 41interface IXpsRasterizationFactory;
 42#endif /* __cplusplus */
 43#endif
 44
 45#ifndef __IXpsRasterizationFactory1_FWD_DEFINED__
 46#define __IXpsRasterizationFactory1_FWD_DEFINED__
 47typedef interface IXpsRasterizationFactory1 IXpsRasterizationFactory1;
 48#ifdef __cplusplus
 49interface IXpsRasterizationFactory1;
 50#endif /* __cplusplus */
 51#endif
 52
 53/* Headers for imported files */
 54
 55#include <objidl.h>
 56#include <wincodec.h>
 57#include <xpsobjectmodel.h>
 58
 59#ifdef __cplusplus
 60extern "C" {
 61#endif
 62
 63#ifndef __IXpsRasterizerNotificationCallback_FWD_DEFINED__
 64#define __IXpsRasterizerNotificationCallback_FWD_DEFINED__
 65typedef interface IXpsRasterizerNotificationCallback IXpsRasterizerNotificationCallback;
 66#ifdef __cplusplus
 67interface IXpsRasterizerNotificationCallback;
 68#endif /* __cplusplus */
 69#endif
 70
 71#ifndef __IXpsRasterizer_FWD_DEFINED__
 72#define __IXpsRasterizer_FWD_DEFINED__
 73typedef interface IXpsRasterizer IXpsRasterizer;
 74#ifdef __cplusplus
 75interface IXpsRasterizer;
 76#endif /* __cplusplus */
 77#endif
 78
 79#ifndef __IXpsRasterizationFactory_FWD_DEFINED__
 80#define __IXpsRasterizationFactory_FWD_DEFINED__
 81typedef interface IXpsRasterizationFactory IXpsRasterizationFactory;
 82#ifdef __cplusplus
 83interface IXpsRasterizationFactory;
 84#endif /* __cplusplus */
 85#endif
 86
 87#ifndef __IXpsRasterizationFactory1_FWD_DEFINED__
 88#define __IXpsRasterizationFactory1_FWD_DEFINED__
 89typedef interface IXpsRasterizationFactory1 IXpsRasterizationFactory1;
 90#ifdef __cplusplus
 91interface IXpsRasterizationFactory1;
 92#endif /* __cplusplus */
 93#endif
 94
 95#include <winapifamily.h>
 96
 97#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
 98typedef enum __WIDL_xpsrassvc_generated_name_0000004A {
 99    XPSRAS_RENDERING_MODE_ANTIALIASED = 0,
100    XPSRAS_RENDERING_MODE_ALIASED = 1
101} XPSRAS_RENDERING_MODE;
102#if NTDDI_VERSION >= 0x06020000
103typedef enum __WIDL_xpsrassvc_generated_name_0000004B {
104    XPSRAS_PIXEL_FORMAT_32BPP_PBGRA_UINT_SRGB = 1,
105    XPSRAS_PIXEL_FORMAT_64BPP_PRGBA_HALF_SCRGB = 2,
106    XPSRAS_PIXEL_FORMAT_128BPP_PRGBA_FLOAT_SCRGB = 3
107} XPSRAS_PIXEL_FORMAT;
108#endif
109/*****************************************************************************
110 * IXpsRasterizerNotificationCallback interface
111 */
112#ifndef __IXpsRasterizerNotificationCallback_INTERFACE_DEFINED__
113#define __IXpsRasterizerNotificationCallback_INTERFACE_DEFINED__
114
115DEFINE_GUID(IID_IXpsRasterizerNotificationCallback, 0x9ab8fd0d, 0xcb94, 0x49c2, 0x9c,0xb0, 0x97,0xec,0x1d,0x54,0x69,0xd2);
116#if defined(__cplusplus) && !defined(CINTERFACE)
117MIDL_INTERFACE("9ab8fd0d-cb94-49c2-9cb0-97ec1d5469d2")
118IXpsRasterizerNotificationCallback : public IUnknown
119{
120    virtual HRESULT STDMETHODCALLTYPE Continue(
121        ) = 0;
122
123};
124#ifdef __CRT_UUID_DECL
125__CRT_UUID_DECL(IXpsRasterizerNotificationCallback, 0x9ab8fd0d, 0xcb94, 0x49c2, 0x9c,0xb0, 0x97,0xec,0x1d,0x54,0x69,0xd2)
126#endif
127#else
128typedef struct IXpsRasterizerNotificationCallbackVtbl {
129    BEGIN_INTERFACE
130
131    /*** IUnknown methods ***/
132    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
133        IXpsRasterizerNotificationCallback *This,
134        REFIID riid,
135        void **ppvObject);
136
137    ULONG (STDMETHODCALLTYPE *AddRef)(
138        IXpsRasterizerNotificationCallback *This);
139
140    ULONG (STDMETHODCALLTYPE *Release)(
141        IXpsRasterizerNotificationCallback *This);
142
143    /*** IXpsRasterizerNotificationCallback methods ***/
144    HRESULT (STDMETHODCALLTYPE *Continue)(
145        IXpsRasterizerNotificationCallback *This);
146
147    END_INTERFACE
148} IXpsRasterizerNotificationCallbackVtbl;
149
150interface IXpsRasterizerNotificationCallback {
151    CONST_VTBL IXpsRasterizerNotificationCallbackVtbl* lpVtbl;
152};
153
154#ifdef COBJMACROS
155#ifndef WIDL_C_INLINE_WRAPPERS
156/*** IUnknown methods ***/
157#define IXpsRasterizerNotificationCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
158#define IXpsRasterizerNotificationCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
159#define IXpsRasterizerNotificationCallback_Release(This) (This)->lpVtbl->Release(This)
160/*** IXpsRasterizerNotificationCallback methods ***/
161#define IXpsRasterizerNotificationCallback_Continue(This) (This)->lpVtbl->Continue(This)
162#else
163/*** IUnknown methods ***/
164static inline HRESULT IXpsRasterizerNotificationCallback_QueryInterface(IXpsRasterizerNotificationCallback* This,REFIID riid,void **ppvObject) {
165    return This->lpVtbl->QueryInterface(This,riid,ppvObject);
166}
167static inline ULONG IXpsRasterizerNotificationCallback_AddRef(IXpsRasterizerNotificationCallback* This) {
168    return This->lpVtbl->AddRef(This);
169}
170static inline ULONG IXpsRasterizerNotificationCallback_Release(IXpsRasterizerNotificationCallback* This) {
171    return This->lpVtbl->Release(This);
172}
173/*** IXpsRasterizerNotificationCallback methods ***/
174static inline HRESULT IXpsRasterizerNotificationCallback_Continue(IXpsRasterizerNotificationCallback* This) {
175    return This->lpVtbl->Continue(This);
176}
177#endif
178#endif
179
180#endif
181
182
183#endif  /* __IXpsRasterizerNotificationCallback_INTERFACE_DEFINED__ */
184
185/*****************************************************************************
186 * IXpsRasterizer interface
187 */
188#ifndef __IXpsRasterizer_INTERFACE_DEFINED__
189#define __IXpsRasterizer_INTERFACE_DEFINED__
190
191DEFINE_GUID(IID_IXpsRasterizer, 0x7567cfc8, 0xc156, 0x47a8, 0x9d,0xac, 0x11,0xa2,0xae,0x5b,0xdd,0x6b);
192#if defined(__cplusplus) && !defined(CINTERFACE)
193MIDL_INTERFACE("7567cfc8-c156-47a8-9dac-11a2ae5bdd6b")
194IXpsRasterizer : public IUnknown
195{
196    virtual HRESULT STDMETHODCALLTYPE RasterizeRect(
197        INT x,
198        INT y,
199        INT width,
200        INT height,
201        IXpsRasterizerNotificationCallback *notificationCallback,
202        IWICBitmap **bitmap) = 0;
203
204    virtual HRESULT STDMETHODCALLTYPE SetMinimalLineWidth(
205        INT width) = 0;
206
207};
208#ifdef __CRT_UUID_DECL
209__CRT_UUID_DECL(IXpsRasterizer, 0x7567cfc8, 0xc156, 0x47a8, 0x9d,0xac, 0x11,0xa2,0xae,0x5b,0xdd,0x6b)
210#endif
211#else
212typedef struct IXpsRasterizerVtbl {
213    BEGIN_INTERFACE
214
215    /*** IUnknown methods ***/
216    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
217        IXpsRasterizer *This,
218        REFIID riid,
219        void **ppvObject);
220
221    ULONG (STDMETHODCALLTYPE *AddRef)(
222        IXpsRasterizer *This);
223
224    ULONG (STDMETHODCALLTYPE *Release)(
225        IXpsRasterizer *This);
226
227    /*** IXpsRasterizer methods ***/
228    HRESULT (STDMETHODCALLTYPE *RasterizeRect)(
229        IXpsRasterizer *This,
230        INT x,
231        INT y,
232        INT width,
233        INT height,
234        IXpsRasterizerNotificationCallback *notificationCallback,
235        IWICBitmap **bitmap);
236
237    HRESULT (STDMETHODCALLTYPE *SetMinimalLineWidth)(
238        IXpsRasterizer *This,
239        INT width);
240
241    END_INTERFACE
242} IXpsRasterizerVtbl;
243
244interface IXpsRasterizer {
245    CONST_VTBL IXpsRasterizerVtbl* lpVtbl;
246};
247
248#ifdef COBJMACROS
249#ifndef WIDL_C_INLINE_WRAPPERS
250/*** IUnknown methods ***/
251#define IXpsRasterizer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
252#define IXpsRasterizer_AddRef(This) (This)->lpVtbl->AddRef(This)
253#define IXpsRasterizer_Release(This) (This)->lpVtbl->Release(This)
254/*** IXpsRasterizer methods ***/
255#define IXpsRasterizer_RasterizeRect(This,x,y,width,height,notificationCallback,bitmap) (This)->lpVtbl->RasterizeRect(This,x,y,width,height,notificationCallback,bitmap)
256#define IXpsRasterizer_SetMinimalLineWidth(This,width) (This)->lpVtbl->SetMinimalLineWidth(This,width)
257#else
258/*** IUnknown methods ***/
259static inline HRESULT IXpsRasterizer_QueryInterface(IXpsRasterizer* This,REFIID riid,void **ppvObject) {
260    return This->lpVtbl->QueryInterface(This,riid,ppvObject);
261}
262static inline ULONG IXpsRasterizer_AddRef(IXpsRasterizer* This) {
263    return This->lpVtbl->AddRef(This);
264}
265static inline ULONG IXpsRasterizer_Release(IXpsRasterizer* This) {
266    return This->lpVtbl->Release(This);
267}
268/*** IXpsRasterizer methods ***/
269static inline HRESULT IXpsRasterizer_RasterizeRect(IXpsRasterizer* This,INT x,INT y,INT width,INT height,IXpsRasterizerNotificationCallback *notificationCallback,IWICBitmap **bitmap) {
270    return This->lpVtbl->RasterizeRect(This,x,y,width,height,notificationCallback,bitmap);
271}
272static inline HRESULT IXpsRasterizer_SetMinimalLineWidth(IXpsRasterizer* This,INT width) {
273    return This->lpVtbl->SetMinimalLineWidth(This,width);
274}
275#endif
276#endif
277
278#endif
279
280
281#endif  /* __IXpsRasterizer_INTERFACE_DEFINED__ */
282
283/*****************************************************************************
284 * IXpsRasterizationFactory interface
285 */
286#ifndef __IXpsRasterizationFactory_INTERFACE_DEFINED__
287#define __IXpsRasterizationFactory_INTERFACE_DEFINED__
288
289DEFINE_GUID(IID_IXpsRasterizationFactory, 0xe094808a, 0x24c6, 0x482b, 0xa3,0xa7, 0xc2,0x1a,0xc9,0xb5,0x5f,0x17);
290#if defined(__cplusplus) && !defined(CINTERFACE)
291MIDL_INTERFACE("e094808a-24c6-482b-a3a7-c21ac9b55f17")
292IXpsRasterizationFactory : public IUnknown
293{
294    virtual HRESULT STDMETHODCALLTYPE CreateRasterizer(
295        IXpsOMPage *xpsPage,
296        FLOAT DPI,
297        XPSRAS_RENDERING_MODE nonTextRenderingMode,
298        XPSRAS_RENDERING_MODE textRenderingMode,
299        IXpsRasterizer **ppIXPSRasterizer) = 0;
300
301};
302#ifdef __CRT_UUID_DECL
303__CRT_UUID_DECL(IXpsRasterizationFactory, 0xe094808a, 0x24c6, 0x482b, 0xa3,0xa7, 0xc2,0x1a,0xc9,0xb5,0x5f,0x17)
304#endif
305#else
306typedef struct IXpsRasterizationFactoryVtbl {
307    BEGIN_INTERFACE
308
309    /*** IUnknown methods ***/
310    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
311        IXpsRasterizationFactory *This,
312        REFIID riid,
313        void **ppvObject);
314
315    ULONG (STDMETHODCALLTYPE *AddRef)(
316        IXpsRasterizationFactory *This);
317
318    ULONG (STDMETHODCALLTYPE *Release)(
319        IXpsRasterizationFactory *This);
320
321    /*** IXpsRasterizationFactory methods ***/
322    HRESULT (STDMETHODCALLTYPE *CreateRasterizer)(
323        IXpsRasterizationFactory *This,
324        IXpsOMPage *xpsPage,
325        FLOAT DPI,
326        XPSRAS_RENDERING_MODE nonTextRenderingMode,
327        XPSRAS_RENDERING_MODE textRenderingMode,
328        IXpsRasterizer **ppIXPSRasterizer);
329
330    END_INTERFACE
331} IXpsRasterizationFactoryVtbl;
332
333interface IXpsRasterizationFactory {
334    CONST_VTBL IXpsRasterizationFactoryVtbl* lpVtbl;
335};
336
337#ifdef COBJMACROS
338#ifndef WIDL_C_INLINE_WRAPPERS
339/*** IUnknown methods ***/
340#define IXpsRasterizationFactory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
341#define IXpsRasterizationFactory_AddRef(This) (This)->lpVtbl->AddRef(This)
342#define IXpsRasterizationFactory_Release(This) (This)->lpVtbl->Release(This)
343/*** IXpsRasterizationFactory methods ***/
344#define IXpsRasterizationFactory_CreateRasterizer(This,xpsPage,DPI,nonTextRenderingMode,textRenderingMode,ppIXPSRasterizer) (This)->lpVtbl->CreateRasterizer(This,xpsPage,DPI,nonTextRenderingMode,textRenderingMode,ppIXPSRasterizer)
345#else
346/*** IUnknown methods ***/
347static inline HRESULT IXpsRasterizationFactory_QueryInterface(IXpsRasterizationFactory* This,REFIID riid,void **ppvObject) {
348    return This->lpVtbl->QueryInterface(This,riid,ppvObject);
349}
350static inline ULONG IXpsRasterizationFactory_AddRef(IXpsRasterizationFactory* This) {
351    return This->lpVtbl->AddRef(This);
352}
353static inline ULONG IXpsRasterizationFactory_Release(IXpsRasterizationFactory* This) {
354    return This->lpVtbl->Release(This);
355}
356/*** IXpsRasterizationFactory methods ***/
357static inline HRESULT IXpsRasterizationFactory_CreateRasterizer(IXpsRasterizationFactory* This,IXpsOMPage *xpsPage,FLOAT DPI,XPSRAS_RENDERING_MODE nonTextRenderingMode,XPSRAS_RENDERING_MODE textRenderingMode,IXpsRasterizer **ppIXPSRasterizer) {
358    return This->lpVtbl->CreateRasterizer(This,xpsPage,DPI,nonTextRenderingMode,textRenderingMode,ppIXPSRasterizer);
359}
360#endif
361#endif
362
363#endif
364
365
366#endif  /* __IXpsRasterizationFactory_INTERFACE_DEFINED__ */
367
368#if NTDDI_VERSION >= 0x06020000
369/*****************************************************************************
370 * IXpsRasterizationFactory1 interface
371 */
372#ifndef __IXpsRasterizationFactory1_INTERFACE_DEFINED__
373#define __IXpsRasterizationFactory1_INTERFACE_DEFINED__
374
375DEFINE_GUID(IID_IXpsRasterizationFactory1, 0x2d6e5f77, 0x6414, 0x4a1e, 0xa8,0xe0, 0xd4,0x19,0x4c,0xe6,0xa2,0x6f);
376#if defined(__cplusplus) && !defined(CINTERFACE)
377MIDL_INTERFACE("2d6e5f77-6414-4a1e-a8e0-d4194ce6a26f")
378IXpsRasterizationFactory1 : public IUnknown
379{
380    virtual HRESULT STDMETHODCALLTYPE CreateRasterizer(
381        IXpsOMPage *xpsPage,
382        FLOAT DPI,
383        XPSRAS_RENDERING_MODE nonTextRenderingMode,
384        XPSRAS_RENDERING_MODE textRenderingMode,
385        XPSRAS_PIXEL_FORMAT pixelFormat,
386        IXpsRasterizer **ppIXPSRasterizer) = 0;
387
388};
389#ifdef __CRT_UUID_DECL
390__CRT_UUID_DECL(IXpsRasterizationFactory1, 0x2d6e5f77, 0x6414, 0x4a1e, 0xa8,0xe0, 0xd4,0x19,0x4c,0xe6,0xa2,0x6f)
391#endif
392#else
393typedef struct IXpsRasterizationFactory1Vtbl {
394    BEGIN_INTERFACE
395
396    /*** IUnknown methods ***/
397    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
398        IXpsRasterizationFactory1 *This,
399        REFIID riid,
400        void **ppvObject);
401
402    ULONG (STDMETHODCALLTYPE *AddRef)(
403        IXpsRasterizationFactory1 *This);
404
405    ULONG (STDMETHODCALLTYPE *Release)(
406        IXpsRasterizationFactory1 *This);
407
408    /*** IXpsRasterizationFactory1 methods ***/
409    HRESULT (STDMETHODCALLTYPE *CreateRasterizer)(
410        IXpsRasterizationFactory1 *This,
411        IXpsOMPage *xpsPage,
412        FLOAT DPI,
413        XPSRAS_RENDERING_MODE nonTextRenderingMode,
414        XPSRAS_RENDERING_MODE textRenderingMode,
415        XPSRAS_PIXEL_FORMAT pixelFormat,
416        IXpsRasterizer **ppIXPSRasterizer);
417
418    END_INTERFACE
419} IXpsRasterizationFactory1Vtbl;
420
421interface IXpsRasterizationFactory1 {
422    CONST_VTBL IXpsRasterizationFactory1Vtbl* lpVtbl;
423};
424
425#ifdef COBJMACROS
426#ifndef WIDL_C_INLINE_WRAPPERS
427/*** IUnknown methods ***/
428#define IXpsRasterizationFactory1_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
429#define IXpsRasterizationFactory1_AddRef(This) (This)->lpVtbl->AddRef(This)
430#define IXpsRasterizationFactory1_Release(This) (This)->lpVtbl->Release(This)
431/*** IXpsRasterizationFactory1 methods ***/
432#define IXpsRasterizationFactory1_CreateRasterizer(This,xpsPage,DPI,nonTextRenderingMode,textRenderingMode,pixelFormat,ppIXPSRasterizer) (This)->lpVtbl->CreateRasterizer(This,xpsPage,DPI,nonTextRenderingMode,textRenderingMode,pixelFormat,ppIXPSRasterizer)
433#else
434/*** IUnknown methods ***/
435static inline HRESULT IXpsRasterizationFactory1_QueryInterface(IXpsRasterizationFactory1* This,REFIID riid,void **ppvObject) {
436    return This->lpVtbl->QueryInterface(This,riid,ppvObject);
437}
438static inline ULONG IXpsRasterizationFactory1_AddRef(IXpsRasterizationFactory1* This) {
439    return This->lpVtbl->AddRef(This);
440}
441static inline ULONG IXpsRasterizationFactory1_Release(IXpsRasterizationFactory1* This) {
442    return This->lpVtbl->Release(This);
443}
444/*** IXpsRasterizationFactory1 methods ***/
445static inline HRESULT IXpsRasterizationFactory1_CreateRasterizer(IXpsRasterizationFactory1* This,IXpsOMPage *xpsPage,FLOAT DPI,XPSRAS_RENDERING_MODE nonTextRenderingMode,XPSRAS_RENDERING_MODE textRenderingMode,XPSRAS_PIXEL_FORMAT pixelFormat,IXpsRasterizer **ppIXPSRasterizer) {
446    return This->lpVtbl->CreateRasterizer(This,xpsPage,DPI,nonTextRenderingMode,textRenderingMode,pixelFormat,ppIXPSRasterizer);
447}
448#endif
449#endif
450
451#endif
452
453
454#endif  /* __IXpsRasterizationFactory1_INTERFACE_DEFINED__ */
455
456#endif
457#endif
458/* Begin additional prototypes for all interfaces */
459
460
461/* End additional prototypes */
462
463#ifdef __cplusplus
464}
465#endif
466
467#endif /* __xpsrassvc_h__ */