1 
2 /*
3 *  Rubrica
4 *  file: print.h
5 *
6 *  Copyright (C) Nicola Fragale <nicolafragale@gmail.com>
7 *
8 *  This program is free software; you can redistribute it and/or modify
9 *  it under the terms of the GNU General Public License as published by
10 *  the Free Software Foundation; either version 3 of the License
11 *
12 *  This program is distributed in the hope that it will be useful,
13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 *  GNU General Public License for more details.
16 *
17 *  You should have received a copy of the GNU General Public License
18 *  along with this program; if not, write to the Free Software
19 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21 
22 #ifndef _RUBRICA_PRINT_H__
23 #define _RUBRICA_PRINT_H__
24 
25 
26 #include <gtk/gtk.h>
27 
28 G_BEGIN_DECLS
29 
30 
31 #define RUBRICA_PRINT_TYPE           (rubrica_print_get_type())
32 
33 #define RUBRICA_PRINT(obj)           (G_TYPE_CHECK_INSTANCE_CAST((obj),    \
34 				      RUBRICA_PRINT_TYPE, RubricaPrint))
35 
36 #define RUBRICA_PRINT_CLASS(kls)     (G_TYPE_CHECK_CLASS_CAST((kls),       \
37                                       RUBRICA_PRINT_TYPE, RubricaPrintClass))
38 
39 #define IS_RUBRICA_PRINT(obj)        (G_TYPE_CHECK_INSTANCE_TYPE((obj),    \
40                                       RUBRICA_PRINT_TYPE))
41 
42 #define IS_RUBRICA_PRINT_CLASS(kls)  (G_TYPE_INSTANCE_GET_CLASS((kls),     \
43                                       RUBRICA_PRINT_TYPE))
44 
45 #define RUBRICA_PRINT_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls),      \
46                                       RUBRICA_PRINT_TYPE, RubricaPrintClass)
47 
48 
49 typedef struct _RubricaPrint        RubricaPrint;
50 typedef struct _RubricaPrintClass   RubricaPrintClass;
51 typedef struct _RubricaPrintPrivate RubricaPrintPrivate;
52 
53 
54 struct _RubricaPrint
55 {
56   GObject parent;
57 
58   GtkPrintOperation* operation;
59 
60   RubricaPrintPrivate* priv;
61 };
62 
63 
64 struct _RubricaPrintClass
65 {
66   GObjectClass parent_class;
67 };
68 
69 
70 GType         rubrica_print_get_type      (void);
71 
72 RubricaPrint* rubrica_print_new           (void);
73 
74 
75 G_END_DECLS
76 
77 #endif
78