enum { MAX_PREVIEW_LINES = 1000 }; /* Max number of lines to read. */
+struct assist_page
+{
+ GtkWidget *page;
+};
+
/* The file to be imported. */
struct file
{
GtkBuilder *builder;
GtkAssistant *assistant;
GMainLoop *main_loop;
+ bool loop_done;
GtkWidget *paste_button;
GtkWidget *reset_button;
int response;
int skip_lines; /* Number of initial lines to skip? */
bool variable_names; /* Variable names above first line of data? */
struct dictionary *dict;
+
+ struct spreadsheet *spreadsheet;
};
struct column
void prepare_first_line_page (struct import_assistant *ia);
void reset_first_line_page (struct import_assistant *);
+void reset_intro_page (struct import_assistant *ia);
+
void prepare_separators_page (struct import_assistant *ia);
void reset_separators_page (struct import_assistant *);
void destroy_separators_page (struct import_assistant *ia);