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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef EV_SIDEBAR_PAGE_H
22 #define EV_SIDEBAR_PAGE_H
24 #include <glib-object.h>
27 #include "ev-document.h"
28 #include "ev-document-model.h"
32 #define EV_TYPE_SIDEBAR_PAGE (ev_sidebar_page_get_type ())
33 #define EV_SIDEBAR_PAGE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_SIDEBAR_PAGE, EvSidebarPage))
34 #define EV_SIDEBAR_PAGE_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageInterface))
35 #define EV_IS_SIDEBAR_PAGE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_SIDEBAR_PAGE))
36 #define EV_IS_SIDEBAR_PAGE_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_SIDEBAR_PAGE))
37 #define EV_SIDEBAR_PAGE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageInterface))
39 typedef struct _EvSidebarPage EvSidebarPage;
40 typedef struct _EvSidebarPageInterface EvSidebarPageInterface;
42 struct _EvSidebarPageInterface
44 GTypeInterface base_iface;
47 gboolean (* support_document) (EvSidebarPage *sidebar_page,
48 EvDocument *document);
49 void (* set_model) (EvSidebarPage *sidebar_page,
50 EvDocumentModel *model);
51 const gchar*(* get_label) (EvSidebarPage *sidebar_page);
54 GType ev_sidebar_page_get_type (void) G_GNUC_CONST;
55 gboolean ev_sidebar_page_support_document (EvSidebarPage *sidebar_page,
56 EvDocument *document);
57 void ev_sidebar_page_set_model (EvSidebarPage *sidebar_page,
58 EvDocumentModel *model);
59 const gchar* ev_sidebar_page_get_label (EvSidebarPage *page);
64 #endif /* EV_SIDEBAR_PAGE */