KTextEditor
templateinterface2.cpp
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2010 Joseph Wenninger <jowenn@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #include "templateinterface.h" 00020 #include "templateinterface2.h" 00021 00022 00023 using namespace KTextEditor; 00024 00025 TemplateScript::~TemplateScript() 00026 { 00027 } 00028 00029 00030 00031 00032 TemplateScriptRegistrar::TemplateScriptRegistrar() 00033 { 00034 } 00035 00036 TemplateScriptRegistrar::~TemplateScriptRegistrar() 00037 { 00038 } 00039 00040 TemplateInterface2::TemplateInterface2() 00041 : TemplateInterface() 00042 , d(0) 00043 { 00044 } 00045 00046 TemplateInterface2::~TemplateInterface2() 00047 { 00048 } 00049 00050 bool TemplateInterface2::insertTemplateText ( const Cursor& insertPosition, 00051 const QString &templateString, 00052 const QMap<QString, QString> &initialValues, 00053 TemplateScript* templateScript) 00054 { 00055 QMap<QString,QString> enhancedInitValues(initialValues); 00056 if (!KTE_INTERNAL_setupIntialValues(templateString,&enhancedInitValues)) { 00057 return false; 00058 } 00059 return insertTemplateTextImplementation( insertPosition, templateString, enhancedInitValues, templateScript); 00060 } 00061 00062 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE 4.6 API Reference