diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-05-12 09:04:14 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-05-12 09:04:14 (GMT) |
commit | 0dd0c92a0acb3d4aaecb7fd56e6ca71e89fef54a (patch) | |
tree | 993e48348bce731a7639eb48e8f58eda7bfc17d8 /libdocument/ev-document-annotations.c | |
parent | 13c5a93aca3d2e7b88161ae047b751af20ce277d (diff) |
[libdocument] Add annotations interface
Diffstat (limited to 'libdocument/ev-document-annotations.c')
-rw-r--r-- | libdocument/ev-document-annotations.c | 48 |
1 files changed, 48 insertions, 0 deletions
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 <carlosgc@gnome.org> + * Copyright (C) 2007 IƱigo Martinez <inigomartinez@gmail.com> + * + * 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); +} |