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
ev-document-fonts.h
Go to the documentation of this file.
1 /* ev-document-fonts.h
2  * this file is part of evince, a gnome document viewer
3  *
4  * Copyright (C) 2004 Red Hat, Inc.
5  *
6  * Author:
7  * Marco Pesenti Gritti <mpg@redhat.com>
8  *
9  * Evince is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Evince is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  */
23 
24 #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
25 #error "Only <evince-document.h> can be included directly."
26 #endif
27 
28 #ifndef EV_DOCUMENT_FONTS_H
29 #define EV_DOCUMENT_FONTS_H
30 
31 #include <glib-object.h>
32 #include <glib.h>
33 #include <gtk/gtk.h>
34 
35 #include "ev-document.h"
36 #include "ev-link.h"
37 
38 G_BEGIN_DECLS
39 
40 
41 #define EV_TYPE_DOCUMENT_FONTS (ev_document_fonts_get_type ())
42 #define EV_DOCUMENT_FONTS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_FONTS, EvDocumentFonts))
43 #define EV_DOCUMENT_FONTS_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_FONTS, EvDocumentFontsInterface))
44 #define EV_IS_DOCUMENT_FONTS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_FONTS))
45 #define EV_IS_DOCUMENT_FONTS_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_FONTS))
46 #define EV_DOCUMENT_FONTS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_FONTS, EvDocumentFontsInterface))
47 
48 typedef struct _EvDocumentFonts EvDocumentFonts;
50 
51 enum {
55 };
56 
58 {
59  GTypeInterface base_iface;
60 
61  /* Methods */
62  gboolean (* scan) (EvDocumentFonts *document_fonts,
63  int n_pages);
64  double (* get_progress) (EvDocumentFonts *document_fonts);
65  void (* fill_model) (EvDocumentFonts *document_fonts,
66  GtkTreeModel *model);
67  const gchar *(* get_fonts_summary) (EvDocumentFonts *document_fonts);
68 };
69 
70 GType ev_document_fonts_get_type (void);
71 gboolean ev_document_fonts_scan (EvDocumentFonts *document_fonts,
72  int n_pages);
73 double ev_document_fonts_get_progress (EvDocumentFonts *document_fonts);
74 void ev_document_fonts_fill_model (EvDocumentFonts *document_fonts,
75  GtkTreeModel *model);
76 const gchar *ev_document_fonts_get_fonts_summary (EvDocumentFonts *document_fonts);
77 
78 G_END_DECLS
79 
80 #endif