summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-private.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2006-06-02 15:16:13 +0000
committerAlexander Larsson <alexl@src.gnome.org>2006-06-02 15:16:13 +0000
commitfad69ba06c957dfe192d6a38613fae58cf157be9 (patch)
treede7aca9f0f8f203d5a7ad2d93d35eba5964e1328 /gtk/gtkprintoperation-private.h
parentcaf6c4196d0843a5112ea5a1e43677b68738a7a5 (diff)
downloadgtk+-fad69ba06c957dfe192d6a38613fae58cf157be9.tar.gz
Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded
2006-06-02 Alexander Larsson <alexl@redhat.com> * gtk/Makefile.am: Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded for now. * gtk/gtkmarshalers.list: Add BOOLEAN:OBJECT,OBJECT,OBJECT * gtk/gtkprintbackend.c: Add preview command property. * gtk/gtkprintcontext.[ch]: Make less dependent on PrintOperation for output settings Externally set cairo_t and dpi. Resettable. Create fontmap without metrics hinting (so that print preview text layout doesn't depend on zoom level). * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.[ch]: Initial work on print preview API and default implementation using an external preview app. * gtk/gtkprintoperation-win32.c: Some needed updates. Not done, needs more work. * gtk/gtkprintoperationpreview.[ch]: New interface used in print preview api. * gtk/gtkprintunixdialog.c: Add print preview dialog. * tests/print-editor.c: Test using an custom print preview widget.
Diffstat (limited to 'gtk/gtkprintoperation-private.h')
-rw-r--r--gtk/gtkprintoperation-private.h36
1 files changed, 25 insertions, 11 deletions
diff --git a/gtk/gtkprintoperation-private.h b/gtk/gtkprintoperation-private.h
index c44f1b4923..7edfc0cdce 100644
--- a/gtk/gtkprintoperation-private.h
+++ b/gtk/gtkprintoperation-private.h
@@ -46,9 +46,11 @@ struct _GtkPrintOperationPrivate
guint print_pages_idle_id;
guint show_progress_timeout_id;
+ GtkPrintContext *print_context;
+
/* Data for the print job: */
- cairo_surface_t *surface;
- gdouble dpi_x, dpi_y;
+ /* cairo_surface_t *surface; */
+ /* gdouble dpi_x, dpi_y; */
GtkPrintPages print_pages;
GtkPageRange *page_ranges;
@@ -78,17 +80,29 @@ struct _GtkPrintOperationPrivate
gboolean cancelled);
};
-GtkPrintOperationResult _gtk_print_operation_platform_backend_run_dialog (GtkPrintOperation *operation,
- GtkWindow *parent,
- gboolean *do_print,
- GError **error);
typedef void (* GtkPrintOperationPrintFunc) (GtkPrintOperation *op,
- GtkWindow *parent);
-
-void _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation *op,
- GtkWindow *parent,
- GtkPrintOperationPrintFunc print_cb);
+ GtkWindow *parent,
+ gboolean is_preview);
+
+GtkPrintOperationResult _gtk_print_operation_platform_backend_run_dialog (GtkPrintOperation *operation,
+ GtkWindow *parent,
+ gboolean *do_print,
+ GError **error);
+void _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation *op,
+ GtkWindow *parent,
+ GtkPrintOperationPrintFunc print_cb);
+void _gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
+ GtkWindow *parent,
+ const char *filename);
+cairo_surface_t * _gtk_print_operation_platform_backend_create_preview_surface (GtkPrintOperation *op,
+ GtkPageSetup *page_setup,
+ gdouble *dpi_x,
+ gdouble *dpi_y,
+ const gchar *target);
+void _gtk_print_operation_platform_backend_resize_preview_surface (GtkPrintOperation *op,
+ GtkPageSetup *page_setup,
+ cairo_surface_t *surface);
void _gtk_print_operation_set_status (GtkPrintOperation *op,
GtkPrintStatus status,