X Version 11
Release 6.4
X Print Service Overview
5
/*
* Set a print context, then start a print job against it
*/
XpSetContext( pdpy, pcontext );
XpStartJob( pdpy, XPSpool );
/*
* Generate the first page
*/
pscreen =
XpGetScreenOfContext( pdpy, pcontext );
pwin =
XCreateWindow( pdpy, pscreen, ..... );
XpStartPage( pdpy, pwin, True );
usual_rendering_stuff( pdpy, pscreen, pwin );
XpEndPage( pdpy );
/*
* Generate more pages, and so on...
*/
XpStartPage( pdpy, pwin, True );
more_rendering_stuff( pdpy, pscreen, pwin );
XpEndPage( pdpy );
/*
* End the print job - the final results are sent by the
* X Print Server to the spooler subsystem
*/
XpEndJob( pdpy );
XpDestroyContext( pdpy, pcontext );
1.4
The Printer Vendor's View
The printer vendor is the person or company that wishes to enhance the X Print Service to support a new
printer model or a new page description language. Enhancements may range from simple ones such as pro-
viding new printer model configuration files, to more complex ones such as providing a new DDX driver and
corresponding Print Dialog Manager.
The major elements within the X Print Service that can be enhanced are:
·
The DDX driver layer in the X Print Server. New DDX drivers can be added to support new page
description languages, provide more capabilities, or provide tighter integration with a given printer
model.
·
The Print Dialog Manager, either as a new executable or an enhancement to an existing Print Dia-
log Manager. It can be used to provide dialogs that expose highly printer-specific options to the user
and that communicate with the DDX driver by way of the Print Context attributes.
·
The printer model files. These files describe the capabilities and defaults of printers based on the
model.
1.5
The System Administrator's View
The system administrator is the person who configures and maintains the system processes and files associ-
ated with the X Print Service. An X Print Service implementation will typically have built-in fallback
defaults for nearly everything, but in custom environments it will be configured considerably.