#include "ev-document-links.h"
#include "djvu-document.h"
#include <glib.h>
Go to the source code of this file.
Definition at line 424 of file djvu-links.c.
433 g_warning (
"DjvuLibre error: unknown link destination %s", link_name);
gint djvu_links_find_link_page |
( |
EvDocumentLinks * |
document_links, |
|
|
const gchar * |
link_name |
|
) |
| |
Definition at line 440 of file djvu-links.c.
449 g_warning (
"DjvuLibre error: unknown link destination %s", link_name);
Definition at line 385 of file djvu-links.c.
390 GList *retval = NULL;
391 miniexp_t page_annotations = miniexp_nil;
392 miniexp_t *hyperlinks = NULL, *iter = NULL;
394 ddjvu_pageinfo_t page_info;
396 while ((page_annotations = ddjvu_document_get_pageanno (djvu_document->
d_document, page)) == miniexp_dummy)
399 while (ddjvu_document_get_pageinfo (djvu_document->
d_document, page, &page_info) < DDJVU_JOB_OK)
402 if (page_annotations) {
403 hyperlinks = ddjvu_anno_get_hyperlinks (page_annotations);
405 for (iter = hyperlinks; *iter; ++iter) {
407 if (ev_link_mapping) {
408 ev_link_mapping->
area.
x1 *= scale_factor;
409 ev_link_mapping->
area.
x2 *= scale_factor;
410 ev_link_mapping->
area.
y1 *= scale_factor;
411 ev_link_mapping->
area.
y2 *= scale_factor;
412 retval = g_list_prepend (retval, ev_link_mapping);
417 ddjvu_miniexp_release (djvu_document->
d_document, page_annotations);
GtkTreeModel* djvu_links_get_links_model |
( |
EvDocumentLinks * |
document_links) | |
|
Definition at line 456 of file djvu-links.c.
459 GtkTreeModel *model = NULL;
460 miniexp_t outline = miniexp_nil;
462 while ((outline = ddjvu_document_get_outline (djvu_document->
d_document)) == miniexp_dummy)
471 build_tree (djvu_document, model, NULL, outline);
473 ddjvu_miniexp_release (djvu_document->
d_document, outline);
Definition at line 368 of file djvu-links.c.
373 while ((outline = ddjvu_document_get_outline (djvu_document->
d_document)) == miniexp_dummy)
377 ddjvu_miniexp_release (djvu_document->
d_document, outline);