Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
djvu-text-page.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 Michael Hofmann <mh21@piware.de>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef __DJVU_TEXT_PAGE_H__
20 #define __DJVU_TEXT_PAGE_H__
21 
22 #include "ev-document.h"
23 
24 #include <string.h>
25 #include <glib.h>
26 #include <libdjvu/miniexp.h>
27 
28 
29 typedef struct _DjvuTextPage DjvuTextPage;
30 typedef struct _DjvuTextLink DjvuTextLink;
31 
32 struct _DjvuTextPage {
33  char *text;
34  GArray *links;
35  GList *results;
36  miniexp_t char_symbol;
37  miniexp_t word_symbol;
39  miniexp_t text_structure;
40  miniexp_t start;
41  miniexp_t end;
42 };
43 
44 struct _DjvuTextLink {
45  int position;
46  miniexp_t pair;
47 };
48 
49 typedef enum {
53 
55  EvRectangle *rectangle);
57  EvRectangle *rectangle);
59  gboolean case_sensitive);
61  const char *text);
62 DjvuTextPage *djvu_text_page_new (miniexp_t text);
64 
65 #endif /* __DJVU_TEXT_PAGE_H__ */
66