searchinterface.h
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 class QRegExp;
00024 class QString;
00025 class QCString;
00026 
00027 namespace KTextEditor
00028 {
00029 
00033 class SearchInterface
00034 {
00035   friend class PrivateSearchInterface;
00036 
00037   public:
00038     SearchInterface();
00039     virtual ~SearchInterface();
00040 
00041     unsigned int searchInterfaceNumber () const;
00042 
00043   protected:  
00044     void setSearchInterfaceDCOPSuffix (const QCString &suffix);  
00045     
00046   
00047   
00048   
00049   public:
00050     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;
00051     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;
00052 
00053   private:
00054     class PrivateSearchInterface *d;
00055     static unsigned int globalSearchInterfaceNumber;
00056     unsigned int mySearchInterfaceNumber;
00057 };
00058 
00059 SearchInterface *searchInterface (class Document *doc);
00060 
00061 }
00062 
00063 #endif
 
This file is part of the documentation for interfaces Library Version 3.2.0.