comparison win/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 6d618dcff792
children caeae1ff0289
comparison
equal deleted inserted replaced
1136:1a5b0908659b 1137:e24e5a13ff2c
9989 return DW_ERROR_UNKNOWN; 9989 return DW_ERROR_UNKNOWN;
9990 return DW_ERROR_NONE; 9990 return DW_ERROR_NONE;
9991 } 9991 }
9992 9992
9993 /* 9993 /*
9994 * Creates a new print object.
9995 * Parameters:
9996 * flags: Flags to initially configure the print object.
9997 * pages: Number of pages to print.
9998 * drawfunc: The pointer to the function to be used as the callback.
9999 * drawdata: User data to be passed to the handler function.
10000 * Returns:
10001 * A handle to the print object or NULL on failure.
10002 */
10003 HPRINT API dw_print_new(unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata)
10004 {
10005 return NULL;
10006 }
10007
10008 /*
10009 * Runs the print job, causing the draw page callbacks to fire.
10010 * Parameters:
10011 * print: Handle to the print object returned by dw_print_new().
10012 * flags: Flags to run the print job.
10013 * Returns:
10014 * DW_ERROR_UNKNOWN on error or DW_ERROR_NONE on success.
10015 */
10016 int API dw_print_run(HPRINT print, unsigned long flags)
10017 {
10018 return DW_ERROR_UNKNOWN;
10019 }
10020
10021 /*
10022 * Cancels the print job, typically called from a draw page callback.
10023 * Parameters:
10024 * print: Handle to the print object returned by dw_print_new().
10025 */
10026 void API dw_print_cancel(HPRINT print)
10027 {
10028 }
10029
10030 /*
9994 * Returns a pointer to a static buffer which containes the 10031 * Returns a pointer to a static buffer which containes the
9995 * current user directory. Or the root directory (C:\ on 10032 * current user directory. Or the root directory (C:\ on
9996 * OS/2 and Windows). 10033 * OS/2 and Windows).
9997 */ 10034 */
9998 char * API dw_user_dir(void) 10035 char * API dw_user_dir(void)