3 * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
5 * This file is part of gLabels.
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.
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.
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/>.
21 #ifndef __PRINT_OP_H__
22 #define __PRINT_OP_H__
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))
42 typedef struct _glPrintOp glPrintOp;
43 typedef struct _glPrintOpClass glPrintOpClass;
45 typedef struct _glPrintOpPrivate glPrintOpPrivate;
49 GtkPrintOperation parent_instance;
51 glPrintOpPrivate *priv;
55 struct _glPrintOpClass
57 GtkPrintOperationClass parent_class;
61 typedef struct _glPrintOpSettings glPrintOpSettings;
65 GType gl_print_op_get_type (void) G_GNUC_CONST;
67 glPrintOp *gl_print_op_new (glLabel *label);
69 void gl_print_op_construct (glPrintOp *print_op,
72 void gl_print_op_set_filename (glPrintOp *print_op,
74 void gl_print_op_set_n_sheets (glPrintOp *print_op,
76 void gl_print_op_set_n_copies (glPrintOp *print_op,
78 void gl_print_op_set_first (glPrintOp *print_op,
80 void gl_print_op_set_last (glPrintOp *print_op,
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);
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);
101 void gl_print_op_force_outline (glPrintOp *print_op);
102 gboolean gl_print_op_is_outline_forced (glPrintOp *print_op);
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);
117 * Local Variables: -- emacs
119 * c-basic-offset: 8 -- emacs
120 * tab-width: 8 -- emacs
121 * indent-tabs-mode: nil -- emacs