]> www.fi.muni.cz Git - evince.git/blob - libdocument/ev-document-fonts.h
c9f58f532650ed67f46a73d001c8fcc551226a45
[evince.git] / libdocument / ev-document-fonts.h
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef EV_DOCUMENT_FONTS_H
25 #define EV_DOCUMENT_FONTS_H
26
27 #include <glib-object.h>
28 #include <glib.h>
29 #include <gtk/gtk.h>
30
31 #include "ev-document.h"
32 #include "ev-link.h"
33
34 G_BEGIN_DECLS
35
36
37 #define EV_TYPE_DOCUMENT_FONTS            (ev_document_fonts_get_type ())
38 #define EV_DOCUMENT_FONTS(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_FONTS, EvDocumentFonts))
39 #define EV_DOCUMENT_FONTS_IFACE(k)        (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_FONTS, EvDocumentFontsIface))
40 #define EV_IS_DOCUMENT_FONTS(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_FONTS))
41 #define EV_IS_DOCUMENT_FONTS_IFACE(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_FONTS))
42 #define EV_DOCUMENT_FONTS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_FONTS, EvDocumentFontsIface))
43
44 typedef struct _EvDocumentFonts      EvDocumentFonts;
45 typedef struct _EvDocumentFontsIface EvDocumentFontsIface;
46
47 enum {
48         EV_DOCUMENT_FONTS_COLUMN_NAME,
49         EV_DOCUMENT_FONTS_COLUMN_DETAILS,
50         EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS
51 };
52
53 struct _EvDocumentFontsIface
54 {
55         GTypeInterface base_iface;
56
57         /* Methods */
58         gboolean (* scan)         (EvDocumentFonts *document_fonts,
59                                    int              n_pages);
60         double   (* get_progress) (EvDocumentFonts *document_fonts);
61         void     (* fill_model)   (EvDocumentFonts *document_fonts,
62                                    GtkTreeModel    *model);
63 };
64
65 GType     ev_document_fonts_get_type     (void);
66 gboolean  ev_document_fonts_scan         (EvDocumentFonts *document_fonts,
67                                           int              n_pages);
68 double    ev_document_fonts_get_progress (EvDocumentFonts *document_fonts);
69 void      ev_document_fonts_fill_model   (EvDocumentFonts *document_fonts,
70                                           GtkTreeModel    *model);
71
72 G_END_DECLS
73
74 #endif