summaryrefslogtreecommitdiff
path: root/gtk/gtkprintcontext.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/gtkprintcontext.h
parentcaf6c4196d0843a5112ea5a1e43677b68738a7a5 (diff)
downloadgdk-pixbuf-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/gtkprintcontext.h')
-rw-r--r--gtk/gtkprintcontext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkprintcontext.h b/gtk/gtkprintcontext.h
index 0ce480087..936cae4f4 100644
--- a/gtk/gtkprintcontext.h
+++ b/gtk/gtkprintcontext.h
@@ -51,6 +51,11 @@ PangoFontMap *gtk_print_context_get_pango_fontmap (GtkPrintContext *context);
PangoContext *gtk_print_context_create_pango_context (GtkPrintContext *context);
PangoLayout *gtk_print_context_create_pango_layout (GtkPrintContext *context);
+/* Needed for preview implementations */
+void gtk_print_context_set_cairo_context (GtkPrintContext *context,
+ cairo_t *cr,
+ double dpi_x,
+ double dpi_y);
G_END_DECLS