1 /*
2  * xed-print-preview.h
3  *
4  * Copyright (C) 2008 Paolo Borelli
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 of the License, or
9  * (at your option) 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 St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 /*
23  * Modified by the xed Team, 1998-2006. See the AUTHORS file for a
24  * list of people on the xed Team.
25  * See the ChangeLog files for a list of changes.
26  *
27  * $Id: xed-commands-search.c 5931 2007-09-25 20:05:40Z pborelli $
28  */
29 
30 
31 #ifndef __XED_PRINT_PREVIEW_H__
32 #define __XED_PRINT_PREVIEW_H__
33 
34 #include <gtk/gtk.h>
35 
36 G_BEGIN_DECLS
37 
38 #define XED_TYPE_PRINT_PREVIEW            (xed_print_preview_get_type ())
39 #define XED_PRINT_PREVIEW(object)         (G_TYPE_CHECK_INSTANCE_CAST ((object), XED_TYPE_PRINT_PREVIEW, XedPrintPreview))
40 #define XED_PRINT_PREVIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), XED_TYPE_PRINT_PREVIEW, XedPrintPreviewClass))
41 #define XED_IS_PRINT_PREVIEW(object)      (G_TYPE_CHECK_INSTANCE_TYPE ((object), XED_TYPE_PRINT_PREVIEW))
42 #define XED_IS_PRINT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XED_TYPE_PRINT_PREVIEW))
43 #define XED_PRINT_PREVIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), XED_TYPE_PRINT_PREVIEW, XedPrintPreviewClass))
44 
45 typedef struct _XedPrintPreview        XedPrintPreview;
46 typedef struct _XedPrintPreviewPrivate XedPrintPreviewPrivate;
47 typedef struct _XedPrintPreviewClass   XedPrintPreviewClass;
48 
49 struct _XedPrintPreview
50 {
51 	GtkBox parent;
52 
53 	XedPrintPreviewPrivate *priv;
54 };
55 
56 struct _XedPrintPreviewClass
57 {
58 	GtkBoxClass parent_class;
59 
60 	void (* close)		(XedPrintPreview          *preview);
61 };
62 
63 
64 GType		 xed_print_preview_get_type	(void) G_GNUC_CONST;
65 
66 GtkWidget	*xed_print_preview_new	(GtkPrintOperation		*op,
67 						 GtkPrintOperationPreview	*gtk_preview,
68 						 GtkPrintContext		*context);
69 
70 G_END_DECLS
71 
72 #endif /* __XED_PRINT_PREVIEW_H__ */
73