]> git.sur5r.net Git - glabels/blob - libglabels/lgl-xml-template.h
Imported Upstream version 3.0.0
[glabels] / libglabels / lgl-xml-template.h
1 /*
2  *  lgl-xml-template.h
3  *  Copyright (C) 2001-2010  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of libglabels.
6  *
7  *  libglabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  libglabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with libglabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __LGL_XML_TEMPLATE_H__
22 #define __LGL_XML_TEMPLATE_H__
23
24 #include <glib.h>
25 #include <libxml/tree.h>
26
27 #include "lgl-template.h"
28
29 G_BEGIN_DECLS
30
31 void         lgl_xml_template_read_templates_from_file (const gchar       *utf8_filename);
32
33 void         lgl_xml_template_parse_templates_doc      (const xmlDocPtr    templates_doc);
34
35 lglTemplate *lgl_xml_template_parse_template_node      (const xmlNodePtr   template_node);
36
37
38 gint         lgl_xml_template_write_templates_to_file  (GList             *templates,
39                                                         const gchar       *utf8_filename);
40
41 gint         lgl_xml_template_write_template_to_file   (const lglTemplate *template,
42                                                         const gchar       *utf8_filename);
43
44 void         lgl_xml_template_create_template_node     (const lglTemplate *template,
45                                                         xmlNodePtr         root,
46                                                         const xmlNsPtr     ns);
47
48 G_END_DECLS
49
50 #endif /* __LGL_XML_TEMPLATE_H__ */
51
52
53
54 /*
55  * Local Variables:       -- emacs
56  * mode: C                -- emacs
57  * c-basic-offset: 8      -- emacs
58  * tab-width: 8           -- emacs
59  * indent-tabs-mode: nil  -- emacs
60  * End:                   -- emacs
61  */