1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2020 Free Software Foundation
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef PSPPIRE_IMPORT_TEXTFILE_H
19 #define PSPPIRE_IMPORT_TEXTFILE_H
21 #include "psppire-import-assistant.h"
25 const char *name; /* Name (for use with get_widget_assert). */
26 gunichar c; /* Separator character. */
29 /* All the separators in the dialog box. */
30 static const struct separator separators[] =
43 #define N_SEPARATORS (sizeof separators / sizeof *separators)
45 /* Initializes IA's intro substructure. */
46 void intro_page_create (PsppireImportAssistant *ia);
47 void first_line_page_create (PsppireImportAssistant *ia);
48 void separators_page_create (PsppireImportAssistant *ia);
50 /* Set the data model for both the data sheet and the variable sheet. */
51 void textfile_set_data_models (PsppireImportAssistant *ia);
53 void text_spec_gen_syntax (PsppireImportAssistant *ia, struct string *s);