Here is a patch to set makeindex parameters in the preferences menu or to use 
another index program. The many changes in form_preferences.C are necessary 
because the window is too small.
-- 
Regards,
Hartmut 

Hungerhilfe: http://www.thehungersite.com

Das heutige Motto:
You will step on the soil of many countries. 
401,406c401
< 
< 	// It should be possible to set the switches for makeindex
< 	// sorting style and such. It would also be very convenient
< 	// to be able to make style files from within LyX. This has
< 	// to come for a later time.
< 	string tmp = "makeindex -c -q ";
---
> 	string tmp = lyxrc.index_command + " ";
84a85
> 	{ "\\index_command", LyXRC::RC_INDEX_COMMAND },
206a208
> 	index_command = "makeindex -c -q";
590a593,598
> 		case RC_INDEX_COMMAND:
> 			if (lexrc.next()) {
> 				index_command = lexrc.getString();
> 			}
> 			break;
> 
1250a1259,1263
> 	case RC_INDEX_COMMAND:
> 		if (ignore_system_lyxrc ||
> 		    index_command != system_lyxrc.index_command) {
> 			os << "\\index_command \"" << index_command << "\"\n";
> 		}
2159a2173,2176
> 	case RC_INDEX_COMMAND:
> 		str = _("Define the options of makeindex (cf. man makeindex) or select and alternative compiler (e.g. xindy).");
> 		break;
> 
133a134
> 	RC_INDEX_COMMAND,
211a213,214
> 	/// command to run makeindex incl. options or other index programs
> 	std::string index_command;
1777a1778
> 	rc.index_command = fl_get_input(dialog_->input_index);
1792a1794,1795
> 	fl_set_input_return(dialog_->input_bibtex,       FL_RETURN_CHANGED);
> 	fl_set_input_return(dialog_->input_index,        FL_RETURN_CHANGED);
1804a1808,1809
> 	setPrehandler(dialog_->input_bibtex);
> 	setPrehandler(dialog_->input_index);
1820a1826,1829
> 	if (ob == dialog_->input_bibtex)
> 		return LyXRC::getDescription(LyXRC::RC_BIBTEX_COMMAND);
> 	if (ob == dialog_->input_index)
> 		return LyXRC::getDescription(LyXRC::RC_INDEX_COMMAND);
1844a1854,1855
> 	fl_set_input(dialog_->input_index,
> 		     rc.index_command.c_str());
29c29
< 	fdui->form = fl_bgn_form(FL_NO_BOX, 470, 500);
---
> 	fdui->form = fl_bgn_form(FL_NO_BOX, 470, 600);
32c32
< 	obj = fl_add_box(FL_UP_BOX, 0, 0, 470, 500, "");
---
> 	obj = fl_add_box(FL_UP_BOX, 0, 0, 470, 600, "");
34c34
< 	fdui->tabfolder_prefs = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 5, 10, 455, 375, "");
---
> 	fdui->tabfolder_prefs = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 5, 10, 455, 475, "");
41c41
< 	fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 5, 390, 100, 30, idex(tmp_str).c_str());
---
> 	fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 5, 490, 100, 30, idex(tmp_str).c_str());
46c46
< 	fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 170, 390, 90, 30, _("Save").c_str());
---
> 	fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 170, 490, 90, 30, _("Save").c_str());
51c51
< 	fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 270, 390, 90, 30, idex(tmp_str).c_str());
---
> 	fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 270, 490, 90, 30, idex(tmp_str).c_str());
57c57
< 	fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 370, 390, 90, 30, idex(tmp_str).c_str());
---
> 	fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 370, 490, 90, 30, idex(tmp_str).c_str());
62c62
< 	obj = fl_add_frame(FL_ENGRAVED_FRAME, 0, 425, 470, 1, "");
---
> 	obj = fl_add_frame(FL_ENGRAVED_FRAME, 0, 525, 470, 1, "");
64c64
< 	fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 5, 430, 460, 70, "");
---
> 	fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 5, 530, 460, 70, "");
79c79
< 	fdui->form = fl_bgn_form(FL_NO_BOX, 455, 375);
---
> 	fdui->form = fl_bgn_form(FL_NO_BOX, 455, 475);
82c82
< 	obj = fl_add_box(FL_FLAT_BOX, 0, 0, 455, 375, "");
---
> 	obj = fl_add_box(FL_FLAT_BOX, 0, 0, 455, 475, "");
84c84
< 	fdui->tabfolder_inner = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 0, 0, 455, 375, "");
---
> 	fdui->tabfolder_inner = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 0, 0, 455, 475, "");
988c988
< 	fdui->form = fl_bgn_form(FL_NO_BOX, 455, 375);
---
> 	fdui->form = fl_bgn_form(FL_NO_BOX, 455, 400);
991c991
< 	obj = fl_add_box(FL_FLAT_BOX, 0, 0, 455, 375, "");
---
> 	obj = fl_add_box(FL_FLAT_BOX, 0, 0, 455, 400, "");
1021c1021
< 	obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 190, 435, 165, _("Outside Code Interaction").c_str());
---
> 	obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 190, 435, 200, _("Outside Code Interaction").c_str());
1052a1053,1058
> 	tmp_str = _("Index:|#I");
> 	fdui->input_index = obj = fl_add_input(FL_NORMAL_INPUT, 145, 345, 285, 30, idex(tmp_str).c_str());
> 	fl_set_button_shortcut(obj, scex(tmp_str).c_str(), 1);
> 	fl_set_object_lsize(obj, FL_NORMAL_SIZE);
> 	fl_set_object_callback(obj, C_FormDialogView_InputCB, 0);
> 
221a222
> 	FL_OBJECT * input_index;

Reply via email to