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

KTextEditor

Document Extension Interfaces

Collaboration diagram for Document Extension Interfaces:

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.


Modules

 Smart Cursors and Ranges

Classes

class  KTextEditor::AnnotationInterface
 A Document extension interface for handling Annotations. More...
class  KTextEditor::MarkInterface
 Mark extension interface for the Document. More...
class  KTextEditor::ModificationInterface
 External modification extension interface for the Document. More...
class  KTextEditor::SearchInterface
 Search interface extension for the Document. More...
class  KTextEditor::SessionConfigInterface
 Session config interface extension for the Document, View and Plugin. More...
class  KTextEditor::SmartInterface
 A Document extension interface for handling SmartCursors and SmartRanges. More...
class  KTextEditor::VariableInterface
 Variable/Modeline extension interface for the Document. More...

KTextEditor

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal