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

interfaces/tdetexteditor

  • interfaces
  • tdetexteditor
templateinterface.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2004 Joseph Wenninger <jowenn@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef __tdetexteditor_templateinterface_h__
20 #define __tdetexteditor_templateinterface_h__
21 
22 #include <tqstring.h>
23 #include <tqmap.h>
24 #include <tqwidget.h>
25 
26 #include <tdelibs_export.h>
27 
28 namespace KTextEditor
29 {
30 
31 class Document;
32 
37 class KTEXTEDITOR_EXPORT TemplateInterface //should be named AbstractTemplateInterface, but for consistency with the other classes it is not (for the 3.x release series)
38 {
39  friend class PrivateTemplateInterface;
40 
41  public:
42  TemplateInterface();
43  virtual ~TemplateInterface();
44 
55  static bool expandMacros( TQMap<TQString, TQString> &initialValues, TQWidget *parentWindow );
56 
57  uint templateInterfaceNumber () const;
58 
59  protected:
60  void setTemplateInterfaceDCOPSuffix (const TQCString &suffix);
61 
62  public:
63 
106  bool insertTemplateText ( uint line, uint column, const TQString &templateString, const TQMap<TQString,TQString> &initialValues, TQWidget *parentWindow=0);
107 
108 protected:
116  virtual bool insertTemplateTextImplementation ( uint line, uint column, const TQString &templateString, const TQMap<TQString,TQString> &initialValues, TQWidget *parentWindow=0 )=0;
117 
121  private:
122  class PrivateTemplateInterface *d;
123  static uint globalTemplateInterfaceNumber;
124  uint myTemplateInterfaceNumber;
125 };
126 
127 KTEXTEDITOR_EXPORT TemplateInterface *templateInterface (Document *doc);
128 
129 }
130 
131 #endif
KTextEditor::TemplateInterface
This is an interface for inserting template strings with user editable fields into a document...
Definition: templateinterface.h:37
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

interfaces/tdetexteditor

Skip menu "interfaces/tdetexteditor"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

interfaces/tdetexteditor

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