2 * Copyright (C) 2006 Michael Hofmann <mh21@piware.de>
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)
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.
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.
19 #ifndef __DJVU_TEXT_PAGE_H__
20 #define __DJVU_TEXT_PAGE_H__
22 #include "ev-document.h"
28 typedef struct _DjvuTextPage DjvuTextPage;
29 typedef struct _DjvuTextLink DjvuTextLink;
31 struct _DjvuTextPage {
35 miniexp_t char_symbol;
36 miniexp_t word_symbol;
37 EvRectangle *bounding_box;
38 miniexp_t text_structure;
43 struct _DjvuTextLink {
48 char * djvu_text_page_copy (DjvuTextPage *page,
49 EvRectangle *rectangle);
50 void djvu_text_page_prepare_search (DjvuTextPage *page,
51 gboolean case_sensitive);
52 void djvu_text_page_search (DjvuTextPage *page,
54 DjvuTextPage* djvu_text_page_new (miniexp_t text);
55 void djvu_text_page_free (DjvuTextPage *page);
57 #endif /* __DJVU_TEXT_PAGE_H__ */