[18603] | 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
[18337] | 2 | |
---|
[18603] | 3 | #ifndef __GNOME_PRINT_COPIES_H__ |
---|
| 4 | #define __GNOME_PRINT_COPIES_H__ |
---|
| 5 | |
---|
[18337] | 6 | /* |
---|
[18603] | 7 | * gnome-print-copies.h: A system print copies widget |
---|
[18337] | 8 | * |
---|
| 9 | * This program is free software; you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU Library General Public License |
---|
| 11 | * as published by the Free Software Foundation; either version 2 of |
---|
| 12 | * the License, or (at your option) any later version. |
---|
| 13 | * |
---|
| 14 | * This program is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU Library General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU Library General Public |
---|
| 20 | * License along with this program; if not, write to the Free Software |
---|
| 21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
[18603] | 22 | * |
---|
| 23 | * Authors: |
---|
| 24 | * Michael Zucchi <notzed@helixcode.com> |
---|
| 25 | * Lauris Kaplinski <lauris@helixcode.com> |
---|
| 26 | * |
---|
| 27 | * Copyright (C) 2000-2002 Ximian Inc. |
---|
| 28 | * |
---|
[18337] | 29 | */ |
---|
| 30 | |
---|
| 31 | #include <glib.h> |
---|
| 32 | |
---|
| 33 | G_BEGIN_DECLS |
---|
| 34 | |
---|
[18603] | 35 | #define GNOME_TYPE_PRINT_COPIES_SELECTOR (gnome_print_copies_selector_get_type ()) |
---|
| 36 | #define GNOME_PRINT_COPIES_SELECTOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNOME_TYPE_PRINT_COPIES_SELECTOR, GnomePrintCopiesSelector)) |
---|
| 37 | #define GNOME_PRINT_COPIES_SELECTOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNOME_TYPE_PRINT_COPIES_SELECTOR, GnomePrintCopiesSelectorClass)) |
---|
| 38 | #define GNOME_IS_PRINT_COPIES_SELECTOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNOME_TYPE_PRINT_COPIES_SELECTOR)) |
---|
| 39 | #define GNOME_IS_PRINT_COPIES_SELECTOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_TYPE_PRINT_COPIES_SELECTOR)) |
---|
| 40 | #define GNOME_PRINT_COPIES_SELECTOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNOME_TYPE_PRINT_COPIES_SELECTOR, GnomePrintCopiesSelectorClass)) |
---|
[18337] | 41 | |
---|
[18603] | 42 | typedef struct _GnomePrintCopiesSelector GnomePrintCopiesSelector; |
---|
| 43 | typedef struct _GnomePrintCopiesSelectorClass GnomePrintCopiesSelectorClass; |
---|
[18337] | 44 | |
---|
| 45 | #include <gtk/gtkwidget.h> |
---|
| 46 | |
---|
| 47 | /* |
---|
[18603] | 48 | * We implement a single signal at moment: |
---|
[18337] | 49 | * |
---|
| 50 | * void (*copies_set) (GnomePrintCopies *gpc, gint copies, gboolean collate); |
---|
| 51 | * |
---|
| 52 | * Notice, that this is not bound to GnomePrintConfig, so if you want |
---|
| 53 | * print master to handle copies, you either should use GnomePrintDialog, |
---|
| 54 | * or set the config key GNOME_PRINT_KEY_NUM_COPIES in signal handler |
---|
| 55 | * |
---|
| 56 | */ |
---|
| 57 | |
---|
[18603] | 58 | GtkType gnome_print_copies_selector_get_type (void); |
---|
[18337] | 59 | |
---|
[18603] | 60 | GtkWidget * gnome_print_copies_selector_new (void); |
---|
| 61 | void gnome_print_copies_selector_set_copies (GnomePrintCopiesSelector *gpc, gint copies, gboolean collate); |
---|
| 62 | gint gnome_print_copies_selector_get_copies (GnomePrintCopiesSelector *gpc); |
---|
| 63 | gboolean gnome_print_copies_selector_get_collate (GnomePrintCopiesSelector *gpc); |
---|
[18337] | 64 | |
---|
| 65 | G_END_DECLS |
---|
| 66 | |
---|
[18603] | 67 | #endif /* __GNOME_PRINT_COPIES_H__ */ |
---|