1 /* ev-document-layers.c
2 * this file is part of evince, a gnome document_links viewer
4 * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org>
6 * Evince is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * Evince is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
23 #include "ev-document-layers.h"
24 #include "ev-document.h"
26 EV_DEFINE_INTERFACE (EvDocumentLayers, ev_document_layers, 0)
29 ev_document_layers_class_init (EvDocumentLayersIface *klass)
34 ev_document_layers_has_layers (EvDocumentLayers *document_layers)
36 EvDocumentLayersIface *iface = EV_DOCUMENT_LAYERS_GET_IFACE (document_layers);
38 return iface->has_layers (document_layers);
42 ev_document_layers_get_layers (EvDocumentLayers *document_layers)
44 EvDocumentLayersIface *iface = EV_DOCUMENT_LAYERS_GET_IFACE (document_layers);
46 return iface->get_layers (document_layers);
50 ev_document_layers_show_layer (EvDocumentLayers *document_layers,
53 EvDocumentLayersIface *iface = EV_DOCUMENT_LAYERS_GET_IFACE (document_layers);
55 iface->show_layer (document_layers, layer);
59 ev_document_layers_hide_layer (EvDocumentLayers *document_layers,
62 EvDocumentLayersIface *iface = EV_DOCUMENT_LAYERS_GET_IFACE (document_layers);
64 iface->hide_layer (document_layers, layer);
68 ev_document_layers_layer_is_visible (EvDocumentLayers *document_layers,
71 EvDocumentLayersIface *iface = EV_DOCUMENT_LAYERS_GET_IFACE (document_layers);
73 return iface->layer_is_visible (document_layers, layer);