+2001-08-21 Herbert Voss <voss@perce.de>
+
+ * FormBibtex.C (input): extension handling for ".bst"
+
+2001-08-21 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * forms/form_bibtex.fd: activate "Ok" when the "Add bibliography to TOC"
+ check button is pressed.
+
2001-08-20 Dekel Tsur <dekelts@tau.ac.il>
* FormParagraph.C (general_apply): Handle default spacing.
"Select Database",
"*.bib| BibTeX Databases (*.bib)");
if (!out_name.empty()) {
- if (suffixIs(out_name,".bib")) {
- // to prevent names like xxxbib.bib
- // latex needs it without suffix
+ out_name = OnlyFilename(out_name);
+ if (suffixIs(out_name,".bst")) {
+ // to prevent names like xxxbst.bst
out_name = ChangeExtension(out_name,"");
}
-
+
fl_freeze_form(form());
fl_set_input(dialog_->database, out_name.c_str());
fl_unfreeze_form(form());
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
}
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
- fdui->radio_bibtotoc = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 90, 90, 30, 30, _("Add bibliography to TOC"));
- fl_set_button_shortcut(obj, _("T"), 1);
+ {
+ char const * const dummy = N_("Add bibliography to TOC|#A");
+ fdui->radio_bibtotoc = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 90, 90, 30, 30, idex(_(dummy)));
+ fl_set_button_shortcut(obj, scex(_(dummy)), 1);
+ }
+ fl_set_object_callback(obj, C_FormBaseInputCB, 0);
fl_end_form();
fdui->form->fdui = fdui;
style: FL_NORMAL_STYLE
size: FL_DEFAULT_SIZE
lcol: FL_BLACK
-label: Add bibliography to TOC
-shortcut: T
+label: Add bibliography to TOC|#A
+shortcut:
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_bibtotoc
-callback:
-argument:
+callback: C_FormBaseInputCB
+argument: 0
==============================
create_the_forms