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.h File Reference
#include <glib-object.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "ev-document.h"
#include "ev-link.h"
#include "ev-mapping-list.h"
+ Include dependency graph for ev-document-links.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvDocumentLinksInterface
 

Macros

#define EV_TYPE_DOCUMENT_LINKS   (ev_document_links_get_type ())
 
#define EV_DOCUMENT_LINKS(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinks))
 
#define EV_DOCUMENT_LINKS_IFACE(k)   (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface))
 
#define EV_IS_DOCUMENT_LINKS(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_LINKS))
 
#define EV_IS_DOCUMENT_LINKS_IFACE(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_LINKS))
 
#define EV_DOCUMENT_LINKS_GET_IFACE(inst)   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface))
 

Typedefs

typedef struct _EvDocumentLinks EvDocumentLinks
 
typedef struct
_EvDocumentLinksInterface 
EvDocumentLinksInterface
 

Enumerations

enum  {
  EV_DOCUMENT_LINKS_COLUMN_MARKUP, EV_DOCUMENT_LINKS_COLUMN_LINK, EV_DOCUMENT_LINKS_COLUMN_EXPAND, EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL,
  EV_DOCUMENT_LINKS_COLUMN_NUM_COLUMNS
}
 

Functions

GType ev_document_links_get_type (void) G_GNUC_CONST
 
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)
 
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)
 

Macro Definition Documentation

#define EV_DOCUMENT_LINKS (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinks))

Definition at line 42 of file ev-document-links.h.

#define EV_DOCUMENT_LINKS_GET_IFACE (   inst)    (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface))

Definition at line 46 of file ev-document-links.h.

#define EV_DOCUMENT_LINKS_IFACE (   k)    (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface))

Definition at line 43 of file ev-document-links.h.

#define EV_IS_DOCUMENT_LINKS (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_LINKS))

Definition at line 44 of file ev-document-links.h.

#define EV_IS_DOCUMENT_LINKS_IFACE (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_LINKS))

Definition at line 45 of file ev-document-links.h.

#define EV_TYPE_DOCUMENT_LINKS   (ev_document_links_get_type ())

Definition at line 41 of file ev-document-links.h.

Typedef Documentation

typedef struct _EvDocumentLinks EvDocumentLinks

Definition at line 48 of file ev-document-links.h.

Definition at line 49 of file ev-document-links.h.

Enumeration Type Documentation

anonymous enum
Enumerator
EV_DOCUMENT_LINKS_COLUMN_MARKUP 
EV_DOCUMENT_LINKS_COLUMN_LINK 
EV_DOCUMENT_LINKS_COLUMN_EXPAND 
EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL 
EV_DOCUMENT_LINKS_COLUMN_NUM_COLUMNS 

Definition at line 51 of file ev-document-links.h.

Function Documentation

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:

GType ev_document_links_get_type ( void  )
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: