summaryrefslogtreecommitdiff
path: root/glabels2/src/print-op.h
blob: 75c893c5c7fb9d402810ad641c117dfde4b720fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */

/*
 *  (GLABELS) Label and Business Card Creation program for GNOME
 *
 *  print-op.h:  Print operation module header file
 *
 *  Copyright (C) 2001-2007  Jim Evins <evins@snaught.com>.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */
#ifndef __PRINT_OP_H__
#define __PRINT_OP_H__

#include <gtk/gtkprintoperation.h>
#include "label.h"

G_BEGIN_DECLS

#define GL_TYPE_PRINT_OP            (gl_print_op_get_type ())
#define GL_PRINT_OP(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_PRINT_OP, glPrintOp))
#define GL_PRINT_OP_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_PRINT_OP, glPrintOpClass))
#define GL_IS_PRINT_OP(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_PRINT_OP))
#define GL_IS_PRINT_OP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_PRINT_OP))
#define GL_PRINT_OP_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_PRINT_OP, glPrintOpClass))


typedef struct _glPrintOp         glPrintOp;
typedef struct _glPrintOpClass    glPrintOpClass;

typedef struct _glPrintOpPrivate  glPrintOpPrivate;

struct _glPrintOp
{
        GtkPrintOperation     parent_instance;

        glPrintOpPrivate     *priv;

};

struct  _glPrintOpClass
{
        GtkPrintOperationClass        parent_class;
};


typedef struct _glPrintOpSettings glPrintOpSettings;



GType              gl_print_op_get_type           (void) G_GNUC_CONST;

glPrintOp         *gl_print_op_new                (glLabel           *label);

void               gl_print_op_force_outline_flag (glPrintOp         *print_op);

glPrintOpSettings *gl_print_op_get_settings          (glPrintOp         *print_op);
void               gl_print_op_set_settings          (glPrintOp         *print_op,
                                                      glPrintOpSettings *settings);
void               gl_print_op_free_settings         (glPrintOpSettings *settings);
                                          
/*
 * Batch print operation
 */
glPrintOp         *gl_print_op_new_batch          (glLabel           *label,
                                                   gchar             *filename,
                                                   gint               n_sheets,
                                                   gint               n_copies,
                                                   gint               first,
                                                   gboolean           outline_flag,
                                                   gboolean           reverse_flag,
                                                   gboolean           crop_marks_flag);

G_END_DECLS

#endif