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