ksh: fix up shipin for more modern systems WRT test and wc
[oweals/cde.git] / cde / examples / dtprint / PrintDemo.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: PrintDemo.h /main/6 1996/05/09 03:40:22 drk $ */
24 #include <Xm/XmAll.h>
25 #include <Xm/Print.h>
26 #include <Dt/Print.h>
27 #include "AppSpecific.h"
28
29 /*
30  * ------------------------------------------------------------------------
31  * Module: Print
32  *
33  */
34 /*
35  * app specific print data holder 
36  */
37 typedef struct _AppPrintData
38 {
39     Widget print_dialog;
40     Widget print_shell;
41     Widget pr_button;
42     Boolean print_only;
43     DtPrintSetupData *print_data;
44     AppObject* app_object;
45
46     /* used during pagesetup callback logic */
47     int printed_lines ;
48     int total_lines ;
49     short lines_per_page ;
50     Widget ptext, pform;
51 } AppPrintData;
52
53 extern AppPrintData* AppPrintData_new();
54
55 /*
56  * Print module exported functions
57  */
58 extern void CreatePrintSetup(Widget parent, AppPrintData* p);
59 extern void PrintMenuCB(Widget, XtPointer, XtPointer);
60 extern void QuickPrintCB(Widget, XtPointer, XtPointer);
61
62 /*
63  * ------------------------------------------------------------------------
64  * Module: Main
65  *
66  */
67 extern void CloseProgramCB(Widget, XtPointer, XtPointer);
68
69 /*
70  * ------------------------------------------------------------------------
71  * Module: MainWindow
72  *
73  */
74 /*
75  * MainWindow structure
76  */
77 typedef struct _MainWindow
78 {
79     Widget widget;
80     Widget print_menu_button;
81     Widget quick_print_button;
82     Widget exit_button;
83 } MainWindow;
84
85 extern MainWindow* MainWindow_new(Widget parent);
86
87