From 0dd0c92a0acb3d4aaecb7fd56e6ca71e89fef54a Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 12 May 2009 09:04:14 +0000 Subject: [libdocument] Add annotations interface --- (limited to 'libdocument/ev-document-annotations.c') diff --git a/libdocument/ev-document-annotations.c b/libdocument/ev-document-annotations.c new file mode 100644 index 0000000..f42ae7d --- /dev/null +++ b/libdocument/ev-document-annotations.c @@ -0,0 +1,48 @@ +/* ev-document-annotations.c + * this file is part of evince, a gnome document viewer + * + * Copyright (C) 2009 Carlos Garcia Campos + * Copyright (C) 2007 IƱigo Martinez + * + * Evince is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Evince is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + */ + +#include "ev-document-annotations.h" + +EV_DEFINE_INTERFACE (EvDocumentAnnotations, ev_document_annotations, 0) + +static void +ev_document_annotations_class_init (EvDocumentAnnotationsIface *klass) +{ +} + +GList * +ev_document_annotations_get_annotations (EvDocumentAnnotations *document_annots, + EvPage *page) +{ + EvDocumentAnnotationsIface *iface = EV_DOCUMENT_ANNOTATIONS_GET_IFACE (document_annots); + + return iface->get_annotations (document_annots, page); +} + +void +ev_document_annotations_annotation_set_contents (EvDocumentAnnotations *document_annots, + EvAnnotation *annot, + const gchar *contents) +{ + EvDocumentAnnotationsIface *iface = EV_DOCUMENT_ANNOTATIONS_GET_IFACE (document_annots); + + iface->annotation_set_contents (document_annots, annot, contents); +} -- cgit v0.9.1