1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
3 * Copyright (C) 2010 Yaco Sistemas, Daniel Garcia <danigm@yaco.es>
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.
24 #include "ev-document-text.h"
26 G_DEFINE_INTERFACE (EvDocumentText, ev_document_text, 0)
29 ev_document_text_default_init (EvDocumentTextInterface *klass)
34 ev_document_text_get_text (EvDocumentText *document_text,
37 EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
42 return iface->get_text (document_text, page);
47 ev_document_text_get_text_layout (EvDocumentText *document_text,
52 EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
54 if (!iface->get_text_layout)
57 return iface->get_text_layout (document_text, page, areas, n_areas);
61 ev_document_text_get_text_mapping (EvDocumentText *document_text,
64 EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
66 if (!iface->get_text_mapping)
69 return iface->get_text_mapping (document_text, page);