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;
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);
64 GType gtk_print_unix_dialog_get_type (void) G_GNUC_CONST;
65 GtkWidget * gtk_print_unix_dialog_new (const gchar *title,
68 void gtk_print_unix_dialog_set_page_setup (GtkPrintUnixDialog *dialog,
69 GtkPageSetup *page_setup);
70 GtkPageSetup * gtk_print_unix_dialog_get_page_setup (GtkPrintUnixDialog *dialog);
71 void gtk_print_unix_dialog_set_current_page (GtkPrintUnixDialog *dialog,
73 gint gtk_print_unix_dialog_get_current_page (GtkPrintUnixDialog *dialog);
74 void gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog,
75 GtkPrintSettings *settings);
76 GtkPrintSettings * gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog);
77 GtkPrinter * gtk_print_unix_dialog_get_selected_printer (GtkPrintUnixDialog *dialog);
78 void gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog,
80 GtkWidget *tab_label);
81 void gtk_print_unix_dialog_set_manual_capabilities (GtkPrintUnixDialog *dialog,
82 GtkPrintCapabilities capabilities);
83 GtkPrintCapabilities gtk_print_unix_dialog_get_manual_capabilities (GtkPrintUnixDialog *dialog);
84 void gtk_print_unix_dialog_set_support_selection (GtkPrintUnixDialog *dialog,
85 gboolean support_selection);
86 gboolean gtk_print_unix_dialog_get_support_selection (GtkPrintUnixDialog *dialog);
87 void gtk_print_unix_dialog_set_has_selection (GtkPrintUnixDialog *dialog,
88 gboolean has_selection);
89 gboolean gtk_print_unix_dialog_get_has_selection (GtkPrintUnixDialog *dialog);
90 void gtk_print_unix_dialog_set_embed_page_setup (GtkPrintUnixDialog *dialog,
92 gboolean gtk_print_unix_dialog_get_embed_page_setup (GtkPrintUnixDialog *dialog);
93 gboolean gtk_print_unix_dialog_get_page_setup_set (GtkPrintUnixDialog *dialog);
97 #endif /* __GTK_PRINT_UNIX_DIALOG_H__ */