comparison template/dw.c @ 1137:e24e5a13ff2c

Added code to test the new print functions in dwtest. GTK3 code mostly works except the for the text. Added stub print functions to all platforms besides GTK3. Need to decide what to do about GTK2; the GTK3 code will work in GTK 2.10 and later, but will require switching to cairo. Mac/Win/OS2 code coming soon. :)
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 09 Sep 2011 09:17:09 +0000
parents 9ca5de2e59f8
children 091ed7c20b3f
comparison
equal deleted inserted replaced
1136:1a5b0908659b 1137:e24e5a13ff2c
3377 */ 3377 */
3378 int dw_browse(char *url) 3378 int dw_browse(char *url)
3379 { 3379 {
3380 return DW_ERROR_UNKNOWN; 3380 return DW_ERROR_UNKNOWN;
3381 } 3381 }
3382
3383 /*
3384 * Creates a new print object.
3385 * Parameters:
3386 * flags: Flags to initially configure the print object.
3387 * pages: Number of pages to print.
3388 * drawfunc: The pointer to the function to be used as the callback.
3389 * drawdata: User data to be passed to the handler function.
3390 * Returns:
3391 * A handle to the print object or NULL on failure.
3392 */
3393 HPRINT API dw_print_new(unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata)
3394 {
3395 return NULL;
3396 }
3397
3398 /*
3399 * Runs the print job, causing the draw page callbacks to fire.
3400 * Parameters:
3401 * print: Handle to the print object returned by dw_print_new().
3402 * flags: Flags to run the print job.
3403 * Returns:
3404 * DW_ERROR_UNKNOWN on error or DW_ERROR_NONE on success.
3405 */
3406 int API dw_print_run(HPRINT print, unsigned long flags)
3407 {
3408 return DW_ERROR_UNKNOWN;
3409 }
3410
3411 /*
3412 * Cancels the print job, typically called from a draw page callback.
3413 * Parameters:
3414 * print: Handle to the print object returned by dw_print_new().
3415 */
3416 void API dw_print_cancel(HPRINT print)
3417 {
3418 }
3419