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

interfaces

  • interfaces
  • ktexteditor
editinterface.cpp
1 #include "editinterface.h"
2 #include "editdcopinterface.h"
3 #include "document.h"
4 
5 using namespace KTextEditor;
6 
7 namespace KTextEditor
8 {
9  class PrivateEditInterface
10  {
11  public:
12  PrivateEditInterface()
13  {
14  interface = 0;
15  }
16  ~PrivateEditInterface(){}
17  // Data Members
18  EditDCOPInterface *interface;
19  };
20 
21 }
22 
23 uint EditInterface::globalEditInterfaceNumber = 0;
24 
25 EditInterface::EditInterface()
26 {
27  d = new PrivateEditInterface();
28  globalEditInterfaceNumber++;
29  myEditInterfaceNumber = globalEditInterfaceNumber;
30  TQString name = "EditInterface#" + TQString::number(myEditInterfaceNumber);
31  d->interface = new EditDCOPInterface(this, name.latin1());
32 }
33 
34 EditInterface::~EditInterface()
35 {
36  delete d->interface;
37  delete d;
38 }
39 
40 uint EditInterface::editInterfaceNumber () const
41 {
42  return myEditInterfaceNumber;
43 }
44 
45 void EditInterface::setEditInterfaceDCOPSuffix (const TQCString &suffix)
46 {
47  d->interface->setObjId ("EditInterface#"+suffix);
48 }
49 
50 EditInterface *KTextEditor::editInterface (Document *doc)
51 {
52  if (!doc)
53  return 0;
54 
55  return dynamic_cast<KTextEditor::EditInterface*>(doc);
56 }
57 
KTextEditor::Document
The main class representing a text document.
Definition: document.h:31
KTextEditor
KTextEditor is KDE's standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:9
KTextEditor::EditDCOPInterface
This is the main interface to the EditInterface of KTextEdit.
Definition: editdcopinterface.h:18
KStdAccel::name
TQString name(StdAccel id)
KTextEditor::EditInterface
This is the main interface for accessing and modifying text of the Document class.
Definition: editinterface.h:33

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.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |