2007-10-10 [colin] 3.0.2cvs52
[claws.git] / src / printing.h
index 788780695ed5346cbbedb99968e0270bcecce679..ce48f9cd3de5c5fbe1679dd82e6211e651cd6f98 100644 (file)
 
 #if GTK_CHECK_VERSION(2,10,0) && !defined(USE_GNOMEPRINT)
 
+typedef struct _PrintData              PrintData;
+
+typedef struct _PrintRenderer {
+       PangoContext *(*get_pango_context)(gpointer renderer_data);
+       gpointer (*get_data_to_print)(gpointer renderer_data, gint sel_start, gint sel_end);
+       void (*cb_begin_print)(GtkPrintOperation *op, GtkPrintContext *context,
+                               gpointer user_data);
+       void (*cb_draw_page)(GtkPrintOperation* op, GtkPrintContext*, gint page_nr,
+                            gpointer user_data);
+} PrintRenderer;
+
 void printing_print(GtkTextView*, GtkWindow*, gint, gint);
+void printing_print_full(GtkWindow *parent, PrintRenderer *renderer, gpointer renderer_data, 
+                        gint sel_start, gint sel_end);
 void printing_page_setup(GtkWindow*);
+gpointer printing_get_renderer_data(PrintData *print_data);
+gdouble  printing_get_zoom(PrintData *print_data);
+void     printing_set_n_pages(PrintData *print_data, gint n_pages);
 
 #endif /* GTK+ >= 2.10.0 */