Added property for the backend
[pspp] / src / data / spreadsheet-reader.h
index d25aaf32f6a11c11760c20fd97ace5d64b820662..f9a30209e4db281975b3fa5dc16752a5aa224549 100644 (file)
@@ -36,7 +36,6 @@ struct spreadsheet_read_options
 
 struct spreadsheet_read_info
 {
-  char *file_name ;        /* The name of the file to open (in filename encoding) */
   bool read_names ;        /* True if the first row is to be used as the names of the variables */
   int asw ;                /* The width of string variables in the created dictionary */
 };
@@ -54,15 +53,16 @@ bool convert_cell_ref (const char *ref,
 
 enum spreadsheet_type
   {
+    SPREADSHEET_NONE,
     SPREADSHEET_GNUMERIC,
     SPREADSHEET_ODS
   };
 
 struct spreadsheet
 {
-  enum spreadsheet_type type;
+  char *file_name;
 
-  struct casereader * (*make_reader) (struct spreadsheet *);
+  enum spreadsheet_type type;
 
   /* The total number of sheets in the "workbook" */
   int sheets;