PrSetupP.sgm 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!-- $XConsortium: PrSetupP.sgm /main/7 1996/10/29 12:57:37 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.DtPrintSetupProc">]]>
  10. <![ %CDE.C.XO; [<refentry id="XCSA.XPRINT.DtPrintSetupProc">]]>
  11. <RefMeta>
  12. <RefEntryTitle>
  13. DtPrintSetupProc
  14. </RefEntryTitle>
  15. <ManVolNum>library call</ManVolNum>
  16. </RefMeta>
  17. <RefNameDiv>
  18. <RefName>DtPrintSetupProc
  19. </RefName>
  20. <RefPurpose>Type definition for <function>DtPrintSetupBox</function> procedure resources.
  21. </RefPurpose>
  22. </RefNameDiv>
  23. <RefSynopsisDiv>
  24. <FuncSynopsis Remap="ANSI">
  25. <funcsynopsisinfo>#include &lt;Print.h></funcsynopsisinfo>
  26. <FuncDef>typedef XtEnum (*<Function>DtPrintSetupProc</Function>)</FuncDef>
  27. <ParamDef>Widget <Parameter>wid</Parameter></ParamDef>
  28. <ParamDef>DtPrintSetupData <Parameter>*print_data</Parameter></ParamDef>
  29. </FuncSynopsis>
  30. </RefSynopsisDiv>
  31. <RefSect1>
  32. <Title>DESCRIPTION</Title>
  33. <Para><function>DtPrintSetupProc</function> is the type
  34. definition used for <function>DtPrintSetupBox</function> procedure
  35. resources. Each procedure is passed the widget ID of the
  36. <function>DtPrintSetupBox</function> via <symbol role="Variable">wid</symbol>,
  37. and a structure containing information
  38. needed to perform the particular operation via
  39. <symbol role="Variable">print_data</symbol>.
  40. </para>
  41. <para>If a procedure needs to update the <function>DtPrintSetupBox</function>,
  42. it should do so by setting resources as indicated by the procedure
  43. resource description. The only exception to this is when the
  44. <Symbol>DtNverifyPrinterProc</Symbol> is used to verify X printers. In
  45. this case, the procedure may update the
  46. <symbol role="Variable">print_display</symbol> and
  47. <symbol role="Variable">print_context</symbol> elements of the passed
  48. <StructName Role="typedef">DtPrintSetupData</StructName> structure.
  49. </para>
  50. </refsect1><refsect1>
  51. <title>ARGUMENTS</title>
  52. <variablelist>
  53. <varlistentry><term><symbol role="Variable">wid</symbol></term>
  54. <listitem>
  55. <para>The widget ID of the <function>DtPrintSetupBox</function>.
  56. </para>
  57. </listitem>
  58. </varlistentry>
  59. <varlistentry><term><symbol role="Variable">print_data</symbol></term>
  60. <listitem>
  61. <para>A pointer to an existing <StructName Role="typedef">DtPrintSetupData</StructName> structure that contains the
  62. print setup information relevant to the specific procedure.
  63. </para>
  64. </listitem>
  65. </varlistentry>
  66. </variablelist>
  67. </refsect1>
  68. <refsect1>
  69. <title>RETURN VALUE</title>
  70. <variablelist>
  71. <varlistentry><term><systemitem class="constant">DtPRINT_SUCCESS</systemitem></term>
  72. <listitem>
  73. <para>The procedure completed successfully.
  74. </para>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry><term><systemitem class="constant">DtPRINT_FAILURE</systemitem></term>
  78. <listitem>
  79. <para>The procedure encountered an error.
  80. </para>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry><term><systemitem class="constant">DtPRINT_BAD_PARM</systemitem></term>
  84. <listitem>
  85. <para>An invalid parameter was passed to the procedure.
  86. </para>
  87. </listitem>
  88. </varlistentry>
  89. </variablelist>
  90. </refsect1>
  91. <RefSect1>
  92. <Title>SEE ALSO</Title>
  93. <Para>&cdeman.DtPrintSetupBox;
  94. </Para>
  95. </RefSect1>
  96. </RefEntry>