]> git.sur5r.net Git - glabels/blob - src/print-op.h
Imported Upstream version 3.0.0
[glabels] / src / print-op.h
1 /*
2  *  print-op.h
3  *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels 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 gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __PRINT_OP_H__
22 #define __PRINT_OP_H__
23
24 #include <gtk/gtk.h>
25 #include "label.h"
26
27 G_BEGIN_DECLS
28
29 #define GL_TYPE_PRINT_OP            (gl_print_op_get_type ())
30 #define GL_PRINT_OP(obj) \
31         (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_PRINT_OP, glPrintOp))
32 #define GL_PRINT_OP_CLASS(klass) \
33         (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_PRINT_OP, glPrintOpClass))
34 #define GL_IS_PRINT_OP(obj) \
35         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_PRINT_OP))
36 #define GL_IS_PRINT_OP_CLASS(klass) \
37         (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_PRINT_OP))
38 #define GL_PRINT_OP_GET_CLASS(obj) \
39         (G_TYPE_INSTANCE_GET_CLASS ((obj), GL_TYPE_PRINT_OP, glPrintOpClass))
40
41
42 typedef struct _glPrintOp         glPrintOp;
43 typedef struct _glPrintOpClass    glPrintOpClass;
44
45 typedef struct _glPrintOpPrivate  glPrintOpPrivate;
46
47 struct _glPrintOp
48 {
49         GtkPrintOperation     parent_instance;
50
51         glPrintOpPrivate     *priv;
52
53 };
54
55 struct  _glPrintOpClass
56 {
57         GtkPrintOperationClass        parent_class;
58 };
59
60
61 typedef struct _glPrintOpSettings glPrintOpSettings;
62
63
64
65 GType              gl_print_op_get_type            (void) G_GNUC_CONST;
66
67 glPrintOp         *gl_print_op_new                 (glLabel           *label);
68
69 void               gl_print_op_construct           (glPrintOp         *print_op,
70                                                     glLabel           *label);
71
72 void               gl_print_op_set_filename        (glPrintOp         *print_op,
73                                                     gchar             *filename);
74 void               gl_print_op_set_n_sheets        (glPrintOp         *print_op,
75                                                     gint               n_sheets);
76 void               gl_print_op_set_n_copies        (glPrintOp         *print_op,
77                                                     gint               n_copies);
78 void               gl_print_op_set_first           (glPrintOp         *print_op,
79                                                     gint               first);
80 void               gl_print_op_set_last            (glPrintOp         *print_op,
81                                                     gint               last);
82 void               gl_print_op_set_collate_flag    (glPrintOp         *print_op,
83                                                     gboolean           collate_flag);
84 void               gl_print_op_set_outline_flag    (glPrintOp         *print_op,
85                                                     gboolean           outline_flag);
86 void               gl_print_op_set_reverse_flag    (glPrintOp         *print_op,
87                                                     gboolean           reverse_flag);
88 void               gl_print_op_set_crop_marks_flag (glPrintOp         *print_op,
89                                                     gboolean           crop_marks_flag);
90
91 gchar             *gl_print_op_get_filename        (glPrintOp         *print_op);
92 gint               gl_print_op_get_n_sheets        (glPrintOp         *print_op);
93 gint               gl_print_op_get_n_copies        (glPrintOp         *print_op);
94 gint               gl_print_op_get_first           (glPrintOp         *print_op);
95 gint               gl_print_op_get_last            (glPrintOp         *print_op);
96 gboolean           gl_print_op_get_collate_flag    (glPrintOp         *print_op);
97 gboolean           gl_print_op_get_outline_flag    (glPrintOp         *print_op);
98 gboolean           gl_print_op_get_reverse_flag    (glPrintOp         *print_op);
99 gboolean           gl_print_op_get_crop_marks_flag (glPrintOp         *print_op);
100
101 void               gl_print_op_force_outline       (glPrintOp         *print_op);
102 gboolean           gl_print_op_is_outline_forced   (glPrintOp         *print_op);
103
104 glPrintOpSettings *gl_print_op_get_settings        (glPrintOp         *print_op);
105 void               gl_print_op_set_settings        (glPrintOp         *print_op,
106                                                     glPrintOpSettings *settings);
107 void               gl_print_op_free_settings       (glPrintOpSettings *settings);
108                                           
109
110 G_END_DECLS
111
112 #endif
113
114
115
116 /*
117  * Local Variables:       -- emacs
118  * mode: C                -- emacs
119  * c-basic-offset: 8      -- emacs
120  * tab-width: 8           -- emacs
121  * indent-tabs-mode: nil  -- emacs
122  * End:                   -- emacs
123  */