|
Packit |
98cdb6 |
/* GTK - The GIMP Toolkit
|
|
Packit |
98cdb6 |
* gtkprint-win32.h: Win32 Print utils
|
|
Packit |
98cdb6 |
* Copyright (C) 2006, Red Hat, Inc.
|
|
Packit |
98cdb6 |
*
|
|
Packit |
98cdb6 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
98cdb6 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
98cdb6 |
* License as published by the Free Software Foundation; either
|
|
Packit |
98cdb6 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
98cdb6 |
*
|
|
Packit |
98cdb6 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
98cdb6 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
98cdb6 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
98cdb6 |
* Lesser General Public License for more details.
|
|
Packit |
98cdb6 |
*
|
|
Packit |
98cdb6 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
98cdb6 |
* License along with this library; if not, write to the
|
|
Packit |
98cdb6 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
98cdb6 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
98cdb6 |
*/
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#ifndef __GTK_PRINT_WIN32_H__
|
|
Packit |
98cdb6 |
#define __GTK_PRINT_WIN32_H__
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#include "win32/gdkwin32.h"
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
G_BEGIN_DECLS
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#ifndef START_PAGE_GENERAL
|
|
Packit |
98cdb6 |
#define START_PAGE_GENERAL 0xffffffff
|
|
Packit |
98cdb6 |
#endif
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#ifndef PD_RESULT_CANCEL
|
|
Packit |
98cdb6 |
#define PD_RESULT_CANCEL 0
|
|
Packit |
98cdb6 |
#define PD_RESULT_PRINT 1
|
|
Packit |
98cdb6 |
#define PD_RESULT_APPLY 2
|
|
Packit |
98cdb6 |
#endif
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#ifndef PD_NOCURRENTPAGE
|
|
Packit |
98cdb6 |
#define PD_NOCURRENTPAGE 0x00800000
|
|
Packit |
98cdb6 |
#endif
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#ifndef PD_CURRENTPAGE
|
|
Packit |
98cdb6 |
#define PD_CURRENTPAGE 0x00400000
|
|
Packit |
98cdb6 |
#endif
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
typedef struct {
|
|
Packit |
98cdb6 |
char *driver;
|
|
Packit |
98cdb6 |
char *device;
|
|
Packit |
98cdb6 |
char *output;
|
|
Packit |
98cdb6 |
int flags;
|
|
Packit |
98cdb6 |
} GtkPrintWin32Devnames;
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
void gtk_print_win32_devnames_free (GtkPrintWin32Devnames *devnames);
|
|
Packit |
98cdb6 |
GtkPrintWin32Devnames *gtk_print_win32_devnames_from_win32 (HGLOBAL global);
|
|
Packit |
98cdb6 |
GtkPrintWin32Devnames *gtk_print_win32_devnames_from_printer_name (const char *printer);
|
|
Packit |
98cdb6 |
HGLOBAL gtk_print_win32_devnames_to_win32 (const GtkPrintWin32Devnames *devnames);
|
|
Packit |
98cdb6 |
HGLOBAL gtk_print_win32_devnames_to_win32_from_printer_name (const char *printer);
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
G_END_DECLS
|
|
Packit |
98cdb6 |
|
|
Packit |
98cdb6 |
#endif /* __GTK_PRINT_WIN32_H__ */
|