diff options
author | Alexander Larsson <alexl@redhat.com> | 2006-06-02 15:16:13 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2006-06-02 15:16:13 +0000 |
commit | fad69ba06c957dfe192d6a38613fae58cf157be9 (patch) | |
tree | de7aca9f0f8f203d5a7ad2d93d35eba5964e1328 /gtk/gtkprintoperation.h | |
parent | caf6c4196d0843a5112ea5a1e43677b68738a7a5 (diff) | |
download | gdk-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/gtkprintoperation.h')
-rw-r--r-- | gtk/gtkprintoperation.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkprintoperation.h b/gtk/gtkprintoperation.h index 8f430850f..4b8443c06 100644 --- a/gtk/gtkprintoperation.h +++ b/gtk/gtkprintoperation.h @@ -29,6 +29,7 @@ #include "gtkpagesetup.h" #include "gtkprintsettings.h" #include "gtkprintcontext.h" +#include "gtkprintoperationpreview.h" G_BEGIN_DECLS @@ -84,7 +85,13 @@ struct _GtkPrintOperationClass GtkWidget *(*create_custom_widget) (GtkPrintOperation *operation); void (*custom_widget_apply) (GtkPrintOperation *operation, GtkWidget *widget); + + gboolean (*preview) (GtkPrintOperation *operation, + GtkPrintOperationPreview *preview, + GtkPrintContext *context, + GtkWindow *parent); + /* Padding for future expansion */ void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); @@ -98,7 +105,8 @@ struct _GtkPrintOperationClass typedef enum { GTK_PRINT_OPERATION_RESULT_ERROR, GTK_PRINT_OPERATION_RESULT_APPLY, - GTK_PRINT_OPERATION_RESULT_CANCEL + GTK_PRINT_OPERATION_RESULT_CANCEL, + GTK_PRINT_OPERATION_RESULT_PREVIEW } GtkPrintOperationResult; #define GTK_PRINT_ERROR gtk_print_error_quark () |