]> git.sur5r.net Git - glabels/blob - glabels2/src/text-node.h
Initial revision
[glabels] / glabels2 / src / text-node.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  text_node.h:  text node module header file
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.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 2 of the License, or
11  *  (at your option) any later version.
12  *
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.
17  *
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
21  */
22 #ifndef __TEXT_NODE_H__
23 #define __TEXT_NODE_H__
24
25 #include <gnome.h>
26 #include "merge.h"
27
28 typedef struct {
29         gboolean field_flag;
30         gchar *data;
31 } glTextNode;
32
33 extern gchar *gl_text_node_expand              (glTextNode * text_node,
34                                                 glMergeRecord * record);
35 extern glTextNode *gl_text_node_new_from_text  (gchar * text);
36 extern glTextNode *gl_text_node_dup            (glTextNode * text_node);
37 extern void gl_text_node_free                  (glTextNode ** text_node);
38
39 extern gchar *gl_text_node_lines_expand        (GList * lines,
40                                                 glMergeRecord * record);
41 extern GList *gl_text_node_lines_new_from_text (gchar * text);
42 extern GList *gl_text_node_lines_dup           (GList *lines);
43 extern void   gl_text_node_lines_free          (GList ** lines);
44
45 /* debug function */
46 extern void gl_text_node_lines_print (GList * lines );
47
48 #endif