Move plugin init code
[gnumeric.git] / src / xml-sax.h
blob6aa7715b09143fe6aad4a519bd43f2a98155d909
1 #ifndef _GNM_XML_SAX_H_
2 # define _GNM_XML_SAX_H_
4 #include <gnumeric.h>
5 #include <gsf/gsf-output-memory.h>
7 G_BEGIN_DECLS
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,
26 Sheet *sheet,
27 const char *buffer, int length);
29 typedef void (*GnmXmlStyleHandler) (GsfXMLIn *xin,
30 GnmStyle *style,
31 gpointer user);
32 void gnm_xml_prep_style_parser (GsfXMLIn *xin,
33 xmlChar const **attrs,
34 GnmXmlStyleHandler handler,
35 gpointer user);
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);
45 G_END_DECLS
47 #endif /* _GNM_XML_SAX_H_ */