~ubuntu-branches/ubuntu/oneiric/evince/oneiric-updates

« back to all changes in this revision

Viewing changes to libdocument/ev-document-links.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-01-10 19:35:11 UTC
  • mto: (1.3.1 experimental) (52.1.1 hardy-proposed)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: james.westby@ubuntu.com-20070110193511-yjrnndv8e8wv03yy
Tags: upstream-0.7.1
ImportĀ upstreamĀ versionĀ 0.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ev-document-links.h
 
2
 *  this file is part of evince, a gnome document viewer
 
3
 * 
 
4
 * Copyright (C) 2004 Red Hat, Inc.
 
5
 *
 
6
 * Author:
 
7
 *   Jonathan Blandford <jrb@alum.mit.edu>
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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.
 
22
 */
 
23
 
 
24
#ifndef EV_DOCUMENT_LINKS_H
 
25
#define EV_DOCUMENT_LINKS_H
 
26
 
 
27
#include <glib-object.h>
 
28
#include <glib.h>
 
29
#include <gtk/gtk.h>
 
30
 
 
31
#include "ev-document.h"
 
32
#include "ev-link.h"
 
33
 
 
34
G_BEGIN_DECLS
 
35
 
 
36
 
 
37
#define EV_TYPE_DOCUMENT_LINKS            (ev_document_links_get_type ())
 
38
#define EV_DOCUMENT_LINKS(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinks))
 
39
#define EV_DOCUMENT_LINKS_IFACE(k)        (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksIface))
 
40
#define EV_IS_DOCUMENT_LINKS(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_LINKS))
 
41
#define EV_IS_DOCUMENT_LINKS_IFACE(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_LINKS))
 
42
#define EV_DOCUMENT_LINKS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksIface))
 
43
 
 
44
typedef struct _EvDocumentLinks      EvDocumentLinks;
 
45
typedef struct _EvDocumentLinksIface EvDocumentLinksIface;
 
46
 
 
47
enum {
 
48
        EV_DOCUMENT_LINKS_COLUMN_MARKUP,
 
49
        EV_DOCUMENT_LINKS_COLUMN_LINK,
 
50
        EV_DOCUMENT_LINKS_COLUMN_EXPAND,
 
51
        EV_DOCUMENT_LINKS_COLUMN_NUM_COLUMNS
 
52
};
 
53
 
 
54
struct _EvDocumentLinksIface
 
55
{
 
56
        GTypeInterface base_iface;
 
57
 
 
58
        /* Methods  */
 
59
        gboolean      (* has_document_links) (EvDocumentLinks *document_links);
 
60
        GtkTreeModel *(* get_links_model)    (EvDocumentLinks *document_links);
 
61
        GList        *(* get_links)          (EvDocumentLinks *document_links,
 
62
                                              gint             page);
 
63
        EvLinkDest   *(* find_link_dest)     (EvDocumentLinks *document_links,
 
64
                                              const gchar     *link_name);
 
65
};
 
66
 
 
67
GType         ev_document_links_get_type           (void);
 
68
gboolean      ev_document_links_has_document_links (EvDocumentLinks *document_links);
 
69
GtkTreeModel *ev_document_links_get_links_model    (EvDocumentLinks *document_links);
 
70
 
 
71
GList        *ev_document_links_get_links          (EvDocumentLinks *document_links,
 
72
                                                    gint             page);
 
73
EvLinkDest   *ev_document_links_find_link_dest     (EvDocumentLinks *document_links,
 
74
                                                    const gchar     *link_name);
 
75
 
 
76
G_END_DECLS
 
77
 
 
78
#endif