1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
3 * Copyright (C) 2005 Marco Pesenti Gritti
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)
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.
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.
21 #ifndef EV_SIDEBAR_PAGE_H
22 #define EV_SIDEBAR_PAGE_H
24 #include <glib-object.h>
27 #include "ev-document.h"
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))
38 typedef struct _EvSidebarPage EvSidebarPage;
39 typedef struct _EvSidebarPageIface EvSidebarPageIface;
41 struct _EvSidebarPageIface
43 GTypeInterface base_iface;
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);
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);
63 #endif /* EV_SIDEBAR_PAGE */