mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Disable various spell thingies when USE_[AIP]SPELL is not defined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9912 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5d23b3046d
commit
4ea2bf14db
@ -1,3 +1,8 @@
|
||||
2005-05-04 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* lyxfunc.C (getStatus): disable the spell checker dialog if
|
||||
none of USE_[AIP]SPELL are defined.
|
||||
|
||||
2005-05-05 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* tabular.C (setWidthOfCell): remove obsolete comment
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-05-04 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* QPrefsDialog.C (QPrefsDialog): disable the spellCommandCO if
|
||||
USE_ISPELL is not defined.
|
||||
|
||||
* ui/Makefile.am (CLEANFILES): add *Module.h and *Dialog.h.
|
||||
|
||||
2005-05-02 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
@ -257,7 +257,11 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
|
||||
connect(pathsModule->tempDirED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
|
||||
connect(pathsModule->lyxserverDirED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
|
||||
connect(pathsModule->pathPrefixED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
|
||||
#if defined (USE_ISPELL)
|
||||
connect(spellcheckerModule->spellCommandCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
|
||||
#else
|
||||
spellcheckerModule->spellCommandCO->setEnabled(false);
|
||||
#endif
|
||||
connect(spellcheckerModule->altLanguageED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
|
||||
connect(spellcheckerModule->escapeCharactersED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
|
||||
connect(spellcheckerModule->persDictionaryED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-05-04 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* FormPreferences.C (SpellOptions::build): disable the
|
||||
choice_spell_command if USE_ISPELL is not defined.
|
||||
|
||||
2005-05-04 Michael Schmitt <michael.schmitt@teststep.org>
|
||||
|
||||
* forms/form_preferences.fd: fix capitalization.
|
||||
|
@ -2990,6 +2990,10 @@ void FormPreferences::SpellOptions::build()
|
||||
fl_set_input_return(dialog_->input_escape_chars, FL_RETURN_CHANGED);
|
||||
fl_set_input_return(dialog_->input_personal_dict, FL_RETURN_CHANGED);
|
||||
|
||||
#if !defined (USE_ISPELL)
|
||||
setEnabled(dialog_->choice_spell_command, false);
|
||||
#endif
|
||||
|
||||
// set up the feedback mechanism
|
||||
setPrehandler(dialog_->choice_spell_command);
|
||||
setPrehandler(dialog_->check_alt_lang);
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include "support/path.h"
|
||||
#include "support/systemcall.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#if !defined (HAVE_FORK)
|
||||
# define fork() -1
|
||||
#endif
|
||||
|
||||
|
@ -493,10 +493,14 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
&& lyxrc.print_command != "none";
|
||||
else if (name == "character" || name == "mathpanel")
|
||||
enable = cur.inset().lyxCode() != InsetBase::ERT_CODE;
|
||||
else if (name == "vclog")
|
||||
enable = buf->lyxvc().inUse();
|
||||
else if (name == "latexlog")
|
||||
enable = IsFileReadable(buf->getLogName().second);
|
||||
#if !defined (USE_ASPELL) && !defined (USE_ISPELL) && !defined (USE_PSPELL)
|
||||
else if (name == "spellchecker")
|
||||
enable = false;
|
||||
#endif
|
||||
else if (name == "vclog")
|
||||
enable = buf->lyxvc().inUse();
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user