]> www.fi.muni.cz Git - evince.git/blob - backend/djvu/djvu-document-private.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / backend / djvu / djvu-document-private.h
1 /* 
2  * Declarations used throughout the djvu classes
3  * 
4  * Copyright (C) 2006, Michael Hofmann <mh21@piware.de>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20  
21 #ifndef __DJVU_DOCUMENT_INTERNAL_H__
22 #define __DJVU_DOCUMENT_INTERNAL_H__
23
24 #include "djvu-document.h"
25
26 #include <libdjvu/ddjvuapi.h>
27
28 struct _DjvuDocument {
29         EvDocument        parent_instance;
30
31         ddjvu_context_t  *d_context;
32         ddjvu_document_t *d_document;
33         ddjvu_format_t   *d_format;
34         ddjvu_format_t   *thumbs_format;
35
36         gchar            *uri;
37
38         /* PS exporter */
39         gchar            *ps_filename;
40         GString          *opts;
41 };
42
43 int  djvu_document_get_n_pages (EvDocument   *document);
44 void djvu_handle_events        (DjvuDocument *djvu_document, 
45                                 int           wait,
46                                 GError      **error);
47
48 #endif /* __DJVU_DOCUMENT_INTERNAL_H__ */