home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cl-lib07.zip / pm.zip / usr / include / pm / printer.h < prev    next >
C/C++ Source or Header  |  1995-06-27  |  969b  |  53 lines

  1. #ifndef _PRINTER_H_
  2. #define _PRINTER_H_
  3.  
  4. #define INCL_SPLDOSPRINT
  5. #ifndef _PRESENTATIONSPACE_H_
  6. #include <pm/presentationspace.h>
  7. #endif
  8.  
  9. #ifndef _STDAPP_H_
  10. #include <pm/stdapp.h>
  11. #endif
  12.  
  13. #ifndef _STDDIALOG_H_
  14. #include <pm/stddialog.h>
  15. #endif
  16.  
  17. @interface Printer : PresentationSpace
  18. {
  19.   StdApp      *application;
  20.   id           setupDialog;
  21.  
  22.   HDC          printerDeviceContext;
  23.   PRQINFO3    *queueInformation;
  24.   ULONG        defaultPrinterIndex;
  25.   ULONG        numberOfPrintingQueues;
  26.   HCINFO       formInformation;
  27.   DEVOPENSTRUC deviceOpenStructure;
  28. }
  29.  
  30. - initForApp: (StdApp *) anApp;
  31. - free;
  32.  
  33. - beginSpool: (char *) spoolTitle appTitle: (char *) appTitle;
  34. - endSpool;
  35. - newPage;
  36.  
  37. - printerSetup: sender;
  38.  
  39. - setSetupDialog: aSetupDialog;
  40. - setupDialog;
  41. - jobProperties: sender;
  42. - setDefault;
  43.  
  44. // form definition
  45. - (LONG) widthInPels;
  46. - (LONG) widthInMm;
  47. - (LONG) heightInPels;
  48. - (LONG) heightInMm;
  49.  
  50. @end
  51.  
  52. #endif
  53.