2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * print_copies.h: custom print copies widget module header file
6 * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
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.
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.
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
23 #ifndef __PRINT_COPIES_H__
24 #define __PRINT_COPIES_H__
29 #define GL_TYPE_PRINT_COPIES (gl_print_copies_get_type ())
30 #define GL_PRINT_COPIES(obj) \
31 (GTK_CHECK_CAST((obj), GL_TYPE_PRINT_COPIES, glPrintCopies ))
32 #define GL_PRINT_COPIES_CLASS(klass) \
33 (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_PRINT_COPIES, glPrintCopiesClass))
34 #define GL_IS_PRINT_COPIES(obj) \
35 (GTK_CHECK_TYPE ((obj), GL_TYPE_PRINT_COPIES))
36 #define GL_IS_PRINT_COPIES_CLASS(klass) \
37 (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_PRINT_COPIES))
39 typedef struct _glPrintCopies glPrintCopies;
40 typedef struct _glPrintCopiesClass glPrintCopiesClass;
42 struct _glPrintCopies {
43 GtkHBox parent_widget;
45 gint labels_per_sheet;
47 GtkWidget *mini_preview;
49 GtkWidget *sheets_radio;
50 GtkWidget *sheets_spin;
52 GtkWidget *labels_radio;
53 GtkWidget *first_spin;
57 struct _glPrintCopiesClass {
58 GtkHBoxClass parent_class;
61 extern guint gl_print_copies_get_type (void);
63 extern GtkWidget *gl_print_copies_new (glLabel * label);
65 extern void gl_print_copies_get_range (glPrintCopies * copies,
70 extern void gl_print_copies_set_range (glPrintCopies * copies,