searchdcopinterface.h
00001 #ifndef SEARCH_DCOP_INTERFACE_H 00002 #define SEARCH_DCOP_INTERFACE_H 00003 00004 #include <dcopobject.h> 00005 #include <dcopref.h> 00006 #include <tqstringlist.h> 00007 #include <tqcstring.h> 00008 00009 namespace KTextEditor 00010 { 00011 class SearchInterface; 00018 class KTEXTEDITOR_EXPORT SearchDCOPInterface : virtual public DCOPObject 00019 { 00020 K_DCOP 00021 00022 public: 00029 SearchDCOPInterface( SearchInterface *Parent, const char *name ); 00034 virtual ~SearchDCOPInterface(); 00035 k_dcop: 00036 bool findFirstString(TQString text, bool caseSensitive); 00037 bool findNextString(TQString text, bool caseSensitive); 00038 bool findPreviousString( TQString text, bool caseSensitive); 00039 bool findLastString(TQString text, bool caseSensitive); 00040 bool findStringAt( uint row, uint col, TQString text, bool caseSensitive); 00041 00042 bool findFirstRegExp( TQString regexp); 00043 bool findNextRegExp( TQString regexp); 00044 bool findPreviousRegExp( TQString regexp); 00045 bool findLastRegExp( TQString regexp); 00046 bool findRegExpAt( uint row, uint col, TQString regexp); 00047 00048 uint currentMatchLine(); 00049 uint currentMatchCol(); 00050 uint currentMatchLength(); 00051 00052 private: 00053 SearchInterface *m_parent; 00054 uint m_currentcol; 00055 uint m_currentrow; 00056 uint m_currentmatchlen; 00057 }; 00058 } 00059 #endif