From: Angus Leeming Date: Tue, 5 Oct 2004 08:34:41 +0000 (+0000) Subject: Hartmut's patch to make the indexing command (makeindex) configurable. X-Git-Tag: 1.6.10~14975 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=965a7722797b0feb8284f8abd3985f7a21f115fd;p=features.git Hartmut's patch to make the indexing command (makeindex) configurable. Plus tweaks to get the UI working. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9043 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index c31f3fc607..8031b23dfc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2004-10-05 Hartmut Haase + + * LaTeX.C (runMakeIndex): + * lyxrc.[Ch] (read, write, getDescription): make the indexing command + (usually 'makeindex') configurable. + + * lastfiles.h (maxlastfiles): define the maximum number of 'lastfiles' + with a variable rather than with a number. + 2004-09-27 Jean-Marc Lasgouttes * output_latex.C (TeXOnePar): make sure font setting is the first diff --git a/src/LaTeX.C b/src/LaTeX.C index 845fdc322d..419cdcacd0 100644 --- a/src/LaTeX.C +++ b/src/LaTeX.C @@ -398,12 +398,7 @@ bool LaTeX::runMakeIndex(string const & f) lyxerr[Debug::LATEX] << "idx file has been made," " running makeindex on file " << f << endl; - - // 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 + " "; tmp += QuoteName(f); Systemcall one; one.startscript(Systemcall::Wait, tmp); diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index ec99cafd30..faffcd3a41 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2004-10-05 Angus Leeming + + * QPrefs.C, QPRefsDialog.C, ui/QPrefLatexModule.ui: add code to + input/output the indexing command (usually 'makeindex'). + 2004-09-09 Jean-Marc Lasgouttes * qfont_loader.C (addFontPath): quote the name of the font dir in diff --git a/src/frontends/qt2/QPrefs.C b/src/frontends/qt2/QPrefs.C index 9321c80539..60fff09415 100644 --- a/src/frontends/qt2/QPrefs.C +++ b/src/frontends/qt2/QPrefs.C @@ -32,6 +32,7 @@ #include "ui/QPrefIdentityModule.h" #include "debug.h" +#include "lastfiles.h" #include "LColor.h" #include "lyxfont.h" @@ -101,6 +102,8 @@ void QPrefs::build_dialog() bcview().setCancel(dialog_->closePB); bcview().setRestore(dialog_->restorePB); + dialog_->uiModule->lastfilesSB->setMaxValue(maxlastfiles); + QPrefLanguageModule * langmod(dialog_->languageModule); langmod->defaultLanguageCO->clear(); @@ -183,6 +186,7 @@ void QPrefs::apply() rc.fontenc = fromqstr(latexmod->latexEncodingED->text()); rc.chktex_command = fromqstr(latexmod->latexChecktexED->text()); rc.bibtex_command = fromqstr(latexmod->latexBibtexED->text()); + rc.index_command = fromqstr(latexmod->latexIndexED->text()); rc.auto_reset_options = latexmod->latexAutoresetCB->isChecked(); rc.view_dvi_paper_option = fromqstr(latexmod->latexDviPaperED->text()); rc.default_papersize = @@ -502,6 +506,7 @@ void QPrefs::update_contents() latexmod->latexEncodingED->setText(toqstr(rc.fontenc)); latexmod->latexChecktexED->setText(toqstr(rc.chktex_command)); latexmod->latexBibtexED->setText(toqstr(rc.bibtex_command)); + latexmod->latexIndexED->setText(toqstr(rc.index_command)); latexmod->latexAutoresetCB->setChecked(rc.auto_reset_options); latexmod->latexDviPaperED->setText(toqstr(rc.view_dvi_paper_option)); latexmod->latexPaperSizeCO->setCurrentItem(rc.default_papersize); diff --git a/src/frontends/qt2/QPrefsDialog.C b/src/frontends/qt2/QPrefsDialog.C index 51a491ceb6..3444fd1938 100644 --- a/src/frontends/qt2/QPrefsDialog.C +++ b/src/frontends/qt2/QPrefsDialog.C @@ -205,6 +205,7 @@ QPrefsDialog::QPrefsDialog(QPrefs * form) connect(latexModule->latexEncodingED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(latexModule->latexChecktexED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(latexModule->latexBibtexED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); + connect(latexModule->latexIndexED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(latexModule->latexAutoresetCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor())); connect(latexModule->latexDviPaperED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor())); connect(latexModule->latexPaperSizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor())); diff --git a/src/frontends/qt2/ui/QPrefLatexModule.ui b/src/frontends/qt2/ui/QPrefLatexModule.ui index 982fe96e69..24ece98f4b 100644 --- a/src/frontends/qt2/ui/QPrefLatexModule.ui +++ b/src/frontends/qt2/ui/QPrefLatexModule.ui @@ -13,306 +13,348 @@ 0 0 - 372 - 237 + 371 + 350 caption LaTeX settings - + + QLayoutWidget - margin - 11 + name + Layout3 - spacing - 6 + geometry + + 10 + 10 + 348 + 315 + - - QLayoutWidget + - name - Layout4 + margin + 0 - + + spacing + 6 + + + + name + Spacer3 + - margin - 0 + orientation + Vertical - spacing - 6 + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QCheckBox + + name + latexAutoresetCB + + + text + &Reset class options when document class changes + + + toolTip + Set class options to default on class change - - QLayoutWidget + + + QGroupBox + + name + GroupBox3 + + + title + External Applications + + - name - Layout3 + margin + 11 - + + spacing + 6 + + + QLineEdit - margin - 0 + name + latexChecktexED + + toolTip + CheckTeX start options and flags + + + + QLabel - spacing - 6 + name + latexChecktexLA - - QComboBox - - - text - Default + + text + Chec&kTeX command: + + + buddy + latexChecktexED + + + + QLineEdit + + name + latexBibtexED + + + toolTip + BibTeX command and options + + + + QLabel + + name + latexBibtexLA + + + text + &BibTeX command: + + + buddy + latexChecktexED + + + + QLineEdit + + name + latexIndexED + + + toolTip + Index command and options (makeindex, xindy) + + + + QLabel + + name + latexIndexLA + + + text + Index command: + + + buddy + latexDviPaperED + + + + QLabel + + name + latexDviPaperLA + + + text + DVI viewer paper size options: + + + buddy + latexDviPaperED + + + + QLineEdit + + name + latexDviPaperED + + + toolTip + Optional paper size flag (-paper) for some DVI viewers + + + + + + QLayoutWidget + + name + Layout4 + + + + margin + 0 + + + spacing + 6 + + + QLayoutWidget + + name + Layout3 + + + + margin + 0 + + + spacing + 6 + + + QComboBox + + + text + Default + + + + + text + US Letter + + + + + text + Legal + + + + + text + Executive + + + + + text + A3 + + + + + text + A4 + + + + + text + A5 + + + + + text + B5 + + + + name + latexPaperSizeCO - - - - text - US Letter + + + QLineEdit + + name + latexEncodingED - - - - text - Legal + + + QLabel + + name + latexEncodingLA - - - + text - Executive + Te&X encoding: - - - text - A3 + buddy + latexEncodingED - - - - text - A4 + + + QLabel + + name + latexPaperSizeLA - - - + text - A5 + Default paper si&ze: - - - text - B5 + buddy + latexPaperSizeCO - - - name - latexPaperSizeCO - - - - QLineEdit - - name - latexEncodingED - - - - QLabel - - name - latexEncodingLA - - - text - Te&X encoding: - - - buddy - latexEncodingED - - - - QLabel - - name - latexPaperSizeLA - - - text - Default paper si&ze: - - - buddy - latexPaperSizeCO - - - - - - - name - Spacer4 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - - - QCheckBox - - name - latexAutoresetCB - - - text - &Reset class options when document class changes - - - toolTip - Set class options to default on class change - - - - - name - Spacer3 - - - orientation - Vertical - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QGroupBox - - name - GroupBox3 - - - title - External Applications - - - - margin - 11 - - - spacing - 6 - - - QLabel - - name - latexDviPaperLA - - - text - DVI viewer paper size options: - - - buddy - latexDviPaperED - - - - QLineEdit - - name - latexDviPaperED - - - toolTip - Optional paper size flag (-paper) for some DVI viewers - - - - QLineEdit - - name - latexChecktexED - - - toolTip - CheckTeX start options and flags - - - - QLabel - - name - latexChecktexLA - - - text - Chec&kTeX command: - - - buddy - latexChecktexED - - - - QLineEdit - - name - latexBibtexED - - - toolTip - BibTeX command and options - - - - QLabel - - name - latexChecktexLA_2 - - - text - &BibTeX command: - - - buddy - latexChecktexED - - - - - + + + + + + name + Spacer4 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + + latexEncodingED diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 3f26b24dc4..4f307eebdf 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,12 @@ +2004-10-05 Angus Leeming + + * FormPreferences.C: add code to input/output the indexing command. + +2004-10-05 Hartmut Haase + + * forms/form_preferences.fd: add widgets to enable the indexing command + (usually 'makeindex') to be input. + 2004-09-26 Lars Gullik Bjonnes * pch.h: use proper signal include diff --git a/src/frontends/xforms/FormPreferences.C b/src/frontends/xforms/FormPreferences.C index a0761a28e2..a4eaeea4e0 100644 --- a/src/frontends/xforms/FormPreferences.C +++ b/src/frontends/xforms/FormPreferences.C @@ -24,6 +24,7 @@ #include "controllers/helper_funcs.h" // getSecond #include "buffer.h" +#include "lastfiles.h" #include "LColor.h" #include "lyxfont.h" @@ -1775,6 +1776,7 @@ void FormPreferences::OutputsMisc::apply(LyXRC & rc) const rc.ascii_roff_command = fl_get_input(dialog_->input_ascii_roff); rc.chktex_command = fl_get_input(dialog_->input_checktex); rc.bibtex_command = fl_get_input(dialog_->input_bibtex); + rc.index_command = fl_get_input(dialog_->input_index); rc.view_dvi_paper_option = fl_get_input(dialog_->input_paperoption); rc.auto_reset_options = fl_get_button(dialog_->check_autoreset_classopt); } @@ -1789,7 +1791,9 @@ void FormPreferences::OutputsMisc::build() fl_set_counter_return(dialog_->counter_line_len, FL_RETURN_CHANGED); fl_set_input_return(dialog_->input_tex_encoding, FL_RETURN_CHANGED); fl_set_input_return(dialog_->input_ascii_roff, FL_RETURN_CHANGED); + fl_set_input_return(dialog_->input_bibtex, FL_RETURN_CHANGED); fl_set_input_return(dialog_->input_checktex, FL_RETURN_CHANGED); + fl_set_input_return(dialog_->input_index, FL_RETURN_CHANGED); fl_set_input_return(dialog_->input_paperoption, FL_RETURN_CHANGED); fl_addto_choice(dialog_->choice_default_papersize, @@ -1801,7 +1805,9 @@ void FormPreferences::OutputsMisc::build() setPrehandler(dialog_->input_tex_encoding); setPrehandler(dialog_->choice_default_papersize); setPrehandler(dialog_->input_ascii_roff); + setPrehandler(dialog_->input_bibtex); setPrehandler(dialog_->input_checktex); + setPrehandler(dialog_->input_index); setPrehandler(dialog_->input_paperoption); setPrehandler(dialog_->check_autoreset_classopt); } @@ -1816,8 +1822,12 @@ FormPreferences::OutputsMisc::feedback(FL_OBJECT const * const ob) const return LyXRC::getDescription(LyXRC::RC_FONT_ENCODING); if (ob == dialog_->input_ascii_roff) return LyXRC::getDescription(LyXRC::RC_ASCIIROFF_COMMAND); + if (ob == dialog_->input_bibtex) + return LyXRC::getDescription(LyXRC::RC_BIBTEX_COMMAND); if (ob == dialog_->input_checktex) return LyXRC::getDescription(LyXRC::RC_CHKTEX_COMMAND); + if (ob == dialog_->input_index) + return LyXRC::getDescription(LyXRC::RC_INDEX_COMMAND); if (ob == dialog_->choice_default_papersize) return LyXRC::getDescription(LyXRC::RC_DEFAULT_PAPERSIZE); if (ob == dialog_->input_paperoption) @@ -1842,6 +1852,8 @@ void FormPreferences::OutputsMisc::update(LyXRC const & rc) rc.chktex_command.c_str()); fl_set_input(dialog_->input_bibtex, rc.bibtex_command.c_str()); + fl_set_input(dialog_->input_index, + rc.index_command.c_str()); fl_set_input(dialog_->input_paperoption, rc.view_dvi_paper_option.c_str()); fl_set_button(dialog_->check_autoreset_classopt, @@ -1900,6 +1912,7 @@ void FormPreferences::Paths::build() fl_set_input_return(dialog_->input_temp_dir, FL_RETURN_CHANGED); fl_set_input_return(dialog_->input_lastfiles, FL_RETURN_CHANGED); fl_set_input_return(dialog_->input_backup_path, FL_RETURN_CHANGED); + fl_set_counter_bounds(dialog_->counter_lastfiles, 0, maxlastfiles); fl_set_counter_return(dialog_->counter_lastfiles, FL_RETURN_CHANGED); fl_set_input_return(dialog_->input_serverpipe, FL_RETURN_CHANGED); diff --git a/src/frontends/xforms/forms/form_preferences.fd b/src/frontends/xforms/forms/form_preferences.fd index fcb2f2f7d2..94855b4da0 100644 --- a/src/frontends/xforms/forms/form_preferences.fd +++ b/src/frontends/xforms/forms/form_preferences.fd @@ -10,13 +10,13 @@ SnapGrid: 5 =============== FORM =============== Name: form_preferences Width: 470 -Height: 500 +Height: 600 Number of Objects: 8 -------------------- class: FL_BOX type: UP_BOX -box: 0 0 470 500 +box: 0 0 470 600 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -34,7 +34,7 @@ argument: -------------------- class: FL_TABFOLDER type: TOP_TABFOLDER -box: 5 10 455 375 +box: 5 10 455 475 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_TOP_LEFT @@ -52,7 +52,7 @@ argument: -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 5 390 100 30 +box: 5 490 100 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -70,7 +70,7 @@ argument: 0 -------------------- class: FL_BUTTON type: RETURN_BUTTON -box: 170 390 90 30 +box: 170 490 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -88,7 +88,7 @@ argument: 0 -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 270 390 90 30 +box: 270 490 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -106,7 +106,7 @@ argument: 0 -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 370 390 90 30 +box: 370 490 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -124,7 +124,7 @@ argument: 0 -------------------- class: FL_FRAME type: ENGRAVED_FRAME -box: 0 425 470 1 +box: 0 525 470 1 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_CENTER @@ -142,7 +142,7 @@ argument: -------------------- class: FL_TEXT type: NORMAL_TEXT -box: 5 430 460 70 +box: 5 530 460 70 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT|FL_ALIGN_INSIDE @@ -160,13 +160,13 @@ argument: =============== FORM =============== Name: form_preferences_inner_tab Width: 455 -Height: 375 +Height: 475 Number of Objects: 2 -------------------- class: FL_BOX type: FLAT_BOX -box: 0 0 455 375 +box: 0 0 455 475 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -184,7 +184,7 @@ argument: -------------------- class: FL_TABFOLDER type: TOP_TABFOLDER -box: 0 0 455 375 +box: 0 0 455 475 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_TOP_LEFT @@ -2241,7 +2241,7 @@ gravity: FL_NoGravity FL_NoGravity name: counter_lastfiles callback: C_FormDialogView_InputCB argument: 0 - bounds: 0 9 + bounds: 0 20 precision: 0 value: 4 sstep: 1 @@ -2766,13 +2766,13 @@ argument: =============== FORM =============== Name: form_preferences_outputs_misc Width: 455 -Height: 375 -Number of Objects: 11 +Height: 400 +Number of Objects: 12 -------------------- class: FL_BOX type: FLAT_BOX -box: 0 0 455 375 +box: 0 0 455 400 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -2866,7 +2866,7 @@ argument: 0 -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 10 190 435 165 +box: 10 190 435 200 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT @@ -2920,7 +2920,7 @@ argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 145 310 285 30 +box: 145 275 285 30 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -2956,7 +2956,7 @@ argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 145 275 285 30 +box: 145 310 285 30 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -2971,5 +2971,23 @@ name: input_bibtex callback: C_FormDialogView_InputCB argument: 0 +-------------------- +class: FL_INPUT +type: NORMAL_INPUT +box: 145 345 285 30 +boxtype: FL_DOWN_BOX +colors: FL_COL1 FL_MCOL +alignment: FL_ALIGN_LEFT +style: FL_NORMAL_STYLE +size: FL_NORMAL_SIZE +lcol: FL_BLACK +label: Index:|#I +shortcut: +resize: FL_RESIZE_ALL +gravity: FL_NoGravity FL_NoGravity +name: input_index +callback: C_FormDialogView_InputCB +argument: 0 + ============================== create_the_forms diff --git a/src/lastfiles.h b/src/lastfiles.h index e053af7059..fe4f1c0dec 100644 --- a/src/lastfiles.h +++ b/src/lastfiles.h @@ -17,6 +17,7 @@ #include #include +const long maxlastfiles = 20; /** The latest documents loaded. This class takes care of the last .lyx files used by the LyX user. It diff --git a/src/lyxrc.C b/src/lyxrc.C index e78189949d..71a5c8967b 100644 --- a/src/lyxrc.C +++ b/src/lyxrc.C @@ -25,6 +25,7 @@ #include "converter.h" #include "format.h" #include "gettext.h" +#include "lastfiles.h" #include "LColor.h" #include "lyxlex.h" #include "lyxfont.h" @@ -37,6 +38,7 @@ #include "support/userinfo.h" using lyx::support::ascii_lowercase; +using lyx::support::bformat; using lyx::support::ExpandPath; using lyx::support::GetEnv; using lyx::support::LibFileSearch; @@ -81,6 +83,7 @@ keyword_item lyxrcTags[] = { { "\\escape_chars", LyXRC::RC_ESC_CHARS }, { "\\font_encoding", LyXRC::RC_FONT_ENCODING }, { "\\format", LyXRC::RC_FORMAT }, + { "\\index_command", LyXRC::RC_INDEX_COMMAND }, { "\\input", LyXRC::RC_INPUT }, { "\\kbmap", LyXRC::RC_KBMAP }, { "\\kbmap_primary", LyXRC::RC_KBMAP_PRIMARY }, @@ -204,6 +207,7 @@ void LyXRC::setDefaults() { chktex_command = "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"; bibtex_command = "bibtex"; fontenc = "default"; + index_command = "makeindex -c -q"; dpi = 75; // Because a screen typically is wider than a piece of paper: zoom = 150; @@ -232,7 +236,7 @@ void LyXRC::setDefaults() { auto_region_delete = true; auto_reset_options = false; ascii_linelen = 65; - num_lastfiles = 4; + num_lastfiles = maxlastfiles; check_lastfiles = true; make_backup = true; backupdir_path.erase(); @@ -584,6 +588,12 @@ int LyXRC::read(LyXLex & lexrc) } break; + case RC_INDEX_COMMAND: + if (lexrc.next()) { + index_command = lexrc.getString(); + } + break; + case RC_SCREEN_DPI: if (lexrc.next()) { dpi = lexrc.getInteger(); @@ -1244,6 +1254,11 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc) const bibtex_command != system_lyxrc.bibtex_command) { os << "\\bibtex_command \"" << bibtex_command << "\"\n"; } + case RC_INDEX_COMMAND: + if (ignore_system_lyxrc || + index_command != system_lyxrc.index_command) { + os << "\\index_command \"" << index_command << "\"\n"; + } case RC_KBMAP: if (ignore_system_lyxrc || use_kbmap != system_lyxrc.use_kbmap) { @@ -2099,7 +2114,7 @@ string const LyXRC::getDescription(LyXRCTags tag) break; case RC_NUMLASTFILES: - str = _("Maximal number of lastfiles. Up to 9 can appear in the file menu."); + str = bformat(_("Maximal number of lastfiles. Up to %1$s can appear in the file menu."), tostr(maxlastfiles)); break; case RC_CHECKLASTFILES: @@ -2150,7 +2165,11 @@ string const LyXRC::getDescription(LyXRCTags tag) break; case RC_BIBTEX_COMMAND: - str = _("Define the options of bibtex (cf. man bibtex) or select and alternative compiler (e.g. mlbibtex or bibulus)."); + str = _("Define the options of bibtex (cf. man bibtex) or select an alternative compiler (e.g. mlbibtex or bibulus)."); + break; + + case RC_INDEX_COMMAND: + str = _("Define the options of makeindex (cf. man makeindex) or select an alternative compiler (e.g. xindy)."); break; case RC_CURSOR_FOLLOWS_SCROLLBAR: diff --git a/src/lyxrc.h b/src/lyxrc.h index e948e6489f..1f1723e427 100644 --- a/src/lyxrc.h +++ b/src/lyxrc.h @@ -131,6 +131,7 @@ enum LyXRCTags { RC_USE_SPELL_LIB, RC_USER_NAME, RC_USER_EMAIL, + RC_INDEX_COMMAND, RC_LAST }; @@ -209,6 +210,8 @@ public: std::string chktex_command; /// command to run bibtex incl. options std::string bibtex_command; + /// command to run makeindex incl. options or other index programs + std::string index_command; /// std::string document_path; ///