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

tdespell2

  • KSpell2
  • Filter
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KSpell2::Filter Class Reference

#include <filter.h>

Public Member Functions

void setSettings (Settings *)
 
Settings * settings () const
 
bool atEnd () const
 
void setBuffer (const TQString &buffer)
 
TQString buffer () const
 
void restart ()
 
virtual Word nextWord () const
 
virtual Word previousWord () const
 
virtual Word wordAtPosition (unsigned int pos) const
 
virtual void setCurrentPosition (int)
 
virtual int currentPosition () const
 
virtual void replace (const Word &w, const TQString &newWord)
 
virtual TQString context () const
 

Static Public Member Functions

static Filter * defaultFilter ()
 
static Word end ()
 

Protected Member Functions

bool trySkipLinks () const
 
bool ignore (const TQString &word) const
 
TQChar skipToLetter (uint &fromPosition) const
 
bool shouldBeSkipped (bool wordWasUppercase, bool wordWasRunTogether, const TQString &foundWord) const
 

Protected Attributes

TQString m_buffer
 
uint m_currentPosition
 

Detailed Description

Filter is used to split text into words which will be spell checked.

Author
Zack Rusin zack@.nosp@m.kde..nosp@m.org

used to split text into words

Definition at line 64 of file filter.h.

Constructor & Destructor Documentation

◆ Filter()

KSpell2::Filter::Filter ( )

Definition at line 59 of file filter.cpp.

◆ ~Filter()

KSpell2::Filter::~Filter ( )
virtual

Definition at line 66 of file filter.cpp.

Member Function Documentation

◆ atEnd()

bool KSpell2::Filter::atEnd ( ) const

Definition at line 97 of file filter.cpp.

◆ buffer()

TQString KSpell2::Filter::buffer ( ) const

Definition at line 92 of file filter.cpp.

◆ context()

TQString KSpell2::Filter::context ( ) const
virtual

Should return the sentence containing the current word.

Definition at line 218 of file filter.cpp.

◆ currentPosition()

int KSpell2::Filter::currentPosition ( ) const
virtual

Definition at line 199 of file filter.cpp.

◆ defaultFilter()

Filter * KSpell2::Filter::defaultFilter ( )
static

Definition at line 47 of file filter.cpp.

◆ end()

Word KSpell2::Filter::end ( )
static

Definition at line 54 of file filter.cpp.

◆ ignore()

bool KSpell2::Filter::ignore ( const TQString &  word) const
protected

Definition at line 269 of file filter.cpp.

◆ nextWord()

Word KSpell2::Filter::nextWord ( ) const
virtual

Definition at line 105 of file filter.cpp.

◆ previousWord()

Word KSpell2::Filter::previousWord ( ) const
virtual

Definition at line 140 of file filter.cpp.

◆ replace()

void KSpell2::Filter::replace ( const Word &  w,
const TQString &  newWord 
)
virtual

Definition at line 204 of file filter.cpp.

◆ restart()

void KSpell2::Filter::restart ( )

Definition at line 81 of file filter.cpp.

◆ setBuffer()

void KSpell2::Filter::setBuffer ( const TQString &  buffer)

Definition at line 86 of file filter.cpp.

◆ setCurrentPosition()

void KSpell2::Filter::setCurrentPosition ( int  i)
virtual

Definition at line 189 of file filter.cpp.

◆ setSettings()

void KSpell2::Filter::setSettings ( Settings *  conf)

Sets the Settings object for this Filter.

Definition at line 71 of file filter.cpp.

◆ settings()

Settings * KSpell2::Filter::settings ( ) const

Returns currently used Settings object.

Definition at line 76 of file filter.cpp.

◆ shouldBeSkipped()

bool KSpell2::Filter::shouldBeSkipped ( bool  wordWasUppercase,
bool  wordWasRunTogether,
const TQString &  foundWord 
) const
protected

Definition at line 288 of file filter.cpp.

◆ skipToLetter()

TQChar KSpell2::Filter::skipToLetter ( uint &  fromPosition) const
protected

Definition at line 277 of file filter.cpp.

◆ trySkipLinks()

bool KSpell2::Filter::trySkipLinks ( ) const
protected

Definition at line 245 of file filter.cpp.

◆ wordAtPosition()

Word KSpell2::Filter::wordAtPosition ( unsigned int  pos) const
virtual

Definition at line 161 of file filter.cpp.

Member Data Documentation

◆ m_buffer

TQString KSpell2::Filter::m_buffer
protected

Definition at line 111 of file filter.h.

◆ m_currentPosition

uint KSpell2::Filter::m_currentPosition
mutableprotected

Definition at line 112 of file filter.h.


The documentation for this class was generated from the following files:
  • filter.h
  • filter.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.