static GList *
djvu_document_links_get_links (EvDocumentLinks *document_links,
- gint page)
+ EvPage *page)
{
- return djvu_links_get_links (document_links, page, SCALE_FACTOR);
+ return djvu_links_get_links (document_links, page->index, SCALE_FACTOR);
}
static void
static GList *
pdf_document_links_get_links (EvDocumentLinks *document_links,
- gint page)
+ EvPage *page)
{
PdfDocument *pdf_document;
PopplerPage *poppler_page;
double height;
pdf_document = PDF_DOCUMENT (document_links);
- poppler_page = poppler_document_get_page (pdf_document->document,
- page);
+ poppler_page = POPPLER_PAGE (page->backend_page);
mapping_list = poppler_page_get_link_mapping (poppler_page);
poppler_page_get_size (poppler_page, NULL, &height);
}
poppler_page_free_link_mapping (mapping_list);
- g_object_unref (poppler_page);
return g_list_reverse (retval);
}
GList *
ev_document_links_get_links (EvDocumentLinks *document_links,
- gint page)
+ EvPage *page)
{
EvDocumentLinksIface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
GList *retval;
gboolean (* has_document_links) (EvDocumentLinks *document_links);
GtkTreeModel *(* get_links_model) (EvDocumentLinks *document_links);
GList *(* get_links) (EvDocumentLinks *document_links,
- gint page);
+ EvPage *page);
EvLinkDest *(* find_link_dest) (EvDocumentLinks *document_links,
const gchar *link_name);
};
GtkTreeModel *ev_document_links_get_links_model (EvDocumentLinks *document_links);
GList *ev_document_links_get_links (EvDocumentLinks *document_links,
- gint page);
+ EvPage *page);
EvLinkDest *ev_document_links_find_link_dest (EvDocumentLinks *document_links,
const gchar *link_name);
ev_selection_get_selection_map (EV_SELECTION (job->document), ev_page);
if ((job_pd->flags & EV_PAGE_DATA_INCLUDE_LINKS) && EV_IS_DOCUMENT_LINKS (job->document))
job_pd->link_mapping =
- ev_document_links_get_links (EV_DOCUMENT_LINKS (job->document), job_pd->page);
+ ev_document_links_get_links (EV_DOCUMENT_LINKS (job->document), ev_page);
if ((job_pd->flags & EV_PAGE_DATA_INCLUDE_FORMS) && EV_IS_DOCUMENT_FORMS (job->document))
job_pd->form_field_mapping =
ev_document_forms_get_form_fields (EV_DOCUMENT_FORMS (job->document),