You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnucash/lib/goffice-0.0.4/goffice/utils/go-libxml-extras.h

53 lines
2.3 KiB

/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* go-libxml-extras.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody@gnome.org)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
* USA
*/
#ifndef GO_LIBXML_EXTRAS_H
#define GO_LIBXML_EXTRAS_H
#include <glib.h>
#include <glib-object.h>
#include <goffice/utils/goffice-utils.h>
#include <libxml/tree.h>
G_BEGIN_DECLS
xmlDocPtr go_xml_parse_file (const char *filename);
xmlChar *xml_node_get_cstr (xmlNodePtr node, char const *name);
void xml_node_set_cstr (xmlNodePtr node, char const *name, char const *val);
gboolean xml_node_get_bool (xmlNodePtr node, char const *name, gboolean *result);
void xml_node_set_bool (xmlNodePtr node, char const *name, gboolean val);
gboolean xml_node_get_int (xmlNodePtr node, char const *name, int *result);
void xml_node_set_int (xmlNodePtr node, char const *name, int val);
gboolean xml_node_get_double (xmlNodePtr node, char const *name, double *result);
void xml_node_set_double (xmlNodePtr node, char const *name, double val, int precision);
gboolean xml_node_get_gocolor (xmlNodePtr node, char const *name, GOColor *result);
void xml_node_set_gocolor (xmlNodePtr node, char const *name, GOColor val);
gboolean xml_node_get_enum (xmlNodePtr node, char const *name, GType etype, gint *val);
void xml_node_set_enum (xmlNodePtr node, char const *name, GType etype, gint val);
xmlNode *e_xml_get_child_by_name (xmlNode const *tree, char const *name);
xmlNode *e_xml_get_child_by_name_no_lang (xmlNode const *tree, char const *name);
xmlNode *e_xml_get_child_by_name_by_lang (xmlNode const *tree, char const *name);
G_END_DECLS
#endif /* GO_LIBXML_EXTRAS_H */