1/* GTK - The GIMP Toolkit
2 * gtkprintoperation.h: Print Operation
3 * Copyright (C) 2006, Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __GTK_PRINTER_PRIVATE_H__
20#define __GTK_PRINTER_PRIVATE_H__
21
22#include <gtk/gtk.h>
23#include <gtk/gtkunixprint.h>
24#include "gtkprinteroptionset.h"
25
26G_BEGIN_DECLS
27
28#define GTK_PRINTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER, GtkPrinterClass))
29#define GTK_IS_PRINTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER))
30#define GTK_PRINTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER, GtkPrinterClass))
31
32typedef struct _GtkPrinterClass GtkPrinterClass;
33typedef struct _GtkPrinterPrivate GtkPrinterPrivate;
34
35struct _GtkPrinter
36{
37 GObject parent_instance;
38};
39
40struct _GtkPrinterClass
41{
42 GObjectClass parent_class;
43
44 void (*details_acquired) (GtkPrinter *printer,
45 gboolean success);
46};
47
48GtkPrinterOptionSet *_gtk_printer_get_options (GtkPrinter *printer,
49 GtkPrintSettings *settings,
50 GtkPageSetup *page_setup,
51 GtkPrintCapabilities capabilities);
52gboolean _gtk_printer_mark_conflicts (GtkPrinter *printer,
53 GtkPrinterOptionSet *options);
54void _gtk_printer_get_settings_from_options (GtkPrinter *printer,
55 GtkPrinterOptionSet *options,
56 GtkPrintSettings *settings);
57void _gtk_printer_prepare_for_print (GtkPrinter *printer,
58 GtkPrintJob *print_job,
59 GtkPrintSettings *settings,
60 GtkPageSetup *page_setup);
61cairo_surface_t * _gtk_printer_create_cairo_surface (GtkPrinter *printer,
62 GtkPrintSettings *settings,
63 double width,
64 double height,
65 GIOChannel *cache_io);
66GHashTable * _gtk_printer_get_custom_widgets (GtkPrinter *printer);
67
68/* GtkPrintJob private methods: */
69GDK_AVAILABLE_IN_ALL
70void gtk_print_job_set_status (GtkPrintJob *job,
71 GtkPrintStatus status);
72
73G_END_DECLS
74#endif /* __GTK_PRINT_OPERATION_PRIVATE_H__ */
75

source code of gtk/gtk/gtkprinterprivate.h