]> Pileus Git - ~andy/gtk/blob - gtk/gtkprint-win32.h
Revert name change
[~andy/gtk] / gtk / gtkprint-win32.h
1 /* GTK - The GIMP Toolkit
2  * gtkprint-win32.h: Win32 Print utils
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, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GTK_PRINT_WIN32_H__
22 #define __GTK_PRINT_WIN32_H__
23
24 #include "win32/gdkwin32.h"
25
26 G_BEGIN_DECLS
27
28 #ifndef START_PAGE_GENERAL
29 #define START_PAGE_GENERAL 0xffffffff
30 #endif
31
32 #ifndef PD_RESULT_CANCEL
33 #define PD_RESULT_CANCEL  0
34 #define PD_RESULT_PRINT  1
35 #define PD_RESULT_APPLY  2
36 #endif
37
38 #ifndef PD_NOCURRENTPAGE
39 #define PD_NOCURRENTPAGE  0x00800000
40 #endif
41
42 #ifndef PD_CURRENTPAGE
43 #define PD_CURRENTPAGE  0x00400000
44 #endif
45
46 typedef struct {
47   char *driver;
48   char *device;
49   char *output;
50   int flags;
51 } GtkPrintWin32Devnames;
52
53 void gtk_print_win32_devnames_free (GtkPrintWin32Devnames *devnames);
54 GtkPrintWin32Devnames *gtk_print_win32_devnames_from_win32 (HGLOBAL global);
55 HGLOBAL gtk_print_win32_devnames_to_win32 (const GtkPrintWin32Devnames *devnames);
56 HGLOBAL gtk_print_win32_devnames_from_printer_name (const char *printer);
57
58 G_END_DECLS
59
60 #endif /* __GTK_PRINT_WIN32_H__ */