• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

  • interfaces
  • tdetexteditor
searchdcopinterface.cpp
1#include "searchdcopinterface.h"
2#include "searchinterface.h"
3
4#include <dcopclient.h>
5#include <tqregexp.h>
6
7using namespace KTextEditor;
8
9SearchDCOPInterface::SearchDCOPInterface( SearchInterface *Parent, const char *name)
10 : DCOPObject(name)
11{
12 m_parent = Parent;
13 m_currentcol = 0;
14 m_currentrow = 0;
15 m_currentmatchlen = 0;
16}
17
18SearchDCOPInterface::~SearchDCOPInterface()
19{
20
21}
22
23bool SearchDCOPInterface::findFirstString( TQString text, bool caseSensitive)
24{
25 return m_parent->searchText(0, 0, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive);
26}
27bool SearchDCOPInterface::findNextString( TQString text, bool caseSensitive)
28{
29 return m_parent->searchText(m_currentrow, m_currentcol+1, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive);
30}
31
32bool SearchDCOPInterface::findPreviousString( TQString text, bool caseSensitive)
33{
34 if( m_currentcol == 0)
35 m_currentrow--;
36 else
37 m_currentcol--;
38 return m_parent->searchText(m_currentrow, m_currentcol, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive, true);
39}
40
41bool SearchDCOPInterface::findLastString( TQString text, bool caseSensitive)
42{
43 return m_parent->searchText(0,0, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive, true);
44}
45
46bool SearchDCOPInterface::findStringAt( uint row, uint col, TQString text, bool caseSensitive)
47{
48 return m_parent->searchText(row,col, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive);
49
50}
51
52bool SearchDCOPInterface::findFirstRegExp( TQString regexp)
53{
54 return m_parent->searchText( 0,0, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen);
55}
56
57bool SearchDCOPInterface::findNextRegExp( TQString regexp)
58{
59 return m_parent->searchText( m_currentrow, m_currentcol+1, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen);
60}
61
62bool SearchDCOPInterface::findPreviousRegExp( TQString regexp)
63{
64 if( m_currentcol == 0)
65 m_currentrow--;
66 else
67 m_currentcol--;
68 return m_parent->searchText( m_currentrow, m_currentcol, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen, true);
69
70}
71
72bool SearchDCOPInterface::findLastRegExp(TQString regexp)
73{
74 return m_parent->searchText( 0,0, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen, true);
75}
76
77bool SearchDCOPInterface::findRegExpAt( uint row, uint col, TQString regexp)
78{
79 return m_parent->searchText( row, col, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen, false);
80}
81
82uint SearchDCOPInterface::currentMatchLine()
83{
84 return m_currentrow;
85}
86uint SearchDCOPInterface::currentMatchCol()
87{
88 return m_currentcol;
89}
90uint SearchDCOPInterface::currentMatchLength()
91{
92 return m_currentmatchlen;
93}
94
95
DCOPObject
KTextEditor::SearchDCOPInterface::~SearchDCOPInterface
virtual ~SearchDCOPInterface()
Destructor Cleans up the object.
Definition: searchdcopinterface.cpp:18
KTextEditor::SearchInterface
This is an interface to allow searching of a Document.
Definition: searchinterface.h:36
KTextEditor
KTextEditor is KDE's standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:10

interfaces

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

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for interfaces by doxygen 1.9.4
This website is maintained by Timothy Pearson.