Developer's Toolkit Release Notes for HP-UX 11i
64 Chapter 2
What’s In This Version
Notes for Other Components
X Print Extension Library
The X Print Extension library provides protocol extensions to allow an
application to generate print "jobs", "documents", and "pages", and to
manage a Print Context.
Print Dialog GUI
The Print Dialog provides a graphical interface that allows a user to
select printers and their associated X print servers. It also presents
generic printer and job setup options and a hook to the Print Dialog
Manager. This dialog can be customized to include application-specific
information.
Print Dialog Manager
The Print Dialog Manager is a process which provides application print
dialogs for setting printer-specific options. In general the Print Dialog
Manager is managed by the Print Dialog GUI, however, applications may
intervene.
Localizing Applications that use DtPrintSetupBox
For the locales it supports, the DtPrintSetupBox widget obtains localized
strings for its GUI labels and messages from its own message catalog. As
such, developers do not need to provide localized strings for the
DtPrintSetupBox widget. However, when the DtNprintSetupMode
resource is set to DtPRINT_SETUP_XP (the default) the
DtPrintSetupBox installs default procedures for various operations.
Some of these default procedures (printerInfoProc, selectPrinterProc,
and selectFileProc) in turn present dialogs that utilize stock Motif
widgets. Motif does not utilize a message catalog, so in order to present
localized labels in these widgets, some additional lines need to be added
to the application’s app-defaults file. An example of the additional
resource file lines (with English values) is shown below:
!Get XmFileSelectionBox resources via the Dt app-defaults file
#include "/usr/dt/app-defaults/C/Dt"
*XmMessageBox*okLabelString: OK
*XmMessageBox*cancelLabelString: Cancel
*XmMessageBox*helpLabelString: Help
*XmSelectionBox*okLabelString: OK
*XmSelectionBox*cancelLabelString: Cancel