}
static GdkRegion *
-pdf_selection_get_selection_map (EvSelection *selection,
- EvRenderContext *rc)
+pdf_selection_get_selection_map (EvSelection *selection,
+ EvPage *page)
{
PopplerPage *poppler_page;
PopplerRectangle points;
GList *region;
GdkRegion *retval;
- poppler_page = POPPLER_PAGE (rc->page->backend_page);
+ poppler_page = POPPLER_PAGE (page->backend_page);
points.x1 = 0.0;
points.y1 = 0.0;
}
GdkRegion *
-ev_selection_get_selection_map (EvSelection *selection,
- EvRenderContext *rc)
+ev_selection_get_selection_map (EvSelection *selection,
+ EvPage *page)
{
EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
if (!iface->get_selection_map)
return NULL;
-
- return iface->get_selection_map (selection, rc);
+
+ return iface->get_selection_map (selection, page);
}
EvSelectionStyle style,
EvRectangle *points);
GdkRegion * (* get_selection_map) (EvSelection *selection,
- EvRenderContext *rc);
+ EvPage *page);
GdkRegion * (* get_selection_region) (EvSelection *selection,
EvRenderContext *rc,
EvSelectionStyle style,
EvSelectionStyle style,
EvRectangle *points);
GdkRegion *ev_selection_get_selection_map (EvSelection *selection,
- EvRenderContext *rc);
+ EvPage *page);
GdkRegion *ev_selection_get_selection_region (EvSelection *selection,
EvRenderContext *rc,
EvSelectionStyle style,
if ((job_render->flags & EV_RENDER_INCLUDE_TEXT) && EV_IS_SELECTION (job->document))
job_render->text_mapping =
- ev_selection_get_selection_map (EV_SELECTION (job->document), rc);
+ ev_selection_get_selection_map (EV_SELECTION (job->document), job_render->ev_page);
if ((job_render->flags & EV_RENDER_INCLUDE_LINKS) && EV_IS_DOCUMENT_LINKS (job->document))
job_render->link_mapping =
ev_document_links_get_links (EV_DOCUMENT_LINKS (job->document), job_render->page);