• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | List of all members
KTextEditSpellInterface Class Referenceabstract

#include <ktextedit.h>

Public Member Functions

virtual ~KTextEditSpellInterface ()
 
virtual bool isSpellCheckingEnabled () const =0
 
virtual void setSpellCheckingEnabled (bool enable)=0
 
virtual bool shouldBlockBeSpellChecked (const QString &block) const =0
 

Detailed Description

This interface is a workaround to keep binary compatibility in KDE4, because adding the virtual keyword to functions is not BC.

Call KTextEdit::setSpellInterface() to set this interface to a KTextEdit, and some functions of KTextEdit will delegate their calls to this interface instead, which provides a way for derived classes to modifiy the behavior or those functions.

Since
4.2

TODO: Get rid of this class in KDE5 and add the methods to KTextEdit instead, by making them virtual there.

Definition at line 45 of file ktextedit.h.

Constructor & Destructor Documentation

virtual KTextEditSpellInterface::~KTextEditSpellInterface ( )
inlinevirtual

Definition at line 68 of file ktextedit.h.

Member Function Documentation

virtual bool KTextEditSpellInterface::isSpellCheckingEnabled ( ) const
pure virtual
Returns
true if spellchecking for the text edit is enabled.
virtual void KTextEditSpellInterface::setSpellCheckingEnabled ( bool  enable)
pure virtual

Sets whether to enable spellchecking for the KTextEdit.

Parameters
enabletrue if spellchecking should be enabled, false otherwise
virtual bool KTextEditSpellInterface::shouldBlockBeSpellChecked ( const QString &  block) const
pure virtual

Returns true if the given paragraph or block should be spellcheck.

For example, a mail client does not want to check quoted text, and would return false here (by checking whether the block starts with a quote sign).


The documentation for this class was generated from the following file:
  • ktextedit.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal