1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | |
---|
3 | #ifndef __GNOME_PRINT_PAPER_PREVIEW_H__ |
---|
4 | #define __GNOME_PRINT_PAPER_PREVIEW_H__ |
---|
5 | |
---|
6 | /* |
---|
7 | * gnome-print-paper-preview.h: Paper preview widget |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or |
---|
10 | * modify it under the terms of the GNU Library General Public License |
---|
11 | * as published by the Free Software Foundation; either version 2 of |
---|
12 | * the License, or (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU Library General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU Library General Public |
---|
20 | * License along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
22 | * |
---|
23 | * Authors: |
---|
24 | * James Henstridge <james@daa.com.au> |
---|
25 | * |
---|
26 | * Copyright (C) 1998 James Henstridge <james@daa.com.au> |
---|
27 | * |
---|
28 | */ |
---|
29 | |
---|
30 | #include <glib.h> |
---|
31 | |
---|
32 | G_BEGIN_DECLS |
---|
33 | |
---|
34 | #include <libgnomeprint/gnome-print-config.h> |
---|
35 | #include <libgnomecanvas/gnome-canvas.h> |
---|
36 | |
---|
37 | #define GNOME_TYPE_PAPER_PREVIEW (gnome_paper_preview_get_type ()) |
---|
38 | #define GNOME_PAPER_PREVIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNOME_TYPE_PAPER_PREVIEW, GnomePaperPreview)) |
---|
39 | #define GNOME_PAPER_PREVIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNOME_TYPE_PAPER_PREVIEW, GnomePaperPreviewClass)) |
---|
40 | #define GNOME_IS_PAPER_PREVIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNOME_TYPE_PAPER_PREVIEW)) |
---|
41 | #define GNOME_IS_PAPER_PREVIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_TYPE_PAPER_PREVIEW)) |
---|
42 | #define GNOME_PAPER_PREVIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNOME_TYPE_PAPER_PREVIEW, GnomePaperPreviewClass)) |
---|
43 | |
---|
44 | typedef struct _GnomePaperPreview GnomePaperPreview; |
---|
45 | typedef struct _GnomePaperPreviewClass GnomePaperPreviewClass; |
---|
46 | |
---|
47 | /* Has to go into the .c file */ |
---|
48 | struct _GnomePaperPreview { |
---|
49 | GtkHBox box; |
---|
50 | |
---|
51 | GtkWidget *canvas; |
---|
52 | |
---|
53 | GnomeCanvasItem *item; |
---|
54 | |
---|
55 | GnomePrintConfig *config; |
---|
56 | }; |
---|
57 | |
---|
58 | |
---|
59 | GType gnome_paper_preview_get_type (void); |
---|
60 | |
---|
61 | GtkWidget * gnome_paper_preview_new (GnomePrintConfig *config); |
---|
62 | |
---|
63 | G_END_DECLS |
---|
64 | |
---|
65 | #endif /* __GNOME_PRINT_PAPER_PREVIEW_H__ */ |
---|