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

interfaces

  • interfaces
  • ktexteditor
searchinterface.cpp
1 #include "searchinterface.h"
2 #include "searchdcopinterface.h"
3 #include "document.h"
4 
5 using namespace KTextEditor;
6 
7 namespace KTextEditor
8 {
9  class PrivateSearchInterface
10  {
11  public:
12  PrivateSearchInterface()
13  {
14  interface = 0;
15  }
16  ~PrivateSearchInterface(){}
17  // Data Members
18  SearchDCOPInterface *interface;
19  };
20 
21 }
22 
23 unsigned int SearchInterface::globalSearchInterfaceNumber = 0;
24 
25 SearchInterface::SearchInterface()
26 {
27  d = new PrivateSearchInterface();
28  globalSearchInterfaceNumber++;
29  mySearchInterfaceNumber=globalSearchInterfaceNumber;
30  TQString name = "SearchInterface#" + TQString::number(mySearchInterfaceNumber);
31  d->interface = new SearchDCOPInterface(this, name.latin1());
32 }
33 SearchInterface::~SearchInterface()
34 {
35  delete d->interface;
36  delete d;
37 }
38 
39 unsigned int SearchInterface::searchInterfaceNumber () const
40 {
41  return mySearchInterfaceNumber;
42 }
43 
44 void SearchInterface::setSearchInterfaceDCOPSuffix (const TQCString &suffix)
45 {
46  d->interface->setObjId ("SearchInterface#"+suffix);
47 }
48 
49 SearchInterface *KTextEditor::searchInterface (Document *doc)
50 {
51  if (!doc)
52  return 0;
53 
54  return dynamic_cast<KTextEditor::SearchInterface*>(doc);
55 }
KTextEditor::Document
The main class representing a text document.
Definition: document.h:31
KTextEditor
KTextEditor is KDE&#39;s standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:9
KStdAccel::name
TQString name(StdAccel id)
KTextEditor::SearchInterface
This is an interface to allow searching of a Document.
Definition: searchinterface.h:35
KTextEditor::SearchDCOPInterface
This is the main interface to the SearchInterface of KTextEdit.
Definition: searchdcopinterface.h:18
DCOPObject::setObjId
bool setObjId(const TQCString &objId)

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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for interfaces by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |