|
/*
Copyright: 2000
Author: Matthew T Gullett
Email: gullettm@yahoo.com
Name: CFPSSpellCheckEngineOptions
Part of: Spell Checking Engine
Requires:
DESCRIPTION
----------------------------------------------------------
This class is designed to implement options support for
the spell checking engine.
INFO:
----------------------------------------------------------
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
incorporated.
*/
#if !defined(AFX_FPSSPELLCHECKENGINEOPTIONS_H__832ABCF3_D98D_4D43_BC5C_A470CBC66FD2__INCLUDED_)
#define AFX_FPSSPELLCHECKENGINEOPTIONS_H__832ABCF3_D98D_4D43_BC5C_A470CBC66FD2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define FPSSCEOptions_ERROR_FILE_OPEN_FAILED FPSSPELLCHECK_ERROR_CUSTOM+1
class CFPSSpellCheckEngineOptions
{
public:
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;}
protected:
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;
};
#endif // !defined(AFX_FPSSPELLCHECKENGINEOPTIONS_H__832ABCF3_D98D_4D43_BC5C_A470CBC66FD2__INCLUDED_)
|
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
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.