1 /*
2  * Motif
3  *
4  * Copyright (c) 1987-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 
24 #ifndef _XmPrintShell_h
25 #define _XmPrintShell_h
26 
27 #include <Xm/Xm.h>
28 #include <X11/extensions/Print.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /* Class record constants */
35 
36 externalref WidgetClass xmPrintShellWidgetClass;
37 
38 typedef struct _XmPrintShellClassRec * XmPrintShellWidgetClass;
39 typedef struct _XmPrintShellRec      * XmPrintShellWidget;
40 
41 
42 #ifndef XmIsPrintShell
43 #define XmIsPrintShell(w)  (XtIsSubclass (w, xmPrintShellWidgetClass))
44 #endif
45 
46 /********    Public Function Declarations    ********/
47 
48 extern Widget XmPrintSetup(
49              Widget           video_widget,
50              Screen           *print_screen,
51              String            print_shell_name,
52              ArgList           args,
53              Cardinal          num_args);
54 
55 extern void XmRedisplayWidget(Widget widget) ;
56 
57 extern XtEnum XmPrintToFile(Display *dpy,
58 			    char *file_name,
59 			    XPFinishProc finish_proc,
60 			    XPointer client_data) ;
61 
62 extern XtEnum XmPrintPopupPDM(Widget print_shell,
63 			      Widget transient_for);
64 
65 /********    End Public Function Declarations    ********/
66 
67 
68 #ifdef __cplusplus
69 }  /* Close scope of 'extern "C"' declaration which encloses file. */
70 #endif
71 
72 #endif /* _XmPrintShell_h */
73 /* DON'T ADD ANYTHING AFTER THIS #endif */
74