Make sheet spec page opaque
[pspp] / src / ui / gui / text-data-import-dialog.c
index c2de780328d9462a8c1e88a7b5fbb84771640902..c9cee751915f773f0b291fc285f23eee1eef5cfc 100644 (file)
@@ -81,15 +81,8 @@ text_data_import_assistant (PsppireDataWindow *dw)
     }
 
   ssp = ia->sheet_spec;
-  if (ssp->spreadsheet == NULL)
-    {
-      init_first_line_page (ia);
-      init_separators_page (ia);
-    }
-  else
-    {
-      init_sheet_spec_page (ia);
-    }
+  init_first_line_page (ia);
+  init_separators_page (ia);
 
   init_formats_page (ia);
 
@@ -111,11 +104,8 @@ text_data_import_assistant (PsppireDataWindow *dw)
       break;
     }
 
-  if (ssp->spreadsheet == NULL)
-    {
-      destroy_formats_page (ia);
-      destroy_separators_page (ia);
-    }
+  destroy_formats_page (ia);
+  destroy_separators_page (ia);
 
   destroy_assistant (ia);
   destroy_file (ia);
@@ -214,6 +204,7 @@ generate_syntax (const struct import_assistant *ia)
 
   struct string s = DS_EMPTY_INITIALIZER;
 
+#if 0
   if (ssp->spreadsheet == NULL)
     {
       size_t var_cnt;
@@ -267,11 +258,10 @@ generate_syntax (const struct import_assistant *ia)
       apply_dict (ia->formats->dict, &s);
     }
   else
+
     {
       const struct sheet_spec_page *ssp = ia->sheet_spec;
 
-      printf ("%s:%d %p %d\n", __FILE__, __LINE__, ssp->spreadsheet, ssp->spreadsheet->type);
-
       syntax_gen_pspp (&s,
                       "GET DATA"
                       "\n  /TYPE=%ss"
@@ -300,6 +290,7 @@ generate_syntax (const struct import_assistant *ia)
       syntax_gen_pspp (&s, ".");
     }
 
+#endif
   return ds_cstr (&s);
 }