]> git.sur5r.net Git - glabels/blob - glabels1/src/print_merge.h
a2a6ef895b4231199436dc8665e1f0343f525c1e
[glabels] / glabels1 / src / print_merge.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  print_merge.h:  print merge widget module header file
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22
23 #ifndef __PRINT_MERGE_H__
24 #define __PRINT_MERGE_H__
25
26 #include <gnome.h>
27 #include "label.h"
28
29 #define GL_TYPE_PRINT_MERGE (gl_print_merge_get_type ())
30 #define GL_PRINT_MERGE(obj) \
31         (GTK_CHECK_CAST((obj), GL_TYPE_PRINT_MERGE, glPrintMerge ))
32 #define GL_PRINT_MERGE_CLASS(klass) \
33         (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_PRINT_MERGE, glPrintMergeClass))
34 #define GL_IS_PRINT_MERGE(obj) \
35         (GTK_CHECK_TYPE ((obj), GL_TYPE_PRINT_MERGE))
36 #define GL_IS_PRINT_MERGE_CLASS(klass) \
37         (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_PRINT_MERGE))
38
39 typedef struct _glPrintMerge glPrintMerge;
40 typedef struct _glPrintMergeClass glPrintMergeClass;
41
42 struct _glPrintMerge {
43         GtkHBox parent_widget;
44
45         gint labels_per_sheet;
46         GtkWidget *mini_preview;
47
48         gint n_records;
49
50         GtkWidget *copies_spin;
51         GtkWidget *first_spin;
52         GtkWidget *collate_image;
53         GtkWidget *collate_check;
54 };
55
56 struct _glPrintMergeClass {
57         GtkHBoxClass parent_class;
58 };
59
60 extern guint gl_print_merge_get_type (void);
61
62 extern GtkWidget *gl_print_merge_new (glLabel * label);
63
64 extern void gl_print_merge_get_copies (glPrintMerge * merge,
65                                        gint * n_copies,
66                                        gint * first_label,
67                                        gboolean * collate_flag);
68
69 extern void gl_print_merge_set_copies (glPrintMerge * merge,
70                                        gint n_copies,
71                                        gint first_label,
72                                        gint n_records,
73                                        gboolean collate_flag);
74
75 #endif