PrintI.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these librararies and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: PrintI.h /main/4 1995/10/26 12:31:15 rswiston $ */
  24. /*************************************<+>*************************************
  25. *****************************************************************************
  26. **
  27. ** File: PrintI.h
  28. **
  29. ** Project: Cache Creek (Rivers) Project:
  30. **
  31. ** Description: Internal Header file for Print.c
  32. ** -----------
  33. **
  34. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  35. **
  36. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  37. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  38. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  39. ** (c) Copyright 1993, 1994 Novell, Inc.
  40. **
  41. *******************************************************************
  42. *************************************<+>*************************************/
  43. #ifndef _PrintI_h
  44. #define _PrintI_h
  45. /* Printer Type Defines */
  46. #define _DtPRINT_ALL 1
  47. #define _DtPRINT_SUB 2
  48. #define _DtPRINT_CURRENT 3
  49. #define _DtPRINT_TOC 4
  50. /* default helpprint executable */
  51. extern char _DtHelpDefaultHelpPrint[];
  52. /* paper size resource names */
  53. extern char * _DtHelpPaperSizeNames[];
  54. /* number paper size resource names */
  55. extern int _DtHelpPaperSizeNamesCnt;
  56. /*****************************************************************************
  57. * Function: void _DtHelpDisplayPrintDialog();
  58. *
  59. *
  60. * Parameters: new Specifies the help widget.
  61. *
  62. * Return Value:
  63. *
  64. * Purpose: Creates and displays an instance of the print dialog.
  65. *
  66. *****************************************************************************/
  67. void _DtHelpDisplayPrintDialog(
  68. Widget widget,
  69. _DtHelpPrintStuff * print,
  70. _DtHelpDisplayWidgetStuff * display,
  71. _DtHelpCommonHelpStuff * help);
  72. /*****************************************************************************
  73. * Function: void _DtHelpUpdatePrintDialog();
  74. *
  75. *
  76. * Parameters: new Specifies the help widget.
  77. *
  78. * Return Value:
  79. *
  80. * Purpose: Updates the print dialog to reflect current topic
  81. *
  82. *****************************************************************************/
  83. void _DtHelpUpdatePrintDialog(
  84. _DtHelpPrintStuff * print,
  85. _DtHelpDisplayWidgetStuff * display,
  86. _DtHelpCommonHelpStuff * help,
  87. Boolean setDefaults);
  88. /************************************************************************
  89. * Function: _DtHelpPrintSetValues()
  90. *
  91. * set print-related data
  92. *
  93. ************************************************************************/
  94. void _DtHelpPrintSetValues (
  95. _DtHelpPrintStuff * currentPrint,
  96. _DtHelpPrintStuff * newPrint,
  97. _DtHelpDisplayWidgetStuff * newDisplay,
  98. _DtHelpCommonHelpStuff * newCommonHelp);
  99. /*****************************************************************************
  100. * Function: void _DtHelpPrintJob(
  101. *
  102. *
  103. *
  104. * Parameters:
  105. *
  106. * Return Value: Void.
  107. *
  108. * Purpose: Sets up and forks off a print job to helpprint
  109. *
  110. *****************************************************************************/
  111. void _DtHelpPrintJob(
  112. Widget widget,
  113. char * printExec,
  114. char * printer,
  115. int paperSize,
  116. char * copies,
  117. char * helpVolume,
  118. int helpType,
  119. char * helpData,
  120. Boolean printAll,
  121. Boolean printSub,
  122. Boolean printToc,
  123. char * topicTitle);
  124. extern void _DtHelpInitPrintStuff (
  125. _DtHelpPrintStuff * print);
  126. extern void _DtHelpFreePrintStuff (
  127. _DtHelpPrintStuff * print,
  128. int cleanUpKind);
  129. #endif /* _PrintI_h */
  130. /* Do not add anything after this endif. */