mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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
This commit is contained in:
parent
7a8f2f4743
commit
965a772279
@ -1,3 +1,12 @@
|
||||
2004-10-05 Hartmut Haase <hha4491@atomstromfrei.de>
|
||||
|
||||
* 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 <lasgouttes@lyx.org>
|
||||
|
||||
* output_latex.C (TeXOnePar): make sure font setting is the first
|
||||
|
@ -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);
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-10-05 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* QPrefs.C, QPRefsDialog.C, ui/QPrefLatexModule.ui: add code to
|
||||
input/output the indexing command (usually 'makeindex').
|
||||
|
||||
2004-09-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* qfont_loader.C (addFontPath): quote the name of the font dir in
|
||||
|
@ -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);
|
||||
|
@ -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()));
|
||||
|
@ -13,306 +13,348 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>372</width>
|
||||
<height>237</height>
|
||||
<width>371</width>
|
||||
<height>350</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>caption</name>
|
||||
<string>LaTeX settings</string>
|
||||
</property>
|
||||
<grid>
|
||||
<widget>
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
<name>name</name>
|
||||
<cstring>Layout3</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
<name>geometry</name>
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>348</width>
|
||||
<height>315</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLayoutWidget</class>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout4</cstring>
|
||||
<name>margin</name>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<hbox>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>0</number>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<spacer row="3" column="0" >
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer3</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
<name>orientation</name>
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<widget>
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>sizeType</name>
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property>
|
||||
<name>sizeHint</name>
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget row="1" column="0" >
|
||||
<class>QCheckBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexAutoresetCB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Reset class options when document class changes</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Set class options to default on class change</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>GroupBox3</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>External Applications</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout3</cstring>
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
</property>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget row="0" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>0</number>
|
||||
<name>name</name>
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>CheckTeX start options and flags</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexChecktexLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
<name>text</name>
|
||||
<string>Chec&kTeX command:</string>
|
||||
</property>
|
||||
<widget row="1" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Default</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>US Letter</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Legal</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Executive</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>A3</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>A4</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>A5</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>B5</string>
|
||||
</property>
|
||||
</item>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexPaperSizeCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexEncodingED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexEncodingLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Te&X encoding:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexEncodingED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexPaperSizeLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Default paper si&ze:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexPaperSizeCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer4</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>orientation</name>
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizeType</name>
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property>
|
||||
<name>sizeHint</name>
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</hbox>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QCheckBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexAutoresetCB</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&Reset class options when document class changes</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Set class options to default on class change</string>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="3" column="0" >
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer3</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>orientation</name>
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizeType</name>
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property>
|
||||
<name>sizeHint</name>
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget row="2" column="0" >
|
||||
<class>QGroupBox</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>GroupBox3</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>title</name>
|
||||
<string>External Applications</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexBibtexED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>BibTeX command and options</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexBibtexLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&BibTeX command:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexIndexED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Index command and options (makeindex, xindy)</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexIndexLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Index command:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexDviPaperED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexDviPaperLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>DVI viewer paper size options:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexDviPaperED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="3" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexDviPaperED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Optional paper size flag (-paper) for some DVI viewers</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>11</number>
|
||||
<name>name</name>
|
||||
<cstring>Layout4</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget row="2" column="0" >
|
||||
<class>QLabel</class>
|
||||
<hbox>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexDviPaperLA</cstring>
|
||||
<name>margin</name>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>DVI viewer paper size options:</string>
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexDviPaperED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="2" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexDviPaperED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>Optional paper size flag (-paper) for some DVI viewers</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>CheckTeX start options and flags</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexChecktexLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Chec&kTeX command:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexBibtexED</cstring>
|
||||
</property>
|
||||
<property>
|
||||
<name>toolTip</name>
|
||||
<string>BibTeX command and options</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexChecktexLA_2</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>&BibTeX command:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
<widget>
|
||||
<class>QLayoutWidget</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>Layout3</cstring>
|
||||
</property>
|
||||
<grid>
|
||||
<property stdset="1">
|
||||
<name>margin</name>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>spacing</name>
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget row="1" column="1" >
|
||||
<class>QComboBox</class>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Default</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>US Letter</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Legal</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>Executive</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>A3</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>A4</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>A5</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property>
|
||||
<name>text</name>
|
||||
<string>B5</string>
|
||||
</property>
|
||||
</item>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexPaperSizeCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="1" >
|
||||
<class>QLineEdit</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexEncodingED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="0" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexEncodingLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Te&X encoding:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexEncodingED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget row="1" column="0" >
|
||||
<class>QLabel</class>
|
||||
<property stdset="1">
|
||||
<name>name</name>
|
||||
<cstring>latexPaperSizeLA</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>text</name>
|
||||
<string>Default paper si&ze:</string>
|
||||
</property>
|
||||
<property>
|
||||
<name>buddy</name>
|
||||
<cstring>latexPaperSizeCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property>
|
||||
<name>name</name>
|
||||
<cstring>Spacer4</cstring>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>orientation</name>
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property stdset="1">
|
||||
<name>sizeType</name>
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property>
|
||||
<name>sizeHint</name>
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</hbox>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>latexEncodingED</tabstop>
|
||||
|
@ -1,3 +1,12 @@
|
||||
2004-10-05 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* FormPreferences.C: add code to input/output the indexing command.
|
||||
|
||||
2004-10-05 Hartmut Haase <hha4491@atomstromfrei.de>
|
||||
|
||||
* forms/form_preferences.fd: add widgets to enable the indexing command
|
||||
(usually 'makeindex') to be input.
|
||||
|
||||
2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||
|
||||
* pch.h: use proper signal include
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <deque>
|
||||
#include <string>
|
||||
|
||||
const long maxlastfiles = 20;
|
||||
|
||||
/** The latest documents loaded.
|
||||
This class takes care of the last .lyx files used by the LyX user. It
|
||||
|
25
src/lyxrc.C
25
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:
|
||||
|
@ -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;
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user