home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / code / desklib / DeskLib / !DeskLib / h / Print < prev    next >
Encoding:
Text File  |  1995-07-17  |  985 b   |  49 lines

  1.  
  2. #ifndef __dl_print_h
  3. #define __dl_print_h
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #ifndef __dl_wimp_h
  8. #include "Wimp.h"
  9. #endif
  10. #ifndef __dl_pdriver_h
  11. #include "PDriver.h"
  12. #endif
  13. typedef struct print_block {
  14. void *reference; 
  15. char *jobtitle; 
  16. printer_info printerinfo; 
  17. print_job job; 
  18. print_job oldjob; 
  19. }
  20. print_block;
  21. enum {
  22. print_result_OK = 0, 
  23. print_result_QUEUED, 
  24. print_result_NEEDPRINTERMANAGER, 
  25. print_result_PRINTERROR, 
  26. print_result_SAVEFAILED, 
  27. print_result_CANTSAVE, 
  28. print_result_CANTOPENPRINTER, 
  29. print_result_FAILED 
  30. };
  31. typedef int print_result;
  32. typedef BOOL (*print_printfn)( print_block *print);
  33. typedef BOOL (*print_savefn)( print_block *print, message_datasaveack *datasaveack);
  34. typedef void (*print_resultfn)( print_block *print, print_result result);
  35. BOOL Print_StartPrint( 
  36. print_printfn printfn, 
  37. print_savefn savefn, 
  38. print_resultfn resulfn, 
  39. void *reference, 
  40. int filetype, 
  41. int estsize, 
  42. char *leafname, 
  43. char *jobtitle
  44. );
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif
  49.