2001-03-04 05:09:23 -06:00
|
|
|
/********************************************************************
|
|
|
|
* sixtp-dom-generators.h *
|
|
|
|
* Copyright 2001 Gnumatic, Inc. *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License as *
|
|
|
|
* published by the Free Software Foundation; either version 2 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* 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, contact: *
|
|
|
|
* *
|
|
|
|
* Free Software Foundation Voice: +1-617-542-5942 *
|
2005-11-16 23:35:02 -06:00
|
|
|
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
|
|
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
2001-03-04 05:09:23 -06:00
|
|
|
* *
|
|
|
|
********************************************************************/
|
|
|
|
|
2001-10-03 19:36:28 -05:00
|
|
|
#ifndef SIXTP_DOM_GENERATORS_H
|
|
|
|
#define SIXTP_DOM_GENERATORS_H
|
2001-02-12 16:35:20 -06:00
|
|
|
|
2015-06-13 16:21:19 -05:00
|
|
|
extern "C"
|
|
|
|
{
|
2001-02-12 16:35:20 -06:00
|
|
|
#include <glib.h>
|
|
|
|
|
2001-02-14 18:17:57 -06:00
|
|
|
#include "gnc-commodity.h"
|
2005-11-21 13:31:44 -06:00
|
|
|
#include "qof.h"
|
2005-11-01 21:32:36 -06:00
|
|
|
#include "Recurrence.h"
|
2015-11-29 19:11:29 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#include "gnc-xml-helper.h"
|
2001-02-12 16:35:20 -06:00
|
|
|
|
2016-03-12 16:04:40 -06:00
|
|
|
xmlNodePtr text_to_dom_tree (const char* tag, const char* str);
|
|
|
|
xmlNodePtr int_to_dom_tree (const char* tag, gint64 val);
|
|
|
|
xmlNodePtr boolean_to_dom_tree (const char* tag, gboolean val);
|
|
|
|
xmlNodePtr guid_to_dom_tree (const char* tag, const GncGUID* gid);
|
|
|
|
xmlNodePtr commodity_ref_to_dom_tree (const char* tag, const gnc_commodity* c);
|
|
|
|
xmlNodePtr timespec_to_dom_tree (const char* tag, const Timespec* spec);
|
|
|
|
gchar* timespec_nsec_to_string (const Timespec* ts);
|
|
|
|
gchar* timespec_sec_to_string (const Timespec* ts);
|
|
|
|
xmlNodePtr gdate_to_dom_tree (const char* tag, const GDate* spec);
|
|
|
|
xmlNodePtr gnc_numeric_to_dom_tree (const char* tag, const gnc_numeric* num);
|
|
|
|
xmlNodePtr qof_instance_slots_to_dom_tree (const char* tag,
|
|
|
|
const QofInstance* inst);
|
|
|
|
xmlNodePtr guint_to_dom_tree (const char* tag, guint an_int);
|
|
|
|
xmlNodePtr recurrence_to_dom_tree (const gchar* tag, const Recurrence* r);
|
2001-02-22 01:29:05 -06:00
|
|
|
|
2016-03-12 16:04:40 -06:00
|
|
|
gchar* double_to_string (double value);
|
2001-02-12 16:35:20 -06:00
|
|
|
|
|
|
|
#endif /* _SIXTP_DOM_GENERATORS_H_ */
|