Functional specification
62
CDE/Motif PST
CDEnext
print_display
representing the display in the form "host:display[.screen]"
print_window
representing the window id in the form "0x456"
print_context
representing the context id in the form "0x789"
locale
representing the locale in the form "C"
XmbTextListToTextProperty
with an encoding style of
XStdICCTextStyle
and a list count of 6 can be
used to generate
type
(from
tp.encoding
),
format
(
tp.format
),
mode
(
PropModeReplace
),
data
(
tp.value
) and
nelements
(
tp.nitems
) for
property
from the above list.
The
PDM_START
target has side effects. The PDM uses
property
to inform client of the success or failure of the
PDM_START
request. Specifically,
property
is created with
type
(
XA_ATOM
),
format
(
32
),
mode
(
PropModeReplace
),
data
(XInternAtom of below) and
nelements
(
1
).
The following are the name strings for the atom values used for
data
:
PDM_START_OK
The PDM was successfully started.
PDM_START_VXAUTH
The PDM was not authorized to connect to the Video X-Server specified.
PDM_START_PXAUTH
The PDM was not authorized to connect to the Print X-Server specified.
This can happen if 1) the Print X-Server is different than the Selection
X-Server, or 2) the Print and Selection X-Server are the same, and the
authorization has been withdrawn since the time that the PDM made
its initial connection to the Print X-Server.
PDM_START_ERROR
The PDM encountered an error. If the PDM supports logging of
error messages, an error message could have been logged.
Finally, client should destroy
property
to indicate a successful
ConvertSelection
request.
Phase 1 of the PDM Selection Protocol is now complete. Phase 2 is as follows.
When the PDM completes, it informs the client of the user's choice of
"OK"
or
"CANCEL"
via a
ClientMessage
. The message type of the
ClientMessage
is
PDM_REPLY
, the format is
"32"
(
XA_ATOM
),
and
xclient.data.l[0]
contains an atom value.
The following are the name strings for the atom values used for
xclient.data.l[0]
:
PDM_EXIT_OK
The user's choice was
"OK"
. The PDM may or may not have changed
any printer attributes.
PDM_EXIT_CANCEL
The user's choice was
"CANCEL"
. The PDM may have momentarily
changed the printer attributes, but is now claiming to have restored
them to their pre-convert-selection state.
PDM_EXIT_VXAUTH
The PDM was not authorized to connect to the Video X-Server specified.
PDM_EXIT_PXAUTH
The PDM was not authorized to connect to the Print X-Server specified.