|
Packit Service |
fb6fa5 |
/* GTK - The GIMP Toolkit
|
|
Packit Service |
fb6fa5 |
* gtkprinteroptionset.h: printer option set
|
|
Packit Service |
fb6fa5 |
* Copyright (C) 2006, Red Hat, Inc.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
fb6fa5 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
fb6fa5 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
fb6fa5 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fb6fa5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
fb6fa5 |
* Lesser General Public License for more details.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License along with this library; if not, write to the
|
|
Packit Service |
fb6fa5 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit Service |
fb6fa5 |
* Boston, MA 02111-1307, USA.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifndef __GTK_PRINTER_OPTION_SET_H__
|
|
Packit Service |
fb6fa5 |
#define __GTK_PRINTER_OPTION_SET_H__
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* This is a "semi-private" header; it is meant only for
|
|
Packit Service |
fb6fa5 |
* alternate GtkPrintDialog backend modules; no stability guarantees
|
|
Packit Service |
fb6fa5 |
* are made at this point
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
#ifndef GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED
|
|
Packit Service |
fb6fa5 |
#error "GtkPrintBackend is not supported API for general use"
|
|
Packit Service |
fb6fa5 |
#endif
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#include <glib-object.h>
|
|
Packit Service |
fb6fa5 |
#include "gtkprinteroption.h"
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_BEGIN_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#define GTK_TYPE_PRINTER_OPTION_SET (gtk_printer_option_set_get_type ())
|
|
Packit Service |
fb6fa5 |
#define GTK_PRINTER_OPTION_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION_SET, GtkPrinterOptionSet))
|
|
Packit Service |
fb6fa5 |
#define GTK_IS_PRINTER_OPTION_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION_SET))
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
typedef struct _GtkPrinterOptionSet GtkPrinterOptionSet;
|
|
Packit Service |
fb6fa5 |
typedef struct _GtkPrinterOptionSetClass GtkPrinterOptionSetClass;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
struct _GtkPrinterOptionSet
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
GObject parent_instance;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/*< private >*/
|
|
Packit Service |
fb6fa5 |
GPtrArray *array;
|
|
Packit Service |
fb6fa5 |
GHashTable *hash;
|
|
Packit Service |
fb6fa5 |
};
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
struct _GtkPrinterOptionSetClass
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
GObjectClass parent_class;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void (*changed) (GtkPrinterOptionSet *option);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Padding for future expansion */
|
|
Packit Service |
fb6fa5 |
void (*_gtk_reserved1) (void);
|
|
Packit Service |
fb6fa5 |
void (*_gtk_reserved2) (void);
|
|
Packit Service |
fb6fa5 |
void (*_gtk_reserved3) (void);
|
|
Packit Service |
fb6fa5 |
void (*_gtk_reserved4) (void);
|
|
Packit Service |
fb6fa5 |
void (*_gtk_reserved5) (void);
|
|
Packit Service |
fb6fa5 |
void (*_gtk_reserved6) (void);
|
|
Packit Service |
fb6fa5 |
void (*_gtk_reserved7) (void);
|
|
Packit Service |
fb6fa5 |
};
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
typedef void (*GtkPrinterOptionSetFunc) (GtkPrinterOption *option,
|
|
Packit Service |
fb6fa5 |
gpointer user_data);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GType gtk_printer_option_set_get_type (void) G_GNUC_CONST;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GtkPrinterOptionSet *gtk_printer_option_set_new (void);
|
|
Packit Service |
fb6fa5 |
void gtk_printer_option_set_add (GtkPrinterOptionSet *set,
|
|
Packit Service |
fb6fa5 |
GtkPrinterOption *option);
|
|
Packit Service |
fb6fa5 |
void gtk_printer_option_set_remove (GtkPrinterOptionSet *set,
|
|
Packit Service |
fb6fa5 |
GtkPrinterOption *option);
|
|
Packit Service |
fb6fa5 |
GtkPrinterOption * gtk_printer_option_set_lookup (GtkPrinterOptionSet *set,
|
|
Packit Service |
fb6fa5 |
const char *name);
|
|
Packit Service |
fb6fa5 |
void gtk_printer_option_set_foreach (GtkPrinterOptionSet *set,
|
|
Packit Service |
fb6fa5 |
GtkPrinterOptionSetFunc func,
|
|
Packit Service |
fb6fa5 |
gpointer user_data);
|
|
Packit Service |
fb6fa5 |
void gtk_printer_option_set_clear_conflicts (GtkPrinterOptionSet *set);
|
|
Packit Service |
fb6fa5 |
GList * gtk_printer_option_set_get_groups (GtkPrinterOptionSet *set);
|
|
Packit Service |
fb6fa5 |
void gtk_printer_option_set_foreach_in_group (GtkPrinterOptionSet *set,
|
|
Packit Service |
fb6fa5 |
const char *group,
|
|
Packit Service |
fb6fa5 |
GtkPrinterOptionSetFunc func,
|
|
Packit Service |
fb6fa5 |
gpointer user_data);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_END_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#endif /* __GTK_PRINTER_OPTION_SET_H__ */
|