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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, 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"
40 #define EV_TYPE_DOCUMENT_LINKS (ev_document_links_get_type ())
41 #define EV_DOCUMENT_LINKS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinks))
42 #define EV_DOCUMENT_LINKS_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksIface))
43 #define EV_IS_DOCUMENT_LINKS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_LINKS))
44 #define EV_IS_DOCUMENT_LINKS_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_LINKS))
45 #define EV_DOCUMENT_LINKS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksIface))
47 typedef struct _EvDocumentLinks EvDocumentLinks;
48 typedef struct _EvDocumentLinksIface EvDocumentLinksIface;
51 EV_DOCUMENT_LINKS_COLUMN_MARKUP,
52 EV_DOCUMENT_LINKS_COLUMN_LINK,
53 EV_DOCUMENT_LINKS_COLUMN_EXPAND,
54 EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL,
55 EV_DOCUMENT_LINKS_COLUMN_NUM_COLUMNS
58 struct _EvDocumentLinksIface
60 GTypeInterface base_iface;
63 gboolean (* has_document_links) (EvDocumentLinks *document_links);
64 GtkTreeModel *(* get_links_model) (EvDocumentLinks *document_links);
65 GList *(* get_links) (EvDocumentLinks *document_links,
67 EvLinkDest *(* find_link_dest) (EvDocumentLinks *document_links,
68 const gchar *link_name);
71 GType ev_document_links_get_type (void);
72 gboolean ev_document_links_has_document_links (EvDocumentLinks *document_links);
73 GtkTreeModel *ev_document_links_get_links_model (EvDocumentLinks *document_links);
75 GList *ev_document_links_get_links (EvDocumentLinks *document_links,
77 EvLinkDest *ev_document_links_find_link_dest (EvDocumentLinks *document_links,
78 const gchar *link_name);