]> Pileus Git - ~andy/gtk/blob - gtk/gtkprint-win32.h
stylecontext: Do invalidation on first resize container
[~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, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __GTK_PRINT_WIN32_H__
20 #define __GTK_PRINT_WIN32_H__
21
22 #include "win32/gdkwin32.h"
23
24 G_BEGIN_DECLS
25
26 #ifndef START_PAGE_GENERAL
27 #define START_PAGE_GENERAL 0xffffffff
28 #endif
29
30 #ifndef PD_RESULT_CANCEL
31 #define PD_RESULT_CANCEL  0
32 #define PD_RESULT_PRINT  1
33 #define PD_RESULT_APPLY  2
34 #endif
35
36 #ifndef PD_NOCURRENTPAGE
37 #define PD_NOCURRENTPAGE  0x00800000
38 #endif
39
40 #ifndef PD_CURRENTPAGE
41 #define PD_CURRENTPAGE  0x00400000
42 #endif
43
44 typedef struct {
45   char *driver;
46   char *device;
47   char *output;
48   int flags;
49 } GtkPrintWin32Devnames;
50
51 void gtk_print_win32_devnames_free (GtkPrintWin32Devnames *devnames);
52 GtkPrintWin32Devnames *gtk_print_win32_devnames_from_win32 (HGLOBAL global);
53 GtkPrintWin32Devnames *gtk_print_win32_devnames_from_printer_name (const char *printer);
54 HGLOBAL gtk_print_win32_devnames_to_win32 (const GtkPrintWin32Devnames *devnames);
55 HGLOBAL gtk_print_win32_devnames_to_win32_from_printer_name (const char *printer);
56
57 G_END_DECLS
58
59 #endif /* __GTK_PRINT_WIN32_H__ */