~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/print/print_gimp.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * "$Id: print_gimp.h,v 1.10 2003/11/01 20:21:22 yosh Exp $"
3
 
 *
4
 
 *   Print plug-in for the GIMP.
5
 
 *
6
 
 *   Copyright 1997-2000 Michael Sweet (mike@easysw.com),
7
 
 *      Robert Krawitz (rlk@alum.mit.edu). and Steve Miller (smiller@rni.net
8
 
 *
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)
12
 
 *   any later version.
13
 
 *
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
17
 
 *   for more details.
18
 
 *
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.
22
 
 *
23
 
 *
24
 
 * Revision History:
25
 
 *
26
 
 *   See ChangeLog
27
 
 */
28
 
 
29
 
#ifndef __PRINT_GIMP_H__
30
 
#define __PRINT_GIMP_H__
31
 
 
32
 
/*
33
 
 * All Gimp-specific code is in this file.
34
 
 */
35
 
 
36
 
#define PLUG_IN_VERSION         "4.2"
37
 
#define PLUG_IN_NAME            "Print"
38
 
 
39
 
typedef struct          /**** Printer List ****/
40
 
{
41
 
  int   active;                 /* Do we know about this printer? */
42
 
  char  name[128];              /* Name of printer */
43
 
  stp_vars_t v;
44
 
} gp_plist_t;
45
 
 
46
 
#define THUMBNAIL_MAXW  (128)
47
 
#define THUMBNAIL_MAXH  (128)
48
 
 
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;
53
 
 
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;
63
 
extern gint             runme;
64
 
extern gint             saveme;
65
 
 
66
 
extern GtkWidget  *gimp_color_adjust_dialog;
67
 
extern GtkWidget  *dither_algo_combo;
68
 
extern stp_vars_t *pv;
69
 
 
70
 
/*
71
 
 * Function prototypes
72
 
 */
73
 
 
74
 
/* How to create an Image wrapping a Gimp drawable */
75
 
extern void  printrc_save (void);
76
 
 
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,
82
 
                                            gint          num_items,
83
 
                                            stp_param_t   *items,
84
 
                                            const gchar   *cur_item,
85
 
                                            const gchar   *def_value,
86
 
                                            GCallback      callback,
87
 
                                            gint          *callback_id);
88
 
 
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);
101
 
 
102
 
#endif  /* __PRINT_GIMP_H__ */