1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_XML_SAX_H_
3 # define _GNM_XML_SAX_H_
6 #include <gsf/gsf-output-memory.h>
10 /* Gnumeric specific SAX utilities */
11 void gnm_xml_out_add_gocolor (GsfXMLOut
*o
, char const *id
, GOColor c
);
12 gboolean
gnm_xml_attr_int (xmlChar
const * const *attrs
,
13 char const *name
, int * res
);
14 gboolean
gnm_xml_attr_double (xmlChar
const * const *attrs
,
15 char const *name
, double * res
);
16 gboolean
gnm_xml_attr_bool (xmlChar
const * const *attrs
,
17 char const *name
, gboolean
*res
);
19 SheetObject
*gnm_xml_in_cur_obj (GsfXMLIn
const *xin
);
20 Sheet
*gnm_xml_in_cur_sheet (GsfXMLIn
const *xin
);
23 GsfOutputMemory
*gnm_cellregion_to_xml (GnmCellRegion
const *cr
);
25 GnmCellRegion
*gnm_xml_cellregion_read (WorkbookControl
*wbc
,
26 GOIOContext
*io_context
,
28 const char *buffer
, int length
);
30 typedef void (*GnmXmlStyleHandler
) (GsfXMLIn
*xin
,
33 void gnm_xml_prep_style_parser (GsfXMLIn
*xin
,
34 xmlChar
const **attrs
,
35 GnmXmlStyleHandler handler
,
38 void gnm_xml_sax_read_init (void);
39 void gnm_xml_sax_read_shutdown (void);
41 void gnm_xml_sax_write_init (void);
42 void gnm_xml_sax_write_shutdown (void);
44 GnmConventions
*gnm_xml_io_conventions (void);
48 #endif /* _GNM_XML_SAX_H_ */