background image
Functional specification
20
CDE/Motif PST
CDEnext
readable
XPPrinterAttr
attribute "descriptor" may be available in several different languages, and the
hint will be used to select one). If the X Print Server cannot understand the hint, the X Print Server will
typically fall back to the locale it is running in.
DEPENDENCIES
Code Sets
XpCreateContext
,
XpGetAttributes
,
XpGetOneAttribute
,
XpSetAttributes
,
XpGetPrinterList
,
XpGetPdmStartParams
and
XpNotifyPdm
send and receive values
expressed as
COMPOUND_TEXT
- a format for multiple character set data, such as multi-lingual text.
Since the X Print Server may not be able to convert an arbitrary code set sent to its default character set,
calls that require the X Print Server to interpret the value may fail (for example,
XpCreateContext
is
called with a
printer_name
that is expressed in some unconvertable code set, so the X Print Server
cannot compare it to the list of printer names it knows).
ERRORS/WARNINGS
This function can generate one of the following errors:
BadMatch
The specified
printer_name
does not exist on
display
. If the
context_id
is per chance used in other calls prior to receiving this error,
those calls will fail with a
XPBadContext
.
SEE ALSO
XpSetContext, XpDestroyContext
2.3
XpSetContext
2.3.1
Short Description
Sets (i.e. associates) or unsets a print context with the specified display connection to the X Print Server.
2.3.2
Long Description
NAME
XpSetContext - sets or unsets a print context with a display connection
SYNOPSIS
#include <X11/extensions/Print.h>
void XpSetContext(
Display
*display
,
XPContext
print_context)