1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program 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
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16  */
17 
18 
19 #ifndef G_OS_WIN32
20 #define EMBED_PAGE_SETUP 1
21 #endif
22 
23 #define GIMP_PLUGIN_PRINT_ERROR gimp_plugin_print_error_quark ()
24 
25 typedef enum
26 {
27   GIMP_PLUGIN_PRINT_ERROR_FAILED
28 } GimpPluginPrintError;
29 
30 GQuark gimp_plugin_print_error_quark (void);
31 
32 typedef enum
33 {
34   CENTER_NONE         = 0,
35   CENTER_HORIZONTALLY = 1,
36   CENTER_VERTICALLY   = 2,
37   CENTER_BOTH         = 3
38 } PrintCenterMode;
39 
40 typedef struct
41 {
42   gint32              image_id;
43   gint32              drawable_id;
44   GimpUnit            unit;
45   gdouble             xres;
46   gdouble             yres;
47   gdouble             min_xres;
48   gdouble             min_yres;
49   GimpUnit            image_unit;
50   gdouble             offset_x;
51   gdouble             offset_y;
52   PrintCenterMode     center;
53   gboolean            use_full_page;
54   gboolean            draw_crop_marks;
55   GtkPrintOperation  *operation;
56 } PrintData;
57