X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-jobs.h;h=084ed6c0e109ada7740156c61944d9e4fae24f11;hb=c12e2f7c2d59af4e4f5fddec97f24970e6d9d5c4;hp=779c3736dbd9880913dab41e25b7edb80d864f4d;hpb=ca679febd93eef2a4a6afd99cbd7aee8ab537443;p=evince.git diff --git a/shell/ev-jobs.h b/shell/ev-jobs.h index 779c3736..084ed6c0 100644 --- a/shell/ev-jobs.h +++ b/shell/ev-jobs.h @@ -23,6 +23,7 @@ #include #include "ev-document.h" #include "ev-window.h" +#include "ev-selection.h" G_BEGIN_DECLS @@ -119,20 +120,24 @@ struct _EvJobRender EvJob parent; EvRenderContext *rc; + gboolean page_ready; gint target_width; gint target_height; - GdkPixbuf *pixbuf; + cairo_surface_t *surface; GList *link_mapping; GdkRegion *text_mapping; GList *image_mapping; + GList *form_field_mapping; - GdkPixbuf *selection; + cairo_surface_t *selection; GdkRegion *selection_region; EvRectangle selection_points; + EvSelectionStyle selection_style; GdkColor base; GdkColor text; + gint include_forms : 1; gint include_links : 1; gint include_text : 1; gint include_selection : 1; @@ -142,15 +147,15 @@ struct _EvJobRender struct _EvJobRenderClass { EvJobClass parent_class; + + void (* page_ready) (EvJobRender *job); }; struct _EvJobThumbnail { EvJob parent; - gint page; - gint rotation; - gint requested_width; + EvRenderContext *rc; GdkPixbuf *thumbnail; }; @@ -196,6 +201,7 @@ struct _EvJobPrint gint n_ranges; EvPrintPageSet page_set; gint copies; + gint pages_per_sheet; gboolean collate; gboolean reverse; gdouble width; @@ -223,8 +229,10 @@ EvJob *ev_job_render_new (EvDocument *document, gint width, gint height, EvRectangle *selection_points, + EvSelectionStyle selection_style, GdkColor *text, GdkColor *base, + gboolean include_forms, gboolean include_links, gboolean include_images, gboolean include_text, @@ -233,11 +241,9 @@ void ev_job_render_run (EvJobRender *thumbnail); /* EvJobThumbnail */ GType ev_job_thumbnail_get_type (void) G_GNUC_CONST; -EvJob *ev_job_thumbnail_new (EvDocument *document, - gint page, - int rotation, - gint requested_width); -void ev_job_thumbnail_run (EvJobThumbnail *thumbnail); +EvJob *ev_job_thumbnail_new (EvDocument *document, + EvRenderContext *rc); +void ev_job_thumbnail_run (EvJobThumbnail *thumbnail); /* EvJobFonts */ GType ev_job_fonts_get_type (void) G_GNUC_CONST; @@ -262,6 +268,7 @@ EvJob *ev_job_print_new (EvDocument *document, EvPrintRange *ranges, gint n_ranges, EvPrintPageSet page_set, + gint pages_per_sheet, gint copies, gdouble collate, gdouble reverse);