]> git.sur5r.net Git - glabels/blob - libglabels/xml-template.h
Imported Upstream version 2.2.8
[glabels] / libglabels / xml-template.h
1 /*
2  *  (LIBGLABELS) Template library for GLABELS
3  *
4  *  xml-template.h:  template xml module header file
5  *
6  *  Copyright (C) 2001-2004  Jim Evins <evins@snaught.com>.
7  *
8  *  This file is part of the LIBGLABELS library.
9  *
10  *  This library is free software; you can redistribute it and/or
11  *  modify it under the terms of the GNU Library General Public
12  *  License as published by the Free Software Foundation; either
13  *  version 2 of the License, or (at your option) any later version.
14  *
15  *  This library is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  *  Library General Public License for more details.
19  *
20  *  You should have received a copy of the GNU Library General Public
21  *  License along with this library; if not, write to the Free
22  *  Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23  *  MA 02111-1307, USA
24  */
25
26 #ifndef __XML_TEMPLATE_H__
27 #define __XML_TEMPLATE_H__
28
29 #include <glib.h>
30 #include <libxml/tree.h>
31
32 #include "template.h"
33
34 G_BEGIN_DECLS
35
36 GList       *lgl_xml_template_read_templates_from_file (const gchar       *utf8_filename);
37
38 GList       *lgl_xml_template_parse_templates_doc      (const xmlDocPtr    templates_doc);
39
40 lglTemplate *lgl_xml_template_parse_template_node      (const xmlNodePtr   template_node);
41
42
43 gint         lgl_xml_template_write_templates_to_file  (GList             *templates,
44                                                         const gchar       *utf8_filename);
45
46 gint         lgl_xml_template_write_template_to_file   (const lglTemplate *template,
47                                                         const gchar       *utf8_filename);
48
49 void         lgl_xml_template_create_template_node     (const lglTemplate *template,
50                                                         xmlNodePtr         root,
51                                                         const xmlNsPtr     ns);
52
53 G_END_DECLS
54
55 #endif /* __XML_TEMPLATE_H__ */