diff options
author | Jürg Billeter <j@bitron.ch> | 2005-07-24 05:31:19 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-07-24 05:31:19 +0800 |
commit | 057680fd0b25cc7bf90598f50bd2088ca4aa87ac (patch) | |
tree | f4580dd6c00b2707304b231a043502654e8aa4cd /embed/print-dialog.h | |
parent | 7c8cd0db552da2366754cd7616e3ae9baec3b33a (diff) | |
download | gsoc2013-epiphany-057680fd0b25cc7bf90598f50bd2088ca4aa87ac.tar gsoc2013-epiphany-057680fd0b25cc7bf90598f50bd2088ca4aa87ac.tar.gz gsoc2013-epiphany-057680fd0b25cc7bf90598f50bd2088ca4aa87ac.tar.bz2 gsoc2013-epiphany-057680fd0b25cc7bf90598f50bd2088ca4aa87ac.tar.lz gsoc2013-epiphany-057680fd0b25cc7bf90598f50bd2088ca4aa87ac.tar.xz gsoc2013-epiphany-057680fd0b25cc7bf90598f50bd2088ca4aa87ac.tar.zst gsoc2013-epiphany-057680fd0b25cc7bf90598f50bd2088ca4aa87ac.zip |
Use libgnomeprintui for the printing dialog and the paper part of the
2005-07-22 Jürg Billeter <j@bitron.ch>
* configure.ac:
* data/glade/print.glade:
* embed/mozilla/EphyUtils.cpp:
* embed/mozilla/EphyUtils.h:
* embed/mozilla/PrintingPromptService.cpp:
* embed/mozilla/PrintingPromptService.h:
* embed/print-dialog.c: (ephy_print_info_free),
(ephy_print_load_config_from_file),
(ephy_print_save_config_to_file), (ephy_print_get_print_info),
(ephy_print_dialog_response_cb), (ephy_print_do_print_idle_cb),
(ephy_print_do_print_and_free), (ephy_print_paper_selector_new),
(ephy_print_dialog_construct_range_page), (ephy_print_dialog_new),
(ephy_print_setup_dialog_new):
* embed/print-dialog.h:
Use libgnomeprintui for the printing dialog and the paper part of the
printing setup dialog. Fixes bug #141241, bug #163255 and bug #301730.
Diffstat (limited to 'embed/print-dialog.h')
-rw-r--r-- | embed/print-dialog.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/embed/print-dialog.h b/embed/print-dialog.h index 1ca09db8b..34452581d 100644 --- a/embed/print-dialog.h +++ b/embed/print-dialog.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2002 Jorn Baayen * Copyright (C) 2003 Christian Persch + * Copyright (C) 2005 Juerg Billeter * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,23 +30,25 @@ #include <glib.h> #include <gtk/gtkwidget.h> +/* for gnome_print_job_set_file */ +#define GNOME_PRINT_UNSTABLE_API +#include <libgnomeprint/gnome-print-config.h> +#include <libgnomeprintui/gnome-print-dialog.h> + G_BEGIN_DECLS typedef struct _EmbedPrintInfo { - gboolean print_to_file; - char *printer; - char *file; - char *paper; - int top_margin; - int bottom_margin; - int left_margin; - int right_margin; - int pages; + GnomePrintConfig *config; + + char *tempfile; + guint print_idle_id; + gulong cancel_print_id; + + GnomePrintDialogRangeFlags range; int from_page; int to_page; int frame_type; - int orientation; gboolean print_color; /* @@ -67,8 +70,8 @@ typedef struct _EmbedPrintInfo } EmbedPrintInfo; -EphyDialog *ephy_print_dialog_new (GtkWidget *parent, - EphyEmbed *embed); +GtkWidget *ephy_print_dialog_new (GtkWidget *parent, + EmbedPrintInfo *info); EphyDialog *ephy_print_setup_dialog_new (void); @@ -76,6 +79,10 @@ EmbedPrintInfo *ephy_print_get_print_info (void); void ephy_print_info_free (EmbedPrintInfo *info); +void ephy_print_do_print_and_free (EmbedPrintInfo *info); + +gboolean ephy_print_verify_postscript (GnomePrintDialog *print_dialog); + G_END_DECLS #endif |