2 * this file is part of evince, a gnome document viewer
4 * Copyright (C) 2004 Red Hat, Inc.
7 * Jonathan Blandford <jrb@alum.mit.edu>
9 * Evince is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * Evince is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
25 #error "Only <evince-document.h> can be included directly."
28 #ifndef EV_DOCUMENT_LINKS_H
29 #define EV_DOCUMENT_LINKS_H
31 #include <glib-object.h>
35 #include "ev-document.h"
37 #include "ev-mapping-list.h"
41 #define EV_TYPE_DOCUMENT_LINKS (ev_document_links_get_type ())
42 #define EV_DOCUMENT_LINKS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinks))
43 #define EV_DOCUMENT_LINKS_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface))
44 #define EV_IS_DOCUMENT_LINKS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_LINKS))
45 #define EV_IS_DOCUMENT_LINKS_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_LINKS))
46 #define EV_DOCUMENT_LINKS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface))
48 typedef struct _EvDocumentLinks EvDocumentLinks;
49 typedef struct _EvDocumentLinksInterface EvDocumentLinksInterface;
52 EV_DOCUMENT_LINKS_COLUMN_MARKUP,
53 EV_DOCUMENT_LINKS_COLUMN_LINK,
54 EV_DOCUMENT_LINKS_COLUMN_EXPAND,
55 EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL,
56 EV_DOCUMENT_LINKS_COLUMN_NUM_COLUMNS
59 struct _EvDocumentLinksInterface
61 GTypeInterface base_iface;
64 gboolean (* has_document_links) (EvDocumentLinks *document_links);
65 GtkTreeModel *(* get_links_model) (EvDocumentLinks *document_links);
66 EvMappingList *(* get_links) (EvDocumentLinks *document_links,
68 EvLinkDest *(* find_link_dest) (EvDocumentLinks *document_links,
69 const gchar *link_name);
70 gint (* find_link_page) (EvDocumentLinks *document_links,
71 const gchar *link_name);
74 GType ev_document_links_get_type (void) G_GNUC_CONST;
75 gboolean ev_document_links_has_document_links (EvDocumentLinks *document_links);
76 GtkTreeModel *ev_document_links_get_links_model (EvDocumentLinks *document_links);
78 EvMappingList *ev_document_links_get_links (EvDocumentLinks *document_links,
80 EvLinkDest *ev_document_links_find_link_dest (EvDocumentLinks *document_links,
81 const gchar *link_name);
82 gint ev_document_links_find_link_page (EvDocumentLinks *document_links,
83 const gchar *link_name);
84 gint ev_document_links_get_dest_page (EvDocumentLinks *document_links,
86 gchar *ev_document_links_get_dest_page_label (EvDocumentLinks *document_links,
88 gint ev_document_links_get_link_page (EvDocumentLinks *document_links,
90 gchar *ev_document_links_get_link_page_label (EvDocumentLinks *document_links,