2
* "$Id: print_gimp.h,v 1.10 2003/11/01 20:21:22 yosh Exp $"
4
* Print plug-in for the GIMP.
6
* Copyright 1997-2000 Michael Sweet (mike@easysw.com),
7
* Robert Krawitz (rlk@alum.mit.edu). and Steve Miller (smiller@rni.net
9
* This program is free software; you can redistribute it and/or modify it
10
* under the terms of the GNU General Public License as published by the Free
11
* Software Foundation; either version 2 of the License, or (at your option)
14
* This program is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29
#ifndef __PRINT_GIMP_H__
30
#define __PRINT_GIMP_H__
33
* All Gimp-specific code is in this file.
36
#define PLUG_IN_VERSION "4.2"
37
#define PLUG_IN_NAME "Print"
39
typedef struct /**** Printer List ****/
41
int active; /* Do we know about this printer? */
42
char name[128]; /* Name of printer */
46
#define THUMBNAIL_MAXW (128)
47
#define THUMBNAIL_MAXH (128)
49
extern gint thumbnail_w, thumbnail_h, thumbnail_bpp;
50
extern guchar *thumbnail_data;
51
extern gint adjusted_thumbnail_bpp;
52
extern guchar *adjusted_thumbnail_data;
54
extern stp_vars_t vars;
55
extern gint plist_count; /* Number of system printers */
56
extern gint plist_current; /* Current system printer */
57
extern gp_plist_t *plist; /* System printers */
58
extern gint32 image_ID;
59
extern gchar *image_name;
60
extern gint image_width;
61
extern gint image_height;
62
extern stp_printer_t current_printer;
66
extern GtkWidget *gimp_color_adjust_dialog;
67
extern GtkWidget *dither_algo_combo;
68
extern stp_vars_t *pv;
74
/* How to create an Image wrapping a Gimp drawable */
75
extern void printrc_save (void);
77
extern stp_image_t *Image_GimpDrawable_new(GimpDrawable *drawable);
78
extern int add_printer(const gp_plist_t *key, int add_only);
79
extern void initialize_printer(gp_plist_t *printer);
80
extern void gimp_update_adjusted_thumbnail (void);
81
extern void gimp_plist_build_combo (GtkWidget *combo,
84
const gchar *cur_item,
85
const gchar *def_value,
89
extern void gimp_invalidate_frame(void);
90
extern void gimp_invalidate_preview_thumbnail(void);
91
extern void gimp_do_color_updates (void);
92
extern void gimp_redraw_color_swatch (void);
93
extern void gimp_build_dither_combo (void);
94
extern void gimp_create_color_adjust_window (void);
95
extern void gimp_update_adjusted_thumbnail (void);
96
extern void gimp_create_main_window (void);
97
extern void gimp_set_color_sliders_active(int active);
98
extern void gimp_writefunc (void *file, const char *buf, size_t bytes);
99
extern void set_adjustment_tooltip(GtkObject *adjustment,
100
const gchar *tip, const gchar *private);
102
#endif /* __PRINT_GIMP_H__ */