Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
Main Page
Related Pages
Data Structures
Files
File List
Globals
Evince
instance
#EvPage
#EvPage
@document.
index for this mapping
Data Structures
Files
File List
evince-master
backend
browser-plugin
cut-n-paste
libdocument
ev-annotation.c
ev-annotation.h
ev-async-renderer.c
ev-async-renderer.h
ev-attachment.c
ev-attachment.h
ev-backend-info.c
ev-backend-info.h
ev-backends-manager.h
ev-debug.c
ev-debug.h
ev-document-annotations.c
ev-document-annotations.h
ev-document-attachments.c
ev-document-attachments.h
ev-document-factory.c
ev-document-factory.h
ev-document-find.c
ev-document-find.h
ev-document-fonts.c
ev-document-fonts.h
ev-document-forms.c
ev-document-forms.h
ev-document-images.c
ev-document-images.h
ev-document-info.h
ev-document-layers.c
ev-document-layers.h
ev-document-links.c
ev-document-links.h
ev-document-media.c
ev-document-media.h
ev-document-misc.c
ev-document-misc.h
ev-document-print.c
ev-document-print.h
ev-document-security.c
ev-document-security.h
ev-document-text.c
ev-document-text.h
ev-document-transition.c
ev-document-transition.h
ev-document.c
ev-document.h
ev-file-exporter.c
ev-file-exporter.h
ev-file-helpers.c
ev-file-helpers.h
ev-form-field.c
ev-form-field.h
ev-image.c
ev-image.h
ev-init.c
ev-init.h
ev-layer.c
ev-layer.h
ev-link-action.c
ev-link-action.h
ev-link-dest.c
ev-link-dest.h
ev-link.c
ev-link.h
ev-macros.h
ev-mapping-list.c
ev-mapping-list.h
ev-media.c
ev-media.h
ev-module.c
ev-module.h
ev-page.c
ev-page.h
ev-render-context.c
ev-render-context.h
ev-selection.c
ev-selection.h
ev-transition-effect.c
ev-transition-effect.h
libmisc
libview
previewer
properties
shell
thumbnailer
evince-document.h
evince-view.h
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
ev-document-text.c
Go to the documentation of this file.
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
2
/*
3
* Copyright (C) 2010 Yaco Sistemas, Daniel Garcia <danigm@yaco.es>
4
*
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)
8
* any later version.
9
*
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.
14
*
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.
18
*
19
* $Id$
20
*/
21
22
#include "config.h"
23
24
#include "
ev-document-text.h
"
25
26
G_DEFINE_INTERFACE (
EvDocumentText
, ev_document_text, 0)
27
28
static
void
29
ev_document_text_default_init
(
EvDocumentTextInterface
*klass)
30
{
31
}
32
33
gchar *
34
ev_document_text_get_text
(
EvDocumentText
*document_text,
35
EvPage
*page)
36
{
37
EvDocumentTextInterface
*iface =
EV_DOCUMENT_TEXT_GET_IFACE
(document_text);
38
39
if
(!iface->
get_text
)
40
return
NULL;
41
42
return
iface->
get_text
(document_text, page);
43
}
44
45
46
gboolean
47
ev_document_text_get_text_layout
(
EvDocumentText
*document_text,
48
EvPage
*page,
49
EvRectangle
**areas,
50
guint *n_areas)
51
{
52
EvDocumentTextInterface
*iface =
EV_DOCUMENT_TEXT_GET_IFACE
(document_text);
53
54
if
(!iface->
get_text_layout
)
55
return
FALSE
;
56
57
return
iface->
get_text_layout
(document_text, page, areas, n_areas);
58
}
59
60
cairo_region_t *
61
ev_document_text_get_text_mapping
(
EvDocumentText
*document_text,
62
EvPage
*page)
63
{
64
EvDocumentTextInterface
*iface =
EV_DOCUMENT_TEXT_GET_IFACE
(document_text);
65
66
if
(!iface->
get_text_mapping
)
67
return
NULL;
68
69
return
iface->
get_text_mapping
(document_text, page);
70
}
71
83
PangoAttrList *
84
ev_document_text_get_text_attrs
(
EvDocumentText
*document_text,
85
EvPage
*page)
86
{
87
EvDocumentTextInterface
*iface =
EV_DOCUMENT_TEXT_GET_IFACE
(document_text);
88
89
if
(!iface->
get_text_attrs
)
90
return
NULL;
91
92
return
iface->
get_text_attrs
(document_text, page);
93
}
evince-master
libdocument
ev-document-text.c
Generated on Thu Jul 13 2017 13:41:45 for Evince by
1.8.4