Replace more uses of 'cnt' by 'n'.
[pspp] / src / ui / gui / psppire-import-textfile.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2020  Free Software Foundation
3
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.
8
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.
13
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/>.
16  */
17
18 #ifndef PSPPIRE_IMPORT_TEXTFILE_H
19 #define PSPPIRE_IMPORT_TEXTFILE_H
20
21 #include "psppire-import-assistant.h"
22
23 struct separator
24 {
25   const char *name;           /* Name (for use with get_widget_assert). */
26   gunichar c;                 /* Separator character. */
27 };
28
29 /* All the separators in the dialog box. */
30 static const struct separator separators[] =
31   {
32     {"space",     ' '},
33     {"tab",       '\t'},
34     {"bang",      '!'},
35     {"colon",     ':'},
36     {"comma",     ','},
37     {"hyphen",    '-'},
38     {"pipe",      '|'},
39     {"semicolon", ';'},
40     {"slash",     '/'},
41   };
42
43 #define N_SEPARATORS (sizeof separators / sizeof *separators)
44
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);
49
50 /* Set the data model for both the data sheet and the variable sheet.  */
51 void textfile_set_data_models (PsppireImportAssistant *ia);
52
53 void text_spec_gen_syntax (PsppireImportAssistant *ia, struct string *s);
54
55
56 #endif