]> git.lyx.org Git - lyx.git/commitdiff
Disable various spell thingies when USE_[AIP]SPELL is not defined.
authorAngus Leeming <leeming@lyx.org>
Thu, 5 May 2005 21:08:18 +0000 (21:08 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 5 May 2005 21:08:18 +0000 (21:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9912 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/frontends/qt2/ChangeLog
src/frontends/qt2/QPrefsDialog.C
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormPreferences.C
src/lyx_cb.C
src/lyxfunc.C

index e6cecbda44c62cebc0a5926f620585d05cf9962f..c91f25e73f5c1a4e55f6819cd95a5b728513058a 100644 (file)
@@ -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
index 3aa95eb77d9528cd7d1f49c9969ee22403973070..fec180a07409b6c80607a55838305b2a8f41f47e 100644 (file)
@@ -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>
index 35b3401d99864b3a4f4906bfd2a17b227a987a5a..695590e86ecced34c5aea0cc8e4e903b54c45544 100644 (file)
@@ -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()));
index e76130eaad1b7ff1a54c41d897c681699ff5f470..01c6492359a40cd1d5050ac513302321b829a2e9 100644 (file)
@@ -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.
index a55055b026aa327c9dea1a93d62d786a97e5b4ea..8fa27dfdbe6e1b31dc9c08a0ade5dbda7700dca6 100644 (file)
@@ -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);
index 2112cda2468db70679293758910c5a7f559fe0d9..c58ee30d7fec683b31cf1ba9a39f2456237bca41 100644 (file)
@@ -44,7 +44,7 @@
 #include "support/path.h"
 #include "support/systemcall.h"
 
-#ifdef _WIN32
+#if !defined (HAVE_FORK)
 # define fork() -1
 #endif
 
index 2104c4a859a01f8522b4a2dafa8bcd082bea19e2..91d89b0df73a98c4ed301e71aa32a10f5dcbaa89 100644 (file)
@@ -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;
        }