#include "gtkcustompaperunixdialog.h"
#include "gtkprintbackendprivate.h"
-#include "gtkprintutils.h"
+#include "gtkprintutilsprivate.h"
#include "deprecated/gtkdialogprivate.h"
#define LEGACY_CUSTOM_PAPER_FILENAME ".gtk-custom-papers"
#include "config.h"
#include "gtkpagesetup.h"
-#include "gtkprintutils.h"
+#include "gtkprintutilsprivate.h"
#include "gtkprintoperation.h" /* for GtkPrintError */
#include <glib/gi18n-lib.h>
#include "gtktypebuiltins.h"
#include "gtkcustompaperunixdialog.h"
#include "gtkprintbackendprivate.h"
#include "gtkpapersize.h"
-#include "gtkprintutils.h"
+#include "gtkprintutilsprivate.h"
#include "deprecated/gtkdialogprivate.h"
/**
#include <math.h>
#include "gtkpapersize.h"
-#include "gtkprintutils.h"
+#include "gtkprintutilsprivate.h"
#include "gtkprintoperation.h" /* for GtkPrintError */
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <gtk/gtkunixprint.h>
-#include <gtk/gtkprinteroptionset.h>
+#include <gtk/gtkprinteroptionsetprivate.h>
G_BEGIN_DECLS
#include <gmodule.h>
#include "gtkprivate.h"
-#include "gtkprinteroption.h"
+#include "gtkprinteroptionprivate.h"
/*****************************************
* GtkPrinterOption *
+++ /dev/null
-/* GTK - The GIMP Toolkit
- * gtkprinteroption.h: printer option
- * Copyright (C) 2006, Red Hat, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-/* This is a "semi-private" header; it is meant only for
- * alternate GtkPrintDialog backend modules; no stability guarantees
- * are made at this point
- */
-#ifndef GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED
-#error "GtkPrintBackend is not supported API for general use"
-#endif
-
-#include <glib-object.h>
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_PRINTER_OPTION (gtk_printer_option_get_type ())
-#define GTK_PRINTER_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION, GtkPrinterOption))
-#define GTK_IS_PRINTER_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION))
-
-typedef struct _GtkPrinterOption GtkPrinterOption;
-typedef struct _GtkPrinterOptionClass GtkPrinterOptionClass;
-
-#define GTK_PRINTER_OPTION_GROUP_IMAGE_QUALITY "ImageQuality"
-#define GTK_PRINTER_OPTION_GROUP_FINISHING "Finishing"
-
-typedef enum {
- GTK_PRINTER_OPTION_TYPE_BOOLEAN,
- GTK_PRINTER_OPTION_TYPE_PICKONE,
- GTK_PRINTER_OPTION_TYPE_PICKONE_PASSWORD,
- GTK_PRINTER_OPTION_TYPE_PICKONE_PASSCODE,
- GTK_PRINTER_OPTION_TYPE_PICKONE_REAL,
- GTK_PRINTER_OPTION_TYPE_PICKONE_INT,
- GTK_PRINTER_OPTION_TYPE_PICKONE_STRING,
- GTK_PRINTER_OPTION_TYPE_ALTERNATIVE,
- GTK_PRINTER_OPTION_TYPE_STRING,
- GTK_PRINTER_OPTION_TYPE_FILESAVE,
- GTK_PRINTER_OPTION_TYPE_INFO
-} GtkPrinterOptionType;
-
-struct _GtkPrinterOption
-{
- GObject parent_instance;
-
- char *name;
- char *display_text;
- GtkPrinterOptionType type;
-
- char *value;
-
- int num_choices;
- char **choices;
- char **choices_display;
-
- gboolean activates_default;
-
- gboolean has_conflict;
- char *group;
-};
-
-struct _GtkPrinterOptionClass
-{
- GObjectClass parent_class;
-
- void (*changed) (GtkPrinterOption *option);
-
- /* Padding for future expansion */
- void (*_gtk_reserved1) (void);
- void (*_gtk_reserved2) (void);
- void (*_gtk_reserved3) (void);
- void (*_gtk_reserved4) (void);
-};
-
-GDK_AVAILABLE_IN_ALL
-GType gtk_printer_option_get_type (void) G_GNUC_CONST;
-
-GDK_AVAILABLE_IN_ALL
-GtkPrinterOption *gtk_printer_option_new (const char *name,
- const char *display_text,
- GtkPrinterOptionType type);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set (GtkPrinterOption *option,
- const char *value);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_has_conflict (GtkPrinterOption *option,
- gboolean has_conflict);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_clear_has_conflict (GtkPrinterOption *option);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_boolean (GtkPrinterOption *option,
- gboolean value);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_allocate_choices (GtkPrinterOption *option,
- int num);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_choices_from_array (GtkPrinterOption *option,
- int num_choices,
- const char **choices,
- const char **choices_display);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_printer_option_has_choice (GtkPrinterOption *option,
- const char *choice);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_activates_default (GtkPrinterOption *option,
- gboolean activates);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_printer_option_get_activates_default (GtkPrinterOption *option);
-
-
-G_END_DECLS
-
-
-
--- /dev/null
+/* GTK - The GIMP Toolkit
+ * gtkprinteroption.h: printer option
+ * Copyright (C) 2006, Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+/* This is a "semi-private" header; it is meant only for
+ * alternate GtkPrintDialog backend modules; no stability guarantees
+ * are made at this point
+ */
+#ifndef GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED
+#error "GtkPrintBackend is not supported API for general use"
+#endif
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_PRINTER_OPTION (gtk_printer_option_get_type ())
+#define GTK_PRINTER_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION, GtkPrinterOption))
+#define GTK_IS_PRINTER_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION))
+
+typedef struct _GtkPrinterOption GtkPrinterOption;
+typedef struct _GtkPrinterOptionClass GtkPrinterOptionClass;
+
+#define GTK_PRINTER_OPTION_GROUP_IMAGE_QUALITY "ImageQuality"
+#define GTK_PRINTER_OPTION_GROUP_FINISHING "Finishing"
+
+typedef enum {
+ GTK_PRINTER_OPTION_TYPE_BOOLEAN,
+ GTK_PRINTER_OPTION_TYPE_PICKONE,
+ GTK_PRINTER_OPTION_TYPE_PICKONE_PASSWORD,
+ GTK_PRINTER_OPTION_TYPE_PICKONE_PASSCODE,
+ GTK_PRINTER_OPTION_TYPE_PICKONE_REAL,
+ GTK_PRINTER_OPTION_TYPE_PICKONE_INT,
+ GTK_PRINTER_OPTION_TYPE_PICKONE_STRING,
+ GTK_PRINTER_OPTION_TYPE_ALTERNATIVE,
+ GTK_PRINTER_OPTION_TYPE_STRING,
+ GTK_PRINTER_OPTION_TYPE_FILESAVE,
+ GTK_PRINTER_OPTION_TYPE_INFO
+} GtkPrinterOptionType;
+
+struct _GtkPrinterOption
+{
+ GObject parent_instance;
+
+ char *name;
+ char *display_text;
+ GtkPrinterOptionType type;
+
+ char *value;
+
+ int num_choices;
+ char **choices;
+ char **choices_display;
+
+ gboolean activates_default;
+
+ gboolean has_conflict;
+ char *group;
+};
+
+struct _GtkPrinterOptionClass
+{
+ GObjectClass parent_class;
+
+ void (*changed) (GtkPrinterOption *option);
+
+ /* Padding for future expansion */
+ void (*_gtk_reserved1) (void);
+ void (*_gtk_reserved2) (void);
+ void (*_gtk_reserved3) (void);
+ void (*_gtk_reserved4) (void);
+};
+
+GDK_AVAILABLE_IN_ALL
+GType gtk_printer_option_get_type (void) G_GNUC_CONST;
+
+GDK_AVAILABLE_IN_ALL
+GtkPrinterOption *gtk_printer_option_new (const char *name,
+ const char *display_text,
+ GtkPrinterOptionType type);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set (GtkPrinterOption *option,
+ const char *value);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_has_conflict (GtkPrinterOption *option,
+ gboolean has_conflict);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_clear_has_conflict (GtkPrinterOption *option);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_boolean (GtkPrinterOption *option,
+ gboolean value);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_allocate_choices (GtkPrinterOption *option,
+ int num);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_choices_from_array (GtkPrinterOption *option,
+ int num_choices,
+ const char **choices,
+ const char **choices_display);
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_printer_option_has_choice (GtkPrinterOption *option,
+ const char *choice);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_activates_default (GtkPrinterOption *option,
+ gboolean activates);
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_printer_option_get_activates_default (GtkPrinterOption *option);
+
+
+G_END_DECLS
+
+
+
#include <glib.h>
#include <gmodule.h>
-#include "gtkprinteroptionset.h"
+#include "gtkprinteroptionsetprivate.h"
#include "gtkprivate.h"
/*****************************************
+++ /dev/null
-/* GTK - The GIMP Toolkit
- * gtkprinteroptionset.h: printer option set
- * Copyright (C) 2006, Red Hat, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-/* This is a "semi-private" header; it is meant only for
- * alternate GtkPrintDialog backend modules; no stability guarantees
- * are made at this point
- */
-#ifndef GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED
-#error "GtkPrintBackend is not supported API for general use"
-#endif
-
-#include <glib-object.h>
-#include <gdk/gdk.h>
-#include "gtkprinteroption.h"
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_PRINTER_OPTION_SET (gtk_printer_option_set_get_type ())
-#define GTK_PRINTER_OPTION_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION_SET, GtkPrinterOptionSet))
-#define GTK_IS_PRINTER_OPTION_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION_SET))
-
-typedef struct _GtkPrinterOptionSet GtkPrinterOptionSet;
-typedef struct _GtkPrinterOptionSetClass GtkPrinterOptionSetClass;
-
-struct _GtkPrinterOptionSet
-{
- GObject parent_instance;
-
- /*< private >*/
- GPtrArray *array;
- GHashTable *hash;
-};
-
-struct _GtkPrinterOptionSetClass
-{
- GObjectClass parent_class;
-
- void (*changed) (GtkPrinterOptionSet *option);
-
-
- /* Padding for future expansion */
- void (*_gtk_reserved1) (void);
- void (*_gtk_reserved2) (void);
- void (*_gtk_reserved3) (void);
- void (*_gtk_reserved4) (void);
-};
-
-typedef void (*GtkPrinterOptionSetFunc) (GtkPrinterOption *option,
- gpointer user_data);
-
-
-GDK_AVAILABLE_IN_ALL
-GType gtk_printer_option_set_get_type (void) G_GNUC_CONST;
-
-GDK_AVAILABLE_IN_ALL
-GtkPrinterOptionSet *gtk_printer_option_set_new (void);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_add (GtkPrinterOptionSet *set,
- GtkPrinterOption *option);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_remove (GtkPrinterOptionSet *set,
- GtkPrinterOption *option);
-GDK_AVAILABLE_IN_ALL
-GtkPrinterOption * gtk_printer_option_set_lookup (GtkPrinterOptionSet *set,
- const char *name);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_foreach (GtkPrinterOptionSet *set,
- GtkPrinterOptionSetFunc func,
- gpointer user_data);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_clear_conflicts (GtkPrinterOptionSet *set);
-GDK_AVAILABLE_IN_ALL
-GList * gtk_printer_option_set_get_groups (GtkPrinterOptionSet *set);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_set_foreach_in_group (GtkPrinterOptionSet *set,
- const char *group,
- GtkPrinterOptionSetFunc func,
- gpointer user_data);
-
-G_END_DECLS
-
--- /dev/null
+/* GTK - The GIMP Toolkit
+ * gtkprinteroptionset.h: printer option set
+ * Copyright (C) 2006, Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+/* This is a "semi-private" header; it is meant only for
+ * alternate GtkPrintDialog backend modules; no stability guarantees
+ * are made at this point
+ */
+#ifndef GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED
+#error "GtkPrintBackend is not supported API for general use"
+#endif
+
+#include <glib-object.h>
+#include <gdk/gdk.h>
+#include "gtkprinteroptionprivate.h"
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_PRINTER_OPTION_SET (gtk_printer_option_set_get_type ())
+#define GTK_PRINTER_OPTION_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION_SET, GtkPrinterOptionSet))
+#define GTK_IS_PRINTER_OPTION_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION_SET))
+
+typedef struct _GtkPrinterOptionSet GtkPrinterOptionSet;
+typedef struct _GtkPrinterOptionSetClass GtkPrinterOptionSetClass;
+
+struct _GtkPrinterOptionSet
+{
+ GObject parent_instance;
+
+ /*< private >*/
+ GPtrArray *array;
+ GHashTable *hash;
+};
+
+struct _GtkPrinterOptionSetClass
+{
+ GObjectClass parent_class;
+
+ void (*changed) (GtkPrinterOptionSet *option);
+
+
+ /* Padding for future expansion */
+ void (*_gtk_reserved1) (void);
+ void (*_gtk_reserved2) (void);
+ void (*_gtk_reserved3) (void);
+ void (*_gtk_reserved4) (void);
+};
+
+typedef void (*GtkPrinterOptionSetFunc) (GtkPrinterOption *option,
+ gpointer user_data);
+
+
+GDK_AVAILABLE_IN_ALL
+GType gtk_printer_option_set_get_type (void) G_GNUC_CONST;
+
+GDK_AVAILABLE_IN_ALL
+GtkPrinterOptionSet *gtk_printer_option_set_new (void);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_add (GtkPrinterOptionSet *set,
+ GtkPrinterOption *option);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_remove (GtkPrinterOptionSet *set,
+ GtkPrinterOption *option);
+GDK_AVAILABLE_IN_ALL
+GtkPrinterOption * gtk_printer_option_set_lookup (GtkPrinterOptionSet *set,
+ const char *name);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_foreach (GtkPrinterOptionSet *set,
+ GtkPrinterOptionSetFunc func,
+ gpointer user_data);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_clear_conflicts (GtkPrinterOptionSet *set);
+GDK_AVAILABLE_IN_ALL
+GList * gtk_printer_option_set_get_groups (GtkPrinterOptionSet *set);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_set_foreach_in_group (GtkPrinterOptionSet *set,
+ const char *group,
+ GtkPrinterOptionSetFunc func,
+ gpointer user_data);
+
+G_END_DECLS
+
#include "gtkprivate.h"
#include "gtkstringlist.h"
-#include "gtkprinteroptionwidget.h"
+#include "gtkprinteroptionwidgetprivate.h"
/* This defines the max file length that the file chooser
* button should display. The total length will be
+++ /dev/null
-/* GtkPrinterOptionWidget
- * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-#pragma once
-
-#include "gtkprinteroption.h"
-#include "gtkbox.h"
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_PRINTER_OPTION_WIDGET (gtk_printer_option_widget_get_type ())
-#define GTK_PRINTER_OPTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidget))
-#define GTK_PRINTER_OPTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidgetClass))
-#define GTK_IS_PRINTER_OPTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET))
-#define GTK_IS_PRINTER_OPTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER_OPTION_WIDGET))
-#define GTK_PRINTER_OPTION_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidgetClass))
-
-
-typedef struct _GtkPrinterOptionWidget GtkPrinterOptionWidget;
-typedef struct _GtkPrinterOptionWidgetClass GtkPrinterOptionWidgetClass;
-typedef struct GtkPrinterOptionWidgetPrivate GtkPrinterOptionWidgetPrivate;
-
-struct _GtkPrinterOptionWidget
-{
- GtkBox parent_instance;
-
- GtkPrinterOptionWidgetPrivate *priv;
-};
-
-struct _GtkPrinterOptionWidgetClass
-{
- GtkBoxClass parent_class;
-
- void (*changed) (GtkPrinterOptionWidget *widget);
-
- /* Padding for future expansion */
- void (*_gtk_reserved1) (void);
- void (*_gtk_reserved2) (void);
- void (*_gtk_reserved3) (void);
- void (*_gtk_reserved4) (void);
-};
-
-GDK_AVAILABLE_IN_ALL
-GType gtk_printer_option_widget_get_type (void) G_GNUC_CONST;
-
-GDK_AVAILABLE_IN_ALL
-GtkWidget *gtk_printer_option_widget_new (GtkPrinterOption *source);
-GDK_AVAILABLE_IN_ALL
-void gtk_printer_option_widget_set_source (GtkPrinterOptionWidget *setting,
- GtkPrinterOption *source);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_printer_option_widget_has_external_label (GtkPrinterOptionWidget *setting);
-GDK_AVAILABLE_IN_ALL
-GtkWidget *gtk_printer_option_widget_get_external_label (GtkPrinterOptionWidget *setting);
-GDK_AVAILABLE_IN_ALL
-const char *gtk_printer_option_widget_get_value (GtkPrinterOptionWidget *setting);
-
-G_END_DECLS
-
--- /dev/null
+/* GtkPrinterOptionWidget
+ * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+#pragma once
+
+#include "gtkprinteroptionprivate.h"
+#include "gtkbox.h"
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_PRINTER_OPTION_WIDGET (gtk_printer_option_widget_get_type ())
+#define GTK_PRINTER_OPTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidget))
+#define GTK_PRINTER_OPTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidgetClass))
+#define GTK_IS_PRINTER_OPTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET))
+#define GTK_IS_PRINTER_OPTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER_OPTION_WIDGET))
+#define GTK_PRINTER_OPTION_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidgetClass))
+
+
+typedef struct _GtkPrinterOptionWidget GtkPrinterOptionWidget;
+typedef struct _GtkPrinterOptionWidgetClass GtkPrinterOptionWidgetClass;
+typedef struct GtkPrinterOptionWidgetPrivate GtkPrinterOptionWidgetPrivate;
+
+struct _GtkPrinterOptionWidget
+{
+ GtkBox parent_instance;
+
+ GtkPrinterOptionWidgetPrivate *priv;
+};
+
+struct _GtkPrinterOptionWidgetClass
+{
+ GtkBoxClass parent_class;
+
+ void (*changed) (GtkPrinterOptionWidget *widget);
+
+ /* Padding for future expansion */
+ void (*_gtk_reserved1) (void);
+ void (*_gtk_reserved2) (void);
+ void (*_gtk_reserved3) (void);
+ void (*_gtk_reserved4) (void);
+};
+
+GDK_AVAILABLE_IN_ALL
+GType gtk_printer_option_widget_get_type (void) G_GNUC_CONST;
+
+GDK_AVAILABLE_IN_ALL
+GtkWidget *gtk_printer_option_widget_new (GtkPrinterOption *source);
+GDK_AVAILABLE_IN_ALL
+void gtk_printer_option_widget_set_source (GtkPrinterOptionWidget *setting,
+ GtkPrinterOption *source);
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_printer_option_widget_has_external_label (GtkPrinterOptionWidget *setting);
+GDK_AVAILABLE_IN_ALL
+GtkWidget *gtk_printer_option_widget_get_external_label (GtkPrinterOptionWidget *setting);
+GDK_AVAILABLE_IN_ALL
+const char *gtk_printer_option_widget_get_value (GtkPrinterOptionWidget *setting);
+
+G_END_DECLS
+
#include <gtk/gtk.h>
#include <gtk/gtkunixprint.h>
-#include "gtkprinteroptionset.h"
+#include "gtkprinteroptionsetprivate.h"
G_BEGIN_DECLS
#include <glib/gprintf.h>
#include "gtkprintsettings.h"
-#include "gtkprintutils.h"
+#include "gtkprintutilsprivate.h"
#include "gtktypebuiltins.h"
#include "gtkwidget.h"
#include "gtkcustompaperunixdialog.h"
#include "gtkprintbackendprivate.h"
#include "gtkprinterprivate.h"
-#include "gtkprinteroptionwidget.h"
-#include "gtkprintutils.h"
+#include "gtkprinteroptionwidgetprivate.h"
+#include "gtkprintutilsprivate.h"
#include "gtkspinbutton.h"
#include "gtkimage.h"
*/
#include "config.h"
-#include "gtkprintutils.h"
+#include "gtkprintutilsprivate.h"
double
_gtk_print_convert_to_mm (double len,
+++ /dev/null
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2006, Red Hat, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#include <gdk/gdk.h>
-#include "gtkenums.h"
-
-
-G_BEGIN_DECLS
-
-#define MM_PER_INCH 25.4
-#define POINTS_PER_INCH 72
-
-double _gtk_print_convert_to_mm (double len, GtkUnit unit);
-double _gtk_print_convert_from_mm (double len, GtkUnit unit);
-
-G_END_DECLS
-
--- /dev/null
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2006, Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include <gdk/gdk.h>
+#include "gtkenums.h"
+
+
+G_BEGIN_DECLS
+
+#define MM_PER_INCH 25.4
+#define POINTS_PER_INCH 72
+
+double _gtk_print_convert_to_mm (double len, GtkUnit unit);
+double _gtk_print_convert_from_mm (double len, GtkUnit unit);
+
+G_END_DECLS
+
#include "gtkcupssecretsutils.h"
#include "gtkprintbackendutils.h"
-#include <gtkprintutils.h>
+#include <gtkprintutilsprivate.h>
#include "gtkprivate.h"
#ifdef HAVE_COLORD