Write print job to spool file. Not tested under Haiku. Seems to work fine with a simple R5 test application.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19030 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer
2006-10-08 18:08:12 +00:00
parent 66a1b50b01
commit 5c3281f91b
2 changed files with 320 additions and 196 deletions
+9 -5
View File
@@ -66,7 +66,7 @@
#define PSRV_JOB_STATUS_WAITING "Waiting"
#define PSRV_JOB_STATUS_PROCESSING "Processing"
#define PSRV_JOB_STATUS_FAILED "Failed"
#define PSRV_JOB_STATUS_COMPLETED "Completed"
#define PSRV_JOB_STATUS_COMPLETED "Completed"
// printer attributes
#define PSRV_PRINTER_ATTR_DRV_NAME "Driver Name"
@@ -79,19 +79,23 @@
#define PSRV_PRINTER_ATTR_PNP "_PNP"
#define PSRV_PRINTER_ATTR_MDL "_MDL"
// job settings fields
// printer name
#define PSRV_FIELD_CURRENT_PRINTER "current_printer"
// page settings fields
#define PSRV_FIELD_XRES "xres"
#define PSRV_FIELD_YRES "yres"
#define PSRV_FIELD_PAPER_RECT "paper_rect"
#define PSRV_FIELD_PRINTABLE_RECT "printable_rect"
#define PSRV_FIELD_FIRST_PAGE "first_page"
#define PSRV_FIELD_LAST_PAGE "last_page"
// optional job settings field
// optional page settings field
#define PSRV_FIELD_ORIENTATION "orientation"
#define PSRV_FIELD_COPIES "copies"
#define PSRV_FIELD_SCALE "scale"
#define PSRV_FIELD_QUALITY "quality"
// job settings fields
#define PSRV_FIELD_FIRST_PAGE "first_page"
#define PSRV_FIELD_LAST_PAGE "last_page"
#endif