• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdespell2
 

tdespell2

Public Member Functions | List of all members
ASpellDict Class Reference

#include <tdespell_aspelldict.h>

Inheritance diagram for ASpellDict:
KSpell2::Dictionary

Public Member Functions

 ASpellDict (const TQString &lang)
 
virtual bool check (const TQString &word)
 
virtual TQStringList suggest (const TQString &word)
 
virtual bool checkAndSuggest (const TQString &word, TQStringList &suggestions)
 
virtual bool storeReplacement (const TQString &bad, const TQString &good)
 
virtual bool addToPersonal (const TQString &word)
 
virtual bool addToSession (const TQString &word)
 
- Public Member Functions inherited from KSpell2::Dictionary
virtual bool check (const TQString &word)=0
 
virtual TQStringList suggest (const TQString &word)=0
 
virtual bool checkAndSuggest (const TQString &word, TQStringList &suggestions)=0
 
virtual bool storeReplacement (const TQString &bad, const TQString &good)=0
 
virtual bool addToPersonal (const TQString &word)=0
 
virtual bool addToSession (const TQString &word)=0
 
TQString language () const
 
bool isDefault () const
 

Additional Inherited Members

- Protected Member Functions inherited from KSpell2::Dictionary
 Dictionary (const TQString &lang, bool def=false)
 
- Protected Attributes inherited from KSpell2::Dictionary
TQString m_language
 
bool m_default
 

Detailed Description

tdespell_aspelldict.h

Copyright (C) 2003 Zack Rusin zack@.nosp@m.kde..nosp@m.org

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 28 of file tdespell_aspelldict.h.

Constructor & Destructor Documentation

◆ ASpellDict()

ASpellDict::ASpellDict ( const TQString &  lang)

Definition at line 29 of file tdespell_aspelldict.cpp.

◆ ~ASpellDict()

ASpellDict::~ASpellDict ( )

Definition at line 47 of file tdespell_aspelldict.cpp.

Member Function Documentation

◆ addToPersonal()

bool ASpellDict::addToPersonal ( const TQString &  word)
virtual

Adds word to the list of of personal words.

Returns
true on success

Implements KSpell2::Dictionary.

Definition at line 106 of file tdespell_aspelldict.cpp.

◆ addToSession()

bool ASpellDict::addToSession ( const TQString &  word)
virtual

Adds word to the words recognizable in the current session.

Returns
true on success

Implements KSpell2::Dictionary.

Definition at line 119 of file tdespell_aspelldict.cpp.

◆ check()

bool ASpellDict::check ( const TQString &  word)
virtual

Checks the given word.

Returns
false if the word is misspelled. true otherwise

Implements KSpell2::Dictionary.

Definition at line 53 of file tdespell_aspelldict.cpp.

◆ checkAndSuggest()

bool ASpellDict::checkAndSuggest ( const TQString &  word,
TQStringList &  suggestions 
)
virtual

Checks the word and fetches suggestions for it.

Implements KSpell2::Dictionary.

Definition at line 87 of file tdespell_aspelldict.cpp.

◆ storeReplacement()

bool ASpellDict::storeReplacement ( const TQString &  bad,
const TQString &  good 
)
virtual

Stores user defined good replacement for the bad word.

Returns
true on success

Implements KSpell2::Dictionary.

Definition at line 96 of file tdespell_aspelldict.cpp.

◆ suggest()

TQStringList ASpellDict::suggest ( const TQString &  word)
virtual

Fetches suggestions for the word.

Returns
list of all suggestions for the word

Implements KSpell2::Dictionary.

Definition at line 61 of file tdespell_aspelldict.cpp.


The documentation for this class was generated from the following files:
  • tdespell_aspelldict.h
  • tdespell_aspelldict.cpp

tdespell2

Skip menu "tdespell2"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

tdespell2

Skip menu "tdespell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdespell2 by doxygen 1.9.4
This website is maintained by Timothy Pearson.