KTextEditor
#include <templateinterface2.h>
Public Member Functions | |
TemplateInterface2 () | |
virtual | ~TemplateInterface2 () |
bool | insertTemplateText (const Cursor &insertPosition, const QString &templateString, const QMap< QString, QString > &initialValues, TemplateScript *templateScript) |
Public Member Functions inherited from KTextEditor::TemplateInterface | |
TemplateInterface () | |
virtual | ~TemplateInterface () |
bool | insertTemplateText (const Cursor &insertPosition, const QString &templateString, const QMap< QString, QString > &initialValues) |
Protected Member Functions | |
virtual bool | insertTemplateTextImplementation (const Cursor &insertPosition, const QString &templateString, const QMap< QString, QString > &initialValues, TemplateScript *templateScript)=0 |
virtual bool | insertTemplateTextImplementation (const Cursor &insertPosition, const QString &templateString, const QMap< QString, QString > &initialValues)=0 |
Protected Member Functions inherited from KTextEditor::TemplateInterface | |
bool | KTE_INTERNAL_setupIntialValues (const QString &templateString, QMap< QString, QString > *initialValues) |
Additional Inherited Members | |
Static Public Member Functions inherited from KTextEditor::TemplateInterface | |
static bool | expandMacros (QMap< QString, QString > &initialValues, QWidget *parentWindow) |
Detailed Description
- Since
- 4.5 This is an interface for inserting template strings with user editable fields into a document and support for scripts. Fold back into base Interface in KDE 5
Definition at line 47 of file templateinterface2.h.
Constructor & Destructor Documentation
TemplateInterface2::TemplateInterface2 | ( | ) |
Definition at line 40 of file templateinterface2.cpp.
|
virtual |
Definition at line 46 of file templateinterface2.cpp.
Member Function Documentation
bool TemplateInterface2::insertTemplateText | ( | const Cursor & | insertPosition, |
const QString & | templateString, | ||
const QMap< QString, QString > & | initialValues, | ||
TemplateScript * | templateScript | ||
) |
See the function description in TemplateInterface, this should be folded into the base Interface in KDE 5.
- Parameters
-
templateScript pointer to TemplateScript created by TemplateScriptRegistrar::registerTemplateScript
Definition at line 50 of file templateinterface2.cpp.
|
protectedpure virtual |
You must implement this, it is called by insertTemplateText, after all default values are inserted.
If you are implementing this interface, this method should work as described in the documentation for insertTemplateText above.
- Returns
- true if any text was inserted.
|
protectedpure virtual |
You must implement this, it is called by insertTemplateText, after all default values are inserted.
If you are implementing this interface, this method should work as described in the documentation for insertTemplateText above.
- Returns
- true if any text was inserted.
Implements KTextEditor::TemplateInterface.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.