struct dictionary *dict;
GtkWidget *sheet_entry = get_widget_assert (builder, "sheet-entry");
+ GtkWidget *readnames_checkbox = get_widget_assert (builder, "readnames-checkbox");
gint num = atoi (gtk_entry_get_text (sheet_entry));
ssp->opts.sheet_index = num;
ssp->sri.file_name = file->file_name;
- ssp->sri.read_names = true;
+ ssp->sri.read_names = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (readnames_checkbox));
ssp->sri.asw = -1;
switch (ia->file.type)
"\n /TYPE=%ss"
"\n /FILE=%sq"
"\n /SHEET=index %d"
+ "\n /READNAMES=%ss"
".",
(ia->file.type == FTYPE_GNUMERIC) ? "GNM" : "ODS",
ia->file.file_name,
- ssp->opts.sheet_index);
+ ssp->opts.sheet_index,
+ ssp->sri.read_names ? "ON" : "OFF");
}
break;
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="checkbutton1">
+ <object class="GtkCheckButton" id="readnames-checkbox">
<property name="label" translatable="yes">Use first row as _variable names</property>
<property name="visible">True</property>
<property name="can_focus">True</property>