templateinterface.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#ifndef __ktexteditor_templateinterface_h__
00020
#define __ktexteditor_templateinterface_h__
00021
00022
#include <qstring.h>
00023
#include <qmap.h>
00024
#include <qwidget.h>
00025
00026
#include <kdelibs_export.h>
00027
00028
namespace KTextEditor
00029 {
00030
00031
class Document;
00032
00037 class KTEXTEDITOR_EXPORT TemplateInterface
00038 {
00039
friend class PrivateTemplateInterface;
00040
00041
public:
00042 TemplateInterface();
00043
virtual ~TemplateInterface();
00044
00055
static bool expandMacros(
QMap<QString, QString> &initialValues,
QWidget *parentWindow );
00056
00057 uint templateInterfaceNumber ()
const;
00058
00059
protected:
00060
void setTemplateInterfaceDCOPSuffix (
const QCString &suffix);
00061
00062
public:
00063
00106
bool insertTemplateText ( uint line, uint column,
const QString &templateString,
const QMap<QString,QString> &initialValues,
QWidget *parentWindow=0);
00107
00108
protected:
00116
virtual bool insertTemplateTextImplementation ( uint line, uint column,
const QString &templateString,
const QMap<QString,QString> &initialValues,
QWidget *parentWindow=0 )=0;
00117
00121
private:
00122
class PrivateTemplateInterface *d;
00123
static uint globalTemplateInterfaceNumber;
00124 uint myTemplateInterfaceNumber;
00125 };
00126
00127 KTEXTEDITOR_EXPORT TemplateInterface *templateInterface (
Document *doc);
00128
00129 }
00130
00131
#endif
This file is part of the documentation for interfaces Library Version 3.4.0.