]> www.fi.muni.cz Git - evince.git/blob - shell/ev-sidebar-page.h
Small rework of sidebar pages handling. See bug #164811 for details
[evince.git] / shell / ev-sidebar-page.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
2 /*
3  *  Copyright (C) 2005 Marco Pesenti Gritti
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  *
19  */
20
21 #ifndef EV_SIDEBAR_PAGE_H
22 #define EV_SIDEBAR_PAGE_H
23
24 #include <glib-object.h>
25 #include <glib.h>
26
27 #include "ev-document.h"
28
29 G_BEGIN_DECLS
30
31 #define EV_TYPE_SIDEBAR_PAGE            (ev_sidebar_page_get_type ())
32 #define EV_SIDEBAR_PAGE(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_SIDEBAR_PAGE, EvSidebarPage))
33 #define EV_SIDEBAR_PAGE_IFACE(k)        (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageIface))
34 #define EV_IS_SIDEBAR_PAGE(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_SIDEBAR_PAGE))
35 #define EV_IS_SIDEBAR_PAGE_IFACE(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_SIDEBAR_PAGE))
36 #define EV_SIDEBAR_PAGE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageIface))
37
38 typedef struct _EvSidebarPage     EvSidebarPage;
39 typedef struct _EvSidebarPageIface   EvSidebarPageIface;
40
41 struct _EvSidebarPageIface
42 {
43         GTypeInterface base_iface;
44
45         /* Methods  */
46         gboolean    (* support_document)  (EvSidebarPage   *sidebar_page,
47                                            EvDocument *document);
48         void        (* set_document)      (EvSidebarPage   *sidebar_page,
49                                            EvDocument *document);
50         const gchar* (* get_label)        (EvSidebarPage   *sidebar_page);
51 };
52
53 GType         ev_sidebar_page_get_type          (void);
54 gboolean      ev_sidebar_page_support_document  (EvSidebarPage    *sidebar_page,
55                                                  EvDocument *document);
56 void          ev_sidebar_page_set_document      (EvSidebarPage    *sidebar_page,
57                                                  EvDocument *document);
58 const gchar*  ev_sidebar_page_get_label         (EvSidebarPage *page);
59
60
61 G_END_DECLS
62
63 #endif /* EV_SIDEBAR_PAGE */