2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * label.h: GLabels label module header file
6 * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
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 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include <libgnomeprint/gnome-font.h>
27 #include <gdk-pixbuf/gdk-pixbuf.h>
30 #include "text_node.h"
40 gdouble width, height;
44 glMergeType merge_type;
46 GList *merge_fields; /* Merge Field Definitions */
54 GL_LABEL_OBJECT_ELLIPSE,
55 GL_LABEL_OBJECT_IMAGE,
56 GL_LABEL_OBJECT_BARCODE,
57 GL_LABEL_OBJECT_N_TYPES
64 glLabelObjectType type;
70 GList *lines; /* list of glLabelTextNode lists */
73 GnomeFontWeight font_weight;
74 gboolean font_italic_flag;
75 GtkJustification just;
106 glTextNode *text_node;
107 glBarcodeStyle style;
118 LABEL_UNKNOWN_MEDIA = 1,
120 LABEL_ERROR_OPEN_XML_PARSE = -10,
121 LABEL_ERROR_SAVE_XML_FILE = -20,
124 extern glLabel *gl_label_new (void);
125 extern glLabel *gl_label_new_with_template (const gchar * tmplt_name,
126 gboolean rotate_flag);
127 extern void gl_label_free (glLabel ** label);
129 extern glLabelStatus gl_label_open_xml (glLabel ** label,
130 const gchar * filename);
131 extern glLabelStatus gl_label_open_xml_buffer (glLabel ** label,
132 const gchar * buffer);
134 extern glLabelStatus gl_label_save_xml (glLabel * label,
135 const gchar * filename);
137 glLabelStatus gl_label_save_xml_buffer (glLabel * label,
140 extern glLabelObject *gl_label_object_new (glLabel * label,
141 glLabelObjectType type);
143 extern glLabelObject *gl_label_object_new_from_object (glLabel * label,
144 glLabelObject * object);
146 extern void gl_label_object_free (glLabelObject ** object);
148 extern void gl_label_object_raise_to_front (glLabelObject * object);
149 extern void gl_label_object_lower_to_back (glLabelObject * object);