kate Library: katecmds.h Source File (kate Library)

| # kate Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# katecmds.h

    00001 /* This file is part of the KDE libraries
    00002    Copyright (C) 2003 Anders Lund <anders@alweb.dk>
    00003    Copyright (C) 2001-2004 Christoph Cullmann <cullmann@kde.org>
    00004    Copyright (C) 2001 Charles Samuels <charles@kde.org>
    00005
    00006    This library is free software; you can redistribute it and/or
    00007    modify it under the terms of the GNU Library General Public
    00008    License version 2 as published by the Free Software Foundation.
    00009
    00010    This library is distributed in the hope that it will be useful,
    00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013    Library General Public License for more details.
    00014
    00015    You should have received a copy of the GNU Library General Public License
    00016    along with this library; see the file COPYING.LIB.  If not, write to
    00017    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018    Boston, MA 02111-1307, USA.
    00019 */
    00020
    00021 #ifndef __KATE_CMDS_H__
    00022 #define __KATE_CMDS_H__
    00023
    00024 #include "../interfaces/document.h"
    00025 #include "../interfaces/view.h"
    00026
    00027 class KateDocument;
    00028 class KCompletion;
    00029
    00030 namespace KateCommands
    00031 {
    00032
    00039 class CoreCommands : public Kate::Command, public Kate::CommandExtension
    00040 {
    00041   public:
    00049     bool exec( class Kate::View *view, const QString &cmd, QString &errorMsg );
    00050
    00051     bool help( class Kate::View *, const QString &, QString & ) {return false;};
    00052
    00057     QStringList cmds();
    00058
    00059     KCompletion *completionObject( const QString &, Kate::View * );
    00060 };
    00061
    00072 class SedReplace : public Kate::Command
    00073 {
    00074   public:
    00082     bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg);
    00083
    00084     bool help (class Kate::View *, const QString &, QString &) { return false; };
    00085
    00090     QStringList cmds () { QStringList l("s"); l << "%s" << "$s"; return l; };
    00091
    00092   private:
    00112     static int sedMagic(KateDocument *doc, int &line,
    00113                         const QString &find, const QString &replace, const QString &delim,
    00114                         bool noCase, bool repeat,
    00115                         uint startcol=0, int endcol=-1);
    00116 };
    00117
    00126 class Character : public Kate::Command
    00127 {
    00128   public:
    00136     bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg);
    00137
    00138     bool help (class Kate::View *, const QString &, QString &) { return false; };
    00139
    00144     QStringList cmds () { return QStringList("char"); };
    00145 };
    00146
    00150 class Date : public Kate::Command
    00151 {
    00152   public:
    00160     bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg);
    00161
    00162     bool help (class Kate::View *, const QString &, QString &) { return false; };
    00163
    00168     QStringList cmds () { return QStringList("date"); };
    00169 };
    00170
    00171
    00172 } // namespace KateCommands
    00173 #endif
    00174
    00175 // kate: space-indent on; indent-width 2; replace-tabs on;

This file is part of the documentation for kate Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:36:30 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003