PrintRes.sgm 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!-- $XConsortium: PrintRes.sgm /main/8 1996/08/31 14:58:59 rws $ -->
  2. <!-- (c) Copyright 1996 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1996 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1996 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1996 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1996 Novell, Inc. -->
  7. <!-- (c) Copyright 1996 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1996 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.XPRINT.DtPrintResetConnectio">]]>
  10. <![ %CDE.C.XO; [<refentry id="XCSA.XPRINT.DtPrintResetConnectio">]]>
  11. <refmeta><refentrytitle>
  12. DtPrintResetConnection
  13. </refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  14. <refname><function>DtPrintResetConnection</function></refname><refpurpose>
  15. resets the print display connection managed by a
  16. <function>DtPrintSetupBox</function>
  17. </refpurpose></refnamediv><refsynopsisdiv>
  18. <funcsynopsis>
  19. <funcsynopsisinfo>#include &lt;Print.h></funcsynopsisinfo>
  20. <funcdef>XtEnum <function>DtPrintResetConnection</function></funcdef>
  21. <paramdef>Widget <parameter>wid</parameter></paramdef>
  22. <paramdef>DtPrintResetConnectionMode <parameter>mode</parameter></paramdef>
  23. </funcsynopsis>
  24. </refsynopsisdiv><refsect1>
  25. <title>DESCRIPTION</title>
  26. <para>The <function>DtPrintResetConnection</function> function
  27. is a convenience function provided by the
  28. <function>DtPrintSetupBox</function> widget that allows applications
  29. to direct the widget to stop managing the X print server connection.
  30. A <symbol role="Variable">mode</symbol> parameter is
  31. included in order to direct the widget to close the print connection by
  32. calling <function>XpDestroyPrintContext</function> and
  33. <function>XCloseDisplay</function> or to simply relinquish
  34. control of the connection without closing it.
  35. </para>
  36. <para><function>DtPrintResetConnection</function> is intended
  37. to be used by applications that fork
  38. a child process to perform the print rendering operation. Immediately
  39. after the fork is performed, the parent process will close its X print
  40. server connection, and retain its connection to the video X server. The
  41. forked child on the other hand will close its video X server connection
  42. and perform the rendering operation on the X print server connection.
  43. </para>
  44. </refsect1><refsect1>
  45. <title>ARGUMENTS</title>
  46. <variablelist>
  47. <varlistentry><term><symbol role="Variable">wid</symbol></term>
  48. <listitem>
  49. <para>The <function>DtPrintSetupBox</function> widget ID.
  50. </para>
  51. </listitem>
  52. </varlistentry>
  53. <varlistentry><term><symbol role="Variable">mode</symbol></term>
  54. <listitem>
  55. <para>Indicates whether <function>DtPrintResetConnection</function>
  56. should close the X print server
  57. connection, or simply cause the
  58. <function>DtPrintSetupBox</function> to cease managing the
  59. connection.
  60. </para>
  61. <para>Valid values are:
  62. </para>
  63. <variablelist>
  64. <varlistentry><term><systemitem class="constant">DtPRINT_CLOSE_CONNECTION</systemitem></term>
  65. <listitem>
  66. <para>Set by the parent process when the application forks a child to perform
  67. the print rendering. This will cause the
  68. <Symbol>DtNclosePrintDisplayCallback</Symbol>
  69. list set for the passed <function>DtPrintSetupBox</function> to be called.
  70. </para>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry><term><systemitem class="constant">DtPRINT_RELEASE_CONNECTION</systemitem></term>
  74. <listitem>
  75. <para>Set when the application wishes to destroy the
  76. <function>DtPrintSetupBox</function> widget
  77. instance and still perform print rendering using the X print server
  78. connection initiated by the widget. For example, the child process of an
  79. application that forks to perform print rendering will close the video
  80. display connection (thereby destroying the
  81. <function>DtPrintSetupBox</function> widget) prior
  82. to print rendering. No <function>DtPrintSetupBox</function>
  83. callbacks will be called as a result of this operation.
  84. </para>
  85. </listitem>
  86. </varlistentry>
  87. </variablelist>
  88. </listitem>
  89. </varlistentry>
  90. </variablelist>
  91. </refsect1><refsect1>
  92. <title>RETURN VALUE</title>
  93. <variablelist>
  94. <varlistentry><term><systemitem class="constant">DtPRINT_SUCCESS</systemitem></term>
  95. <listitem>
  96. <para><function>DtPrintResetConnection</function> was successful.
  97. </para>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry><term><systemitem class="constant">DtPRINT_NO_CONNECTION</systemitem></term>
  101. <listitem>
  102. <para>An open X print server connection is not currently being
  103. managed by the <function>DtPrintSetupBox</function>.
  104. </para>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry><term><systemitem class="constant">DtPRINT_BAD_PARM</systemitem></term>
  108. <listitem>
  109. <para>The value passed for
  110. <symbol role="Variable">wid</symbol> is NULL, or an invalid
  111. <symbol role="Variable">mode</symbol> was passed.
  112. </para>
  113. </listitem>
  114. </varlistentry>
  115. </variablelist>
  116. </refsect1><refsect1>
  117. <title>ENVIRONMENT VARIABLES</title>
  118. <para>None.
  119. </para>
  120. </refsect1><refsect1>
  121. <title>RESOURCES</title>
  122. <para>None.</para>
  123. </refsect1><refsect1>
  124. <title>ACTIONS/MESSAGES</title>
  125. <para>None.
  126. </para>
  127. </refsect1><refsect1>
  128. <title>ERRORS/WARNINGS</title>
  129. <para>None.</para>
  130. </refsect1><refsect1>
  131. <title>EXAMPLES</title>
  132. <para>None.
  133. </para>
  134. </refsect1><refsect1>
  135. <title>FILES</title>
  136. <para>None.
  137. </para>
  138. </refsect1><refsect1>
  139. <title>SEE ALSO</title>
  140. <para>&cdeman.DtPrintSetupBox;</para>
  141. </refsect1></refentry>