#include <stdbool.h>
struct casereader;
+struct dictionary;
+struct spreadsheet_read_info;
+struct spreadsheet_read_options;
+struct spreadsheet *gnumeric_probe (const char *filename, bool report_errors);
-struct gnumeric_read_info
-{
- char *sheet_name ; /* In UTF-8. */
- char *file_name ; /* In filename encoding. */
- char *cell_range ; /* In UTF-8. */
- int sheet_index ;
- bool read_names ;
- int asw ;
-};
+const char * gnumeric_get_sheet_name (struct spreadsheet *s, int n);
+char * gnumeric_get_sheet_range (struct spreadsheet *s, int n);
-struct dictionary;
+struct casereader * gnumeric_make_reader (struct spreadsheet *spreadsheet,
+ const struct spreadsheet_read_options *opts);
-struct casereader * gnumeric_open_reader (struct gnumeric_read_info *, struct dictionary **);
+void gnumeric_destroy (struct spreadsheet *r);
#endif