Click here to Skip to main content
12,951,983 members (58,849 online)
Click here to Skip to main content


107 bookmarked
Posted 6 Jan 2001

A Spell Checking Engine

, 5 Feb 2001
A free spell checking engine for use in your C++ applications. Includes the current US English dictionary

  Copyright:		2000
  Author:			Matthew T Gullett
  Name:				CFPSSpellCheckEngineOptions
  Part of:			Spell Checking Engine 

  This class is designed to implement options support for
  the spell checking engine.

  This class is provided -as is-.  No warranty as to the
  function or performance of this class is provided either 
  written or implied.  
  You may freely use this code and modify it as necessary,
  as long as this header is unmodified and credit is given
  to the author in the application(s) in which it is



#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CFPSSpellCheckEngineOptions  
	virtual ~CFPSSpellCheckEngineOptions();

	virtual int SaveOptions(LPCSTR lpszFileName);
	virtual int LoadOptions(LPCSTR lpszFileName);

	// access operators
	virtual BOOL CheckWhileTyping() {return m_bCheckWhileTyping;}
	virtual BOOL IgnoreUpperCase() {return m_bIgnoreUpperCase;}
	virtual BOOL IgnoreNumbers() {return m_bIgnoreNumbers;}
	virtual BOOL IgnoreAddresses() {return m_bIgnoreAddresses;}
	virtual CString GetLanguage() {return m_strLanguage;}
	virtual CString GetMainDic() {return m_strMainDic;}
	virtual CString GetUserDic() {return m_strUserDic;}
	virtual CString GetCommonDic() {return m_strCommonDic;}
	virtual CString GetOptionsFileName() {return m_strOptionsFile;}

	// set operators
	virtual void SetCheckWhileTyping(BOOL bValue) {m_bCheckWhileTyping = bValue;}
	virtual void SetIgnoreUpperCase(BOOL bValue) {m_bIgnoreUpperCase = bValue;}
	virtual void SetIgnoreNumbers(BOOL bValue) {m_bIgnoreNumbers = bValue;}
	virtual void SetIgnoreAddresses(BOOL bValue) {m_bIgnoreAddresses = bValue;}
	virtual void SetLanguage(LPCSTR lpszValue) {m_strLanguage = lpszValue;}
	virtual void SetMainDic(LPCSTR lpszValue) {m_strMainDic = lpszValue;}
	virtual void SetUserDic(LPCSTR lpszValue) {m_strUserDic = lpszValue;}
	virtual void SetCommonDic(LPCSTR lpszValue) {m_strCommonDic = lpszValue;}

	virtual void CheckForDefaults();
	BOOL	m_bCheckWhileTyping;
	BOOL	m_bIgnoreUpperCase;
	BOOL	m_bIgnoreNumbers;
	BOOL	m_bIgnoreAddresses;

	CString	m_strLanguage;
	CString	m_strMainDic;
	CString	m_strUserDic;
	CString	m_strCommonDic;

	CString	m_strOptionsFile;


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Matt Gullett
Web Developer
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 6 Feb 2001
Article Copyright 2001 by Matt Gullett
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid