interfaces
searchinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __ktexteditor_searchinterface_h__
00021 #define __ktexteditor_searchinterface_h__
00022
00023 #include <kdelibs_export.h>
00024
00025 class QRegExp;
00026 class QString;
00027 class QCString;
00028
00029 namespace KTextEditor
00030 {
00031
00035 class KTEXTEDITOR_EXPORT SearchInterface
00036 {
00037 friend class PrivateSearchInterface;
00038
00039 public:
00040 SearchInterface();
00041 virtual ~SearchInterface();
00042
00043 unsigned int searchInterfaceNumber () const;
00044
00045 protected:
00046 void setSearchInterfaceDCOPSuffix (const QCString &suffix);
00047
00048
00049
00050
00051 public:
00052 virtual bool searchText (unsigned int startLine, unsigned int startCol, const QString &text, unsigned int *foundAtLine, unsigned int *foundAtCol, unsigned int *matchLen, bool casesensitive = true, bool backwards = false) = 0;
00053 virtual bool searchText (unsigned int startLine, unsigned int startCol, const QRegExp ®exp, unsigned int *foundAtLine, unsigned int *foundAtCol, unsigned int *matchLen, bool backwards = false) = 0;
00054
00055 private:
00056 class PrivateSearchInterface *d;
00057 static unsigned int globalSearchInterfaceNumber;
00058 unsigned int mySearchInterfaceNumber;
00059 };
00060
00061 KTEXTEDITOR_EXPORT SearchInterface *searchInterface (class Document *doc);
00062
00063 }
00064
00065 #endif