Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-document-links.c File Reference
#include "config.h"
#include "ev-document-links.h"
+ Include dependency graph for ev-document-links.c:

Go to the source code of this file.

Functions

static void ev_document_links_default_init (EvDocumentLinksInterface *klass)
 
gboolean ev_document_links_has_document_links (EvDocumentLinks *document_links)
 
GtkTreeModel * ev_document_links_get_links_model (EvDocumentLinks *document_links)
 
EvMappingListev_document_links_get_links (EvDocumentLinks *document_links, EvPage *page)
 
EvLinkDestev_document_links_find_link_dest (EvDocumentLinks *document_links, const gchar *link_name)
 
gint ev_document_links_find_link_page (EvDocumentLinks *document_links, const gchar *link_name)
 
gint ev_document_links_get_dest_page (EvDocumentLinks *document_links, EvLinkDest *dest)
 
gchar * ev_document_links_get_dest_page_label (EvDocumentLinks *document_links, EvLinkDest *dest)
 
static EvLinkDestget_link_dest (EvLink *link)
 
gint ev_document_links_get_link_page (EvDocumentLinks *document_links, EvLink *link)
 
gchar * ev_document_links_get_link_page_label (EvDocumentLinks *document_links, EvLink *link)
 

Function Documentation

static void ev_document_links_default_init ( EvDocumentLinksInterface klass)
static

Definition at line 31 of file ev-document-links.c.

32 {
33 }
EvLinkDest* ev_document_links_find_link_dest ( EvDocumentLinks document_links,
const gchar *  link_name 
)

ev_document_links_find_link_dest: : an EvDocumentLinks : the link name

Returns: (transfer full): an EvLinkDest

Definition at line 80 of file ev-document-links.c.

82 {
83  EvDocumentLinksInterface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
84  EvLinkDest *retval;
85 
87  retval = iface->find_link_dest (document_links, link_name);
89 
90  return retval;
91 }

+ Here is the caller graph for this function:

gint ev_document_links_find_link_page ( EvDocumentLinks document_links,
const gchar *  link_name 
)

Definition at line 94 of file ev-document-links.c.

96 {
97  EvDocumentLinksInterface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
98  gint retval;
99 
101  retval = iface->find_link_page (document_links, link_name);
103 
104  return retval;
105 }

+ Here is the caller graph for this function:

gint ev_document_links_get_dest_page ( EvDocumentLinks document_links,
EvLinkDest dest 
)

Definition at line 109 of file ev-document-links.c.

111 {
112  gint page = -1;
113 
114  switch (ev_link_dest_get_dest_type (dest)) {
116  page = ev_document_links_find_link_page (document_links,
118  }
119  break;
123  &page);
124  break;
125  default:
126  page = ev_link_dest_get_page (dest);
127  }
128 
129  return page;
130 }

+ Here is the caller graph for this function:

gchar* ev_document_links_get_dest_page_label ( EvDocumentLinks document_links,
EvLinkDest dest 
)

Definition at line 133 of file ev-document-links.c.

135 {
136  gchar *label = NULL;
137 
139  label = g_strdup (ev_link_dest_get_page_label (dest));
140  } else {
141  gint page;
142 
143  page = ev_document_links_get_dest_page (document_links, dest);
144  if (page != -1)
145  label = ev_document_get_page_label (EV_DOCUMENT (document_links),
146  page);
147  }
148 
149  return label;
150 }

+ Here is the caller graph for this function:

gint ev_document_links_get_link_page ( EvDocumentLinks document_links,
EvLink link 
)

Definition at line 169 of file ev-document-links.c.

171 {
172  EvLinkDest *dest;
173 
174  dest = get_link_dest (link);
175 
176  return dest ? ev_document_links_get_dest_page (document_links, dest) : -1;
177 }

+ Here is the caller graph for this function:

gchar* ev_document_links_get_link_page_label ( EvDocumentLinks document_links,
EvLink link 
)

Definition at line 180 of file ev-document-links.c.

182 {
183  EvLinkDest *dest;
184 
185  dest = get_link_dest (link);
186 
187  return dest ? ev_document_links_get_dest_page_label (document_links, dest) : NULL;
188 }

+ Here is the caller graph for this function:

EvMappingList* ev_document_links_get_links ( EvDocumentLinks document_links,
EvPage page 
)

Definition at line 64 of file ev-document-links.c.

66 {
67  EvDocumentLinksInterface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
68 
69  return iface->get_links (document_links, page);
70 }

+ Here is the caller graph for this function:

GtkTreeModel* ev_document_links_get_links_model ( EvDocumentLinks document_links)

ev_document_links_get_links_model: : an EvDocumentLinks

Returns: (transfer full): a #GtkTreeModel

Definition at line 53 of file ev-document-links.c.

54 {
55  EvDocumentLinksInterface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
56  GtkTreeModel *retval;
57 
58  retval = iface->get_links_model (document_links);
59 
60  return retval;
61 }

+ Here is the caller graph for this function:

gboolean ev_document_links_has_document_links ( EvDocumentLinks document_links)

Definition at line 36 of file ev-document-links.c.

37 {
38  EvDocumentLinksInterface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links);
39  gboolean retval;
40 
41  retval = iface->has_document_links (document_links);
42 
43  return retval;
44 }

+ Here is the caller graph for this function:

static EvLinkDest* get_link_dest ( EvLink link)
static

Definition at line 153 of file ev-document-links.c.

154 {
155  EvLinkAction *action;
156 
157  action = ev_link_get_action (link);
158  if (!action)
159  return NULL;
160 
161  if (ev_link_action_get_action_type (action) !=
163  return NULL;
164 
165  return ev_link_action_get_dest (action);
166 }

+ Here is the caller graph for this function: