KTextEditor
templateinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KDELIBS_KTEXTEDITOR_TEMPLATEINTERFACE_H
00020 #define KDELIBS_KTEXTEDITOR_TEMPLATEINTERFACE_H
00021
00022 #include <QtCore/QString>
00023 #include <QtCore/QMap>
00024 #include <QtGui/QImage>
00025
00026 #include <ktexteditor/ktexteditor_export.h>
00027 #include <ktexteditor/cursor.h>
00028
00029 namespace KTextEditor
00030 {
00031
00032 class Cursor;
00033
00039 class KTEXTEDITOR_EXPORT TemplateInterface
00040 {
00041 public:
00042 TemplateInterface();
00043 virtual ~TemplateInterface();
00044
00055 static bool expandMacros( QMap<QString, QString> &initialValues, QWidget *parentWindow );
00056
00057 public:
00058
00100 bool insertTemplateText ( const Cursor &insertPosition, const QString &templateString, const QMap<QString,QString> &initialValues);
00101
00102 protected:
00110 virtual bool insertTemplateTextImplementation ( const Cursor &insertPosition, const QString &templateString, const QMap<QString,QString> &initialValues)=0;
00111
00112 private:
00113 class TemplateInterfacePrivate* const d;
00114 };
00115
00116 }
00117
00118 Q_DECLARE_INTERFACE(KTextEditor::TemplateInterface,
00119 "org.kde.KTextEditor.TemplateInterface")
00120
00121 #endif