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