Kate
kateindentscript.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 KATE_INDENT_SCRIPT_H 00020 #define KATE_INDENT_SCRIPT_H 00021 00022 #include "katescript.h" 00023 #include "kateview.h" 00024 00025 #include <QtCore/QPair> 00026 00027 class KateScriptDocument; 00028 00033 class KateIndentScript : public KateScript { 00034 public: 00035 KateIndentScript(const QString &url, const KateScriptInformation &information); 00036 00037 const QString &triggerCharacters(); 00038 00043 QPair<int, int> indent(KateView* view, const KTextEditor::Cursor& position, QChar typedCharacter, 00044 int indentWidth); 00045 00046 private: 00047 QString m_triggerCharacters; 00048 bool m_triggerCharactersSet; 00049 }; 00050 00051 00052 #endif 00053 00054 // kate: space-indent on; indent-width 2; replace-tabs on;