dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
[oweals/cde.git] / cde / lib / DtHelp / PrintI.h
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
46 /* Printer Type Defines */
47
48 #define _DtPRINT_ALL     1
49 #define _DtPRINT_SUB     2
50 #define _DtPRINT_CURRENT 3
51 #define _DtPRINT_TOC     4 
52
53 /* default helpprint executable */
54 extern char _DtHelpDefaultHelpPrint[];
55 /* paper size resource names */
56 extern char * _DtHelpPaperSizeNames[];
57 /* number paper size resource names */
58 extern int    _DtHelpPaperSizeNamesCnt;
59
60 /*****************************************************************************
61  * Function:        void _DtHelpDisplayPrintDialog();
62  *
63  *
64  * Parameters:      new      Specifies the help widget.
65  *
66  * Return Value:
67  *
68  * Purpose:         Creates and displays an instance of the print dialog.
69  *
70  *****************************************************************************/
71 void _DtHelpDisplayPrintDialog(
72    Widget               widget,
73    _DtHelpPrintStuff *   print,
74    _DtHelpDisplayWidgetStuff * display,
75    _DtHelpCommonHelpStuff * help);
76
77 /*****************************************************************************
78  * Function:        void _DtHelpUpdatePrintDialog();
79  *
80  *
81  * Parameters:      new      Specifies the help widget.
82  *
83  * Return Value:
84  *
85  * Purpose:         Updates the print dialog to reflect current topic
86  *
87  *****************************************************************************/
88 void _DtHelpUpdatePrintDialog(
89     _DtHelpPrintStuff *         print,
90     _DtHelpDisplayWidgetStuff * display,
91     _DtHelpCommonHelpStuff *    help,
92     Boolean                     setDefaults);
93
94 /************************************************************************
95  * Function: _DtHelpPrintSetValues()
96  *
97  *      set print-related data
98  *
99  ************************************************************************/
100 void _DtHelpPrintSetValues (
101     _DtHelpPrintStuff * currentPrint,
102     _DtHelpPrintStuff * newPrint,
103     _DtHelpDisplayWidgetStuff * newDisplay,
104     _DtHelpCommonHelpStuff * newCommonHelp);
105
106
107 /*****************************************************************************
108  * Function:        void _DtHelpPrintJob(
109  *                   
110  *                            
111  *
112  * Parameters:  
113  *
114  * Return Value:    Void.
115  *
116  * Purpose:         Sets up and forks off a print job to helpprint
117  *
118  *****************************************************************************/
119 void _DtHelpPrintJob(
120     Widget      widget,
121     char *      printExec,
122     char *      printer,
123     int         paperSize,
124     char *      copies,
125     char *      helpVolume,
126     int         helpType,
127     char *      helpData,
128     Boolean     printAll,
129     Boolean     printSub,
130     Boolean     printToc,
131     char *      topicTitle);
132
133 extern void _DtHelpInitPrintStuff (
134     _DtHelpPrintStuff * print);
135
136 extern void _DtHelpFreePrintStuff (
137     _DtHelpPrintStuff * print,
138     int                 cleanUpKind);
139
140
141 #endif /* _PrintI_h */
142 /* Do not add anything after this endif. */
143
144
145
146
147
148