2 * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_UNIX_PRINT_H_INSIDE__) && !defined (GTK_COMPILATION)
21 #error "Only <gtk/gtkunixprint.h> can be included directly."
24 #ifndef __GTK_PRINT_UNIX_DIALOG_H__
25 #define __GTK_PRINT_UNIX_DIALOG_H__
28 #include <gtk/gtkprinter.h>
29 #include <gtk/gtkprintjob.h>
33 #define GTK_TYPE_PRINT_UNIX_DIALOG (gtk_print_unix_dialog_get_type ())
34 #define GTK_PRINT_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialog))
35 #define GTK_PRINT_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialogClass))
36 #define GTK_IS_PRINT_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_UNIX_DIALOG))
37 #define GTK_IS_PRINT_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINT_UNIX_DIALOG))
38 #define GTK_PRINT_UNIX_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialogClass))
41 typedef struct _GtkPrintUnixDialog GtkPrintUnixDialog;
42 typedef struct _GtkPrintUnixDialogClass GtkPrintUnixDialogClass;
43 typedef struct GtkPrintUnixDialogPrivate GtkPrintUnixDialogPrivate;
45 struct _GtkPrintUnixDialog
47 GtkDialog parent_instance;
49 GtkPrintUnixDialogPrivate *priv;
52 struct _GtkPrintUnixDialogClass
54 GtkDialogClass parent_class;
57 /* Padding for future expansion */
58 void (*_gtk_reserved1) (void);
59 void (*_gtk_reserved2) (void);
60 void (*_gtk_reserved3) (void);
61 void (*_gtk_reserved4) (void);
62 void (*_gtk_reserved5) (void);
63 void (*_gtk_reserved6) (void);
64 void (*_gtk_reserved7) (void);
67 GType gtk_print_unix_dialog_get_type (void) G_GNUC_CONST;
68 GtkWidget * gtk_print_unix_dialog_new (const gchar *title,
71 void gtk_print_unix_dialog_set_page_setup (GtkPrintUnixDialog *dialog,
72 GtkPageSetup *page_setup);
73 GtkPageSetup * gtk_print_unix_dialog_get_page_setup (GtkPrintUnixDialog *dialog);
74 void gtk_print_unix_dialog_set_current_page (GtkPrintUnixDialog *dialog,
76 gint gtk_print_unix_dialog_get_current_page (GtkPrintUnixDialog *dialog);
77 void gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog,
78 GtkPrintSettings *settings);
79 GtkPrintSettings *gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog);
80 GtkPrinter * gtk_print_unix_dialog_get_selected_printer (GtkPrintUnixDialog *dialog);
81 void gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog,
83 GtkWidget *tab_label);
84 void gtk_print_unix_dialog_set_manual_capabilities (GtkPrintUnixDialog *dialog,
85 GtkPrintCapabilities capabilities);
89 #endif /* __GTK_PRINT_UNIX_DIALOG_H__ */