2 * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
3 * Copyright (C) 2009 Ghee Teo <ghee.teo@sun.com>
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.
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.
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.
20 #ifndef __GTK_PRINTER_PAPI_H__
21 #define __GTK_PRINTER_PAPI_H__
24 #include <glib-object.h>
27 #include "gtkunixprint.h"
31 #define GTK_TYPE_PRINTER_PAPI (gtk_printer_papi_get_type ())
32 #define GTK_PRINTER_PAPI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_PAPI, GtkPrinterPapi))
33 #define GTK_PRINTER_PAPI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER_PAPI, GtkPrinterPapiClass))
34 #define GTK_IS_PRINTER_PAPI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_PAPI))
35 #define GTK_IS_PRINTER_PAPI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER_PAPI))
36 #define GTK_PRINTER_PAPI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER_PAPI, GtkPrinterPapiClass))
38 typedef struct _GtkPrinterPapi GtkPrinterPapi;
39 typedef struct _GtkPrinterPapiClass GtkPrinterPapiClass;
40 typedef struct _GtkPrinterPapiPrivate GtkPrinterPapiPrivate;
42 struct _GtkPrinterPapi
44 GtkPrinter parent_instance;
49 struct _GtkPrinterPapiClass
51 GtkPrinterClass parent_class;
55 GType gtk_printer_papi_get_type (void) G_GNUC_CONST;
56 void gtk_printer_papi_register_type (GTypeModule *module);
57 GtkPrinterPapi *gtk_printer_papi_new (const char *name, GtkPrintBackend *backend);
61 #endif /* __GTK_PRINTER_PAPI_H__ */