]> git.sur5r.net Git - glabels/blob - glabels2/src/xml-template.h
bf4c9caf3235542ef9160b412b569085718ba40f
[glabels] / glabels2 / src / xml-template.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  xml-template.h:  template xml module header file
5  *
6  *  Copyright (C) 2001-2003  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
23 #ifndef __XML_TEMPLATE_H__
24 #define __XML_TEMPLATE_H__
25
26 #include <libgnome/libgnome.h>
27 #include <libxml/tree.h>
28 #include <libxml/parser.h>
29
30 #include "template.h"
31
32 G_BEGIN_DECLS
33
34 GList       *gl_xml_template_read_templates_from_file (GList             *templates,
35                                                        gchar             *xml_filename);
36
37 glTemplate  *gl_xml_template_parse_template           (xmlNodePtr         template_node);
38
39 void         gl_xml_template_write_template_to_file   (const glTemplate  *template,
40                                                        const gchar       *utf8_filename);
41
42 void         gl_xml_template_add_template             (const glTemplate  *template,
43                                                        xmlNodePtr         root,
44                                                        xmlNsPtr           ns);
45
46 G_END_DECLS
47
48 #endif /* __XML_TEMPLATE_H__ */