Fixed some bugs

This commit is contained in:
Ianos Gnatiuc 2006-03-11 19:24:51 +00:00
parent 01dbce733b
commit 60ab82953c
3 changed files with 10 additions and 11 deletions

View File

@ -107,7 +107,7 @@
#define GCFG_NO_MSSPELL #define GCFG_NO_MSSPELL
#endif #endif
#if !defined(GCFG_NO_MSSPELL) && !defined(GCFG_NO_MYSPELL) #if !defined(GCFG_NO_MSSPELL) || !defined(GCFG_NO_MYSPELL)
#define GCFG_SPELL_INCLUDED #define GCFG_SPELL_INCLUDED
#endif #endif

View File

@ -572,6 +572,11 @@ bool CMYSpellLang::SpellSuggest(const char *text, bool more)
} }
// ------------------------------------------------------------------
#endif //#if !defined(GCFG_NO_MYSPELL)
// ------------------------------------------------------------------ // ------------------------------------------------------------------
CSpellChecker::CSpellChecker() CSpellChecker::CSpellChecker()
@ -582,11 +587,6 @@ CSpellChecker::CSpellChecker()
} }
// ------------------------------------------------------------------
#endif //#if !defined(GCFG_NO_MYSPELL)
// ------------------------------------------------------------------ // ------------------------------------------------------------------
bool CSpellChecker::Init(const char *codeset, const char *dicPath) bool CSpellChecker::Init(const char *codeset, const char *dicPath)
@ -723,9 +723,11 @@ CSpellSuggestV &CSpellChecker::Suggest()
// ------------------------------------------------------------------ // ------------------------------------------------------------------
#if !defined(GCFG_NO_MSSPELL)
#undef CHECK_ERROR #undef CHECK_ERROR
#undef CHECK_NULL #undef CHECK_NULL
#undef CHECK_SEC #undef CHECK_SEC
#endif
// ------------------------------------------------------------------ // ------------------------------------------------------------------

View File

@ -221,7 +221,9 @@ public:
#endif //#if !defined(GCFG_NO_MSSPELL) #endif //#if !defined(GCFG_NO_MSSPELL)
#if !defined(GCFG_NO_MYSPELL) #if !defined(GCFG_NO_MYSPELL)
class gdirentry; class gdirentry;
class MySpell; class MySpell;
@ -259,8 +261,6 @@ typedef std::vector<CSpellLang*> CSpellLangV;
class CSpellChecker class CSpellChecker
{ {
private: private:
int mDicType;
bool mInited; bool mInited;
char mText[1024]; char mText[1024];
@ -270,9 +270,6 @@ private:
CSpellLangV mLangs; CSpellLangV mLangs;
CSpellSuggestV mSuggest; CSpellSuggestV mSuggest;
private:
void MSAddLanguage(HKEY hKey, const char *name);
public: public:
CSpellChecker(); CSpellChecker();
~CSpellChecker() { Close(); } ~CSpellChecker() { Close(); }