Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / print.h
1 /*******************************************************************************
2 **
3 **  print.h
4 **
5 **  static char sccsid[] = "@(#)print.h 1.2 94/06/01 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: print.h /main/8 1996/11/25 10:28:34 rswiston $
8 **
9 **  RESTRICTED CONFIDENTIAL INFORMATION:
10 **
11 **  The information in this document is subject to special
12 **  restrictions in a confidential disclosure agreement between
13 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
14 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
15 **  Sun's specific written approval.  This document and all copies
16 **  and derivative works thereof must be returned or destroyed at
17 **  Sun's request.
18 **
19 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
20 **
21 *******************************************************************************/
22
23 /*                                                                      *
24  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
25  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
26  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
27  * (c) Copyright 1993, 1994 Novell, Inc.                                *
28  */
29
30 #ifndef _PRINT_H
31 #define _PRINT_H
32
33 #include "calendar.h"
34 #include <Dt/Print.h>
35
36 /*
37  * IMPORTANT
38  *
39  * These indicate the type of report to be printed
40  * they are used in callback for option menu in print.c
41  * and stored in print data structure to record the
42  * option that's selected.
43  */
44 #define PR_DAY_VIEW     0
45 #define PR_WEEK_VIEW    1
46 #define PR_MONTH_VIEW   2
47 #define PR_YEAR_VIEW    3
48 #define PR_APPT_LIST    4
49 #define PR_TODO_LIST    5
50
51 /*
52  *  Moved from ps_graphics.h 04/10/96
53  */
54 #define PUBLIC          0 
55 #define SEMIPRIVATE     1 
56 #define PRIVATE         2 
57
58 #define PORTRAIT        TRUE
59 #define LANDSCAPE       FALSE
60
61 /* bit masks for checking privacy for printing */
62 #define PRINT_PUBLIC            0x1
63 #define PRINT_SEMIPRIVATE       0x2
64 #define PRINT_PRIVATE           0x4
65
66 extern void post_print_dialog(Calendar *c);
67 extern void create_print_dialog(Calendar *c);
68 extern char *pd_get_printer_name(Calendar *c);
69 extern int pd_get_copies(Calendar *c);
70 extern Tick pd_get_start_date(Calendar *c);
71 extern Tick pd_get_end_date(Calendar *c);
72 extern char *pd_get_print_options(Calendar *c);
73 extern Boolean pd_print_to_file(Calendar *c);
74 extern char *pd_get_file_name(Calendar *c);
75 extern int pd_get_report_type(Calendar *c);
76 extern void print_report(Calendar *c);
77 extern Widget pd_get_print_shell(Calendar *c);
78 extern Display *pd_get_print_display(Calendar *c);
79 extern void pd_set_bad_alloc_error(Calendar *c, Boolean errorOn);
80 extern Boolean pd_get_bad_alloc_error(Calendar *c);
81
82 # ifdef GR_DEBUG
83 extern Boolean inDebugMode(Calendar *c);
84 # endif
85
86 #endif