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_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;
50 GtkPrintUnixDialogPrivate *priv;
53 struct _GtkPrintUnixDialogClass
55 GtkDialogClass parent_class;
58 /* Padding for future expansion */
59 void (*_gtk_reserved1) (void);
60 void (*_gtk_reserved2) (void);
61 void (*_gtk_reserved3) (void);
62 void (*_gtk_reserved4) (void);
63 void (*_gtk_reserved5) (void);
64 void (*_gtk_reserved6) (void);
65 void (*_gtk_reserved7) (void);
68 GType gtk_print_unix_dialog_get_type (void) G_GNUC_CONST;
69 GtkWidget * gtk_print_unix_dialog_new (const gchar *title,
72 void gtk_print_unix_dialog_set_page_setup (GtkPrintUnixDialog *dialog,
73 GtkPageSetup *page_setup);
74 GtkPageSetup * gtk_print_unix_dialog_get_page_setup (GtkPrintUnixDialog *dialog);
75 void gtk_print_unix_dialog_set_current_page (GtkPrintUnixDialog *dialog,
77 gint gtk_print_unix_dialog_get_current_page (GtkPrintUnixDialog *dialog);
78 void gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog,
79 GtkPrintSettings *settings);
80 GtkPrintSettings * gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog);
81 GtkPrinter * gtk_print_unix_dialog_get_selected_printer (GtkPrintUnixDialog *dialog);
82 void gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog,
84 GtkWidget *tab_label);
85 void gtk_print_unix_dialog_set_manual_capabilities (GtkPrintUnixDialog *dialog,
86 GtkPrintCapabilities capabilities);
87 GtkPrintCapabilities gtk_print_unix_dialog_get_manual_capabilities (GtkPrintUnixDialog *dialog);
88 void gtk_print_unix_dialog_set_support_selection (GtkPrintUnixDialog *dialog,
89 gboolean support_selection);
90 gboolean gtk_print_unix_dialog_get_support_selection (GtkPrintUnixDialog *dialog);
91 void gtk_print_unix_dialog_set_has_selection (GtkPrintUnixDialog *dialog,
92 gboolean has_selection);
93 gboolean gtk_print_unix_dialog_get_has_selection (GtkPrintUnixDialog *dialog);
94 void gtk_print_unix_dialog_set_embed_page_setup (GtkPrintUnixDialog *dialog,
96 gboolean gtk_print_unix_dialog_get_embed_page_setup (GtkPrintUnixDialog *dialog);
97 gboolean gtk_print_unix_dialog_get_page_setup_set (GtkPrintUnixDialog *dialog);
101 #endif /* __GTK_PRINT_UNIX_DIALOG_H__ */