class KTextEditor.SearchInterface


abstract class

Table of contents
Modules
ktexteditor Classes
All Classes
Module ktexteditor
Namespace ktexteditor
Class KTextEditor.SearchInterface
Inherits

Search interface extension for the Document.

Introduction

The SearchInterface provides methods to search for a given text pattern in a Document. You can either search for a simple text or for a regular expression, see searchText.

Accessing the SearchInterface

The SearchInterface is supposed to be an extension interface for a Document, i.e. the Document inherits the interface provided that the used KTextEditor library implements the interface. Use qobject_cast to access the interface:

// doc is of type KTextEditor.Document*
KTextEditor.SearchInterface *iface =
qobject_cast( doc );

if( iface ) { // the implementation supports the interface // do stuff }

See also KTextEditor.Document Author Christoph Cullmann \



methods