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 
26 G_BEGIN_DECLS
27 
28 GtkPrinterOptionSet *_gtk_printer_get_options               (GtkPrinter          *printer,
29 							     GtkPrintSettings    *settings,
30 							     GtkPageSetup        *page_setup,
31 							     GtkPrintCapabilities capabilities);
32 gboolean             _gtk_printer_mark_conflicts            (GtkPrinter          *printer,
33 							     GtkPrinterOptionSet *options);
34 void                 _gtk_printer_get_settings_from_options (GtkPrinter          *printer,
35 							     GtkPrinterOptionSet *options,
36 							     GtkPrintSettings    *settings);
37 void                 _gtk_printer_prepare_for_print         (GtkPrinter          *printer,
38 							     GtkPrintJob         *print_job,
39 							     GtkPrintSettings    *settings,
40 							     GtkPageSetup        *page_setup);
41 cairo_surface_t *    _gtk_printer_create_cairo_surface      (GtkPrinter          *printer,
42 							     GtkPrintSettings    *settings,
43 							     gdouble              width,
44 							     gdouble              height,
45 							     GIOChannel          *cache_io);
46 GHashTable *         _gtk_printer_get_custom_widgets        (GtkPrinter          *printer);
47 gboolean             _gtk_printer_get_hard_margins_for_paper_size (GtkPrinter       *printer,
48 								   GtkPaperSize     *paper_size,
49 								   gdouble          *top,
50 								   gdouble          *bottom,
51 								   gdouble          *left,
52 								   gdouble          *right);
53 
54 /* GtkPrintJob private methods: */
55 GDK_AVAILABLE_IN_ALL
56 void gtk_print_job_set_status (GtkPrintJob   *job,
57 			       GtkPrintStatus status);
58 
59 G_END_DECLS
60 #endif /* __GTK_PRINT_OPERATION_PRIVATE_H__ */
61