1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /** |
---|
3 | * bonobo-print.h: Remote printing support, client side. |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Michael Meeks (michael@helixcode.com) |
---|
7 | * |
---|
8 | * Copyright 2000 Helix Code, Inc. |
---|
9 | */ |
---|
10 | #ifndef _BONOBO_PRINT_H_ |
---|
11 | #define _BONOBO_PRINT_H_ |
---|
12 | |
---|
13 | #include <bonobo/bonobo-xobject.h> |
---|
14 | #include <libgnomeprint/gnome-print-meta.h> |
---|
15 | |
---|
16 | BEGIN_GNOME_DECLS |
---|
17 | |
---|
18 | #define BONOBO_PRINT_TYPE (bonobo_print_get_type ()) |
---|
19 | #define BONOBO_PRINT(o) (GTK_CHECK_CAST ((o), BONOBO_PRINT_TYPE, BonoboPrint)) |
---|
20 | #define BONOBO_PRINT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_PRINT_TYPE, BonoboPrintClass)) |
---|
21 | #define BONOBO_IS_PRINT(o) (GTK_CHECK_TYPE ((o), BONOBO_PRINT_TYPE)) |
---|
22 | #define BONOBO_IS_PRINT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_PRINT_TYPE)) |
---|
23 | |
---|
24 | typedef void (BonoboPrintRenderFn) (GnomePrintContext *ctx, |
---|
25 | double width, |
---|
26 | double height, |
---|
27 | const Bonobo_PrintScissor *opt_scissor, |
---|
28 | gpointer user_data); |
---|
29 | |
---|
30 | typedef struct { |
---|
31 | BonoboXObject object; |
---|
32 | |
---|
33 | BonoboPrintRenderFn *render; |
---|
34 | gpointer user_data; |
---|
35 | } BonoboPrint; |
---|
36 | |
---|
37 | typedef struct { |
---|
38 | BonoboXObjectClass parent; |
---|
39 | |
---|
40 | POA_Bonobo_Print__epv epv; |
---|
41 | |
---|
42 | BonoboPrintRenderFn *render; |
---|
43 | } BonoboPrintClass; |
---|
44 | |
---|
45 | GtkType bonobo_print_get_type (void); |
---|
46 | BonoboPrint *bonobo_print_construct (BonoboPrint *p, |
---|
47 | BonoboPrintRenderFn *render, |
---|
48 | gpointer user_data); |
---|
49 | BonoboPrint *bonobo_print_new (BonoboPrintRenderFn *render, |
---|
50 | gpointer user_data); |
---|
51 | |
---|
52 | |
---|
53 | END_GNOME_DECLS |
---|
54 | |
---|
55 | #endif /* _BONOBO_PRINT_H_ */ |
---|
56 | |
---|