1 /* ev-document-annotations.c
2 * this file is part of evince, a gnome document viewer
4 * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org>
5 * Copyright (C) 2007 IƱigo Martinez <inigomartinez@gmail.com>
7 * Evince is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * Evince is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22 #include "ev-document-annotations.h"
24 EV_DEFINE_INTERFACE (EvDocumentAnnotations, ev_document_annotations, 0)
27 ev_document_annotations_class_init (EvDocumentAnnotationsIface *klass)
32 ev_document_annotations_get_annotations (EvDocumentAnnotations *document_annots,
35 EvDocumentAnnotationsIface *iface = EV_DOCUMENT_ANNOTATIONS_GET_IFACE (document_annots);
37 return iface->get_annotations (document_annots, page);
41 ev_document_annotations_annotation_set_contents (EvDocumentAnnotations *document_annots,
43 const gchar *contents)
45 EvDocumentAnnotationsIface *iface = EV_DOCUMENT_ANNOTATIONS_GET_IFACE (document_annots);
47 iface->annotation_set_contents (document_annots, annot, contents);