dtcm: Resolve CID 87408
[oweals/cde.git] / cde / programs / dtcm / dtcm / x_graphics.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: x_graphics.h /main/5 1996/06/07 13:24:06 rswiston $ */
24 /*
25  * (c) Copyright 1996 Digital Equipment Corporation.
26  * (c) Copyright 1996 Hewlett-Packard Company.
27  * (c) Copyright 1996 International Business Machines Corp.
28  * (c) Copyright 1996 Sun Microsystems, Inc.
29  * (c) Copyright 1996 Novell, Inc. 
30  * (c) Copyright 1996 FUJITSU LIMITED.
31  * (c) Copyright 1996 Hitachi.
32  */
33
34 #ifndef _X_GRAPHICS_H
35 #define _X_GRAPHICS_H
36
37 #include <csa.h>
38 #include "calendar.h"
39 #include "print.h"
40 #include <X11/Intrinsic.h>
41
42 #define PAGE_WIDTH      8500    /*  8.5"  paper width */
43 #define PAGE_HEIGHT     11000   /* 11.0"  paper height */
44 #define XINCH           1000    /*  1 inch */
45
46 extern void     x_day_header            P((void *));
47 extern void     x_day_timeslots         P((void *, int, Boolean));
48 extern void     x_finish_printer        P((void *));
49 extern void     x_finish_std_month      P(());
50 extern int      x_get_day_lines_per_page P((void *));
51 extern int      x_get_month_lines_per_page P((void *));
52 extern int      x_get_week_lines_per_page P((void *));
53 extern void     x_init_day              P((void *, int));
54 extern void     x_init_list             P((void *));
55 extern void     x_init_month            P((void *, int));
56 extern void     x_init_printer          P((void *, short));
57 extern void     x_init_std_year         P((void *));
58 extern void     x_init_week             P((void *));
59 extern void     x_month_daynames        P((void *, int));
60 extern void     x_month_timeslots       P((void *, Tick, Boolean));
61 extern void *   x_open_file             P((Calendar *));
62 extern void     x_print_file            P((void *, Calendar *));
63 extern void     x_print_header          P((void *, char*, int, int));
64 extern void     x_print_list_range      P((Calendar*, CSA_sint32, int,
65                                            Tick, Tick));
66 extern void     x_print_little_months   P((void *, Tick));
67 extern void     x_print_month           P((void *, int, int, int,
68                                            int, int, int, int));
69 extern Boolean  x_print_month_appts     P((void *, CSA_entry_handle*, int,
70                                            int, time_t, int));
71 extern Boolean  x_print_multi_appts     P((void *, CSA_entry_handle*, int,
72                                            int, Glance));
73 extern void     x_print_todo            P((void *, CSA_entry_handle*, int,
74                                            CSA_sint32, Boolean, int, time_t,
75                                            char *)); 
76 extern void     x_print_year            P((void *, int));
77 extern void     x_std_month_name        P((void *, char*));
78 extern void     x_std_year_name         P((void *, int));
79 extern void     x_week_appt_boxes       P((void *));
80 extern void     x_week_daynames         P((void *, char*, int, Boolean));
81 extern void     x_week_sched_boxes      P((void *));
82 extern void     x_week_sched_draw       P((void *, int));
83 extern void     x_week_sched_init       P((void *));
84
85 #endif