1 #ifndef _GNM_XML_SAX_H_
2 # define _GNM_XML_SAX_H_
5 #include <gsf/gsf-output-memory.h>
9 /* Gnumeric specific SAX utilities */
10 void gnm_xml_out_add_gocolor (GsfXMLOut
*o
, char const *id
, GOColor c
);
11 gboolean
gnm_xml_attr_int (xmlChar
const * const *attrs
,
12 char const *name
, int * res
);
13 gboolean
gnm_xml_attr_double (xmlChar
const * const *attrs
,
14 char const *name
, double * res
);
15 gboolean
gnm_xml_attr_bool (xmlChar
const * const *attrs
,
16 char const *name
, gboolean
*res
);
18 SheetObject
*gnm_xml_in_cur_obj (GsfXMLIn
const *xin
);
19 Sheet
*gnm_xml_in_cur_sheet (GsfXMLIn
const *xin
);
22 GsfOutputMemory
*gnm_cellregion_to_xml (GnmCellRegion
const *cr
);
24 GnmCellRegion
*gnm_xml_cellregion_read (WorkbookControl
*wbc
,
25 GOIOContext
*io_context
,
27 const char *buffer
, int length
);
29 typedef void (*GnmXmlStyleHandler
) (GsfXMLIn
*xin
,
32 void gnm_xml_prep_style_parser (GsfXMLIn
*xin
,
33 xmlChar
const **attrs
,
34 GnmXmlStyleHandler handler
,
37 void gnm_xml_sax_read_init (void);
38 void gnm_xml_sax_read_shutdown (void);
40 void gnm_xml_sax_write_init (void);
41 void gnm_xml_sax_write_shutdown (void);
43 GnmConventions
*gnm_xml_io_conventions (void);
47 #endif /* _GNM_XML_SAX_H_ */