~ubuntu-branches/ubuntu/trusty/evince/trusty-proposed

« back to all changes in this revision

Viewing changes to djvu/djvu-text.h

Tags: upstream-0.5.1
ImportĀ upstreamĀ versionĀ 0.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 */
 
18
 
 
19
#ifndef __DJVU_TEXT_H__
 
20
#define __DJVU_TEXT_H__
 
21
 
 
22
#include "ev-document.h"
 
23
 
 
24
#include <glib.h>
 
25
#include <libdjvu/ddjvuapi.h>
 
26
 
 
27
typedef struct miniexp_s* miniexp_t;
 
28
extern const miniexp_t miniexp_nil;
 
29
extern const miniexp_t miniexp_dummy;
 
30
 
 
31
typedef struct _DjvuText DjvuText;
 
32
 
 
33
DjvuText    *djvu_text_new          (DjvuDocument *djvu_document,
 
34
                                     int           start_page,
 
35
                                     gboolean      case_sensitive, 
 
36
                                     const char   *text);
 
37
const char  *djvu_text_get_text     (DjvuText     *djvu_text);
 
38
int          djvu_text_n_results    (DjvuText     *djvu_text, 
 
39
                                     int           page);
 
40
EvRectangle *djvu_text_get_result   (DjvuText     *djvu_text, 
 
41
                                     int           page,
 
42
                                     int           n_result);
 
43
int          djvu_text_has_results  (DjvuText     *djvu_text, 
 
44
                                     int           page);
 
45
double       djvu_text_get_progress (DjvuText     *djvu_text);
 
46
char        *djvu_text_copy         (DjvuDocument *djvu_document,
 
47
                                     int           page,
 
48
                                     EvRectangle  *rectangle);
 
49
 
 
50
#endif /* __DJVU_TEXT_H__ */