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

KTextEditor

Modules | Classes
Document Extension Interfaces
Collaboration diagram for Document Extension Interfaces:

Modules

 Smart Cursors and Ranges
 
 MovingCursors and MovingRanges
 

Classes

class  KTextEditor::AnnotationInterface
 
class  KTextEditor::ConfigInterface
 
class  KTextEditor::HighlightInterface
 
class  KTextEditor::MarkInterface
 
class  KTextEditor::MessageInterface
 
class  KTextEditor::ModeInterface
 
class  KTextEditor::ModificationInterface
 
class  KTextEditor::MovingInterface
 
class  KTextEditor::ParameterizedSessionConfigInterface
 
class  KTextEditor::RecoveryInterface
 
class  KTextEditor::SearchInterface
 
class  KTextEditor::SessionConfigInterface
 
class  KTextEditor::SmartInterface
 
class  KTextEditor::VariableInterface
 

Detailed Description

A KTextEditor implementation may implement a Document extension interface, but it does not need to.

So as a KTextEditor user you have to cast the Document to the desired interface and then check, whether the cast returns NULL or the valid interface.

Use qobject_cast to cast a Document doc into the DesiredExtensionInterface, example:

// doc is of type KTextEditor::Document*
KTextEditor::DesiredExtensionInterface *iface =
qobject_cast<KTextEditor::DesiredExtensionInterface*>( doc );
if( iface ) {
// the implementation supports the interface
// do stuff
}
else
{
// the implementation does not support the interface
}
See also
KTextEditor::Document

The following classes are a list of all available Document extension interfaces.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

Skip menu "KTextEditor"
  • 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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