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-history.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005 Marco Pesenti Gritti
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA..
17  *
18  */
19 
20 #ifndef EV_HISTORY_H
21 #define EV_HISTORY_H
22 
23 #include <glib-object.h>
24 #include <evince-document.h>
25 #include <evince-view.h>
26 
27 G_BEGIN_DECLS
28 
29 #define EV_TYPE_HISTORY (ev_history_get_type ())
30 #define EV_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_HISTORY, EvHistory))
31 #define EV_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_HISTORY, EvHistoryClass))
32 #define EV_IS_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_HISTORY))
33 #define EV_IS_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_HISTORY))
34 #define EV_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_HISTORY, EvHistoryClass))
35 
36 typedef struct _EvHistory EvHistory;
39 
40 struct _EvHistory
41 {
42  GObject parent;
43 
44  /*< private >*/
46 };
47 
49 {
50  GObjectClass parent_class;
51 
52  void (* changed) (EvHistory *history);
53  void (* activate_link) (EvHistory *history,
54  EvLink *link);
55 };
56 
57 GType ev_history_get_type (void);
59 void ev_history_add_link (EvHistory *history,
60  EvLink *link);
61 gboolean ev_history_can_go_back (EvHistory *history);
62 void ev_history_go_back (EvHistory *history);
63 gboolean ev_history_can_go_forward (EvHistory *history);
64 void ev_history_go_forward (EvHistory *history);
65 gboolean ev_history_go_to_link (EvHistory *history,
66  EvLink *link);
67 GList *ev_history_get_back_list (EvHistory *history);
68 GList *ev_history_get_forward_list (EvHistory *history);
69 
70 void ev_history_freeze (EvHistory *history);
71 void ev_history_thaw (EvHistory *history);
72 gboolean ev_history_is_frozen (EvHistory *history);
73 
74 G_END_DECLS
75 
76 #endif